/* ───────────────────────────────────────────────────────────────
   Vantage Point Villa — v10.0
   Boutique South Coast guesthouse — Calabash Bay, Treasure Beach
   Palette: deep ocean + warm sand + palm green + coral accent
─────────────────────────────────────────────────────────────── */

:root {
  /* Palette */
  --ocean-deep: #0E3B4E;
  --ocean: #185B6E;
  --ocean-mist: #D5E4E8;
  --palm: #2F6F5C;
  --palm-soft: #D9E6DF;
  --coral: #D9674B;
  --coral-soft: #F2C9B9;
  --sand: #F3E9D4;
  --sand-soft: #FAF4E8;
  --cream: #FDFAF2;
  --ink: #10212A;
  --ink-muted: #4E6471;
  --line: #E4D6B9;
  --line-soft: #EFE3C9;
  --white: #FFFFFF;

  /* Tokens */
  --bg: var(--cream);
  --fg: var(--ink);
  --fg-muted: var(--ink-muted);
  --surface: var(--white);
  --surface-tint: var(--sand-soft);
  --surface-sand: var(--sand);
  --accent: var(--coral);
  --brand: var(--ocean-deep);
  --brand-2: var(--ocean);
  --divider: var(--line);
  --divider-soft: var(--line-soft);

  /* Type */
  --f-display: "Cormorant Garamond", "Playfair Display", "Georgia", serif;
  --f-body: "Jost", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Scale */
  --radius: 10px;
  --radius-lg: 20px;
  --nav-h: 72px;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0;
  text-wrap: balance;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(40px, 6.5vw, 72px); line-height: 1.05; font-weight: 400; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; font-weight: 500; }
h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; font-weight: 500; }
h4 { font-size: 20px; font-weight: 500; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}

.lead {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--fg);
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--ocean-deep);
  color: var(--cream);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(253, 250, 242, 0.6);
}
.btn-ghost:hover {
  background: var(--cream);
  color: var(--ocean-deep);
}
.btn-dark {
  background: var(--ocean-deep);
  color: var(--cream);
}
.btn-dark:hover {
  background: var(--accent);
  color: var(--cream);
}
.btn-outline {
  background: transparent;
  color: var(--ocean-deep);
  border-color: var(--ocean-deep);
}
.btn-outline:hover {
  background: var(--ocean-deep);
  color: var(--cream);
}
.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* ───── Top Nav ───── */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(253, 250, 242, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.topnav.scrolled {
  background: rgba(253, 250, 242, 0.98);
  border-bottom-color: var(--divider-soft);
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 20px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ocean-deep);
}
.brand-mark .mark-text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-mark .mark-sub {
  display: block;
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 3px;
  font-weight: 500;
}
.brand-mark .mark-icon {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ocean-deep);
  color: var(--cream);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ocean-deep);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 24px; }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--divider);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ocean-deep);
}
.menu-toggle svg { width: 20px; height: 20px; }

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 85%);
  background: var(--cream);
  z-index: 60;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -10px 0 40px rgba(14, 59, 78, 0.1);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 59, 78, 0.5);
  backdrop-filter: blur(4px);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider-soft);
  margin-bottom: 20px;
}
.drawer-close {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--divider);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ocean-deep);
  display: grid; place-items: center;
}
.drawer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.drawer ul a {
  display: block;
  padding: 14px 0;
  color: var(--ocean-deep);
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  border-bottom: 1px solid var(--divider-soft);
}
.drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .menu-toggle { display: grid; place-items: center; }
}
@media (max-width: 540px) {
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 13px; }
  .brand-mark .mark-sub { display: none; }
}

/* ───── Hero ───── */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: 60px;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, #0E3B4E 0%, #185B6E 60%, #2F6F5C 100%);
  background-size: cover;
  background-position: center;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(14,33,42,0.3) 0%,
      rgba(14,33,42,0.15) 40%,
      rgba(14,33,42,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero .eyebrow {
  color: var(--coral-soft);
}
.hero h1 {
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--coral-soft);
  font-weight: 400;
}
.hero-tag {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: rgba(253,250,242, 0.9);
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  color: var(--cream);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  z-index: 2;
  opacity: 0.75;
  padding-inline: 20px;
}
.hero-meta span { white-space: nowrap; }
.hero-meta span + span::before {
  content: "·";
  margin-right: 30px;
  opacity: 0.6;
}
@media (max-width: 640px) {
  .hero-meta { font-size: 10px; gap: 16px; }
  .hero-meta span + span::before { margin-right: 16px; }
}

/* ───── Section ───── */
section { padding: 90px 0; min-width: 0; }
.sec-sand { background: var(--sand-soft); }
.sec-ocean {
  background: var(--ocean-deep);
  color: var(--cream);
}
.sec-ocean h2, .sec-ocean h3 { color: var(--cream); }
.sec-ocean .eyebrow { color: var(--coral-soft); }

.sec-head {
  text-align: center;
  margin-bottom: 50px;
}
.sec-head p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--fg-muted);
}
.sec-ocean .sec-head p { color: rgba(253,250,242, 0.75); }

/* ───── Amenities grid ───── */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px 40px;
}
.amenity {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.amenity-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--sand);
  color: var(--ocean-deep);
}
.sec-ocean .amenity-icon { background: rgba(253,250,242, 0.12); color: var(--coral-soft); }
.amenity-icon svg { width: 22px; height: 22px; }
.amenity h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-family: var(--f-body);
  font-weight: 600;
  color: inherit;
}
.amenity p {
  margin: 0;
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.sec-ocean .amenity p { color: rgba(253,250,242, 0.7); }

/* ───── Featured room cards (home) ───── */
.room-grid {
  /* v16.8 — flexbox with fixed card base width so floors with 2 rooms
     (Floor 3: Rooms 8 & 9) don't stretch to 50% each. Every room card
     is the same size across all three floors, just left-aligned. */
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.room-grid > .room-card {
  flex: 0 1 calc(33.333% - 16px);
  min-width: 280px;
  max-width: 360px;
}
@media (max-width: 920px) {
  .room-grid > .room-card { flex: 0 1 calc(50% - 12px); max-width: none; }
}
@media (max-width: 560px) {
  .room-grid > .room-card { flex: 0 1 100%; max-width: none; }
}
.room-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(14,59,78,0.06);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(14,59,78,0.12);
}
.room-card-img {
  aspect-ratio: 4/3;
  background: var(--sand);
  overflow: hidden;
  position: relative;
}
.room-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.room-card-img .ribbon {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--cream);
  color: var(--ocean-deep);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.room-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.room-card .r-name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ocean-deep);
}
.room-card .r-meta {
  font-size: 12.5px;
  color: var(--fg-muted);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.room-card .r-desc {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 16px;
  line-height: 1.55;
  flex: 1;
}
.room-card .r-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.room-card .r-rate {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ocean-deep);
  font-weight: 500;
}
.room-card .r-rate span {
  font-family: var(--f-body);
  font-size: 11.5px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 4px;
  font-weight: 500;
}

/* ───────────────────────────────────────────────────────────────
   v11 — Card link + action footer split
   The <a class="room-card-link"> wraps image + body only, so clicking
   image/name/description navigates to the room page. The .r-foot
   lives OUTSIDE that link so the Book Now button opens the modal
   without hijacking by the card's own navigation.
─────────────────────────────────────────────────────────────── */
.room-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.room-card-link:hover .r-name {
  color: var(--coral);
}
.room-card .r-foot {
  padding: 0 22px 22px;
  margin-top: auto;
}
.room-card .r-foot-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.room-card .r-foot-actions .btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}
@media (max-width: 480px) {
  .room-card .r-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .room-card .r-foot-actions {
    justify-content: space-between;
  }
  .room-card .r-foot-actions .btn-sm {
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }
}

/* ───── Split section (image + text) ───── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-img {
  aspect-ratio: 5/6;
  background: var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.split-img .quote-tag {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--cream);
  color: var(--ocean-deep);
  padding: 14px 20px;
  border-radius: 100px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(14,59,78,0.15);
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-img { aspect-ratio: 4/3; order: -1; }
  .split.reverse { direction: ltr; }
}

/* ───── Facilities carousel (About) — v16.5 icon-based, single-row carousel on every viewport
   One row, swipe/drag, scroll-snap, edge fades. Cards keep their size regardless of count. */
.fac-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 6px 48px 20px;
  margin-inline: calc(50% - 50vw);
  scrollbar-width: none;
  position: relative;
}
.fac-grid::-webkit-scrollbar { display: none; }
.fac-grid .fac-card {
  flex: 0 0 clamp(200px, 20vw, 240px);
  scroll-snap-align: start;
}

/* Edge fades on the section so cards appear to pass behind the band edges */
.sec-sand .fac-grid::before,
.sec-sand .fac-grid::after {
  /* fades handled via sibling masks to avoid nested positioning issues — see .fac-grid-wrap */
}

@media (max-width: 640px) {
  .fac-grid { padding: 6px 20px 16px; gap: 12px; }
  .fac-grid .fac-card { flex-basis: clamp(200px, 72vw, 260px); }
}
.fac-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 24px 18px 22px;
  text-align: center;
  border: 1px solid var(--divider);
  box-shadow: 0 1px 2px rgba(14,33,42,0.03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fac-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(14,33,42,0.08);
  border-color: var(--coral-soft);
}
.fac-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--coral);
  margin: 0 auto 14px;
}
.fac-icon svg { width: 24px; height: 24px; }
.fac-card h4 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.2;
  color: var(--ocean-deep);
  font-weight: 500;
}
.fac-card p {
  margin: 0;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ───── Rooms index (grouped by floor) — v11 editorial header ───── */
.rooms-floor-head {
  text-align: center;
  margin: 0 auto 36px;
  padding: 0 20px;
  max-width: 640px;
  position: relative;
}
.rooms-floor-head::before,
.rooms-floor-head::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--coral);
  margin: 0 auto 18px;
  opacity: 0.75;
}
.rooms-floor-head::after {
  margin: 18px auto 0;
  opacity: 0.3;
}
.rooms-floor-head .rfh-eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.15;
  color: var(--ocean-deep);
  margin: 0 0 10px;
  font-weight: 500;
}
.rooms-floor-head .rfh-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.rooms-floor + .rooms-floor { margin-top: 72px; }

/* ───── Single room page ───── */
.room-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 20px);
  padding-bottom: 0;
  background: var(--sand-soft);
}
.room-hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-block: 60px;
}
.room-hero-img {
  aspect-ratio: 4/3;
  background: var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.room-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.room-hero .r-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  margin-bottom: 14px;
}
.room-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  color: var(--ocean-deep);
  margin-bottom: 20px;
}
.room-hero .r-story {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: 26px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.room-rate-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(14,59,78,0.06);
}
.room-rate-box .amt {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--ocean-deep);
  line-height: 1;
}
.room-rate-box .per {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.room-amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 20px;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}
.room-amenities li {
  font-size: 14px;
  color: var(--fg);
  position: relative;
  padding-left: 18px;
}
.room-amenities li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.room-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .room-hero-wrap { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
}

.room-nav {
  background: var(--surface);
  padding: 24px 0;
  border-top: 1px solid var(--divider-soft);
  border-bottom: 1px solid var(--divider-soft);
}
.room-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.room-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ocean-deep);
}
.room-nav .r-prev::before { content: "←"; margin-right: 2px; }
.room-nav .r-next::after { content: "→"; margin-left: 2px; }
.room-nav .r-all {
  font-family: var(--f-display);
  font-style: italic;
}

/* ───── Excursions grid ───── */
.excursion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.exc-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(14,59,78,0.06);
  display: flex;
  flex-direction: column;
}
.exc-card-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--ocean), var(--palm));
  overflow: hidden;
}
.exc-card-img img { width: 100%; height: 100%; object-fit: cover; }
.exc-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.exc-card .exc-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.exc-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--ocean-deep);
}
.exc-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.exc-card .exc-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ocean-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.exc-card .exc-link:hover { color: var(--accent); }
.exc-card .exc-link::after {
  content: " →";
  transition: margin-left .2s;
  display: inline-block;
}
.exc-card .exc-link:hover::after { margin-left: 4px; }

/* ───── Forms ───── */
.form-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 4px 30px rgba(14,59,78,0.08);
}
@media (max-width: 540px) {
  .form-wrap { padding: 26px 22px; }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) {
  .form-row, .form-row.three { grid-template-columns: 1fr; }
}
.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ocean-deep);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-field label .req { color: var(--accent); margin-left: 2px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 15px;
  background: var(--cream);
  color: var(--fg);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ocean-deep);
  box-shadow: 0 0 0 3px rgba(14, 59, 78, 0.1);
}
.form-field textarea { min-height: 110px; resize: vertical; }

.radio-row {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--divider);
  border-radius: 100px;
  font-size: 14px;
  cursor: pointer;
  background: var(--cream);
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg);
  font-weight: 500;
  margin: 0;
}
.radio-row input[type="radio"] { margin: 0; accent-color: var(--accent); }

.form-submit {
  margin-top: 10px;
  text-align: right;
}
@media (max-width: 540px) {
  .form-submit { text-align: center; }
  .form-submit .btn { width: 100%; }
}

.form-success {
  background: var(--palm-soft);
  border-left: 4px solid var(--palm);
  padding: 18px 22px;
  border-radius: 8px;
  color: var(--fg);
  font-size: 15px;
  display: none;
}
.form-success.show { display: block; }
.form-success .ref {
  font-family: ui-monospace, Menlo, monospace;
  background: var(--cream);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
}

/* ───── Contact details grid ───── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 60px;
}
.contact-card {
  background: var(--surface);
  padding: 26px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 2px 20px rgba(14,59,78,0.06);
}
.contact-card .ci-icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ocean-deep);
}
.contact-card .ci-icon svg { width: 22px; height: 22px; }
.contact-card h4 {
  margin: 0 0 6px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.contact-card .ci-val {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--ocean-deep);
  margin: 0;
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ───── Final CTA ───── */
.final-cta {
  text-align: center;
  padding: 100px 0;
  background:
    linear-gradient(180deg, rgba(14,59,78,0.9), rgba(47,111,92,0.9)),
    linear-gradient(135deg, var(--ocean-deep), var(--palm));
  color: var(--cream);
}
.final-cta h2 { color: var(--cream); max-width: 720px; margin: 0 auto 20px; }
.final-cta p {
  color: rgba(253,250,242, 0.85);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
}

/* ───── Footer ───── */
.foot {
  background: var(--ocean-deep);
  color: rgba(253,250,242, 0.75);
  padding: 60px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.foot h5 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-soft);
  margin: 0 0 16px;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot ul li { margin-bottom: 10px; font-size: 14px; }
.foot ul a { color: rgba(253,250,242, 0.8); }
.foot ul a:hover { color: var(--coral-soft); }
.foot-brand .mark-text {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--cream);
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.foot-brand .mark-tag {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--coral-soft);
  font-size: 14px;
  margin-bottom: 16px;
  display: block;
}
.foot-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 14px;
  color: rgba(253,250,242, 0.7);
}
.foot-brand .rr-note {
  font-size: 12px;
  font-style: italic;
  color: rgba(253,250,242, 0.55);
}
.foot-bottom {
  border-top: 1px solid rgba(253,250,242, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: rgba(253,250,242, 0.55);
  flex-wrap: wrap;
}
.foot-bottom a { color: inherit; text-decoration: underline; }
.foot-bottom .credit {
  font-style: italic;
}
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ───── Floating WhatsApp ───── */
.wa-float {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  right: max(20px, env(safe-area-inset-right, 0px));
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  z-index: 40;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #FFFFFF; }
.wa-float svg { width: 28px; height: 28px; }

/* ───── Utility ───── */
.text-center { text-align: center; }
.mt-sm { margin-top: 20px; }
.mt-md { margin-top: 40px; }
.mt-lg { margin-top: 60px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ───── Breadcrumb ───── */
.crumbs {
  padding: calc(var(--nav-h) + 30px) 0 20px;
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--sand-soft);
}
.crumbs a { color: var(--fg-muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 8px; opacity: 0.5; }

/* ───── Page intro (About, Rooms index, etc.) ───── */
.page-intro {
  padding: 40px 0 60px;
  background: var(--sand-soft);
  text-align: center;
}
.page-intro h1 {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--ocean-deep);
  margin-bottom: 16px;
}
.page-intro .lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--fg-muted);
}

/* ───── Rooms index map ───── */
.rooms-floor-note {
  color: var(--fg-muted);
  margin-top: 4px;
  font-size: 14px;
}

/* ───── Nav booking bar (room page) ───── */
.sticky-book {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid var(--divider-soft);
  padding: 14px 0;
  display: none;
}

/* ───── Section headings variants ───── */
h2.center { text-align: center; }

/* 404 */
.err-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding-top: var(--nav-h);
  text-align: center;
}
.err-page .code {
  font-family: var(--f-display);
  font-size: 120px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}
.err-page h1 { margin-top: 10px; }
.err-page p { color: var(--fg-muted); max-width: 460px; margin: 0 auto 30px; }

/* ───────────────────────────────────────────────────────────────
   v2 — Parallax strips, scrolling galleries, home-page imagery
─────────────────────────────────────────────────────────────── */

/* Full-width parallax band — image scrolls at reduced speed via JS */
.parallax-strip {
  position: relative;
  height: 55vh;
  min-height: 420px;
  max-height: 640px;
  overflow: hidden;
  isolation: isolate;
}
.parallax-strip .px-bg {
  position: absolute;
  inset: -12% 0 -12% 0;
  z-index: -1;
  background-color: var(--ocean-deep);
  will-change: transform;
}
.parallax-strip .px-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.parallax-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,33,42,0.1), rgba(14,33,42,0.25));
  z-index: 0;
}
.parallax-strip .px-quote {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  color: var(--cream);
}
.parallax-strip .px-quote p {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  max-width: 720px;
  margin: 0 0 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.parallax-strip .px-quote span {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral-soft);
}

/* Life at the villa — asymmetric 3-image collage with gentle scroll offsets */
.collage {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  min-height: 620px;
  margin-bottom: 40px;
}
.collage .ci {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
  position: relative;
}
.collage .ci img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.collage .ci:hover img { transform: scale(1.03); }
.collage .ci-tall { grid-row: 1 / span 2; grid-column: 1; }
.collage .ci-wide { grid-row: 1; grid-column: 2 / span 2; }
.collage .ci-wide-2 { grid-row: 2; grid-column: 2; }
.collage .ci-sq { grid-row: 2; grid-column: 3; }
.collage .px-y { will-change: transform; }
@media (max-width: 820px) {
  .collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 180px);
    min-height: 0;
    gap: 12px;
  }
  .collage .ci-tall  { grid-row: 1 / span 2; grid-column: 1; }
  .collage .ci-wide  { grid-row: 1; grid-column: 2; }
  .collage .ci-wide-2{ grid-row: 2; grid-column: 2; }
  .collage .ci-sq    { grid-row: 3 / span 2; grid-column: 1 / span 2; }
}

/* The Grounds — full-width marquee photo rail */
.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 6px 20px 24px;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
  scrollbar-width: thin;
}
.rail .rail-card {
  flex: 0 0 clamp(280px, 32vw, 420px);
  scroll-snap-align: start;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
  position: relative;
  box-shadow: 0 4px 24px rgba(14,59,78,0.08);
}
.rail .rail-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.rail .rail-card .rc-cap {
  position: absolute;
  bottom: 18px; left: 18px;
  color: var(--cream);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Section-level parallax wrapper (used on hero bg + strips) */
.parallax {
  will-change: transform;
}

/* v2 — hero refresh: softer gradient so bg photo shows through more */
.hero-overlay {
  background:
    linear-gradient(180deg,
      rgba(14,33,42,0.42) 0%,
      rgba(14,33,42,0.25) 42%,
      rgba(14,33,42,0.78) 100%);
}

/* Cormorant tune-up — tracking + bigger italic emphasis */
.hero h1 em,
.hero-tag em {
  font-style: italic;
  letter-spacing: 0.005em;
}

/* Section eyebrow accent line */
.sec-head .eyebrow::before,
.sec-head .eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin: 0 12px;
  opacity: 0.5;
}

/* Reduced-motion kills parallax */
@media (prefers-reduced-motion: reduce) {
  .parallax, .parallax-strip .px-bg, .collage .px-y {
    transform: none !important;
  }
}

/* ───────────────────────────────────────────────────────────────
   v3 — Mobile bottom action bar (SVG icons, 5-column grid)
─────────────────────────────────────────────────────────────── */
.mob-bar {
  display: none;
}

@media (max-width: 900px) {
  /* v11 — rebuilt from scratch for a clean, modern 5-up bar. Every item is
     the same height; icons live inside a fixed 24×24 square so none can
     overflow. The Book item uses a coral background to the whole cell
     rather than a floating lifted bubble. */
  .mob-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: var(--cream);
    border-top: 1px solid var(--divider-soft);
    box-shadow: 0 -6px 24px rgba(14, 59, 78, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: 62px;
    box-sizing: content-box;
  }
  .mob-bar .mob-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 2px;
    color: var(--ocean-deep);
    text-decoration: none;
    font-family: var(--f-body);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    min-width: 0;
    height: 100%;
    transition: background .15s;
  }
  .mob-bar .mob-item:active {
    background: var(--sand);
  }
  .mob-bar .mob-item svg {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
    stroke-width: 1.6;
    color: var(--ocean-deep);
  }
  .mob-bar .mob-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.1;
  }
  /* Book — coral background on the whole cell, no lifted bubble */
  .mob-bar .mob-primary {
    background: var(--coral);
    color: var(--cream);
  }
  .mob-bar .mob-primary svg,
  .mob-bar .mob-primary span {
    color: var(--cream);
  }
  .mob-bar .mob-primary:active {
    background: var(--coral);
    filter: brightness(0.9);
  }
  /* Floating WhatsApp hides on mobile — bar has it */
  .wa-float {
    display: none !important;
  }
  /* Body gains padding so content clears the bar */
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
  /* Final CTA buttons sit above the mobile bar */
  .final-cta {
    padding-bottom: 60px;
  }
}

/* v3 — 3-cell collage layout (simpler than v2's 4-cell) */
.collage.collage-3 {
  grid-template-columns: 1.3fr 1fr 1.2fr;
  grid-template-rows: 1fr 1fr;
  min-height: 580px;
}
.collage.collage-3 .ci-tall  { grid-row: 1 / span 2; grid-column: 1; }
.collage.collage-3 .ci-wide  { grid-row: 1; grid-column: 2 / span 2; }
.collage.collage-3 .ci-wide-2{ grid-row: 2; grid-column: 2 / span 2; }
.collage.collage-3 .ci-sq { display: none; }

@media (max-width: 820px) {
  .collage.collage-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
    min-height: 0;
    gap: 12px;
  }
  .collage.collage-3 .ci-tall  { grid-row: 1 / span 2; grid-column: 1; }
  .collage.collage-3 .ci-wide  { grid-row: 1; grid-column: 2; }
  .collage.collage-3 .ci-wide-2{ grid-row: 2; grid-column: 2; }
}

/* v3 — balance the simplified amenities grid (6 items → 3 cols on desktop) */
@media (min-width: 820px) {
  .amenities {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ───────────────────────────────────────────────────────────────
   v5 — Availability chip + booking error state
─────────────────────────────────────────────────────────────── */
.avail-chip {
  display: block;
  margin: 14px 0 4px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background .2s, color .2s;
}
.avail-chip.avail-good {
  background: var(--palm-soft);
  color: #0F5234;
  border-left: 4px solid var(--palm);
}
.avail-chip.avail-bad {
  background: #F8DADA;
  color: #7F1E1E;
  border-left: 4px solid #B32020;
}
.avail-chip.avail-pending {
  background: var(--sand);
  color: var(--fg-muted);
  border-left: 4px solid var(--line);
  font-style: italic;
}

/* ───────────────────────────────────────────────────────────────
   v10 — Live price summary (shows before Reserve)
─────────────────────────────────────────────────────────────── */
.price-summary {
  margin: 18px 0 6px;
  padding: 18px 20px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.price-summary[hidden] { display: none; }
.price-summary .ps-head {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 20px;
  color: var(--ocean);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.price-summary .ps-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--fg);
  border-bottom: 1px dotted rgba(0,0,0,0.08);
}
.price-summary .ps-row > span:first-child {
  color: var(--fg-muted);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.08em;
}
.price-summary .ps-row > span:last-child {
  font-weight: 500;
  text-align: right;
}
.price-summary .ps-row.ps-total {
  margin-top: 4px;
  padding-top: 11px;
  padding-bottom: 2px;
  border-bottom: none;
  border-top: 2px solid var(--ocean);
}
.price-summary .ps-row.ps-total > span:first-child {
  color: var(--ocean);
  font-size: 12.5px;
}
.price-summary .ps-row.ps-total > span:last-child {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 22px;
  color: var(--ocean);
  font-weight: 500;
}
.price-summary .ps-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-muted);
  padding: 10px 12px;
  background: var(--sand);
  border-radius: 8px;
}

.form-error {
  display: none;
  background: #F8DADA;
  color: #7F1E1E;
  border-left: 4px solid #B32020;
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 14px;
  font-size: 14.5px;
}
.form-error.show { display: block; }

/* Booking success callout — bigger copy, 72h highlight */
.form-success .ref {
  display: inline-block;
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.form-success .hold-info {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--fg-muted);
  font-style: italic;
}
.form-success .total,
.form-success .nights {
  font-weight: 600;
  color: var(--ocean-deep);
  font-style: normal;
}

/* ───────────────────────────────────────────────────────────────
   v6 — Hero composition polish: center-aligned, dateline-style eyebrow
─────────────────────────────────────────────────────────────── */

/* Centre the hero content block */
.hero-content {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
}
.hero h1 {
  text-wrap: balance;
}
.hero-tag {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  justify-content: center;
}

/* Dateline-style eyebrow: hairline on each side flanking the text */
.hero .eyebrow {
  display: inline-block;
  padding: 0;
  background: transparent;
}
.hero .eyebrow::before,
.hero .eyebrow::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin: 0 14px;
  opacity: 0.6;
}

/* Softer top overlay so sky/photo breathes above the headline */
.hero-overlay {
  background:
    linear-gradient(180deg,
      rgba(14,33,42,0.25) 0%,
      rgba(14,33,42,0.1) 38%,
      rgba(14,33,42,0.72) 100%);
}

/* ───────────────────────────────────────────────────────────────
   v10.2 — Darker, moodier overlay so the hero text reads on any photo
   (Lee's uploaded hero is a very bright beach — pale sky, bright sea,
   pale sand — which washes out the heading). Layered gradient + a
   soft radial vignette behind the content keeps the photo visible
   but gives the text consistent contrast.
─────────────────────────────────────────────────────────────── */
.hero-overlay {
  background:
    /* radial scrim behind the content */
    radial-gradient(ellipse 70% 60% at 50% 48%,
      rgba(14,33,42,0.55) 0%,
      rgba(14,33,42,0.25) 55%,
      rgba(14,33,42,0.00) 100%),
    /* overall darkening */
    linear-gradient(180deg,
      rgba(14,33,42,0.55) 0%,
      rgba(14,33,42,0.40) 40%,
      rgba(14,33,42,0.80) 100%);
}
/* v12.1 — Lee asked for the text-shadow to come off; overlay alone carries legibility */
.hero-tag { color: rgba(253,250,242,0.98); }

/* Tighten the bottom meta row */
.hero-meta {
  opacity: 0.85;
  letter-spacing: 0.18em;
  font-size: 11.5px;
}
@media (max-width: 640px) {
  .hero .eyebrow::before,
  .hero .eyebrow::after {
    width: 20px;
    margin: 0 10px;
  }
}

/* ───────────────────────────────────────────────────────────────
   v7 — Booking modal (centre dialog desktop, bottom sheet mobile)
─────────────────────────────────────────────────────────────── */
.book-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity .25s;
}
.book-modal.open {
  display: block;
  opacity: 1;
}
.book-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 33, 42, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.book-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--cream);
  /* v11 — more compact dialog, modern card look */
  width: min(560px, calc(100% - 40px));
  max-height: 82vh;
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(14, 33, 42, 0.08),
    0 24px 60px rgba(14, 33, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Mobile: bottom sheet */
@media (max-width: 640px) {
  .book-modal-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .book-modal.open .book-modal-panel {
    animation: bmSlideUp .32s cubic-bezier(.4, 0, .2, 1);
  }
  @keyframes bmSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
}

.book-modal-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--divider-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}
.bm-title {
  font-family: var(--f-display);
  font-size: 24px;
  margin: 0;
  color: var(--ocean-deep);
  font-weight: 500;
  line-height: 1.15;
}
.bm-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--divider);
  border-radius: 50%;
  cursor: pointer;
  color: var(--fg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .15s;
}
.bm-close:hover { background: var(--sand); }

.book-modal-body {
  overflow-y: auto;
  padding: 22px 24px 24px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 540px) {
  .book-modal-body { padding: 20px 18px; }
  .book-modal-head { padding: 18px 20px 14px; }
}

.book-modal-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--divider-soft);
  background: var(--surface-tint);
  flex-shrink: 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--fg-muted);
}
.book-modal-foot a {
  color: var(--brand);
  font-weight: 500;
}

/* Lock scroll under modal */
body.bm-open { overflow: hidden; }

/* v10 — removed v8 Named-for-Jamaica collage styles (section dropped from home page) */

/* ───────────────────────────────────────────────────────────────
   v9 — Hero fills the viewport on desktop + content breathing room
─────────────────────────────────────────────────────────────── */
@media (min-width: 821px) {
  .hero {
    min-height: 100svh;
    min-height: 100vh;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 100px;
  }
  .hero h1 {
    font-size: clamp(48px, 7vw, 88px);
    margin-bottom: 24px;
  }
  .hero-tag {
    font-size: clamp(19px, 1.7vw, 23px);
    margin-bottom: 44px;
  }
  .hero-ctas .btn { padding: 16px 32px; font-size: 15px; }
  .hero-meta { bottom: 48px; }
}

/* ───────────────────────────────────────────────────────────────
   v9 — Life at the Villa → horizontal scroll-snap gallery
   6 lifestyle images, swipeable on mobile, scrollable + edge-faded on desktop
─────────────────────────────────────────────────────────────── */
.life-rail-wrap {
  position: relative;
  margin: 32px calc(50% - 50vw) 0;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}
.life-rail-wrap::before,
.life-rail-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 20px;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.life-rail-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--sand-soft), transparent);
}
.life-rail-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--sand-soft), transparent);
}
.life-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 4px 24px 24px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.life-rail::-webkit-scrollbar { height: 8px; }
.life-rail::-webkit-scrollbar-track { background: transparent; }
.life-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 100px; }
.life-rail-card {
  flex: 0 0 clamp(260px, 30vw, 380px);
  scroll-snap-align: start;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
  position: relative;
  box-shadow: 0 4px 20px rgba(14, 59, 78, 0.08);
}
.life-rail-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.life-rail-card:hover img { transform: scale(1.03); }
.life-rail-card .lrc-cap {
  position: absolute;
  bottom: 18px;
  left: 20px;
  z-index: 2;
  color: var(--cream);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.life-rail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(14, 33, 42, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 540px) {
  .life-rail-wrap::before,
  .life-rail-wrap::after { display: none; }
  .life-rail { padding: 4px 20px 20px; gap: 14px; }
  .life-rail-card { flex-basis: 78vw; }
}

/* ───────────────────────────────────────────────────────────────
   v9 — Final CTA background image + overlay
   New slot: home-cta
─────────────────────────────────────────────────────────────── */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;             /* v10.1 — clip the parallax background to the section */
  /* v15.3 — solid gradient fallback so the band stays dark when no image uploaded.
     Sits BEHIND the .final-cta-bg image (z-index -2) and the ::before overlay (z-index -1),
     so once an image lands it takes over. */
  background:
    linear-gradient(135deg, var(--ocean-deep), var(--palm));
}
.final-cta-bg {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
  overflow: hidden;
}
.final-cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* v15.3 — overlay is now fully translucent. The solid-gradient fallback was
     moved to the .final-cta parent (overlay now lives behind .final-cta-bg which
     holds the uploaded image, so dropping the fallback lets the image show). */
  background:
    radial-gradient(ellipse 65% 70% at 50% 50%, rgba(14,33,42,0.55) 0%, rgba(14,33,42,0.15) 65%, rgba(14,33,42,0) 100%),
    linear-gradient(135deg, rgba(14, 59, 78, 0.55), rgba(47, 111, 92, 0.55));
}

/* ─────────────────────────────────────────────────────────────────────
   v12 — Airbnb-style booking: sticky room-page card + 3-step modal
   ───────────────────────────────────────────────────────────────────── */

/* The room page is now a 2-col split: story (left) + sticky card (right) */
.room-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  margin-top: 36px;
  align-items: start;
}
@media (max-width: 980px) {
  .room-split { grid-template-columns: 1fr; gap: 32px; }
}
.room-split-main { min-width: 0; }
.room-split-aside { position: relative; }
@media (min-width: 981px) {
  .room-split-aside { position: sticky; top: calc(var(--nav-h) + 16px); }
}
.room-hero-topimg {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
  margin-top: 24px;
}
.room-hero-topimg img { width: 100%; height: 100%; object-fit: cover; }

/* Meta pills under the room title */
.room-meta-pills {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 10px;
}
.room-meta-pills .rmp {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  background: var(--sand); color: var(--fg);
  border-radius: 100px; font-size: 13px;
}
.room-meta-pills .rmp strong { font-weight: 600; color: var(--ocean-deep); }

.room-includes-title {
  margin: 28px 0 12px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.r-story-full {
  margin: 0; font-size: 16px; line-height: 1.7; color: var(--fg);
  max-width: 60ch;
}

/* ───── Reserve card (right column) ───── */
.room-booking-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 6px rgba(14,33,42,0.04), 0 12px 36px rgba(14,33,42,0.08);
}
.rbc-head { margin-bottom: 14px; }
.rbc-rate { display: inline-flex; align-items: baseline; gap: 4px; }
.rbc-rate-amt {
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--ocean-deep);
  font-weight: 500;
}
.rbc-rate-per { font-size: 14px; color: var(--fg-muted); }

/* Date pills — one bordered container, two cells side-by-side */
.rbc-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--divider);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.rbc-date-cell {
  display: flex; flex-direction: column;
  padding: 10px 12px;
  cursor: pointer;
  position: relative;
  transition: background .15s;
}
.rbc-date-cell + .rbc-date-cell { border-left: 1px solid var(--divider); }
.rbc-date-cell:hover { background: var(--sand); }
.rbc-date-lbl {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.rbc-date-cell input[type="date"] {
  border: none; padding: 0; background: transparent;
  font-family: var(--f-body); font-size: 15px; color: var(--fg);
  width: 100%; outline: none;
}

/* Guests button + popover */
.rbc-guests-wrap { position: relative; margin-bottom: 14px; }
.rbc-guests {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--f-body);
  transition: background .15s;
}
.rbc-guests:hover { background: var(--sand); }
.rbc-guests-val { font-size: 15px; color: var(--fg); }

.rbc-guests-pop {
  position: absolute; z-index: 20;
  left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(14,33,42,0.14);
}
.rbc-stepper {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider-soft);
}
.rbc-stepper:last-of-type { border-bottom: none; }
.rbc-stp-head { display: flex; flex-direction: column; }
.rbc-stp-head span:first-child { font-size: 14px; font-weight: 500; color: var(--fg); }
.rbc-stp-sub { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.rbc-stp-ctrl { display: flex; align-items: center; gap: 10px; }
.rbc-stp-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--divider);
  color: var(--fg);
  cursor: pointer; font-size: 18px; line-height: 1;
  display: grid; place-items: center;
  transition: border-color .15s, color .15s;
}
.rbc-stp-btn:hover { border-color: var(--ocean); color: var(--ocean); }
.rbc-stp-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.rbc-stp-ctrl input {
  width: 24px; text-align: center;
  border: none; background: transparent;
  font-family: var(--f-body); font-size: 15px; color: var(--fg);
  pointer-events: none;
}
.rbc-guests-close {
  margin-top: 12px; width: 100%;
  padding: 8px;
  background: transparent;
  border: none;
  color: var(--ocean);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

.rbc-reserve {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.rbc-not-charged-mini {
  text-align: center;
  font-size: 12.5px;
  color: var(--fg-muted);
  margin: 0 0 14px;
}

/* Breakdown rows */
.rbc-breakdown {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}
.rbc-break-row {
  display: flex; justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  color: var(--fg);
}
.rbc-break-row[hidden],
.rbc-breakdown[hidden] { display: none !important; }
.rbc-break-row.rbc-break-transfer { color: var(--fg-muted); font-style: italic; }
.rbc-break-row.rbc-break-total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
  font-weight: 600;
  font-size: 15px;
  color: var(--ocean-deep);
}
.rbc-not-charged {
  margin: 14px 0 0;
  padding: 12px;
  background: var(--sand);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-muted);
}
.rbc-not-charged strong { color: var(--ocean-deep); display: block; margin-bottom: 2px; }

/* ───── 3-step modal — progress bar + step panels ───── */
.bm-steps {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 24px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--divider-soft);
}
.bm-step-dot {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.bm-step-dot .bsn {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--divider);
  color: var(--fg-muted);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  transition: background .2s, color .2s;
}
.bm-step-dot .bsl {
  font-size: 12px; color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.bm-step-dot.active .bsn {
  background: var(--ocean-deep); color: var(--cream);
}
.bm-step-dot.active .bsl { color: var(--ocean-deep); font-weight: 500; }
.bm-step-dot.done .bsn {
  background: var(--palm); color: var(--cream);
}
.bm-step-line {
  flex: 1; height: 1px; background: var(--divider);
}
@media (max-width: 480px) {
  .bm-step-dot .bsl { display: none; }
  .bm-steps { padding: 12px 20px 8px; gap: 6px; }
}

/* Step panels */
.bm-step { display: none; }
.bm-step.active { display: block; }
.bm-step[hidden] { display: none; }
.bm-step-head {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ocean-deep);
  margin: 0 0 18px;
  line-height: 1.2;
}

/* Shared date pills inside modal step 1 use the same .rbc-dates/.rbc-date-cell above */

/* Step nav footer */
.bm-step-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  border-top: 1px solid var(--divider-soft);
  background: var(--surface-tint);
}
.bm-step-count {
  font-size: 12.5px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.bm-step-nav .btn { flex-shrink: 0; }
.bm-step-nav [data-step-prev] { margin-right: auto; }
.bm-step-nav [data-step-next],
.bm-step-nav [data-step-submit] { margin-left: auto; }
/* Make sure hidden attribute wins over .btn's display, and over .bm-steps/.bm-step-nav flex */
.bm-step-nav [hidden],
.bm-steps[hidden],
.bm-step-nav[hidden],
.rbc-guests-pop[hidden] { display: none !important; }
@media (max-width: 480px) {
  .bm-step-nav { padding: 12px 18px; }
  .bm-step-count { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────
   v13 — Flatpickr theme (ocean/sand palette) + modal success panel
   ───────────────────────────────────────────────────────────────────── */

/* The native date inputs become alt-inputs after flatpickr init; keep the
   same borderless look they already had inside the pill container. */
.rbc-date-cell input.vpv-fp-input {
  border: none; padding: 0; background: transparent;
  font-family: var(--f-body); font-size: 15px; color: var(--fg);
  width: 100%; outline: none; cursor: pointer;
}
.form-field input.vpv-fp-input {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 10px;
  font-family: var(--f-body); font-size: 15px; color: var(--fg);
  width: 100%; outline: none; cursor: pointer;
}

/* Flatpickr calendar body — brand it */
.flatpickr-calendar {
  background: var(--surface) !important;
  border: 1px solid var(--divider) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(14,33,42,0.14) !important;
  font-family: var(--f-body) !important;
  padding: 8px !important;
  width: 320px !important;
}
.flatpickr-months { padding: 6px 4px; }
.flatpickr-month {
  color: var(--ocean-deep) !important;
  background: transparent !important;
}
.flatpickr-current-month {
  font-family: var(--f-display) !important;
  font-size: 18px !important;
  padding: 6px 0 10px !important;
  color: var(--ocean-deep) !important;
}
.flatpickr-current-month .cur-year,
.flatpickr-current-month input.cur-year {
  color: var(--ocean-deep) !important;
  font-weight: 500 !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  color: var(--ocean-deep) !important;
  background: transparent !important;
}
.flatpickr-prev-month, .flatpickr-next-month {
  color: var(--ocean-deep) !important;
  fill: var(--ocean-deep) !important;
}
.flatpickr-prev-month:hover, .flatpickr-next-month:hover {
  color: var(--coral) !important;
}
.flatpickr-prev-month svg, .flatpickr-next-month svg { fill: currentColor !important; }
.flatpickr-weekdays { background: transparent !important; }
.flatpickr-weekday {
  color: var(--fg-muted) !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.flatpickr-day {
  color: var(--fg) !important;
  border-radius: 50% !important;
  border: none !important;
  max-width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  font-weight: 500 !important;
  margin: 2px 0 !important;
}
.flatpickr-day:hover,
.flatpickr-day:focus {
  background: var(--sand) !important;
  color: var(--ocean-deep) !important;
}
.flatpickr-day.today {
  border: 1px solid var(--coral) !important;
  color: var(--coral) !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--ocean-deep) !important;
  color: var(--cream) !important;
}
.flatpickr-day.inRange {
  background: var(--sand) !important;
  color: var(--ocean-deep) !important;
  box-shadow: -5px 0 0 var(--sand), 5px 0 0 var(--sand) !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: var(--divider) !important;
  background: transparent !important;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--divider) !important;
}

/* ─── Modal success panel ─── */
.bm-success-panel {
  padding: 36px 28px 24px;
  text-align: center;
}
.bm-success-panel[hidden] { display: none !important; }
.bmsp-check {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--palm-soft);
  color: var(--palm);
  display: grid; place-items: center;
}
.bmsp-title {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--ocean-deep);
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.15;
}
.bmsp-ref {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0 0 20px;
  letter-spacing: 0.04em;
}
.bmsp-ref strong {
  color: var(--ocean-deep);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.bmsp-stay-info {
  padding: 14px 18px;
  background: var(--sand);
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--fg);
  margin-bottom: 22px;
  line-height: 1.5;
}
.bmsp-stay-info strong { color: var(--ocean-deep); }
.bmsp-next {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
}
.bmsp-next p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ocean-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.bmsp-next ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bmsp-next li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
}
.bmsp-next li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--coral);
}
.bmsp-actions {
  margin-top: 8px;
}
.bmsp-done {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 540px) {
  .bm-success-panel { padding: 28px 20px 20px; }
  .bmsp-title { font-size: 26px; }
}

/* ─────────────────────────────────────────────────────────────────────
   v15 — Page-intro backgrounds (About/Rooms/Excursions/Contact),
          Principles 4-grid, Facility card polish
   ───────────────────────────────────────────────────────────────────── */

/* ───── Page intro with optional background image ─────
   .has-bg wraps a .pi-bg image + a dark gradient so title/lead stay
   legible on any photo. Parallax uses the existing data-parallax JS. */
.page-intro.has-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ocean-deep);  /* fallback when no image uploaded */
  color: var(--cream);
  padding: 90px 0 90px;
}
.page-intro.has-bg .pi-bg {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  overflow: hidden;
}
.page-intro.has-bg .pi-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.page-intro.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* v15.2 — lightened so uploaded intro photo shows through clearly;
     radial scrim keeps text legible, overall darkening dropped from 0.75 → 0.45. */
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(14,33,42,0.55) 0%, rgba(14,33,42,0.10) 70%, rgba(14,33,42,0) 100%),
    linear-gradient(135deg, rgba(14,33,42,0.45), rgba(14,59,78,0.50));
}
.page-intro.has-bg .eyebrow {
  color: var(--coral-soft);
}
.page-intro.has-bg h1 {
  color: var(--cream);
}
.page-intro.has-bg .lead {
  color: rgba(253,250,242,0.95);
  max-width: 720px;
}
.page-intro.has-bg .lead a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 720px) {
  .page-intro.has-bg { padding: 70px 0 60px; }
}

/* ───── Core principles grid — 4 across on desktop, 2×2 tablet, 1 mobile ───── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}
@media (max-width: 980px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 720px; }
}
@media (max-width: 520px) {
  .principles-grid { grid-template-columns: 1fr; }
}
.principle {
  text-align: center;
  padding: 28px 22px 26px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.principle:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(14,33,42,0.08);
  border-color: var(--coral-soft);
}
.principle-icon {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--coral);
  margin: 0 auto 16px;
}
.principle-icon svg { width: 24px; height: 24px; }
.principle h4 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--ocean-deep);
  font-weight: 500;
}
.principle p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* v15 facility polish rules folded into the new v16.4 .fac-card above (icon-based). */

/* ─────────────────────────────────────────────────────────────────────
   v16 — Treasure Beach 3-image collage, excursion region blocks,
          contact form width, life-rail captions removed
   ───────────────────────────────────────────────────────────────────── */

/* Life rail — captions removed from markup, but kill the CSS rule too
   so any stray cap in cached HTML doesn't show. */
.life-rail-card .lrc-cap { display: none !important; }

/* Treasure Beach 3-image collage */
.tb-collage {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  grid-template-rows: 280px 180px;
  gap: 16px;
  margin-top: 28px;
}
.tb-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
}
.tb-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tb-tile:hover img { transform: scale(1.04); }
.tb-tile-1 { grid-column: 1; grid-row: 1 / 3; }  /* tall on left */
.tb-tile-2 { grid-column: 2; grid-row: 1 / 3; }  /* tall in middle */
.tb-tile-3 { grid-column: 3; grid-row: 1 / 3; }  /* tall on right */
@media (max-width: 820px) {
  .tb-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; }
  .tb-tile-1 { grid-column: 1; grid-row: 1; }
  .tb-tile-2 { grid-column: 2; grid-row: 1; }
  .tb-tile-3 { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 520px) {
  .tb-collage { grid-template-columns: 1fr; grid-template-rows: repeat(3, 200px); gap: 12px; }
  .tb-tile-1, .tb-tile-2, .tb-tile-3 { grid-column: auto; grid-row: auto; }
}

/* Excursion page — region blocks */
.region-block { margin-bottom: 64px; }
.region-block:last-child { margin-bottom: 0; }
.region-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
  padding: 0 20px;
}
.region-head::before {
  content: "";
  display: block;
  width: 40px; height: 1px;
  background: var(--coral);
  margin: 0 auto 16px;
  opacity: 0.75;
}
.region-head .rh-eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.15;
  color: var(--ocean-deep);
  margin: 0 0 8px;
  font-weight: 500;
}
.region-head .rh-desc {
  margin: 0;
  font-size: 14px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* Contact page — narrower form so fields don't stretch across a wide page */
.form-wrap-contact {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ─────────────────────────────────────────────────────────────────────
   v16.1 — Kill laptop horizontal scrollbar.
   The full-bleed trick (margin-inline: calc(50% - 50vw)) uses 100vw,
   which on laptops with a visible scrollbar is wider than the document
   by the scrollbar width — causing tiny sideways scroll. Lock the page.
   ───────────────────────────────────────────────────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────
   v16.2 — Treasure Beach crossfade carousel (right side of split)
   ───────────────────────────────────────────────────────────────────── */
.tb-fader {
  position: relative;
  width: 100%; height: 100%;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
}
.tb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.tb-slide.is-active { opacity: 1; }
.tb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Drop v16 collage styles (section reverted to split) */
.tb-collage, .tb-tile, .tb-tile-1, .tb-tile-2, .tb-tile-3 { display: block; }

/* v16.3 fac-rail removed — v16.4 uses .fac-grid with icons instead. */
