/* ============================================================
   Below Deck Villa — styles.css (Phase A: foundation + hero)
   Depends on tokens.css for all colors/scale/motion.
   ============================================================ */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  color: var(--text);
  background: var(--bg);
  line-height: var(--leading-body);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-medium); line-height: var(--leading-tight); }
em { font-style: italic; }

.eyebrow,
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn--cta {
  background: var(--cta);
  color: var(--text-on-cta);
}
.btn--cta:hover { background: var(--cta-hover); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(252, 250, 245, 0.55);
}
.btn--ghost:hover { background: rgba(252, 250, 245, 0.12); border-color: var(--white); }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  transition: opacity var(--dur-slow) var(--ease), visibility var(--dur-slow) var(--ease);
}
.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sand) 0%, var(--turq-deep) 45%, var(--navy-deep) 75%, var(--night-bg) 100%);
  opacity: 0;
  animation: loaderSweep 1.8s var(--ease) forwards;
}
.loader__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  opacity: 0;
  animation: loaderReveal 1.4s var(--ease) 0.2s forwards;
}
.loader__logo { width: 120px; height: auto; }
.loader__word {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--text-xl);
  letter-spacing: 0.06em;
  color: var(--white);
}
.loader.is-done { opacity: 0; visibility: hidden; }

@keyframes loaderSweep {
  0%   { opacity: 0; }
  40%  { opacity: 0.5; }
  100% { opacity: 0; }
}
@keyframes loaderReveal {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) var(--gutter);
  transition: background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              padding var(--dur) var(--ease);
}
.nav--solid {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.nav__brand { position: relative; display: block; height: 56px; width: 56px; flex: none; }
.nav__logo {
  position: absolute;
  inset: 0;
  width: 56px; height: 56px;
  object-fit: contain;
  transition: opacity var(--dur) var(--ease);
}
.nav__logo--blue { opacity: 0; }
.nav--solid .nav__logo--white { opacity: 0; }
.nav--solid .nav__logo--blue { opacity: 1; }

.nav__menu {
  display: flex;
  gap: var(--space-5);
  margin-left: auto;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}
.nav__menu a {
  color: var(--white);
  position: relative;
  padding: 2px 0;
  transition: color var(--dur) var(--ease);
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.nav__menu a:hover::after { width: 100%; }
.nav--solid .nav__menu a { color: var(--ink); }

.nav__cta { flex: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: background-color var(--dur) var(--ease);
}
.nav--solid .nav__toggle span { background: var(--ink); }

/* ============================================================
   HERO — scroll-scrubbed day→night video
   ============================================================ */
.hero {
  position: relative;
  height: 300vh;            /* scroll distance that drives the video */
  background: var(--navy-deep);
}
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__tint { position: absolute; inset: 0; z-index: 1; background: rgba(19, 42, 56, 0.25); pointer-events: none; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 78% 58% at 50% 44%, rgba(19,42,56,0.42) 0%, rgba(19,42,56,0) 72%),
    linear-gradient(180deg, rgba(19,42,56,0.45) 0%, rgba(19,42,56,0) 28%),
    linear-gradient(0deg, rgba(19,42,56,0.55) 0%, rgba(19,42,56,0) 40%);
}
.hero__overlay {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 0 var(--gutter);
  text-align: center;
  color: var(--white);
  will-change: opacity, transform;
}
.hero__h1 { margin: 0; font-weight: var(--fw-regular); }
.hero__h1 .hero__eyebrow { display: block; }
.hero__title {
  display: block;
  font-size: var(--text-hero);
  font-weight: var(--fw-regular);     /* serif display reads more elegant lighter at large sizes */
  letter-spacing: -0.005em;
  margin: var(--space-4) 0 var(--space-5);
  color: var(--white);
  text-shadow: 0 2px 30px rgba(11,28,41,0.35);
}
.hero__eyebrow { color: var(--white); opacity: 0.92; }
.hero__sub {
  max-width: 620px;
  margin: 0 auto var(--space-6);
  font-size: var(--text-lg);
  color: rgba(252,250,245,0.92);
}
.hero__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__cue {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--white);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.hero__cue-line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--white), transparent);
  animation: cuePulse 2.2s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes cuePulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ============================================================
   MANIFESTO (intro)
   ============================================================ */
.manifesto {
  max-width: var(--container-text);
  margin: 0 auto;
  padding: var(--space-9) var(--gutter);
  text-align: center;
}
.manifesto__title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-regular);
  margin: var(--space-4) 0 var(--space-6);
}
.manifesto__title em { color: var(--accent); }
.manifesto__lead {
  font-size: var(--text-lg);
  color: var(--text);
}
.manifesto__note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================================
   BOOKING (dark navy section, white Lodgify card floats on it)
   ============================================================ */
.book {
  background: var(--navy-deep);
  padding: var(--space-9) var(--gutter);
}
.book__inner { max-width: 980px; margin: 0 auto; text-align: center; }
.book__eyebrow { color: var(--turq); }
.book__title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-regular);
  color: var(--white);
  margin: var(--space-4) 0 var(--space-7);
}
.book__widget { max-width: 920px; margin: 0 auto var(--space-6); }

/* Lodgify portable search bar — themed to Below Deck via its CSS variables */
#lodgify-search-bar {
  width: 100%;
  font-family: var(--font-body);
  --ldg-psb-background: #FCFAF5;
  --ldg-psb-border-radius: 14px;
  --ldg-psb-box-shadow: 0 24px 60px rgba(11, 28, 41, 0.30);
  --ldg-psb-padding: 16px;
  --ldg-psb-input-background: #FCFAF5;
  --ldg-psb-button-border-radius: 999px;
  --ldg-psb-color-primary: #E08763;          /* coral Search button + calendar accents */
  --ldg-psb-color-primary-lighter: #EEC3AF;
  --ldg-psb-color-primary-darker: #C56848;   /* coral-deep hover */
  --ldg-psb-color-primary-contrast: #132A38; /* navy-deep text on coral (WCAG AA) */
  --ldg-semantic-color-primary: #E08763;
  --ldg-semantic-color-primary-lighter: #EEC3AF;
  --ldg-semantic-color-primary-darker: #C56848;
  --ldg-semantic-color-primary-contrast: #132A38;
  --ldg-component-modal-z-index: 999;
}

.book__promo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  color: rgba(237, 231, 216, 0.85);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-7);
}
.book__promo-badge {
  background: var(--coral);
  color: var(--navy-deep);
  font-weight: var(--fw-medium);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.book__packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: 0 0 var(--space-7);
  text-align: left;
}
.pkg {
  background: rgba(252, 250, 245, 0.05);
  border: 1px solid rgba(237, 231, 216, 0.16);
  border-radius: 12px;
  padding: var(--space-5);
}
.pkg__title { font-size: var(--text-lg); color: var(--white); margin-bottom: var(--space-2); font-weight: var(--fw-medium); }
.pkg__desc { font-size: var(--text-sm); color: rgba(237, 231, 216, 0.72); margin-bottom: var(--space-3); }
.pkg__tag {
  display: inline-block;
  font-size: var(--text-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--turq);
  border: 1px solid rgba(43, 166, 176, 0.4);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}
.book__talk { color: rgba(237, 231, 216, 0.85); font-size: var(--text-base); margin: 0 0 var(--space-3); }
.book__talk a { color: var(--turq); border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease); }
.book__talk a:hover { border-color: var(--turq); }
.book__fine { color: rgba(237, 231, 216, 0.5); font-size: var(--text-sm); margin: 0; }

@media (max-width: 720px) {
  .book__packages { grid-template-columns: 1fr; }
}

/* ---------- Scroll-reveal utility (used heavily in Phase B) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .hero { height: 300vh; }
  .hero__sub { font-size: var(--text-base); }
  .hero__title { font-size: min(7.4vw, 3.4rem); }
}

/* Short viewports: hide the scroll cue so it never collides with the CTAs */
@media (max-height: 760px) {
  .hero__cue { display: none; }
}

/* ============================================================
   REDUCED MOTION — hero falls back to a calm loop, no scrubbing
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__cue-line { animation: none; }
  .loader::before, .loader__inner { animation: none; opacity: 1; }
}

/* Dev/demo override (?motion=on): restore the full scrub hero even under reduced motion */
html.motion-forced .hero { height: 300vh; }
html.motion-forced .hero__cue-line { animation: cuePulse 2.2s var(--ease-in-out) infinite; }

/* ============================================================
   PHASE B — shared section scaffold
   ============================================================ */
.section { padding: var(--space-9) var(--gutter); }
.section--soft { background: var(--surface); }
.section__inner { max-width: var(--container); margin: 0 auto; }
.section__head { max-width: var(--container-text); margin: 0 auto 4.5rem; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.section--bleed { padding-left: 0; padding-right: 0; }
.feature-row { max-width: none; margin: 0; }
.section__title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-tight);
  margin-top: var(--space-4);
  color: var(--ink);
}
.section__title em { color: var(--accent); }
.section__lead {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--text-muted);
}

/* Inline text link with animated arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--link);
  font-weight: var(--fw-medium);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.text-link:hover { border-color: var(--link); gap: calc(var(--space-2) + 4px); }

/* Filter pills (gallery + experiences) */
.pill {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.15rem;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pill:hover { color: var(--accent); border-color: var(--accent); }
.pill.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pill:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ============================================================
   THE VILLA — split
   ============================================================ */
.villa-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--space-6), 5vw, var(--space-9));
  align-items: stretch;
}
.villa-split__media {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.villa-split__media img { width: 100%; height: 100%; min-height: clamp(360px, 44vw, 600px); object-fit: cover; }
.villa-split__body { align-self: center; padding-right: var(--gutter); }
.villa-split__body .section__title { margin-top: var(--space-4); }
.villa-split__text {
  margin: var(--space-5) 0 var(--space-6);
  font-size: var(--text-lg);
  color: var(--text);
}

/* ============================================================
   ROOMS
   ============================================================ */
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
  margin: 0 auto var(--space-8);
  padding: var(--space-4) var(--space-5);
  max-width: 940px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.spec-strip__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}
.spec-strip__item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.room-feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(var(--space-5), 4vw, var(--space-8));
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  margin-bottom: var(--space-8);
  align-items: center;
}
.room-feature__media { position: relative; }
.room-feature__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.room-feature__badge {
  position: absolute;
  top: var(--space-4); left: var(--space-4);
  background: rgba(19,42,56,0.72);
  color: var(--white);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
.room-feature__body { padding: 0; align-self: center; }
.room-feature__name { font-size: var(--text-2xl); font-weight: var(--fw-regular); margin-bottom: var(--space-3); }
.room-feature__bed { color: var(--accent); font-weight: var(--fw-medium); font-size: var(--text-sm); letter-spacing: 0.04em; text-transform: uppercase; }
.room-feature__detail { margin-top: var(--space-4); font-size: var(--text-lg); color: var(--text-muted); }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.room-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.room-card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.room-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.room-card:hover .room-card__media img { transform: scale(1.04); }
.room-card__body { padding: var(--space-4) 0 0; }
.room-card__name { font-size: var(--text-xl); font-weight: var(--fw-regular); margin-bottom: var(--space-1); }
.room-card__bed { color: var(--accent); font-weight: var(--fw-medium); font-size: var(--text-eyebrow); letter-spacing: 0.06em; text-transform: uppercase; }
.room-card__detail { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 3 / 2;
  background: var(--surface);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(19,42,56,0.28), rgba(19,42,56,0) 45%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.gallery-item[hidden] { display: none; }
.gallery-more { display: flex; justify-content: center; margin-top: var(--space-7); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,26,34,0.94);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 92vw; max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox__btn {
  position: absolute;
  background: rgba(252,250,245,0.10);
  color: var(--white);
  border: 1px solid rgba(252,250,245,0.3);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--dur) var(--ease);
}
.lightbox__btn:hover { background: rgba(252,250,245,0.22); }
.lightbox__btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.lightbox__close { top: var(--space-5); right: var(--space-5); }
.lightbox__prev { left: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; bottom: var(--space-5); left: 50%; transform: translateX(-50%);
  color: rgba(252,250,245,0.7); font-size: var(--text-sm); letter-spacing: 0.1em;
}

/* ============================================================
   AMENITIES
   ============================================================ */
.jewels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.jewel {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: none;
}
.jewel img { width: 100%; height: 100%; object-fit: cover; }
.jewel__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,28,41,0.72) 0%, rgba(11,28,41,0.05) 45%, rgba(11,28,41,0) 70%);
}
.jewel__label { position: absolute; left: var(--space-5); bottom: var(--space-5); right: var(--space-5); color: var(--white); }
.jewel__eyebrow { font-size: var(--text-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: rgba(252,250,245,0.82); }
.jewel__name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--fw-regular); margin-top: 4px; }
.jewel--placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, var(--sand) 0 14px, var(--sand-soft) 14px 28px);
  border: 1px solid var(--border);
}
.jewel--placeholder .jewel__ph-note {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: center;
  padding: 0 var(--space-5);
}

.amenity-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-6), 4vw, var(--space-8));
}
.amenity-group__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-regular);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.amenity-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.amenity-list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-base);
  color: var(--text);
}
.amenity-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}
.amenity-list li.is-no { color: var(--text-muted); }
.amenity-list li.is-no::before { border-color: var(--muted); background: var(--muted); }

/* ============================================================
   EXPERIENCES & SERVICES
   ============================================================ */
.svc-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: var(--space-5) 0 var(--space-6);
}
.svc-card[hidden] { display: none; }
.svc-card__cat { font-size: var(--text-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--accent); }
.svc-card__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--fw-medium); margin: var(--space-2) 0; }
.svc-card__desc { font-size: var(--text-sm); color: var(--text-muted); flex: 1; }
.svc-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; }
.svc-card__price { font-weight: var(--fw-medium); color: var(--ink); font-size: var(--text-base); }
.svc-card__price--included { color: var(--turq-deep); }
.svc-req {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-sm); font-weight: var(--fw-medium);
  color: var(--navy);
  border-bottom: 1px solid var(--border-strong);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.svc-req:hover { color: var(--accent); border-color: var(--accent); }
.svc-toggle {
  font-family: var(--font-body);
  font-size: var(--text-sm); font-weight: var(--fw-medium);
  color: var(--link);
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0;
}
.svc-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.svc-toggle__chev { transition: transform var(--dur) var(--ease); }
.svc-card.is-open .svc-toggle__chev { transform: rotate(180deg); }
.svc-card__table {
  display: none;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  overflow-x: auto;
}
.svc-card.is-open .svc-card__table { display: block; }
.price-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.price-table caption { text-align: left; color: var(--text-muted); font-size: var(--text-sm); margin-bottom: var(--space-2); }
.price-table th, .price-table td { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--border); }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.price-table thead th { color: var(--accent); font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--text-eyebrow); }
.price-table tbody th { font-weight: var(--fw-medium); color: var(--ink); }
.price-note { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); }
.svc-footnote { text-align: center; margin-top: var(--space-7); font-size: var(--text-sm); color: var(--text-muted); }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-3); margin-bottom: var(--space-6);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-sm); font-weight: var(--fw-medium);
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
}
.badge__star { color: var(--coral); }
.subratings {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-4) var(--space-7);
  margin-bottom: var(--space-8);
}
.subrating { text-align: center; min-width: 100px; }
.subrating__val { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--fw-regular); color: var(--ink); }
.subrating__label { font-size: var(--text-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }

.carousel { position: relative; max-width: 820px; margin: 0 auto; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform var(--dur-slow) var(--ease); }
.testimonial {
  flex: 0 0 100%;
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  text-align: center;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-regular);
  line-height: var(--leading-snug);
  color: var(--ink);
}
.testimonial__quote::before { content: "\201C"; }
.testimonial__quote::after { content: "\201D"; }
.testimonial__meta { margin-top: var(--space-5); font-size: var(--text-sm); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.testimonial__name { font-weight: var(--fw-medium); color: var(--ink); }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.carousel__btn:hover { border-color: var(--accent); color: var(--accent); }
.carousel__btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.carousel__prev { left: -8px; }
.carousel__next { right: -8px; }
.carousel__dots { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-5); }
.carousel__dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: var(--border-strong);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.carousel__dot.is-active { background: var(--accent); transform: scale(1.35); }
.carousel__dot:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.reviews-link { text-align: center; margin-top: var(--space-7); }

/* ============================================================
   LOCATION
   ============================================================ */
.location-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(var(--space-6), 5vw, var(--space-9));
  align-items: stretch;
}
.location-split__body { align-self: center; padding-left: var(--gutter); }
.location-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.loc-stat { padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.loc-stat__val { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--fw-regular); color: var(--ink); }
.loc-stat__label { font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; }
.location-map {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  aspect-ratio: auto;
  min-height: clamp(360px, 44vw, 600px);
  background: var(--surface);
}
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: var(--container-text); margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  background: none; border: 0; cursor: pointer;
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-regular);
  color: var(--ink);
  text-align: left;
}
.faq-item__q:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.faq-item__icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 1.5px; background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease);
}
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease);
}
.faq-item__a-inner { padding: 0 0 var(--space-5); color: var(--text-muted); font-size: var(--text-base); max-width: 60ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--surface); padding: var(--space-9) var(--gutter) var(--space-7); }
.footer__inner { max-width: var(--container); margin: 0 auto; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--border);
}
.footer__logo { width: 64px; height: auto; margin-bottom: var(--space-4); }
.footer__tag { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--fw-regular); color: var(--ink); max-width: 22ch; }
.footer__cta { margin-top: var(--space-5); }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  font-weight: var(--fw-medium);
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a, .footer__col span { color: var(--ink); font-size: var(--text-base); transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================================
   PHASE B — RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .villa-split,
  .location-split { grid-template-columns: 1fr; }
  .villa-split__body,
  .location-split__body { padding: 0 var(--gutter); }
  .villa-split__media img,
  .location-map { min-height: 300px; }
  .room-feature { grid-template-columns: 1fr; }
  .room-feature__media img { min-height: 240px; }
  .amenity-groups { grid-template-columns: 1fr; }
  .jewels { grid-template-columns: 1fr; }
  .jewel { aspect-ratio: 16 / 10; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .rooms-grid,
  .svc-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .location-highlights { grid-template-columns: 1fr 1fr; }
  .testimonial__quote { font-size: var(--text-xl); }
  .carousel__prev { left: -4px; }
  .carousel__next { right: -4px; }
  .footer__top { grid-template-columns: 1fr; }
}

/* ============================================================
   AMENITIES: compact list
   ============================================================ */
.amenity-groups--compact { gap: var(--space-6); }
.amenity-groups--compact .amenity-group__title { font-size: var(--text-lg); padding-bottom: var(--space-2); margin-bottom: var(--space-3); }
.amenity-groups--compact .amenity-list { gap: 6px; }
.amenity-groups--compact .amenity-list li { font-size: var(--text-sm); padding-left: var(--space-4); line-height: 1.5; }
.amenity-groups--compact .amenity-list li::before { width: 6px; height: 6px; top: 0.55em; }
@media (max-width: 860px) { .amenity-groups--compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .amenity-groups--compact { grid-template-columns: 1fr; } }

/* ============================================================
   BOOK DIRECT + CREDENTIALS (directly under the hero)
   ============================================================ */
.direct { background: var(--bg); padding: var(--space-8) var(--gutter) var(--space-7); border-bottom: 1px solid var(--border); }
.direct__inner { max-width: var(--container); margin: 0 auto; display: grid; gap: var(--space-7); }
.quickbook { background: var(--surface-raised); border: 1px solid var(--border); padding: var(--space-5) var(--space-6); display: grid; gap: var(--space-4); }
.quickbook__deal { margin: 0; font-size: var(--text-base); color: var(--text); text-wrap: pretty; }
.quickbook__deal strong { font-weight: var(--fw-bold); color: var(--navy); }
.quickbook__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--space-4); align-items: end; }
.qb-field { display: grid; gap: 6px; }
.qb-field__label { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text); }
.qb-field__input {
  font: inherit; font-size: var(--text-base); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--border-strong);
  padding: 10px 0; min-height: 44px; border-radius: 0; width: 100%;
}
.qb-field__input:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 2px 0 -1px var(--navy); }
.quickbook__btn { white-space: nowrap; min-height: 48px; }
.creds { display: grid; grid-template-columns: 1fr 1fr; }
.cred { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-2) var(--space-6); color: var(--text); }
.cred + .cred { border-left: 1px solid var(--border); }
.cred:first-child { padding-left: 0; }
.cred__num { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--fw-regular); line-height: 1; color: var(--navy); white-space: nowrap; letter-spacing: var(--tracking-tight); }
.cred__body { display: grid; gap: 4px; }
.cred__title { font-weight: var(--fw-bold); font-size: var(--text-lg); color: var(--ink); }
.cred__text { font-size: var(--text-sm); color: var(--text-muted); max-width: 38ch; }
.cred:hover .cred__title { color: var(--link); }
@media (max-width: 860px) {
  .quickbook { padding: var(--space-5); }
  .quickbook__fields { grid-template-columns: 1fr 1fr; }
  .quickbook__fields .qb-field:nth-child(3) { grid-column: 1 / -1; }
  .quickbook__btn { grid-column: 1 / -1; justify-content: center; }
  .creds { grid-template-columns: 1fr; gap: var(--space-5); }
  .cred { padding: 0; }
  .cred + .cred { border-left: 0; border-top: 1px solid var(--border); padding-top: var(--space-5); }
}
.book__direct { color: var(--night-text); font-size: var(--text-base); margin: calc(-1 * var(--space-5)) 0 var(--space-6); }
.book__direct strong { color: var(--amber-glow); font-weight: var(--fw-bold); }

/* ============================================================
   EXPERIENCES: add to request list
   ============================================================ */
.svc-card__price--muted { color: var(--text-muted); font-weight: var(--fw-regular); }
.svc-add {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--fw-medium);
  color: var(--navy); background: transparent;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  padding: 7px 14px; min-height: 36px; cursor: pointer; margin-left: auto;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.svc-add:hover { border-color: var(--navy); }
.svc-add:active { transform: scale(0.97); }
.svc-add[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.svc-add:focus-visible, .req__toggle:focus-visible, .wa-float:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; }

/* ============================================================
   REQUEST TRAY + WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-deep); color: var(--white); font-size: 28px;
  box-shadow: 0 10px 30px rgba(19, 42, 56, 0.28);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wa-float:hover { background: var(--coral); color: var(--navy-deep); transform: translateY(-2px); }
.req { position: fixed; right: 88px; bottom: 20px; z-index: 800; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); }
.req[hidden], .req__panel[hidden] { display: none; }
.req__toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px;
  font-family: var(--font-body); font-size: var(--text-base); font-weight: var(--fw-medium);
  background: var(--coral); color: var(--navy-deep); border: 0; border-radius: var(--radius-pill); cursor: pointer;
  box-shadow: 0 10px 30px rgba(19, 42, 56, 0.24);
}
.req__toggle .ph { font-size: 20px; }
.req__count { min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--navy-deep); color: var(--white); font-size: var(--text-sm); display: inline-flex; align-items: center; justify-content: center; }
.req__panel {
  width: min(360px, calc(100vw - 40px)); background: var(--surface-raised);
  border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(19, 42, 56, 0.2);
  padding: var(--space-5); display: grid; gap: var(--space-3);
  margin-right: -68px;
}
.req__head { display: flex; align-items: center; justify-content: space-between; }
.req__title { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink); }
.req__close { background: none; border: 0; font-size: 20px; color: var(--ink); cursor: pointer; width: 44px; height: 44px; margin-right: -12px; }
.req__list { list-style: none; margin: 0; padding: 0; display: grid; max-height: 40vh; overflow: auto; }
.req__list li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--border); font-size: var(--text-base); color: var(--ink); }
.req__remove { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 16px; width: 36px; height: 36px; flex: none; }
.req__remove:hover { color: var(--coral-deep); }
.req__note { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.req__send { justify-content: center; gap: 8px; }
.req__send .ph { font-size: 20px; }
.req__clear { background: none; border: 0; font: inherit; font-size: var(--text-sm); color: var(--text-muted); text-decoration: underline; cursor: pointer; justify-self: center; padding: 6px; }
@media (max-width: 560px) {
  .req { right: 84px; bottom: 20px; }
  .req__toggle { padding: 0 16px; }
  .req__panel { margin-right: -64px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float:hover { transform: none; } }

/* Hero frame-sequence canvas (works in Safari; replaces <video> seeking) */
.hero__canvas { opacity: 0; transition: opacity 400ms var(--ease); }
.hero__canvas.is-ready { opacity: 1; }

/* Book-direct block under hero (hosts the live Lodgify bar) */
.direct__book { display: grid; gap: var(--space-4); justify-items: center; text-align: center; }
.direct__deal { margin: 0; font-size: var(--text-lg); color: var(--text); }
.direct__deal strong { color: var(--navy); font-weight: var(--fw-bold); }
.direct__book .book__widget { width: 100%; margin: 0 auto; }
.direct__promo { margin: 0; display: inline-flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; justify-content: center; font-size: var(--text-sm); color: var(--text); }
.direct .creds { max-width: 920px; margin: 0 auto; width: 100%; }
.lodgify-slot { min-height: 88px; }

/* ============================================================
   ROUND 3
   ============================================================ */
.hero__line { display: block; white-space: nowrap; }
.hero__title { font-size: min(var(--text-hero), 7.4vw); }

.nav__lang { font-size: var(--text-sm); font-weight: var(--fw-medium); letter-spacing: 0.08em; color: var(--white); padding: 10px 6px; flex: none; }
.nav--solid .nav__lang { color: var(--ink); }
.nav__lang:hover { color: var(--coral); }
@media (max-width: 860px) { .nav__lang { margin-left: auto; margin-right: var(--space-3); } }

/* The Villa: sticky image stack */
.villa-stack-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(var(--space-6), 5vw, var(--space-9)); align-items: stretch; }
.villa-stack { position: relative; }
.villa-stack__item { position: sticky; top: 72px; height: calc(100vh - 72px); margin: 0; overflow: hidden; background: var(--navy-deep); will-change: opacity, transform; }
.villa-stack__item + .villa-stack__item { margin-top: 12vh; }
.villa-stack__item img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.villa-stack__sticky { position: sticky; top: 72px; min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; padding-right: var(--gutter); max-width: 560px; }
.villa-stack__sticky .section__title { margin-top: var(--space-4); }
@media (max-width: 860px) {
  .villa-stack-wrap { grid-template-columns: 1fr; gap: var(--space-6); }
  .villa-stack__body { order: -1; padding: 0 var(--gutter); }
  .villa-stack__sticky { position: static; min-height: 0; padding: 0; max-width: none; text-align: center; align-items: center; }
  .villa-stack__item { top: 64px; height: 72svh; }
  .villa-stack__item + .villa-stack__item { margin-top: 8vh; }
}

/* Experiences: see all */
.svc-more { display: flex; justify-content: center; margin-top: var(--space-6); }
.svc-more[hidden] { display: none; }

/* Booking: from price */
.book__from { color: var(--night-text); font-size: var(--text-lg); margin: calc(-1 * var(--space-5)) 0 var(--space-2); }
.book__from strong { font-family: var(--font-display); font-weight: var(--fw-regular); font-size: var(--text-2xl); color: var(--white); }
.book__from + .book__direct { margin-top: 0; }

/* Reveal: titles line by line through a mask */
.rt-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.rt-w > span { display: inline-block; transform: translateY(110%); transition: transform 0.95s var(--ease); transition-delay: var(--d, 0s); }
.rt.in-view .rt-w > span { transform: none; }
/* Reveal: images zoom out softly */
.ri { overflow: hidden; }
.ri img { opacity: 0; transform: scale(1.14); transition: opacity 0.9s var(--ease), transform 1.6s var(--ease); }
.ri.in-view img { opacity: 1; transform: none; }
.gallery-item.ri.in-view:hover img { transform: scale(1.06); transition: transform var(--dur-slow) var(--ease); }

/* Mobile booking bar */
.mbar { display: none; }
@media (max-width: 860px) {
  .mbar {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 790;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--surface-raised); border-top: 1px solid var(--border);
    transform: translateY(110%); transition: transform var(--dur) var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar__text { margin: 0; display: grid; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.3; }
  .mbar__text strong { color: var(--ink); font-size: var(--text-base); }
  .mbar__btn { min-height: 48px; white-space: nowrap; }
  body.mbar-on .wa-float, body.mbar-on .req { bottom: 92px; }
  .wa-float, .req { transition: bottom var(--dur) var(--ease); }
}

/* Mobile: center text where it reads better */
@media (max-width: 860px) {
  .location-split__body { padding: 0 var(--gutter); text-align: center; }
  .location-highlights { text-align: center; }
  .room-feature__body, .room-card__body { text-align: center; }
  .svc-filters, .gallery-filters { justify-content: center; }
  .amenity-group__title { text-align: center; }
  .cred { flex-direction: column; text-align: center; gap: var(--space-2); }
  .cred__text { margin: 0 auto; }
  .reviews-link, .svc-footnote { text-align: center; }
  .footer__top { text-align: center; }
  .footer__brand { display: flex; flex-direction: column; align-items: center; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; }

  /* Reviews: compact 3 + 2 */
  .subratings { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4) var(--space-2); }
  .subrating { grid-column: span 2; min-width: 0; }
  .subrating:nth-child(4) { grid-column: 2 / span 2; }
  .subrating__val { font-size: var(--text-xl); }
  .subrating__label { font-size: 0.68rem; letter-spacing: 0.08em; }

  /* Gallery: swipe */
  .gallery-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-item { flex: 0 0 82%; scroll-snap-align: start; aspect-ratio: 4 / 5; }
  .gallery-more { display: none; }
}

/* Nav + pill wrap fixes */
.nav__cta, .pill { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 861px) {
  .nav__menu { gap: var(--space-4); font-size: var(--text-sm); }
}
@media (max-width: 1024px) {
  .nav__menu { display: none; }
  .nav__toggle { display: flex; }
  .nav__lang { margin-left: auto; margin-right: var(--space-3); }
}
@media (max-width: 1024px) {
  .nav--open { background: var(--surface-raised); }
  .nav--open .nav__logo--white { opacity: 0; }
  .nav--open .nav__logo--blue { opacity: 1; }
  .nav--open .nav__lang { color: var(--ink); }
  .nav--open .nav__menu {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface-raised); border-top: 1px solid var(--border);
    padding: var(--space-3) var(--gutter) var(--space-5); text-align: center;
  }
  .nav--open .nav__menu a { color: var(--ink); padding: 14px 0; font-size: var(--text-lg); }
}

/* ============================================================
   ROUND 4
   ============================================================ */
.hero__tint { background: rgba(19, 42, 56, 0.10); }
.hero__scrim { background: linear-gradient(0deg, rgba(19,42,56,0.62) 0%, rgba(19,42,56,0.18) 38%, rgba(19,42,56,0) 60%), linear-gradient(180deg, rgba(19,42,56,0.35) 0%, rgba(19,42,56,0) 22%); }
.hero__sticky { align-items: flex-end; }
.hero__overlay { padding-bottom: clamp(var(--space-7), 9vh, var(--space-9)); }
.hero__title { font-size: min(5.1rem, 6.3vw); margin-bottom: var(--space-4); }
.hero__sub { margin-bottom: 0; font-size: var(--text-base); }
@media (max-width: 860px) { .hero__title { font-size: min(6.3vw, 2.9rem); } .hero__sub { font-size: var(--text-sm); } }

.cred__num { font-size: calc(var(--text-3xl) * 0.8); }
.cred__title { font-size: var(--text-base); }
.cred__text { font-size: 0.8rem; }
.cred { gap: var(--space-4); }

.mline { display: block; white-space: nowrap; }
.manifesto__title { font-size: min(var(--text-3xl), 6.6vw); }

.spec-strip { flex-wrap: nowrap; justify-content: center; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.spec-strip::-webkit-scrollbar { display: none; }
@media (max-width: 860px) {
  .spec-strip { gap: 0.9em; font-size: clamp(0.5rem, 2.05vw, 0.78rem); }
  .spec-strip__item { font-size: 1em; letter-spacing: 0.05em; gap: 0.5em; }
  .spec-strip__item::before { width: 4px; height: 4px; }
}

.amenity-groups--compact .amenity-group { text-align: center; }
.amenity-groups--compact .amenity-group__title { text-align: center; }
.amenity-groups--compact .amenity-list { align-items: center; }
.amenity-groups--compact .amenity-list li { padding-left: 0; text-align: center; }
.amenity-groups--compact .amenity-list li::before { display: none; }

/* Reduced motion: reveals become fades only (no movement) */
html.rm .reveal { transform: none; }
html.rm .rt-w > span { transform: none; opacity: 0; transition: opacity 0.9s var(--ease); transition-delay: var(--d, 0s); }
html.rm .rt.in-view .rt-w > span { opacity: 1; }
html.rm .ri img { transform: none; transition: opacity 1s var(--ease); }

/* ============================================================
   ROUND 5
   ============================================================ */

/* Hero: lock to the large viewport so it stays put while mobile browser bars
   collapse, and keep the text clear of the bottom toolbar on first load. */
.hero { background: var(--deep); }
.hero__sticky { height: 100vh; height: 100lvh; }
@supports (height: 100svh) {
  .hero__overlay { padding-bottom: calc(clamp(var(--space-7), 9svh, var(--space-9)) + (100lvh - 100svh)); }
}
.hero__scrim { background: linear-gradient(0deg, rgba(16,28,40,0.72) 0%, rgba(16,28,40,0.2) 38%, rgba(16,28,40,0) 60%), linear-gradient(180deg, rgba(16,28,40,0.35) 0%, rgba(16,28,40,0) 22%); }

/* Book direct: dark band continuing from the hero */
.direct { background: var(--deep); border-bottom: 0; color: var(--night-text); }
.direct .cred { color: var(--night-text); }
.direct .cred__num, .direct .cred__title { color: var(--white); }
.direct .cred__text { color: rgba(237, 231, 216, 0.7); }
.direct .cred + .cred { border-color: rgba(252, 250, 245, 0.16); }
.direct .cred:hover .cred__title { color: var(--turq); }
.direct .direct__deal, .direct .direct__promo { color: var(--night-text); }
.direct .direct__deal strong { color: var(--white); }

/* Stars under the 5.0 rating */
.cred__score { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.cred__stars { display: flex; gap: 3px; color: var(--amber-glow); line-height: 0; }
.cred__stars svg { width: 14px; height: 14px; fill: currentColor; }

/* Social icons: header */
.nav__social { display: flex; align-items: center; gap: 2px; flex: none; }
.nav__social a { display: inline-flex; padding: 8px; font-size: 20px; line-height: 0; color: var(--white); transition: color var(--dur) var(--ease); }
.nav__social a:hover { color: var(--coral); }
.nav--solid .nav__social a, .nav--open .nav__social a { color: var(--ink); }
.nav--solid .nav__social a:hover, .nav--open .nav__social a:hover { color: var(--coral-deep); }
.nav__lang { margin-left: 0; }
@media (max-width: 1024px) {
  .nav__social { margin-left: auto; }
  .nav__lang { margin-left: 0; margin-right: var(--space-2); }
  .nav { gap: var(--space-3); }
}

/* Social icons: footer */
.footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer__social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); color: var(--ink); font-size: 20px;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer__social a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Instagram: latest posts */
.ig { padding-top: var(--space-7); }
.ig .eyebrow a { color: inherit; }
.ig .eyebrow a:hover { color: var(--link); }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.ig-item { min-width: 0; }
.ig-item .instagram-media { min-width: 0 !important; width: 100% !important; max-width: none !important; margin: 0 !important; border-radius: 12px !important; }
.ig-item blockquote.instagram-media:not(.instagram-media-rendered) {
  aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); font-size: var(--text-sm);
}
.ig-item blockquote.instagram-media a { color: var(--link); }
.ig-more { display: flex; justify-content: center; margin-top: var(--space-7); }
.ig-more .ph { font-size: 18px; }
@media (max-width: 860px) {
  .ig-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .ig-grid::-webkit-scrollbar { display: none; }
  .ig-item { flex: 0 0 84%; scroll-snap-align: start; }
}

/* Villa stack: dim the previous photo with a cheap overlay instead of a CSS filter,
   and keep compositor layers to the moving items only (lighter on phones). */
.villa-stack__item img { will-change: auto; }
.villa-stack__item::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; }
