/* ════════════════════════════════════════════════════════════════════
   OceanSuite — Option 1 "Santorini in Goa"
   Coastal white/cream canvas · single cobalt accent (from the villa's
   own furniture) · Marcellus display · system sans body.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #FBF9F5;
  --surface:   #FFFFFF;
  --sand:      #F3EEE5;
  --ink:       #16202C;
  --muted:     #67707C;
  --border:    #E8E3D9;
  --accent:    #1E49C7;   /* cobalt — CTAs, eyebrows, pin. Budget: ≤2 per screen */
  --accent-deep:#16368F;
  --accent-on: #FFFFFF;

  --map-sea:   #DCE8EC;
  --map-land:  #F6F1E7;
  --map-shore: #FFFFFF;
  --map-road:  #B9AE99;
  --map-sand:  #EBDFC4;

  /* hero scroll runway: how much scroll drives the balcony sequence */
  --hero-runway: 190vh;

  --font-display: 'Marcellus', 'Iowan Old Style', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 11vw, 140px);

  --ease: cubic-bezier(.22,.8,.24,1);
  --t-fast: 180ms;
  --t-med: 320ms;
}

/* ── Reset / base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.display { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: .01em; }

.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ── Eyebrow / textlink / buttons ─────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow--light { color: #fff; opacity: .92; }

.textlink {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.textlink:hover { color: var(--accent); border-color: var(--accent); }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  border-radius: 2px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--solid { background: var(--accent); color: var(--accent-on); }
.btn--solid:hover { background: var(--accent-deep); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--glass {
  border-color: rgba(255,255,255,.6); color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255,255,255,.26); }
.btn:focus-visible, .textlink:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  color: #fff;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease), padding var(--t-med) var(--ease);
}
.nav__brand { font-family: var(--font-display); font-size: 24px; letter-spacing: .02em; }
.nav__brand span { color: currentColor; opacity: .65; }
.nav__links { display: flex; gap: 28px; font-size: 14px; letter-spacing: .04em; }
.nav__links a { opacity: .88; transition: opacity var(--t-fast); }
.nav__links a:hover { opacity: 1; }
.nav__actions { display: flex; gap: 10px; }
.nav .btn--ghost { color: #fff; }
.nav .btn--ghost:hover { background: #fff; color: var(--ink); }

.nav.is-scrolled {
  background: color-mix(in oklab, var(--bg), transparent 12%);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--border);
  padding-block: 12px;
}
.nav.is-scrolled .btn--ghost { color: var(--ink); }
.nav.is-scrolled .btn--ghost:hover { background: var(--ink); color: #fff; }

/* ── Hero — scroll-scrubbed balcony sequence ──────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  height: 290vh;
  height: calc(100vh + var(--hero-runway));
  height: calc(100svh + var(--hero-runway));
  color: #fff;
}
.hero__stage {
  position: sticky; top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid; place-items: end start;
  overflow: hidden;
}
/* JS failed / reduced motion → static hero, no runway */
.hero.hero--static {
  height: 100vh;
  height: 100svh;
  min-height: 560px;
}
.hero.hero--static .hero__canvas { display: none; }
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: center;
  will-change: transform;
}
.hero__frame {
  position: absolute; inset: 0;
  z-index: 1;
  display: none;
  opacity: 0;
  transition: opacity 220ms var(--ease);
  pointer-events: none;
}
.hero.is-seq-live .hero__frame { opacity: 1; }
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 500ms var(--ease);
}
.hero.is-seq-live .hero__canvas { opacity: 1; }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,20,32,.62) 0%, rgba(12,20,32,.18) 45%, rgba(12,20,32,.22) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) clamp(56px, 9vh, 110px);
  max-width: 1080px;
  will-change: transform, opacity;
}
.hero__title { font-size: clamp(42px, 5.8vw, 84px); color: #fff; }
.hline { display: block; overflow: hidden; }
.hline span {
  display: block;
  transform: translateY(110%);
  animation: hline-up 900ms var(--ease) forwards;
}
.hline:nth-child(2) span { animation-delay: 140ms; }
@keyframes hline-up { to { transform: translateY(0); } }
.hero__sub {
  margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); max-width: 56ch;
  opacity: 0; animation: fade-up 700ms var(--ease) 480ms forwards;
}
.hero__ctas {
  display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap;
  opacity: 0; animation: fade-up 700ms var(--ease) 640ms forwards;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__cue {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; opacity: .8;
}
.hero__cue span { display: block; width: 1px; height: 44px; background: #fff; transform-origin: top;
  animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (min-width: 920px) {
  .hero__frame { display: block; }
}

/* ── Split choice — full-height diptych, centre "or" seam ─────────── */
.split { background: var(--surface); padding-top: var(--section-y); }
.split__intro { margin-bottom: clamp(32px, 4.5vw, 56px); }
.split__choices {
  position: relative;
  display: flex;
  min-height: 78vh;
}
.split__panel {
  position: relative;
  flex: 1 1 0;
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.split__img { position: absolute; inset: 0; }
.split__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.split__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,20,32,.74) 0%, rgba(12,20,32,.24) 42%, rgba(12,20,32,.08) 70%);
  transition: opacity 650ms var(--ease);
}
.split__panel:hover .split__shade { opacity: .92; }
.split__body {
  position: relative; z-index: 2;
  padding: clamp(26px, 3.2vw, 52px);
  display: grid; gap: 10px;
  max-width: 520px;
}
.split__tag {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase;
  opacity: .85;
}
.split__title { font-size: clamp(32px, 3.4vw, 52px); color: #fff; }
.split__line {
  color: rgba(255,255,255,.82); max-width: 40ch; font-size: 15.5px;
  /* collapses softly so the un-hovered panel stays calm */
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 650ms var(--ease), opacity 650ms var(--ease);
}
.split__panel:hover .split__line, .split__panel:focus-visible .split__line { max-height: 90px; opacity: 1; }
.split__meta {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
}
.split__cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 12px; justify-self: start;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,.55);
  transition: border-color var(--t-fast) var(--ease), gap var(--t-fast) var(--ease);
}
.split__cta svg { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.split__panel:hover .split__cta { border-color: #fff; gap: 16px; }
.split__panel:hover .split__cta svg { transform: translateX(2px); }
.split__or {
  position: absolute; left: 50%; top: 50%; z-index: 5;
  translate: -50% -50%;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 10px 36px -14px rgba(22,32,44,.4);
  pointer-events: none;
}
.split__or i {
  font-family: var(--font-display); font-style: normal;
  font-size: 19px; color: var(--ink); letter-spacing: .02em;
}

/* ── Whole villa ──────────────────────────────────────────────────── */
.villa { padding-block: var(--section-y); }
.villa__head { margin-bottom: clamp(36px, 5vw, 64px); }
.villa__hero {
  display: grid; grid-template-columns: 1fr minmax(300px, 360px);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
}
.villa__img { overflow: hidden; position: relative; }
.villa__img img { width: 100%; height: clamp(360px, 56vh, 620px); object-fit: cover; }

/* "Take the villa tour" chip — V2 entry point, coming-soon for V1 */
.tourchip {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(12,20,32,.34);
  backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  box-shadow: 0 12px 28px -18px rgba(12,20,32,.75);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.tourchip:hover { transform: translateY(-2px); }
.tourchip svg { width: 24px; height: 24px; fill: var(--ink); background: rgba(255,255,255,.88); border-radius: 50%; padding: 6px; box-sizing: border-box; }
.tourchip__tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  translate: -50%;
  white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--ink); color: #fff;
  padding: 7px 12px; border-radius: 4px;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.tourchip:hover .tourchip__tip, .tourchip:focus-visible .tourchip__tip,
.tourchip.is-tip .tourchip__tip { opacity: 1; transform: none; }
.ratecard {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(24px, 2.6vw, 36px);
  display: grid; gap: 14px;
}
.ratecard__rate { font-family: var(--font-display); font-size: clamp(38px, 3.6vw, 52px); line-height: 1; }
.ratecard__rate span { font-family: var(--font-body); font-size: 15px; color: var(--muted); margin-left: 6px; }
.ratecard__note { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.ratecard__fine { font-size: 12.5px; color: var(--muted); opacity: .8; }
.villa__copy {
  max-width: 62ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px);
  margin-block: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 48px);
}
.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px);
}
.mosaic figure { overflow: hidden; }
.mosaic img { width: 100%; aspect-ratio: 3/4; object-fit: cover;
  transition: transform 600ms var(--ease); }
.mosaic figure:hover img { transform: scale(1.045); }

/* ── Rooms — pinned horizontal (desktop) ──────────────────────────── */
.rooms { background: var(--sand); }
.rooms__pin {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
  padding-block: clamp(20px, 3vh, 40px) 18px;
}
.rooms__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  width: 100%;
  margin-bottom: clamp(16px, 3vh, 36px);
}
.rooms__title { max-width: 720px; }
.rooms__scroll-cue { display: none; }
.rooms__rail { display: flex; align-items: center; gap: 14px; }
.rail__num {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em;
  color: var(--muted); transition: color var(--t-fast);
  padding: 4px 2px;
}
.rail__num:hover { color: var(--ink); }
.rail__num.is-active { color: var(--accent); }
.rail__bar { width: 120px; height: 1px; background: var(--border); position: relative; }
.rail__bar i {
  position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(0); transform-origin: left; will-change: transform;
}

.rooms__viewport { flex: 1; min-height: 0; }
.rooms__track {
  display: flex; gap: clamp(20px, 2.4vw, 36px);
  height: 100%;
  padding-inline: var(--gutter);
  will-change: transform;
}
.room-card {
  position: relative;
  flex: 0 0 auto;
  width: min(520px, 38vw);
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer; /* whole card opens the room */
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.room-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -32px rgba(22,32,44,.35);
}
.room-card__num {
  position: absolute; top: 10px; left: 16px; z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(56px, 5vw, 84px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.85);
  line-height: 1; pointer-events: none;
}
.room-card__main { overflow: hidden; flex: 1; min-height: 0; }
.room-card__main img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease); }
.room-card:hover .room-card__main img { transform: scale(1.04); }
.room-card__thumbs {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  display: grid; gap: 8px;
}
.room-card__thumbs img {
  width: 64px; height: 64px; object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 18px -8px rgba(22,32,44,.5);
}
.room-card__body { padding: 18px 22px 20px; display: grid; gap: 6px; }
.room-card__body h3 { font-size: 26px; }
.room-card__body p { color: var(--muted); font-size: 14.5px; }
.room-card__body .textlink { justify-self: start; margin-top: 8px; }
.rooms__hint {
  text-align: center; margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}

/* ── Amenities ────────────────────────────────────────────────────── */
.amenities { padding-block: var(--section-y); background: var(--surface); }
.amen-grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.amen-grid li {
  padding: clamp(22px, 2.4vw, 34px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.amen-grid h3 { font-size: 20px; margin-bottom: 8px; }
.amen-grid p { color: var(--muted); font-size: 14.5px; }

/* ── Mood band ────────────────────────────────────────────────────── */
.moodband { position: relative; height: clamp(320px, 52vh, 560px); overflow: hidden; }
.moodband img { width: 100%; height: 100%; object-fit: cover; }
.moodband p {
  position: absolute; left: var(--gutter); bottom: 26px;
  color: #fff; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px);
  text-shadow: 0 2px 18px rgba(12,20,32,.5);
}

/* ── Location / map ───────────────────────────────────────────────── */
.location { padding-block: var(--section-y); }
.location__grid {
  display: grid; grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.location__intro { color: var(--muted); max-width: 46ch; margin-block: 18px 28px; }
.spots { border-top: 1px solid var(--border); margin-bottom: 30px; }
.spot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background var(--t-fast), padding-left var(--t-fast) var(--ease);
}
.spot em { font-style: normal; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.spot:hover, .spot.is-hot { background: var(--sand); padding-left: 12px; }

.map {
  position: relative;
  background: var(--map-sea);
  border: 1px solid var(--border);
}
.map svg { width: 100%; height: auto; display: block; }
.map figcaption {
  position: absolute; right: 12px; bottom: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em;
  color: var(--muted);
}
.map__dot circle { fill: var(--ink); opacity: .55; transition: opacity var(--t-fast), fill var(--t-fast); }
.map__dot text {
  font-family: var(--font-mono); font-size: 11.5px; fill: var(--ink); opacity: .55;
  transition: opacity var(--t-fast), fill var(--t-fast);
}
.map__dot.is-hot circle, .map__dot:hover circle { opacity: 1; fill: var(--accent); }
.map__dot.is-hot text, .map__dot:hover text { opacity: 1; fill: var(--accent); }
.map__sealabel {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; fill: var(--ink); opacity: .38;
}
.map__compass text { font-family: var(--font-mono); font-size: 12px; fill: var(--ink); opacity: .6; }
.map__pulse { fill: var(--accent); opacity: .14; animation: pulse 2.6s var(--ease) infinite; transform-origin: 216px 500px; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .22; } 70% { transform: scale(1.15); opacity: 0; } 100% { opacity: 0; } }
.map__pinlabel { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; fill: var(--ink); text-transform: uppercase; }

/* ── Hosts / contact ──────────────────────────────────────────────── */
.hosts { padding-block: var(--section-y); background: var(--surface); }
.hosts__grid {
  display: grid; grid-template-columns: minmax(300px, .9fr) 1.1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hosts__text p:not(.eyebrow) { color: var(--muted); max-width: 48ch; margin-block: 18px 26px; }
.hosts__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hosts__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.hosts__photos figure { overflow: hidden; }
.hosts__photos img { width: 100%; aspect-ratio: 3/4; object-fit: cover;
  transition: transform 600ms var(--ease); }
.hosts__photos figure:hover img { transform: scale(1.045); }
.hosts__photos figure:nth-child(2) { transform: translateY(clamp(14px, 2vw, 28px)); }

/* ── Booking (modular) ────────────────────────────────────────────── */
.booking {
  padding-block: var(--section-y);
  background: var(--ink); color: #fff;
}
.booking .display { color: #fff; }
.booking__sub { color: rgba(255,255,255,.75); margin-top: 14px; max-width: 56ch; }
.booking [data-booking-slot] { margin-top: clamp(32px, 4vw, 48px); }
.booking:focus:not(:focus-visible) { outline: none; }
.booking__wa { margin-top: 22px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.78); padding-block: 12px 28px; }
.footer__grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px;
  padding-block: 36px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.footer__brand { font-family: var(--font-display); font-size: 26px; color: #fff; }
.footer__brand span { opacity: .6; }
.footer__addr { font-size: 14px; margin-top: 6px; font-style: normal; line-height: 1.6; }
.footer__links, .footer__contact { display: grid; gap: 10px; font-size: 14.5px; align-content: start; }
.footer__links a:hover, .footer__contact a:hover { color: #fff; }
.footer__fine { font-size: 12.5px; opacity: .55; }

/* ── Floating CTA ─────────────────────────────────────────────────── */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; gap: 8px;
  background: color-mix(in oklab, var(--surface), transparent 8%);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 18px 50px -22px rgba(22,32,44,.4);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab .btn { border-radius: 999px; padding: 10px 20px; font-size: 13.5px; }

/* ── Room overlay ─────────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; }
.overlay[hidden] { display: none; }
.overlay__scrim {
  position: absolute; inset: 0;
  background: rgba(14,20,28,.55);
  backdrop-filter: blur(6px);
  animation: fade-in var(--t-med) var(--ease);
}
@keyframes fade-in { from { opacity: 0; } }
.overlay__panel {
  position: relative;
  width: min(1080px, calc(100vw - 40px));
  max-height: calc(100svh - 48px);
  background: var(--surface);
  display: grid; grid-template-columns: 1.25fr 1fr;
  overflow: hidden;
  animation: panel-in 380ms var(--ease);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(26px) scale(.985); } }
.overlay__close {
  position: absolute; top: 10px; right: 12px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 22px; line-height: 1;
  transition: background var(--t-fast), color var(--t-fast);
}
.overlay__close:hover { background: var(--ink); color: #fff; }
.overlay__gallery { display: flex; flex-direction: column; min-height: 0; background: var(--sand); }
.overlay__stage { flex: 1; min-height: 320px; overflow: hidden; }
.overlay__stage img { width: 100%; height: 100%; object-fit: cover; animation: fade-in 300ms var(--ease); }
.overlay__thumbs { display: flex; gap: 8px; padding: 12px; }
.overlay__thumbs button { flex: 1; overflow: hidden; border: 2px solid transparent; transition: border-color var(--t-fast); }
.overlay__thumbs button.is-active { border-color: var(--accent); }
.overlay__thumbs img { width: 100%; height: 68px; object-fit: cover; }
.overlay__thumbs figcaption, .overlay__thumbs button span {
  display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); padding: 5px 4px 4px; text-align: left;
  background: var(--surface);
}
.overlay__info { padding: clamp(26px, 3vw, 42px); overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.overlay__info .display { font-size: clamp(30px, 3vw, 42px); }
.overlay__info > p:not(.eyebrow) { color: var(--muted); }
.overlay__facts { display: grid; gap: 7px; }
.overlay__facts li {
  font-size: 14px; color: var(--muted);
  padding-left: 16px; position: relative;
}
.overlay__facts li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 1px; background: var(--accent);
}
.overlay__ctas { display: grid; gap: 10px; margin-top: 8px; }
.overlay__nav { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ── Reveal animations ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img { overflow: hidden; }
.reveal-img img { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease); }
.reveal-img.is-in img { clip-path: inset(0 0 0 0); }

/* Scroll text reveal — display headings split into masked words that
   rise with a small stagger when their section enters the viewport.  */
.has-tw .tw { display: inline-block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: bottom; }
.has-tw .tw i {
  display: inline-block; font-style: normal;
  transform: translateY(112%);
  transition: transform 800ms var(--ease);
  transition-delay: calc(var(--wi, 0) * 55ms);
  will-change: transform;
}
.is-in .has-tw .tw i, .has-tw.is-in .tw i { transform: none; }

/* ════════════════════════════════════════════════════════════════════
   MOBILE / TABLET — its own experience, not a shrunken desktop
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .villa__hero { grid-template-columns: 1fr; align-items: stretch; }
  .ratecard { margin-top: -40px; width: calc(100% - var(--gutter)); justify-self: end; z-index: 2; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .amen-grid { grid-template-columns: repeat(2, 1fr); }
  .location__grid, .hosts__grid { grid-template-columns: 1fr; }
  .hosts__photos figure:nth-child(2) { transform: none; }
}

@media (max-width: 919px) {
  :root { --hero-runway: 150vh; }

  /* Villa: keep booking actions clear of the photo on phones */
  .villa__hero { gap: 18px; }
  .villa__img img { height: clamp(340px, 78vw, 440px); }
  .tourchip {
    right: 14px;
    bottom: 14px;
    padding: 8px 12px 8px 9px;
  }
  .ratecard {
    margin-top: 0;
    width: 100%;
    justify-self: stretch;
    z-index: auto;
  }

  /* Split stacks — equal weight preserved, copy always visible on touch */
  .split__choices { flex-direction: column; min-height: 0; }
  .split__panel { min-height: 56svh; }
  .split__line { max-height: 90px; opacity: 1; }
  .split__or { width: 54px; height: 54px; }
  .split__or i { font-size: 16px; }

  /* Rooms: native snap carousel, no pinning */
  .rooms { padding-block: var(--section-y); }
  .rooms__pin { position: static; height: auto; overflow: visible; padding-block: 0; }
  .rooms__head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
  .rooms__title {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    column-gap: 10px;
  }
  .rooms__scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transform: translateY(-4px);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .82;
  }
  .rooms__scroll-cue svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
  }
  .rail__bar { flex: 1; min-width: 60px; }
  .rooms__viewport {
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rooms__viewport::-webkit-scrollbar { display: none; }
  .rooms__track { height: auto; padding-inline: var(--gutter); }
  .room-card { width: 84vw; max-width: 420px; scroll-snap-align: center; height: auto; }
  .room-card__main { aspect-ratio: 4/5; flex: none; }
  .rooms__hint { margin-top: 16px; }

  /* Overlay becomes a full sheet */
  .overlay { place-items: end center; }
  .overlay__panel {
    grid-template-columns: 1fr;
    width: 100vw; max-height: calc(100svh - 24px);
    overflow-y: auto;
    border-radius: 14px 14px 0 0;
    animation: sheet-up 420ms var(--ease);
  }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } }
  .overlay__stage { min-height: 0; aspect-ratio: 4/3; flex: none; }
  .overlay__gallery, .overlay__info { min-height: 0; }

  /* Floating CTA becomes full-width bottom bar */
  .fab {
    right: 0; bottom: 0; left: 0;
    border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  }
  .fab .btn { flex: 1; border-radius: 2px; padding-block: 13px; }
  body { padding-bottom: 0; }

  .booking { padding-bottom: calc(var(--section-y) + 56px); }
  .footer { padding-bottom: 92px; }
}

@media (max-width: 639px) {
  body { font-size: 16px; }
  .hero__title { font-size: clamp(36px, 11vw, 52px); }
  .hero__ctas .btn { flex: 1; min-width: 0; }
  .mosaic { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .amen-grid { grid-template-columns: 1fr 1fr; }
  .amen-grid li { padding: 18px 16px; }
  .amen-grid h3 { font-size: 17px; }
  .room-card { width: 86vw; }
  .nav__actions .btn--ghost { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
}
