/* ============================================================
   CAPRICORN SUITES — Concept A: "Coastal Calm, Elevated"
   Design system: tokens, type, components, motion
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — warm ivory / cream (logo background) */
  --bg: #F6F1E7;
  --bg-deep: #EEE7D7;
  --surface: #FFFDF8;

  /* Brand Indigo (from the logo: #271A52). Var names kept = "teal". */
  --teal: #2A1E5C;
  --teal-dark: #1B1442;
  --teal-light: #6A5DA0;
  --teal-tint: #E8E4F2;

  /* Antique Gold — restrained heritage accent. Var names kept = "sand". */
  --sand: #C2A35E;
  --sand-deep: #A6884A;
  --sand-tint: #F1E9D6;

  /* Ink + text — indigo-tinted charcoal */
  --ink: #221A40;
  --body: #443D58;
  --muted: #6B6480;
  --hairline: #E5DECE;

  /* Deep field (dark sections) — deep indigo */
  --field: #231A52;
  --field-2: #160F36;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadow (soft, teal-tinted) */
  --sh-sm: 0 1px 2px rgba(34,26,64,.04), 0 2px 8px rgba(42,30,92,.05);
  --sh-md: 0 4px 16px rgba(42,30,92,.08), 0 1px 3px rgba(34,26,64,.05);
  --sh-lg: 0 18px 50px rgba(27,20,66,.14), 0 4px 14px rgba(42,30,92,.08);
  --sh-xl: 0 36px 90px rgba(27,20,66,.20), 0 8px 24px rgba(42,30,92,.10);

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 78px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-dark); }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: var(--teal); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display {
  font-size: clamp(3rem, 7.5vw, 6.4rem);
  font-weight: 360;
  letter-spacing: -0.025em;
  line-height: 0.98;
}
h2.section-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 380; }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.lede {
  font-size: clamp(1.12rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  color: var(--body);
  font-weight: 360;
}
.serif-italic { font-family: var(--display); font-style: italic; font-weight: 380; }

/* Eyebrow with horizon hairline */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1.5px;
  background: var(--teal);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 34px;
  height: 1.5px;
  background: var(--teal);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--sand); }
.eyebrow.on-dark::before, .eyebrow.on-dark::after { background: var(--sand); }

/* Chapter number */
.chapter-no {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--teal-light);
  letter-spacing: 0.05em;
  font-feature-settings: "tnum";
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1440px; }
.section { padding-block: clamp(64px, 9vw, 132px); }
.section-sm { padding-block: clamp(48px, 6vw, 88px); }
.center { text-align: center; }
.eyebrow.center { display: inline-flex; }

/* Horizon line — the signature thread */
.horizon {
  height: 1.5px;
  background: var(--hairline);
  width: 100%;
  position: relative;
  border: 0;
}
.horizon.teal { background: linear-gradient(90deg, transparent, var(--teal-light) 14%, var(--teal-light) 86%, transparent); opacity: .55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--sh-md); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; box-shadow: var(--sh-lg); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-sand { background: var(--sand); color: var(--ink); box-shadow: var(--sh-sm); }
.btn-sand:hover { background: var(--sand-deep); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-sand:hover svg { transform: translateX(4px); }

.btn-outline { background: transparent; color: var(--teal-dark); border-color: var(--hairline); }
.btn-outline:hover { border-color: var(--teal); background: var(--teal-tint); color: var(--teal-dark); transform: translateY(-2px); }
.btn-outline:hover svg { transform: translateX(4px); }

.btn-ghost { background: transparent; color: var(--ink); padding-inline: 8px; }
.btn-ghost:hover { color: var(--teal); }

.btn-on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-on-dark:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.btn-on-dark:hover svg { transform: translateX(4px); }

.btn-block { width: 100%; }
.btn-lg { padding: 19px 34px; font-size: 1.05rem; }

/* ---------- Chips / labels ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-sm);
}
.chip svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }
.chip-glass {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: none;
}
.chip-glass svg { color: var(--sand); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal-dark); background: var(--teal-tint);
  padding: 6px 12px; border-radius: var(--r-pill);
}
.tag-sand { background: var(--sand-tint); color: #8a6d3f; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* Warm ivory to match the brand surface (was a cool greenish-white that
     clashed with the page). Light, restrained glass — not heavy glassmorphism. */
  background: rgba(246,241,231,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--hairline), var(--sh-sm);
  border-bottom-color: var(--hairline);
  background: rgba(246,241,231,.95);
}
.header-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--teal); color: var(--sand);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.5rem; font-weight: 500;
  box-shadow: var(--sh-sm);
}
.brand-name { font-family: var(--display); font-size: 1.28rem; font-weight: 500; color: var(--ink); line-height: 1; letter-spacing: -0.01em; display: block; }
.brand-sub { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-top: 4px; display: block; }
.brand-logo { height: 52px; width: auto; display: block; }
.brand-logo--footer { height: 60px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative; padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 0.95rem; font-weight: 700; color: var(--ink);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--teal); background: var(--teal-tint); }
.nav-link.active { color: var(--teal); }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--teal); border-radius: 2px;
}
.nav-has-children > .nav-link::after { content: " ·"; }
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  padding: 8px; min-width: 230px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 50;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 0.92rem; font-weight: 700; color: var(--ink);
}
.nav-dropdown a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.nav-dropdown a small { display: block; font-weight: 600; color: var(--muted); font-size: 0.78rem; margin-top: 1px; }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
/* Phone bold on top, email quieter beneath — a compact contact block, right-aligned. */
.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.header-tel, .header-mail {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; line-height: 1.15;
}
.header-tel { font-weight: 800; color: var(--ink); font-size: 0.92rem; }
.header-mail { font-weight: 700; color: var(--muted); font-size: 0.8rem; }
.header-tel svg, .header-mail svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }
.header-tel:hover, .header-mail:hover { color: var(--teal); }

.hamburger {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--surface);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(22,15,54,.4); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease); z-index: 200;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 380px);
  background: var(--bg); z-index: 201; padding: 24px;
  transform: translateX(100%); transition: transform .38s var(--ease-out);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  box-shadow: var(--sh-xl);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); display: grid; place-items: center; color: var(--ink); }
.drawer a.drawer-link { padding: 14px 12px; border-radius: var(--r-sm); font-weight: 700; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--hairline); }
.drawer a.drawer-link:hover { background: var(--teal-tint); color: var(--teal-dark); }
.drawer-sub { padding-left: 24px; font-size: 0.95rem; }
.drawer-cta { margin-top: 18px; display: grid; gap: 10px; }
.drawer-mail { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; font-weight: 700; font-size: 0.86rem; color: var(--teal); word-break: break-all; text-align: center; }
.drawer-mail svg { width: 16px; height: 16px; flex-shrink: 0; }
.drawer-mail:hover { color: var(--teal-dark); }

/* Announcement bar */
.announce {
  background: var(--field); color: var(--sand-tint);
  font-size: 0.84rem; font-weight: 600; text-align: center;
  padding: 9px var(--gutter); letter-spacing: 0.01em;
}
.announce a { color: var(--sand); font-weight: 800; }
.announce a:hover { color: #fff; }
.announce .dot { color: var(--sand); margin-right: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; }

/* Full-bleed flagship hero */
.hero-full { position: relative; min-height: calc(96vh - var(--nav-h)); display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg image-slot { width: 100%; height: 100%; --slot-bg: #E8E4F2; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(96deg, rgba(246,241,231,.96) 0%, rgba(246,241,231,.86) 30%, rgba(246,241,231,.42) 56%, rgba(246,241,231,.10) 100%),
    linear-gradient(0deg, rgba(22,15,54,.20), transparent 40%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 440px; gap: clamp(28px, 4vw, 60px); align-items: center; width: 100%; padding-block: clamp(48px, 7vw, 96px); }
.hero-copy { max-width: 640px; }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll::after { content: ""; width: 1.5px; height: 28px; background: linear-gradient(var(--teal), transparent); animation: scrolldrop 1.8s var(--ease) infinite; }
@keyframes scrolldrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll::after { animation: none; } }

.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 64px);
  align-items: center; min-height: calc(92vh - var(--nav-h));
  padding-block: clamp(40px, 6vw, 80px);
}
.hero-eyebrow { margin-bottom: 26px; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .serif-italic { color: var(--teal); display: block; }
.hero-lede { max-width: 33ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-media { position: relative; }
.hero-frame {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-xl);
  aspect-ratio: 4 / 5; position: relative;
}
.hero-coord {
  position: absolute; bottom: 16px; left: 16px; z-index: 3;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  color: #fff; background: rgba(22,15,54,.55); backdrop-filter: blur(8px);
  padding: 8px 13px; border-radius: var(--r-pill); text-transform: uppercase;
}

/* ---------- Image slot styling ---------- */
image-slot {
  --slot-bg: var(--teal-tint);
  width: 100%; height: 100%; display: block;
}
.media-fill { position: absolute; inset: 0; }

/* ---------- Booking widget ---------- */
.bookwidget {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-xl); padding: 28px; border: 1px solid var(--hairline);
}
.bookwidget.floating { position: relative; z-index: 5; }
.bookwidget h3, .bookwidget .bw-title { font-family: var(--display); color: var(--ink); font-weight: 400; line-height: 1.1; font-size: 1.5rem; margin: 6px 0 20px; }
.bw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.bw-field { display: flex; flex-direction: column; gap: 7px; }
.bw-field label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.bw-field input, .bw-field select {
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--hairline); border-radius: var(--r-sm);
  background: var(--bg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.bw-field input:focus, .bw-field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.bw-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 12px; }
.bw-eyebrow { margin-bottom: 6px; }

/* ---------- Proof line / scores ---------- */
.proof-line { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.rating-badge { display: inline-flex; align-items: center; gap: 12px; }
.rating-badge .score { font-family: var(--display); font-size: 2rem; font-weight: 500; color: var(--ink); line-height: 1; }
.rating-badge .meta { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.rating-badge .meta strong { color: var(--ink); display: block; }
.stars { display: inline-flex; gap: 2px; color: var(--sand-deep); }
.stars svg { width: 15px; height: 15px; }

.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.score-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 26px 24px; box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.score-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.score-card .platform { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.score-card .big { font-family: var(--display); font-size: 3rem; font-weight: 460; color: var(--teal); line-height: 1; margin: 12px 0 4px; font-feature-settings: "tnum"; }
.score-card .big span { font-size: 1.3rem; color: var(--muted); }
.score-card .count { font-size: 0.86rem; color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--teal-tint); }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { font-size: 1.45rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.86rem; color: var(--muted); font-weight: 700; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta svg { width: 15px; height: 15px; color: var(--teal-light); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 8px; }
.price { font-family: var(--display); font-size: 1.7rem; font-weight: 500; color: var(--ink); line-height: 1; }
.price small { font-family: var(--sans); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 3px; }

/* Room card best-for ribbon */
.bestfor { position: absolute; top: 14px; left: 14px; z-index: 3; }

/* ---------- Feature / USP items ---------- */
.feature-grid { display: grid; gap: clamp(28px, 4vw, 52px); }
.feature {
  display: flex; gap: 20px; align-items: flex-start;
}
.feature-ico {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px;
  background: var(--teal-tint); color: var(--teal-dark);
  display: grid; place-items: center;
}
.feature-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 7px; }
.feature p { font-size: 0.98rem; }

/* ---------- Dark field section ---------- */
.field {
  /* Solid dark base set separately from the gradient image, so any rule that
     overrides only background-image (e.g. the evening glow) keeps a dark,
     readable backdrop under the light text. */
  background-color: var(--field-2);
  background-image: radial-gradient(120% 130% at 80% 0%, var(--field) 0%, var(--field-2) 100%);
  color: #CFC9E6;
}
.field h1, .field h2, .field h3, .field h4 { color: #fff; }
.field .lede { color: #BDB6D8; }
.field .muted { color: #918AAC; }
.field .horizon { background: rgba(255,255,255,.12); }
.field .feature-ico { background: rgba(255,255,255,.07); color: var(--sand); }

/* ---------- Split block ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5/4; position: relative; box-shadow: var(--sh-lg); background: var(--teal-tint); }

/* ---------- Arrival step-through ---------- */
.arrival { position: relative; }
.arrival-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative; margin-top: 48px;
}
.arrival-step {
  position: relative; padding: 0 22px;
  opacity: .4; transition: opacity .5s var(--ease);
  cursor: pointer;
}
.arrival-step:first-child { padding-left: 0; }
.arrival-step.active { opacity: 1; }
.arrival-step .step-no {
  font-family: var(--display); font-size: 0.9rem; font-weight: 600;
  color: var(--sand); letter-spacing: 0.05em;
}
.arrival-step .step-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--field); border: 2px solid var(--sand);
  margin: 16px 0; position: relative; z-index: 2; transition: background .4s var(--ease), transform .4s var(--ease);
}
.arrival-step.active .step-dot { background: var(--sand); transform: scale(1.25); }
.arrival-rail { position: absolute; top: 50px; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.14); }
.arrival-rail-fill { position: absolute; top: 50px; left: 0; height: 2px; background: var(--sand); transition: width .5s var(--ease); }
.arrival-step h3 { font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.arrival-step p { font-size: 0.95rem; color: #BEB7D6; }
.arrival-icon { width: 40px; height: 40px; color: var(--sand); margin-bottom: 4px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 6px 2px 22px; margin: 0 -2px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.review-card {
  scroll-snap-align: start; flex: 0 0 min(420px, 82vw);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 16px;
}
.review-card .quote { font-family: var(--display); font-size: 1.32rem; line-height: 1.42; color: var(--ink); font-weight: 380; }
.review-card .quote::before { content: "\201C"; color: var(--teal-light); }
.review-card .attrib { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.84rem; }
.review-card .attrib .who { font-weight: 800; color: var(--ink); }
.review-card .attrib .plat { color: var(--muted); }
.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--hairline);
  background: var(--surface); color: var(--ink); display: grid; place-items: center;
  transition: all .25s var(--ease);
}
.carousel-btn:hover { border-color: var(--teal); background: var(--teal); color: #fff; }
.carousel-btn:disabled { opacity: .35; cursor: not-allowed; }
.carousel-btn:disabled:hover { border-color: var(--hairline); background: var(--surface); color: var(--ink); }

/* ---------- Stat block ---------- */
.stat-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--hairline); border: 1px solid var(--hairline);
  border-radius: var(--r-md); overflow: hidden;
}
.stat { background: var(--surface); padding: 26px 24px; }
.stat .num { font-family: var(--display); font-size: 2.3rem; font-weight: 500; color: var(--teal); line-height: 1; }
.stat .lbl { font-size: 0.82rem; color: var(--muted); font-weight: 700; margin-top: 6px; }
.field .stat { background: rgba(255,255,255,.04); }
.field .stat-panel { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); }
.field .stat .num { color: var(--sand); }
.field .stat .lbl { color: #A8A0C6; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--hairline); }
.acc-item { border-bottom: 1px solid var(--hairline); }
.acc-q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 24px 4px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--display); font-size: 1.2rem; font-weight: 460; color: var(--ink);
}
.acc-q:hover { color: var(--teal); }
.acc-ico { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; background: var(--teal); border-radius: 2px; transition: transform .3s var(--ease); }
.acc-ico::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.acc-ico::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.acc-item.open .acc-ico::after { transform: scaleY(0); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc-a-inner { padding: 0 4px 26px; color: var(--body); max-width: 66ch; }

/* ---------- Notice / callout ---------- */
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--sh-sm);
}
.notice-ico { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--sand-tint); color: #8a6d3f; }
.notice-ico svg { width: 20px; height: 20px; }
.notice h4 { font-family: var(--sans); font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.notice p { font-size: 0.92rem; }
.notice.teal .notice-ico { background: var(--teal-tint); color: var(--teal-dark); }

/* ---------- Page head ---------- */
.page-head { padding-block: clamp(48px, 6vw, 92px) clamp(28px, 3vw, 44px); background: var(--bg-deep); position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.84rem; font-weight: 700; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { opacity: .5; }
.page-head h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 360; margin-bottom: 18px; }
.page-head .lede { max-width: 56ch; }

/* spec strip */
.spec-strip { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 28px; }
.spec { display: flex; flex-direction: column; }
.spec .k { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spec .v { font-family: var(--display); font-size: 1.35rem; font-weight: 500; color: var(--ink); margin-top: 3px; }

/* ---------- Gallery ---------- */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.gtab {
  padding: 11px 20px; border-radius: var(--r-pill); border: 1.5px solid var(--hairline);
  background: var(--surface); font-weight: 700; font-size: 0.9rem; color: var(--ink); transition: all .2s var(--ease);
}
.gtab:hover { border-color: var(--teal-light); }
.gtab.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-flow: dense; }
.bento-item { border-radius: var(--r-md); overflow: hidden; position: relative; aspect-ratio: 1; background: var(--teal-tint); cursor: pointer; }
.bento-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.bento-item.tall { grid-row: span 2; aspect-ratio: 1/2; }
.bento-item.big { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
.bento-cap { position: absolute; left: 12px; bottom: 12px; z-index: 3; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(22,15,54,.5); backdrop-filter: blur(6px); padding: 6px 11px; border-radius: var(--r-pill); opacity: 0; transition: opacity .3s var(--ease); }
.bento-item:hover .bento-cap { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(11,26,25,.94); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 5vw; }
.lightbox.open { display: flex; }
.lb-stage { max-width: 1100px; width: 100%; position: relative; }
.lb-img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--r-md); }
.lb-frame { width: 100%; aspect-ratio: 3/2; border-radius: var(--r-md); overflow: hidden; }
.lb-cap { color: #fff; text-align: center; margin-top: 16px; font-size: 0.92rem; }
.lb-count { color: var(--sand); font-weight: 800; letter-spacing: 0.1em; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.24); }
.lb-close { top: -68px; right: 0; }
.lb-prev { left: -72px; top: 50%; transform: translateY(-50%); }
.lb-next { right: -72px; top: 50%; transform: translateY(-50%); }

/* ---------- Map module ---------- */
.map-module { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); background: var(--surface); }
.map-side { padding: 26px; display: flex; flex-direction: column; gap: 16px; max-height: 560px; overflow-y: auto; }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.map-filter { padding: 8px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--hairline); background: var(--bg); font-size: 0.82rem; font-weight: 700; color: var(--ink); transition: all .2s var(--ease); }
.map-filter.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.map-poi { display: flex; gap: 14px; padding: 14px; border-radius: var(--r-md); cursor: pointer; transition: background .2s var(--ease); border: 1px solid transparent; }
.map-poi:hover, .map-poi.hot { background: var(--teal-tint); border-color: var(--teal-light); }
.map-poi .poi-dist { font-family: var(--display); font-size: 1.1rem; font-weight: 600; color: var(--teal); flex-shrink: 0; min-width: 56px; }
.map-poi .poi-name { font-weight: 800; color: var(--ink); font-size: 0.95rem; }
.map-poi .poi-cat { font-size: 0.78rem; color: var(--muted); }
.map-canvas { position: relative; background: linear-gradient(150deg, #E6E1F2, #D6CFEA); min-height: 480px; overflow: hidden; }
.map-pin { position: absolute; transform: translate(-50%, -100%); cursor: pointer; z-index: 2; transition: transform .2s var(--ease); }
.map-pin:hover, .map-pin.hot { z-index: 5; transform: translate(-50%, -100%) scale(1.18); }
.map-pin .pin-dot { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--teal); transform: rotate(-45deg); box-shadow: var(--sh-md); border: 2px solid #fff; display: grid; place-items: center; }
.map-pin.home .pin-dot { background: var(--sand-deep); }
.map-pin .pin-dot svg { transform: rotate(45deg); width: 14px; height: 14px; color: #fff; }
.map-pin .pin-label { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 5px 9px; border-radius: var(--r-pill); opacity: 0; pointer-events: none; transition: opacity .2s; }
.map-pin:hover .pin-label, .map-pin.hot .pin-label { opacity: 1; }
.map-water { position: absolute; inset: 0; opacity: .5; }


/* ---------- Sticky mobile command bar ---------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 140;
  display: none; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(246,241,231,.96); backdrop-filter: blur(14px); border-top: 1px solid var(--hairline);
}
.mobile-bar .btn { flex: 1; padding: 12px 6px; font-size: .9rem; gap: 6px; min-width: 0; }
.mobile-bar .btn svg { width: 16px; height: 16px; }

/* ---------- Sticky smart-booking bar (desktop) ---------- */
.sticky-book {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 130;
  /* Hide fully above the viewport — must clear BOTH its own height AND the
     top:nav-h offset, or the button row peeks at the top before you scroll. */
  display: none; transform: translateY(calc(-100% - var(--nav-h) - 12px)); transition: transform .35s var(--ease);
  background: rgba(255,253,248,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline); box-shadow: var(--sh-md);
}
.sticky-book.visible { transform: translateY(0); }
.sticky-book-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 11px; }
.sb-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.sb-brand svg { width: 18px; height: 18px; color: var(--teal); }
.sb-brand strong { color: var(--teal); font-weight: 800; }
.sb-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sb-form label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: -4px; }
.sb-form input, .sb-form select { padding: 9px 12px; border: 1.5px solid var(--hairline); border-radius: var(--r-sm); font-family: var(--sans); font-size: .9rem; background: var(--surface); color: var(--ink); }
.sb-form input:focus, .sb-form select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.sb-form .btn { padding: 11px 22px; }
@media (prefers-reduced-motion: reduce) { .sticky-book { transition: none; } }
@media (max-width: 1120px) { .sticky-book { display: none !important; } }
@media (min-width: 1121px) { .sticky-book { display: block; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--field); color: #BEB7D6; padding-block: clamp(56px, 7vw, 88px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--sand); }
.footer-tagline { margin: 20px 0; max-width: 32ch; color: #918AAC; font-size: 0.95rem; }
.footer-col h5 { font-family: var(--sans); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); margin-bottom: 16px; }
.footer-col a, .footer-col .fitem { display: block; padding: 6px 0; color: #BEB7D6; font-size: 0.93rem; }
.footer-col a:hover { color: #fff; }
.footer-weather { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 18px; margin-top: 16px; }
.footer-weather .wtemp { font-family: var(--display); font-size: 2rem; color: #fff; font-weight: 500; line-height: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: 0.86rem; color: #7E9492; }
.footer-bottom a { color: #918AAC; }
.footer-bottom .ota-links { display: flex; flex-wrap: wrap; gap: 16px; }
address.nap { font-style: normal; color: #BEB7D6; line-height: 1.7; font-size: 0.93rem; }
address.nap a { color: var(--sand); }
.back-to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--sand); font-weight: 700; }

/* ---------- Reveal animation ---------- */
/* Reveals resolve to fully visible — robust in any environment (some throttle
   IntersectionObserver, which would otherwise trap content invisible). Stillness
   reads as luxury here; the page's motion lives in hover, not scroll. */
.reveal, .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Hero settle: a single, slow zoom-in that comes to rest — cinematic on load,
   then perfectly still. (Replaces the old infinite in/out Ken-Burns, which read
   as restless and never let the hero settle.) */
.kenburns > * { animation: kb 2.8s var(--ease-out) both; }
@keyframes kb { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .kenburns > * { animation: none; transform: none; } }

/* Hero rise on load — class-gated transition so the end-state is reliable */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
body.loaded .rise { opacity: 1; transform: none; }
.rise.r1 { transition-delay: .05s; } .rise.r2 { transition-delay: .15s; }
.rise.r3 { transition-delay: .25s; } .rise.r4 { transition-delay: .35s; } .rise.r5 { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--teal); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); z-index: 500; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 16px; color: #fff; }

.muted { color: var(--muted); }
.txt-teal { color: var(--teal); }
/* inline icon spans */
[data-ico] > svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.ico { display: inline-flex; align-items: center; }
.ico svg { width: 1.05em; height: 1.05em; }
.btn .ico svg { width: 18px; height: 18px; }
.carousel-btn .ico svg, .lb-prev svg, .lb-next svg, .lb-close svg { width: 22px; height: 22px; }
.ico-star { display: inline-flex; }
.ico-star svg { width: 15px; height: 15px; }
.chip .ico svg, .card-meta .ico svg, .feature-ico svg { width: 1em; height: 1em; }
[data-ico].feature-ico svg, .feature-ico svg { width: 24px; height: 24px; }
.arrival-icon svg { width: 40px; height: 40px; }
.proof-line [data-ico] svg, .header-tel .ico svg { width: 18px; height: 18px; vertical-align: middle; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.mb-m { margin-bottom: 26px; } .mb-l { margin-bottom: 44px; }
.maxw-prose { max-width: 64ch; }

/* ---------- Inner-page components ---------- */
/* Sticky book rail (room pages) */
.book-rail {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: rgba(246,241,231,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.book-rail .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.book-rail .rr-price { display: flex; align-items: baseline; gap: 12px; }
.book-rail .rr-price .price { font-size: 1.4rem; }
.book-rail .rr-name { font-weight: 800; color: var(--ink); }

/* Amenity descriptive rows */
.amenity-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.amenity-item { background: var(--surface); padding: 26px 28px; display: flex; gap: 18px; align-items: flex-start; }
.amenity-item .ai-ico { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; }
.amenity-item .ai-ico svg { width: 22px; height: 22px; }
.amenity-item h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.amenity-item p { font-size: 0.93rem; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--hairline); font-size: 0.96rem; }
.compare thead th { background: var(--bg-deep); font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--ink); }
.compare tbody th { font-weight: 800; color: var(--ink); font-family: var(--sans); }
.compare td { color: var(--body); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .cell-yes { color: var(--teal); font-weight: 800; }
.compare .cell-no { color: var(--muted); }
.compare .cell-price { font-family: var(--display); font-size: 1.3rem; font-weight: 500; color: var(--ink); }

/* Detail editorial figures (room pages) */
.detail-figure { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); align-items: center; }
.detail-figure.flip > :first-child { order: 2; }
.detail-figure .df-media { aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); background: var(--teal-tint); }
.detail-list { display: grid; gap: 14px; }
.detail-list li { display: flex; gap: 14px; align-items: flex-start; }
.detail-list li .dl-ico { color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.detail-list li .dl-ico svg { width: 20px; height: 20px; }
.detail-list li strong { color: var(--ink); display: block; }
.detail-list li span { font-size: 0.93rem; }

/* Quick contact cards */
.quick-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; gap: 12px; }
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.quick-card .qc-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; }
.quick-card .qc-ico svg { width: 24px; height: 24px; }
.quick-card h3 { font-size: 1.3rem; }
.quick-card .qc-val { font-weight: 800; color: var(--teal); font-size: 1.05rem; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row { display: flex; flex-direction: column; gap: 7px; }
.field-row.full { grid-column: 1 / -1; }
.field-row label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field-row input, .field-row textarea, .field-row select {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); padding: 14px 16px;
  border: 1.5px solid var(--hairline); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); width: 100%;
}
.field-row textarea { min-height: 130px; resize: vertical; }
.field-row input:focus, .field-row textarea:focus, .field-row select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.field-row input.invalid, .field-row textarea.invalid { border-color: #C0563F; box-shadow: 0 0 0 3px rgba(192,86,63,.12); }
.field-err { font-size: 0.82rem; color: #C0563F; font-weight: 700; display: none; }
.field-row.show-err .field-err { display: block; }
.form-ok { background: var(--teal-tint); border: 1px solid var(--teal-light); border-radius: var(--r-md); padding: 20px 24px; color: var(--teal-dark); font-weight: 700; display: none; }
.form-ok.show { display: block; }

/* Policy cards */
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.policy-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-sm); }
.policy-card .pc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.policy-card .pc-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; flex-shrink: 0; }
.policy-card .pc-ico svg { width: 22px; height: 22px; }
.policy-card h3 { font-size: 1.2rem; }
.policy-card p { font-size: 0.95rem; }

/* Who-it-suits panels */
.suit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.suit-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.suit-card .sc-media { aspect-ratio: 4/3; background: var(--teal-tint); position: relative; }
.suit-card .sc-body { padding: 26px; }
.suit-card h3 { font-size: 1.3rem; margin-bottom: 10px; }

/* Pull-quote */
.pullquote { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; color: var(--teal-dark); text-wrap: balance; max-width: 22ch; }
.pullquote.center { margin-inline: auto; text-align: center; max-width: 26ch; }

/* Guide */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.guide-card .gc-media { aspect-ratio: 16/10; background: var(--teal-tint); position: relative; }
.guide-card .gc-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.guide-card h3 { font-size: 1.4rem; }
.guide-card .gc-foot { margin-top: auto; font-size: 0.84rem; color: var(--muted); font-weight: 700; }

/* Reading progress + article */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--teal); z-index: 120; width: 0; transition: width .1s linear; }
.article-body { max-width: 70ch; margin-inline: auto; font-size: 1.14rem; line-height: 1.72; }
.article-body > p { margin-bottom: 1.5em; }
.article-body h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 1.4em 0 .5em; }
.article-body h3 { font-size: 1.4rem; margin: 1.2em 0 .4em; }
.article-body figure { margin: 2.4em 0; }
.article-body figure .fig-media { aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: var(--teal-tint); }
.article-body figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 12px; text-align: center; font-style: italic; }
.article-body .pullquote { margin: 1.4em 0; padding-left: 28px; border-left: 3px solid var(--teal-light); }
.article-body ul.bullets { margin: 0 0 1.5em; display: grid; gap: 10px; }
.article-body ul.bullets li { padding-left: 28px; position: relative; }
.article-body ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-light); }
.plan-rail { background: var(--bg-deep); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 32px; text-align: center; }

/* 404 */
.err-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.err-num { font-family: var(--display); font-size: clamp(6rem, 18vw, 13rem); font-weight: 360; color: var(--teal); line-height: .9; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
  .map-module { grid-template-columns: 1fr; }
  .map-side { max-height: none; }
}
@media (max-width: 920px) {
  .nav, .header-contact { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(243,247,246,.7) 0%, rgba(243,247,246,.9) 55%, var(--bg) 100%); }
  .hero-scroll { display: none; }
  .hero-media { order: -1; }
  .hero-frame { aspect-ratio: 16/11; }
  .split, .split.reverse > :first-child { grid-template-columns: 1fr; order: 0; }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .arrival-track { grid-template-columns: 1fr; gap: 20px; }
  .arrival-rail, .arrival-rail-fill { display: none; }
  .arrival-step { padding: 18px 0 18px 26px; border-left: 2px solid rgba(255,255,255,.14); opacity: 1; }
  .arrival-step.active { border-left-color: var(--sand); }
  .arrival-step .step-dot { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-item.big { grid-column: span 2; }
  .feature-grid[style] { grid-template-columns: 1fr !important; }
  .quick-cards, .suit-grid, .guide-grid { grid-template-columns: 1fr; }
  .amenity-list, .policy-grid, .form-grid { grid-template-columns: 1fr; }
  .detail-figure, .detail-figure.flip > :first-child { grid-template-columns: 1fr; order: 0; }
  #roomsPreview[style], [id="roomsPreview"] { grid-template-columns: 1fr !important; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .bw-row { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .bento { grid-template-columns: 1fr; }
  .bento-item, .bento-item.wide, .bento-item.tall, .bento-item.big { grid-column: auto; grid-row: auto; aspect-ratio: 3/2; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-close { top: -56px; }
  .section { padding-block: clamp(48px, 9vw, 80px); }
}

/* ---------- image-slot rendering (global) ---------- */
image-slot { display: block; width: 100%; height: 100%; }
image-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Branded fallback tile — used only where no real photo of the property exists
   yet (e.g. the marina, a café). An intentional captioned plate, never an empty
   box and never a misleading stock photo. */
.img-tile {
  display: grid; place-items: center; text-align: center; padding: 22px;
  background:
    radial-gradient(120% 120% at 18% 12%, rgba(194,163,94,.20), transparent 55%),
    linear-gradient(150deg, var(--teal) 0%, var(--teal-dark) 78%);
  color: #fff; position: relative;
}
.img-tile::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.22); border-radius: inherit; pointer-events: none; }
.img-tile-cap { font-family: var(--display); font-style: italic; font-weight: 380; font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.3; color: rgba(255,255,255,.94); max-width: 26ch; }
.img-tile-cap::before { content: "Capricorn Suites"; display: block; font-family: var(--sans); font-style: normal; font-weight: 800; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin-bottom: 10px; }

/* ---------- Cross-document view transitions (app-like page changes) ----------
   Progressive enhancement: Chromium-based browsers cross-fade between pages;
   others navigate normally. Disabled for reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; }
}

/* ---------- prefers-contrast: more — firmer hairlines & text for users who ask ---------- */
@media (prefers-contrast: more) {
  :root { --muted: #4A4636; --hairline: #B9B2A0; }
  .btn-outline { border-width: 2px; }
  .eyebrow { color: var(--teal-dark); }
}

/* ---------- prefers-reduced-data — skip decorative motion & grain ---------- */
@media (prefers-reduced-data: reduce) {
  .kenburns > *, .marquee-track { animation: none !important; }
  body::after { display: none !important; }
}

/* ---------- Print: a clean directions/details card, not a webpage ---------- */
@media print {
  .site-header, .site-footer, .mobile-bar, .sticky-book, .marquee, .hero-scroll,
  .book-rail, .drawer, .drawer-backdrop, .lightbox, .btn, .map-canvas, iframe,
  .hero-bg, .hero-scrim, .announce, .toast { display: none !important; }
  body { background: #fff; color: #000; padding: 0 !important; font-size: 12pt; }
  .section, .section-sm, .page-head { padding: 12pt 0 !important; background: none !important; }
  a { color: #000; text-decoration: none; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .reveal, .rise { opacity: 1 !important; transform: none !important; }
}

/* ---------- Toast (copy/share feedback) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem;
  padding: 12px 22px; border-radius: var(--r-pill); box-shadow: var(--sh-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---------- Booking widget: nights label + utility buttons ---------- */
.bw-nights { display: inline-block; font-size: .82rem; font-weight: 800; color: var(--teal); margin-top: 8px; }
.util-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--hairline);
  background: var(--surface); font-size: .85rem; font-weight: 700; color: var(--ink);
  cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.util-btn:hover { border-color: var(--teal); background: var(--teal-tint); }
.util-btn svg { width: 15px; height: 15px; color: var(--teal); }

/* ---------- FAQ live filter ---------- */
.faq-filter { position: relative; margin-bottom: 22px; max-width: 480px; }
.faq-filter input {
  width: 100%; padding: 13px 18px 13px 44px; border: 1.5px solid var(--hairline);
  border-radius: var(--r-pill); font-family: var(--sans); font-size: .95rem; background: var(--surface); color: var(--ink);
}
.faq-filter input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.faq-filter svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.faq-empty { display: none; padding: 18px 4px; color: var(--muted); font-size: .95rem; }
.faq-empty.show { display: block; }

/* ---------- Subtle day/night atmosphere ---------- */
/* Evening: a faint warm gold glow over dark "field" sections — quiet, never gimmicky. */
body.is-evening .section.field { background-image: radial-gradient(120% 120% at 82% -8%, rgba(194,163,94,.12), transparent 56%), radial-gradient(120% 130% at 80% 0%, var(--field) 0%, var(--field-2) 100%); }
body.is-evening .sb-brand svg { color: var(--sand); }

/* ---------- Mobile/tablet: collapse INLINE grids the stylesheet media queries can't reach ----------
   Many sections set grid-template-columns via an inline style attribute, which overrides
   class-based media queries (so they'd stay 2–4 columns and cramp on phones/tablets).
   The design already goes single-column at <=860px; this reclaims that for inline grids too.
   Add class "keep-grid" to any element that should keep its columns. */
@media (max-width: 860px) {
  [style*="grid-template-columns"]:not(.keep-grid):not(.bento) { grid-template-columns: 1fr !important; }
}

/* ---------- Header: collapse nav to hamburger early enough that the
   nav + contact block + Book button never overflow. Raised to 1200px now
   that the contact block carries both the phone AND the (longer) email. */
@media (max-width: 1200px) {
  .site-header .nav, .site-header .header-contact { display: none !important; }
  .site-header .hamburger { display: inline-flex !important; }
  /* .nav carried the margin-left:auto that right-aligned the actions; with it
     hidden, push the actions to the right edge so the hamburger sits correctly. */
  .site-header .header-actions { margin-left: auto; }
}
/* On phones, drop the header Book Direct button — it crowds the bar and pushes
   the menu to the edge. Booking stays one tap away in the menu + bottom command bar. */
@media (max-width: 640px) {
  .site-header .header-actions > .btn-primary { display: none; }
}

/* ---------- Review wall (reviews page) ---------- */
.praise-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.praise-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--surface); border: 1.5px solid var(--line-strong, var(--hairline));
  font-size: .86rem; font-weight: 700; color: var(--ink);
}
.praise-tag svg { width: 15px; height: 15px; color: var(--teal); }
.review-wall { columns: 3 290px; column-gap: 22px; }
.review-wall .rw-card {
  break-inside: avoid; margin: 0 0 22px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 26px 28px; box-shadow: var(--sh-sm);
  border-top: 3px solid var(--teal);
}
.review-wall .rw-quote { font-family: var(--display); font-style: italic; font-weight: 380; font-size: 1.24rem; line-height: 1.42; color: var(--ink); margin-bottom: 16px; }
.review-wall .rw-attrib { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .82rem; }
.review-wall .rw-who { font-weight: 800; color: var(--teal); }
.review-wall .rw-plat { color: var(--muted); }
@media (max-width: 640px) { .review-wall { columns: 1; } }
