html {
  scroll-behavior: smooth;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.button.ghost {
  background: transparent;
  color: var(--ink);
}
.button.light {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}
.button .wa-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.text-link::after {
  content: '→';
  content: '→' / '';
  transition: transform 0.2s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  height: 100vh;
  height: 100svh;
  max-height: 1100px;
  color: #fff;
  overflow: hidden;
  background: #8b8378;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 14, 10, 0.32) 0%, rgba(20, 14, 10, 0) 26%),
    linear-gradient(to top, rgba(20, 14, 10, 0.7) 0%, rgba(20, 14, 10, 0.25) 40%, rgba(20, 14, 10, 0) 62%);
}
.hero-top {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1;
}
.hero-logo {
  width: 112px;
}
.hero-copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(40px + env(safe-area-inset-bottom));
  z-index: 1;
}
.hero-copy::before {
  /* soft scrim behind the copy so it stays legible over white walls */
  content: '';
  position: absolute;
  z-index: -1;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  top: -48px;
  bottom: calc(-64px - env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(20, 14, 10, 0.5) 0%, rgba(20, 14, 10, 0.4) 78%, rgba(20, 14, 10, 0) 100%);
  pointer-events: none;
}
.hero-copy .eyebrow {
  margin: 0 0 8px;
  color: #fff;
}
.hero-copy h1,
.hero-copy .eyebrow,
.hero-copy .text-link {
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}
.hero-copy .eyebrow {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.45);
}
.hero h1 {
  margin: 0 0 20px;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.005em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}
.hero-actions .button {
  min-width: 168px;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.hero .text-link {
  color: #fff;
}

/* Intro */
.intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px var(--gutter) 56px;
  text-align: center;
}
.intro .lead {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(25px, 6.4vw, 34px);
  line-height: 1.25;
  color: var(--ink);
}
.intro p {
  margin: 0 0 32px;
  color: var(--muted);
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts li {
  display: grid;
  gap: 2px;
  padding: 18px 10px;
  background: var(--bg);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.facts li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.facts span {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0;
}

/* Included */
.included {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}
.included-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.included-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.3;
}
.included-list svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Prices are not on the site, so this is the reason to write. */
.price-note {
  margin: 30px 0 0;
  text-align: center;
}
.price-note .text-link {
  font-size: 15px;
}

/* 3D tour, embedded in the page */
.tour {
  padding: 0 var(--gutter) 72px;
}
.tour-head {
  max-width: 640px;
  margin: 0 auto 22px;
  text-align: center;
}
.tour-head .eyebrow {
  margin: 0 0 6px;
}
.tour-head .section-title {
  margin: 0 0 8px;
}
.tour-head p:last-child {
  margin: 0;
  color: var(--muted);
}
.tour-note {
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
/* The frame keeps the viewer's place in the page while the viewer itself goes full screen. */
.viewer-frame {
  position: relative;
  max-width: 1200px;
  height: min(125vw, 74vh);
  height: min(125vw, 74svh);
  min-height: 380px;
  margin: 0 auto;
}
.viewer {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 35%, #fbf8f3 0%, #f1ebe2 60%, #e9e1d6 100%);
  box-shadow: 0 10px 40px rgba(58, 42, 32, 0.08);
  overscroll-behavior: contain;
}
.viewer-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s;
}
.viewer.is-ready .viewer-poster {
  opacity: 0;
  pointer-events: none;
}
.viewer-stage {
  position: absolute;
  inset: 0;
}
.viewer-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}
.viewer:not(.is-ready) .levels,
.viewer:not(.is-ready) .viewer-expand,
.viewer:not(.is-ready) .hint,
.viewer:not(.is-ready) .spots {
  display: none;
}
.viewer-expand,
.viewer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.86);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(58, 42, 32, 0.12);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.viewer-title {
  display: none;
}
.viewer-status {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  display: none;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 8px 16px;
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%);
}
.viewer.is-loading .viewer-status,
.viewer.is-failed .viewer-status {
  display: block;
}
.viewer-status .failed,
.viewer.is-failed .viewer-status .loading {
  display: none;
}
.viewer.is-failed .viewer-status .failed {
  display: inline;
}
.viewer.is-loading .viewer-status .loading {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

/* Floor switcher */
.levels {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 2px;
  max-width: calc(100% - 16px);
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 6px 24px rgba(58, 42, 32, 0.12);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.levels button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.levels button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}

.viewer .hint {
  position: absolute;
  top: 22px;
  left: 16px;
  right: 64px;
  z-index: 2;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  pointer-events: none;
  transition: opacity 0.6s;
}
.viewer .hint.is-hidden {
  opacity: 0;
}

/* Room labels */
.viewer .spots {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.spot {
  /* Compact on phones; full size on larger screens, see below. */
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px 0 7px;
  border: 1px solid rgba(58, 42, 32, 0.08);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  font: 500 12px/1 var(--sans);
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(58, 42, 32, 0.12);
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.25s, visibility 0.25s;
  will-change: transform;
}
.spot::before {
  /* larger invisible touch target */
  content: '';
  position: absolute;
  inset: -6px;
}
.spot .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px rgba(92, 51, 38, 0.18);
}
.spot.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Labels disappear while the model is being turned. */
.viewer.is-turning .spot:not(.is-hidden) {
  opacity: 0;
  pointer-events: none;
}

/* Full screen on the same page */
html.tour-full,
html.sheet-open {
  overflow: hidden;
}
.viewer.is-full {
  position: fixed;
  z-index: 60;
  border-radius: 0;
  box-shadow: none;
}
.viewer.is-full .viewer-title {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  right: 72px;
  z-index: 3;
  display: block;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  pointer-events: none;
}
.viewer.is-full .viewer-close {
  top: calc(10px + env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
}
.viewer.is-full .levels {
  bottom: calc(18px + env(safe-area-inset-bottom));
}
.viewer.is-full .hint {
  top: auto;
  right: 0;
  left: 0;
  bottom: calc(80px + env(safe-area-inset-bottom));
  text-align: center;
}

/* Room photos: a bottom sheet on phones, a side panel on larger screens */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(30, 22, 16, 0.32);
  opacity: 0;
  transition: opacity 0.25s;
}
.sheet-backdrop.is-open {
  opacity: 1;
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  max-height: 86dvh;
  overflow-y: auto;
  padding: 16px env(safe-area-inset-right) calc(16px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overscroll-behavior: contain;
}
.sheet.is-open {
  transform: none;
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 12px 20px;
}
.sheet h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
}
.sheet-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.sheet-close {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.carousel-wrap {
  position: relative;
}
.carousel {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel figure {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
}
.carousel img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  background: var(--line);
}
.carousel-nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.carousel-nav.prev {
  left: 24px;
}
.carousel-nav.next {
  right: 24px;
}
.carousel-nav[disabled] {
  opacity: 0;
  pointer-events: none;
}
.counter {
  margin: 10px 20px 0;
  font-size: 13px;
  color: var(--muted);
}
.sheet-note {
  margin: 2px 20px 0;
  font-size: 12px;
  color: var(--muted);
}

/* Gallery */
.section-title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 7.5vw, 44px);
  line-height: 1.1;
  text-align: center;
}
.gallery {
  padding: 0 var(--gutter) 72px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.grid li:first-child,
.grid li:last-child {
  grid-column: span 2;
}
.grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
  cursor: zoom-in;
}
.grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Location: a drawn map that opens the Google Maps pin, and typical drive times. */
.location {
  padding: 0 var(--gutter) 72px;
}
.location-body {
  display: grid;
  gap: 28px;
  max-width: 440px;
  margin: 0 auto;
}
.map {
  margin: 0;
}
.map-link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
}
.map-link img {
  display: block;
  width: 100%;
  height: auto;
}
/* Pins shaped as in the brochure, in the site's colours: the marker's tip sits on the place. */
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: flex-start;
  gap: 5px;
  transform: translate(-5px, -14px);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  text-shadow: 0 0 3px #e9e1d6, 0 0 3px #e9e1d6, 0 0 6px #e9e1d6;
}
.pin::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 2px;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle, #fffdf9 0 1.6px, var(--ink) 2.2px);
  transform: rotate(-45deg);
}
.pin.is-left {
  flex-direction: row-reverse;
  text-align: right;
  transform: translate(calc(-100% + 5px), -14px);
}
.pin.is-sea {
  text-shadow: 0 0 3px #f6f2ec, 0 0 3px #f6f2ec, 0 0 6px #f6f2ec;
}
.pin.is-home {
  gap: 6px;
  transform: translate(-7px, -19px);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--brand);
}
.pin.is-home::before {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fffdf9 0 2.4px, var(--brand) 3px);
}
.pin.is-airport {
  gap: 9px;
  transform: translate(-8px, -8px);
  line-height: 16px;
}
.pin.is-airport.is-left {
  transform: translate(calc(-100% + 8px), -8px);
}
.pin.is-airport::before {
  width: 16px;
  height: 16px;
  margin-top: 0;
  border-radius: 3px;
  transform: none;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2c.8 0 1.4.7 1.4 1.5V9l7.6 4.6v2l-7.6-2.3v4.9l2 1.5V21L12 20.2 8.6 21v-1.3l2-1.5v-4.9L3 15.6v-2L10.6 9V3.5C10.6 2.7 11.2 2 12 2z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.map-link {
  container-type: inline-size;
}
/* On phone-sized maps the markers are a little smaller, so the villa's and Omni's stay apart. */
@container (max-width: 360px) {
  .pin {
    gap: 4px;
    transform: translate(-4px, -12.7px);
  }
  .pin::before {
    width: 8px;
    height: 8px;
    margin-top: 3px;
  }
  .pin.is-left {
    transform: translate(calc(-100% + 4px), -12.7px);
  }
  .pin.is-home {
    transform: translate(-6px, -16.5px);
  }
  .pin.is-home::before {
    width: 12px;
    height: 12px;
    margin-top: 2px;
  }
}
@media (forced-colors: active) {
  .pin::before {
    forced-color-adjust: none;
  }
}
.times .text-link {
  margin-top: 10px;
}
.times ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.times li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}
.times li span:last-child {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-weight: 500;
  font-size: 20px;
  white-space: nowrap;
}

/* Contact */
.contact {
  padding: 64px var(--gutter) 72px;
  background: var(--surface);
  text-align: center;
}
.contact p {
  margin: -8px 0 26px;
  color: var(--muted);
  text-wrap: balance;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact-actions .button {
  width: 100%;
  max-width: 320px;
}
.contact .contact-number {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 40px var(--gutter) calc(96px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.footer img {
  width: 96px;
}
.footer p {
  margin: 0;
}

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #120d0a;
  color: #fff;
  overscroll-behavior: contain;
}
.lightbox::backdrop {
  background: #120d0a;
}
.lightbox-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
}
.lightbox-track::-webkit-scrollbar {
  display: none;
}
.lightbox-track figure {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.lightbox-track img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.lightbox-close {
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
}
.lightbox-nav {
  top: 50%;
  margin-top: -24px;
  display: none;
}
.lightbox-nav.prev {
  left: 16px;
}
.lightbox-nav.next {
  right: 16px;
}
.lightbox-nav[disabled] {
  opacity: 0;
  pointer-events: none;
}
.lightbox-counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom));
  margin: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

@media (hover: hover) {
  .button:hover {
    background: #000;
  }
  .button.ghost:hover {
    background: var(--ink);
    color: #fff;
  }
  .button.light:hover {
    background: var(--bg);
  }
  .text-link:hover::after {
    transform: translateX(4px);
  }
  .grid button:hover img {
    transform: scale(1.03);
  }
  .lightbox-nav {
    display: grid;
  }
}
@media (hover: hover) and (pointer: fine) {
  .carousel-nav {
    display: grid;
  }
}

@media (min-width: 720px) {
  .included-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-logo {
    width: 190px;
  }
  .hero h1 {
    max-width: 12ch;
    margin-bottom: 22px;
    font-size: clamp(36px, min(11vw, 13svh), 76px);
    line-height: 1.02;
  }
  .hero-copy {
    bottom: 64px;
  }
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .grid li:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  .grid li:last-child {
    grid-column: auto;
  }
  .grid li:first-child button,
  .grid li:first-child img {
    height: 100%;
  }
  .contact-actions {
    flex-direction: row;
    justify-content: center;
  }
  .contact-actions .button {
    width: auto;
  }
}

/* Full-size room labels on tablets and desktops; phones, including in landscape, keep the
   compact ones. */
@media (min-width: 720px) and (min-height: 521px) {
  .spot {
    gap: 7px;
    min-height: 34px;
    padding: 0 12px 0 8px;
    background: rgba(255, 253, 249, 0.94);
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(58, 42, 32, 0.14);
  }
  .spot .dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 3px rgba(92, 51, 38, 0.18);
  }
}

@media (min-width: 900px) {
  .location-body {
    max-width: 920px;
    grid-template-columns: minmax(0, 440px) minmax(0, 380px);
    justify-content: center;
    align-items: center;
    gap: 56px;
  }
  .viewer-frame {
    height: min(76vh, 720px);
    height: min(76svh, 720px);
  }
  .levels button {
    padding: 0 20px;
    font-size: 15px;
  }
  .viewer.is-full .viewer-title {
    top: 24px;
    left: 32px;
    font-size: 40px;
  }
  .sheet {
    left: auto;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: 440px;
    max-height: none;
    border-radius: 20px;
    transform: translateX(calc(100% + 24px));
  }
  .sheet-backdrop {
    background: transparent;
  }
  .carousel-nav {
    display: grid;
  }
}

@media (max-width: 360px) {
  .levels button {
    padding: 0 10px;
    font-size: 13px;
  }
}

/* The floating WhatsApp button appears once the hero is out of view. */
.js .whatsapp-float {
  transition: opacity 0.3s, transform 0.3s;
}
.js .whatsapp-float.is-away {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Phones in landscape: keep the headline and the main button above the fold. */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 0;
  }
  .location-body {
    max-width: 760px;
    grid-template-columns: auto minmax(0, 380px);
    justify-content: center;
    align-items: center;
    gap: 32px;
  }
  .map {
    width: clamp(300px, calc((100svh - 48px) * 600 / 708), 440px);
  }
  .hero-logo {
    width: 96px;
  }
  .hero-copy {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .hero h1 {
    max-width: 16ch;
    margin-bottom: 14px;
    font-size: clamp(28px, 9svh, 38px);
    line-height: 1.04;
  }
  .viewer-frame {
    height: 88vh;
    height: 88svh;
    min-height: 0;
  }
  .viewer .hint {
    display: none;
  }
  .viewer.is-full .viewer-title {
    top: calc(12px + env(safe-area-inset-top));
    font-size: 22px;
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  .sheet {
    left: auto;
    top: 8px;
    right: max(8px, env(safe-area-inset-right));
    bottom: 8px;
    width: min(440px, 58vw);
    max-height: none;
    padding-bottom: 12px;
    border-radius: 20px;
    transform: translateX(calc(100% + 24px));
  }
  .sheet-head {
    padding-bottom: 8px;
  }
  .sheet h2 {
    font-size: 24px;
  }
  .carousel img {
    max-height: calc(100dvh - 150px);
  }
  .sheet-backdrop {
    background: transparent;
  }
}
