.layout-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
}

.layout-hero {
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
  background: #15347c url("../imgs/GlobalLayout-bg.jpg") center center / cover no-repeat;
}

.layout-map {
  background-image: url("../imgs/GlobalLayout-bg2.jpg"), url("../imgs/global-map-edge.png");
  background-position: center bottom, center bottom;
  background-size: auto 100%, 100% 100%;
  background-repeat: no-repeat;
  background-color: #c3c6c9;
}

.layout-map-copy {
  position: relative;
  z-index: 1;
  width: min(1050px, 54.7vw);
  margin-inline: auto;
  padding-top: clamp(20px, 3svh, 32px);
}

.layout-map-description {
  margin-top: clamp(26px, 3.2svh, 35px);
  color: #1a2c24;
  font-size: clamp(13px, .94vw, 18px);
  line-height: 1.63;
  font-weight: 300;
}

.layout-map-description p { margin: 0 0 20px; }
.layout-map-mobile-visual { display: none; }

.layout-showrooms { background: #fff; }
@media (min-width: 1001px) {
  body[data-screen-page] .layout-showrooms-inner {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    row-gap: clamp(16px, 2.5svh, 26px);
    padding-block: clamp(18px, 3svh, 32px);
    box-sizing: border-box;
  }
  body[data-screen-page] .layout-showroom-track {
    min-height: 0;
    margin-top: 0;
  }
  body[data-screen-page] .layout-showroom-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
  }
  body[data-screen-page] .layout-showroom-photo {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
  body[data-screen-page] .layout-showroom-details {
    height: auto;
    min-height: 0;
    padding: clamp(18px, 2.3svh, 28px) clamp(22px, 2.5vw, 40px);
  }
  body[data-screen-page] .layout-showroom-bottom {
    margin-top: clamp(24px, 4svh, 40px);
  }
  body[data-screen-page] .layout-showroom-controls {
    margin-top: 0;
  }
}
.layout-showrooms-inner {
  width: min(1340px, 69.8vw);
  height: 100%;
  margin-inline: auto;
  padding-top: 8.6svh;
}
.layout-showroom-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: min(40px, 2.08vw);
  margin-top: 6.5svh;
  transition: opacity .25s ease;
}
.layout-showroom-track.is-changing { opacity: .35; }
.layout-showroom-card { min-width: 0; overflow: hidden; background: #f0eeee; }
.layout-showroom-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 65 / 31;
  object-fit: cover;
}
.layout-showroom-details {
  height: clamp(210px, 30svh, 330px);
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 48px);
}
.layout-showroom-details h3 {
  margin: 0;
  font-size: clamp(28px, 1.46vw, 30px);
  line-height: 1.2;
  font-weight: 500;
}
.layout-showroom-details h3 small {
  color: #aaa;
  font-size: .78em;
  font-weight: 400;
}
.layout-showroom-tags { display: flex; gap: 5px; margin-top: clamp(22px, 2.5svh, 29px); }
.layout-showroom-tags span {
  padding: 1px 4px 2px;
  border: 1px solid #3285ff;
  color: #3285ff;
  font-size: clamp(14px, .72vw, 16px);
  line-height: 1;
}
.layout-showroom-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.layout-showroom-phone,
.layout-showroom-contact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #898989;
  font-size: clamp(12px, .83vw, 16px);
  white-space: nowrap;
  font-weight: 300;
}
.layout-showroom-phone img { width: clamp(13px, .89vw, 17px); height: auto; }
.layout-showroom-contact {
  padding: 5px 6px;
  border: 1px solid #aaa;
  transition: background .2s, border-color .2s, color .2s;
}
.layout-showroom-contact img { width: clamp(13px, .89vw, 17px); height: auto; }
.layout-showroom-contact:hover,
.layout-showroom-contact:focus-visible { color: #111; border-color: #111; background: #fff; }
.layout-showroom-controls { display: flex; justify-content: center; gap: 56px; margin-top: 4.5svh; }
.layout-showroom-arrow {
  width: clamp(43px, 2.92vw, 56px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1.5px solid #696969;
  border-radius: 50%;
  color: #696969;
  background: #fff;
  transition: color .2s, border-color .2s, transform .2s;
}
.layout-showroom-arrow:hover,
.layout-showroom-arrow:focus-visible { color: #111; border-color: #111; transform: scale(1.06); }
.layout-showroom-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }

@media (min-width: 1001px) and (max-height: 820px) {
  .layout-map-copy { padding-top: 3svh; }
  .layout-map-description { margin-top: 2.5svh; line-height: 1.45; }
  .layout-map-description p { margin-bottom: 12px; }
  .layout-showrooms-inner { padding-top: 9svh; }
  .layout-showroom-track { margin-top: 6svh; }
  .layout-showroom-controls { margin-top: 3svh; }
}

@media (max-width: 1000px) {
  .layout-map-copy { width: min(700px, calc(100% - 64px)); padding-top: 7svh; }
  .layout-map-description { font-size: clamp(13px, 1.65vw, 17px); line-height: 1.5; }
  .layout-showrooms-inner { width: min(760px, calc(100% - 64px)); padding-top: 8svh; }
  .layout-showroom-track { gap: 20px; margin-top: 5svh; }
  .layout-showroom-details { height: clamp(200px, 28svh, 280px); padding: 22px; }
  .layout-showroom-details h3 { font-size: clamp(19px, 2.5vw, 24px); }
  .layout-showroom-bottom { align-items: flex-start; }
  .layout-showroom-phone, .layout-showroom-contact { font-size: 12px; }
}

@media (max-width: 700px) {
  .layout-hero { background-position: 22% center; }
  .layout-map { background: #fff; display: flex; flex-direction: column; }
  .layout-map-copy { flex: none; width: calc(100% - 40px); padding-top: 5svh; }
  .layout-map-description { margin-top: 2.5svh; font-size: clamp(11px, 2.8vw, 13px); line-height: 1.35; }
  .layout-map-description p { margin-bottom: 9px; }
  .layout-map-mobile-visual {
    display: block;
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .layout-map-mobile-visual img { width: 100%; max-width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }

  .layout-showrooms-inner { width: calc(100% - 40px); padding-top: 5svh; }
  .layout-showroom-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    margin-top: 5svh;
  }
  .layout-showroom-track::-webkit-scrollbar { display: none; }
  .layout-showroom-card { flex: 0 0 100%; scroll-snap-align: start; }
  .layout-showroom-photo { height: min(32svh, 280px); }
  .layout-showroom-details { height: min(33svh, 265px); min-height: 185px; padding: 20px; }
  .layout-showroom-details h3 { font-size: 21px; }
  .layout-showroom-tags { margin-top: 16px; }
  .layout-showroom-tags span { font-size: 11px; }
  .layout-showroom-controls { margin-top: 3svh; gap: 32px; }
  .layout-showroom-arrow { width: 44px; }
}

@media (max-width: 380px) {
  .layout-map-description { font-size: 10px; }
  .layout-showroom-photo { height: 29svh; }
  .layout-showroom-details { height: 30svh; min-height: 165px; }
}

@media (prefers-reduced-motion: reduce) {
  .layout-showroom-track,
  .layout-showroom-arrow,
  .layout-showroom-contact { transition: none; }
}
