/* ==========================================================================
   Villa Maré — design system
   ========================================================================== */

:root {
  --ivory: #f7f2ea;
  --sand: #e6d8c3;
  --driftwood: #8a7a66;
  --ink: #1d2a2e;
  --ocean: #12303a;
  --seaglass: #7fb3ac;
  --brass: #b08d57;
  --brass-ink: #6e5228; /* brass for text on light backgrounds (AA contrast) */

  --bg: var(--ivory);
  --fg: var(--ink);
  --muted: #5e584b; /* AA on ivory and on sand */
  --line: rgba(29, 42, 46, 0.14);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 88rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ocean); color: var(--ivory); padding: .6rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}
.display { font-size: clamp(3.2rem, 9vw, 9rem); }
h1 { font-size: clamp(2.8rem, 7vw, 7rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
em, .italic { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass-ink);
  display: inline-flex; align-items: center; gap: .9rem;
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: currentColor; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 38rem; }
p { margin: 0 0 1.2em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 11vw, 11rem); position: relative; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ocean); color: var(--ivory); }
.section--dark .lead, .section--dark .muted { color: rgba(247, 242, 234, .72); }
.section--dark .eyebrow { color: var(--seaglass); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.stack > * + * { margin-top: 1.4rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .9rem;
  padding: 1.05rem 2rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fg); transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn--solid { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn--solid::before { background: var(--ocean); }
.btn--solid:hover { border-color: var(--ocean); color: #fff; }
.btn--light { color: var(--ivory); }
.btn--light::before { background: var(--ivory); }
.btn--light:hover { color: var(--ocean); border-color: var(--ivory); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  padding-bottom: .35rem; border-bottom: 1px solid currentColor;
}
.link-arrow span { transition: transform .5s var(--ease); }
.link-arrow:hover span { transform: translateX(.45rem); }

/* ---------- Header: bar ⇄ right-edge rail ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.4rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  color: var(--ivory);
  transition: transform .6s var(--ease), background .5s ease, color .5s ease, padding .5s var(--ease), box-shadow .5s ease;
}
.site-header.is-morphing { transition: none; }
.site-header.is-solid {
  background: rgba(247, 242, 234, .92);
  backdrop-filter: blur(14px);
  color: var(--ink);
  padding-block: .9rem;
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid:not(.menu-open) .btn--light { color: var(--ink); }
.site-header.is-solid:not(.menu-open) .btn--light::before { background: var(--ink); }
.site-header.is-solid:not(.menu-open) .btn--light:hover { color: var(--ivory); border-color: var(--ink); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.menu-open { color: var(--ivory); background: transparent; box-shadow: none; backdrop-filter: none; transform: none; }

.logo { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .02em; line-height: 1; z-index: 2; display: inline-block; }
.logo small { display: block; font-family: var(--sans); font-size: .55rem; letter-spacing: .4em; text-transform: uppercase; opacity: .7; margin-top: .35rem; }
.logo__mark, .rail__dots, .rail__menu { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.nav a:not(.btn), .nav__trigger {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; position: relative; padding-block: .3rem;
}
.nav a:not(.btn)::after, .nav__trigger::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after, .nav__trigger:hover::after, .nav__trigger.is-current::after, .nav__group.is-open .nav__trigger::after { transform: scaleX(1); transform-origin: left; }
.nav__trigger { display: inline-flex; align-items: center; gap: .55rem; }
.nav__trigger svg { transition: transform .4s var(--ease); }
.nav__group.is-open .nav__trigger svg { transform: rotate(180deg); }
.nav__cta-mobile { display: none; }
.header__cta { padding: .75rem 1.5rem; }

/* mega menu */
.nav__group { position: relative; }
.mega {
  position: absolute; top: calc(100% + 1.2rem); left: 50%; min-width: 19.5rem; padding: .6rem;
  background: var(--ivory); color: var(--ink); border-radius: .7rem; box-shadow: 0 2rem 4rem -1.2rem rgba(18, 48, 58, .4);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, .6rem);
  transition: opacity .3s ease, transform .5s var(--ease), visibility 0s .3s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -1.4rem; height: 1.4rem; } /* hover bridge */
.nav__group.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega a { display: block; padding: .8rem 1rem !important; border-radius: .4rem; text-transform: none !important; letter-spacing: 0 !important; transition: background .25s ease; }
.mega a::after { display: none !important; }
.mega a:hover, .mega a:focus-visible { background: var(--sand); }
.mega a[aria-current="page"] b { color: var(--brass-ink); }
.mega b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.mega span { display: block; font-size: .8rem; color: var(--muted); }

.burger { display: none; width: 2.6rem; height: 2.6rem; position: relative; z-index: 2; }
.burger span { position: absolute; left: .5rem; right: .5rem; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 1.05rem; }
.burger span:nth-child(2) { top: 1.55rem; }
.menu-open .burger span:nth-child(1) { top: 1.3rem; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 1.3rem; transform: rotate(-45deg); }

/* ---- desktop: the rail ---- */
@media (min-width: 1024px) {
  .wrap { padding-right: max(var(--gutter), 5.5rem); } /* keep copy clear of the rail without ever reflowing */

  .site-header.is-rail {
    inset: 0 14px 0 auto; margin-block: auto; height: fit-content; width: 58px; padding: 14px 0;
    flex-direction: column; justify-content: flex-start; align-items: center; gap: 14px;
    background: rgba(18, 48, 58, .88); color: var(--ivory); border-radius: 29px;
    backdrop-filter: blur(16px);
    box-shadow: 0 1.6rem 3rem -1rem rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(247, 242, 234, .16);
  }
  .site-header.is-rail .logo__full, .site-header.is-rail .nav { display: none; }
  .site-header.is-rail .logo__mark {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.5rem; border: 1px solid rgba(247, 242, 234, .35); transition: background .3s ease, color .3s ease;
  }
  .site-header.is-rail .logo:hover .logo__mark { background: var(--ivory); color: var(--ocean); }
  .site-header.is-rail .rail__dots { display: flex; flex-direction: column; align-items: center; }
  .site-header.is-rail .rail__menu { display: block; position: relative; width: 40px; height: 40px; border-radius: 50%; transition: background .3s ease; }
  .site-header.is-rail .rail__menu:hover { background: rgba(247, 242, 234, .12); }
  .rail__menu span { position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor; transition: transform .5s var(--ease), opacity .3s ease; }
  .rail__menu span:nth-child(1) { top: 14px; }
  .rail__menu span:nth-child(2) { top: 20px; }
  .rail__menu span:nth-child(3) { top: 26px; }
  .is-expanded .rail__menu span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .is-expanded .rail__menu span:nth-child(2) { opacity: 0; }
  .is-expanded .rail__menu span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-header.is-rail .header__cta {
    writing-mode: vertical-rl; padding: 1rem .7rem; border-radius: 999px; background: var(--brass); border-color: var(--brass); color: #fff !important;
    font-size: .68rem; letter-spacing: .24em;
  }
  .site-header.is-rail .header__cta::before { background: var(--ivory); }
  .site-header.is-rail .header__cta:hover { color: var(--ocean) !important; }
}

.rail__dot { position: relative; width: 22px; height: 22px; display: grid; place-items: center; }
.rail__dot i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .4; transition: opacity .3s ease, transform .4s var(--ease), background .3s ease; }
.rail__dot:hover i { opacity: .9; }
.rail__dot.is-active i { opacity: 1; transform: scale(1.7); background: var(--seaglass); }
.rail__dot span {
  position: absolute; right: calc(100% + 18px); white-space: nowrap; pointer-events: none;
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory);
  background: var(--ocean); padding: .4rem .75rem; border-radius: .3rem; box-shadow: 0 .6rem 1.2rem -.4rem rgba(0, 0, 0, .4);
  opacity: 0; transform: translateX(6px); transition: opacity .25s ease, transform .35s var(--ease);
}
.rail__dot:hover span, .rail__dot:focus-visible span { opacity: 1; transform: none; }
@media (max-height: 640px) { .rail__dots { display: none !important; } }

/* expanded panel */
.rail-panel {
  position: fixed; inset: 0 0 0 auto; z-index: 99; width: min(23rem, 100vw);
  background: var(--ocean); color: var(--ivory);
  transform: translateX(100%); visibility: hidden; transition: transform .75s var(--ease), visibility 0s .75s;
  box-shadow: -2rem 0 4rem -1.5rem rgba(0, 0, 0, .5);
  display: none;
}
@media (min-width: 1024px) { .rail-panel { display: block; } }
.rail-panel.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.rail-panel__inner { height: 100%; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; padding: clamp(1.6rem, 6vh, 3.6rem) 5.2rem 1.6rem 2.2rem; display: flex; flex-direction: column; gap: .8rem; }
.rail-panel__label { font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--seaglass); margin: 1rem 0 0; }
.rail-panel__nav { display: grid; gap: .1rem; }
.rail-panel__nav a { font-family: var(--serif); font-size: clamp(1.3rem, 3.6vh, 1.85rem); line-height: 1.25; padding: .1rem 0; transition: color .3s ease, transform .5s var(--ease); }
.rail-panel__nav a:hover { color: var(--brass); transform: translateX(.35rem); }
.rail-panel__nav a[aria-current="page"] { color: var(--brass); font-style: italic; }
.rail-panel__sections { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; counter-reset: s; }
.rail-panel__sections li { counter-increment: s; }
.rail-panel__sections button {
  display: flex; gap: .9rem; align-items: baseline; width: 100%; text-align: left; padding: .45rem 0;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; transition: opacity .3s ease;
}
.rail-panel__sections button::before { content: counter(s, decimal-leading-zero); font-size: .62rem; color: var(--seaglass); }
.rail-panel__sections button:hover, .rail-panel__sections button.is-active { opacity: 1; }
.rail-panel__sections button.is-active { color: var(--brass); }
.rail-panel__foot { margin-top: auto; padding-top: 1.6rem; border-top: 1px solid rgba(247, 242, 234, .16); font-size: .85rem; opacity: .9; }
.rail-panel__foot p { margin: 1rem 0 0; color: rgba(247, 242, 234, .7); }

/* ---- below 1024px: burger + full-screen menu + book bar ---- */
@media (max-width: 1023px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0; background: var(--ocean); color: var(--ivory);
    flex-direction: column; justify-content: center; gap: 1.1rem;
    clip-path: circle(0% at calc(100% - 2.5rem) 2.5rem);
    transition: clip-path .9s var(--ease);
    pointer-events: none; overflow-y: auto; padding: 5rem 1rem 3rem;
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem); pointer-events: auto; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 2.1rem; letter-spacing: 0; text-transform: none; }
  .nav__group { display: contents; }
  .nav__trigger { display: none; }
  .mega { position: static; display: contents; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; border: 0; color: inherit; padding: 0; min-width: 0; }
  .mega::before { display: none; }
  .mega a { padding: 0 !important; background: none !important; }
  .mega b { font-size: 2.1rem; text-align: center; }
  .mega span { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 1rem; }
}
.bookbar {
  position: fixed; inset: auto 0 0 0; z-index: 90; display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); background: rgba(247, 242, 234, .95); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .6s var(--ease);
}
.bookbar p { margin: 0; line-height: 1.2; }
.bookbar small { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: block; }
.bookbar b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; }
.bookbar span { font-size: .8rem; color: var(--muted); }
.bookbar .btn { padding: .85rem 1.6rem; }
@media (max-width: 1023px) { .bookbar { display: flex; } .bookbar.is-visible { transform: none; } body:has(.bookbar) .site-footer { padding-bottom: 6rem; } }

/* ---------- Page loader ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 300; background: var(--ocean);
  display: grid; place-items: center; color: var(--ivory);
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .04em;
}
.no-js .curtain, .reduced-motion .curtain { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 36rem;
  display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,48,58,.35) 0%, rgba(18,48,58,0) 30%, rgba(18,48,58,.15) 60%, rgba(18,48,58,.72) 100%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(3rem, 8vh, 6rem); width: 100%; }
.hero__content .eyebrow { color: var(--ivory); margin-bottom: 1.6rem; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.hero__sub { max-width: 24rem; font-size: 1.05rem; opacity: .9; margin: 0; }
.scroll-cue {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 2rem;
  writing-mode: vertical-rl; font-size: .65rem; letter-spacing: .35em; text-transform: uppercase;
  display: flex; align-items: center; gap: 1rem;
}
.scroll-cue::after { content: ""; width: 1px; height: 4rem; background: currentColor; transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.page-hero { height: 70vh; height: 70svh; min-height: 28rem; }
.page-hero h1 { max-width: 14ch; }

/* ---------- Split text / reveals ---------- */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em 0; margin-bottom: -.14em; }
.word__inner { display: inline-block; will-change: transform; }

.img-mask { overflow: hidden; position: relative; background: var(--sand); }
.img-mask img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.img-mask[data-parallax] img { position: absolute; left: 0; top: -9%; height: 118%; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-11 { aspect-ratio: 1; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; border-top: 1px solid var(--line); padding-top: 2.5rem; margin-top: 4rem; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; }
.stat span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; padding-block: 2.2rem; border-block: 1px solid var(--line); }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 5vw, 4rem); display: inline-flex; align-items: center; gap: 3rem; padding-right: 3rem; }
.marquee__track span::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--brass-ink); }

/* ---------- Cards / teasers ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.card .img-mask { margin-bottom: 1.4rem; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .img-mask img { transition: transform 1.2s var(--ease); }
.card:hover .img-mask img { transform: scale(1.06); }

/* ---------- Quote ---------- */
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.2; max-width: 52rem; margin-inline: auto; }
.quote cite { display: block; margin-top: 2rem; font-family: var(--sans); font-style: normal; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; opacity: .7; }

/* ---------- CTA band ---------- */
.cta { position: relative; color: var(--ivory); text-align: center; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 120%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: rgba(18, 48, 58, .62); }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { max-width: 16ch; margin: 1.5rem auto 2.4rem; }
.cta .eyebrow { color: var(--ivory); }

/* ---------- Villa: horizontal scroller ---------- */
.hscroll { overflow: hidden; padding-block: clamp(2.5rem, 7vh, 6rem); }
.hscroll__head { padding-bottom: clamp(1.2rem, 3vh, 3rem); }
.hscroll__track { display: flex; gap: clamp(1.2rem, 2.4vw, 2.4rem); padding-inline: var(--gutter); width: max-content; }
/* sized by viewport height so the pinned section always fits on screen (4:5 cards) */
.space { width: clamp(15rem, calc((100vh - 28rem) * .8), 34rem); flex: none; }
.space .img-mask { aspect-ratio: 4 / 5; margin-bottom: 1.2rem; }
.space small { color: var(--brass-ink); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; }
.space h3 { margin: .3rem 0 .4rem; }
.space p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .hscroll { overflow: visible; } .space { width: min(78vw, 20rem); } .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; } .space { scroll-snap-align: start; } }

/* ---------- Amenities ---------- */
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 3rem; }
.amenities li { padding: 1.3rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.amenities li span:last-child { color: var(--muted); font-size: .85rem; text-align: right; }

/* ---------- Experiences rows ---------- */
.xp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.xp + .xp { margin-top: clamp(5rem, 10vw, 10rem); }
.xp:nth-of-type(even) { grid-template-columns: 1fr 1.1fr; }
.xp:nth-of-type(even) .xp__media { order: 2; }
.xp__num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--brass-ink); }
.xp__list { margin-top: 1.6rem; }
.xp__list li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; display: flex; justify-content: space-between; color: var(--muted); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 3rem; }
.filters button {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; padding: .7rem 1.4rem;
  border: 1px solid var(--line); border-radius: 999px; transition: all .4s var(--ease);
}
.filters button:hover { border-color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--ocean); color: var(--ivory); border-color: var(--ocean); }
.masonry { columns: 3; column-gap: 1.2rem; }
.masonry figure { margin: 0 0 1.2rem; break-inside: avoid; position: relative; cursor: zoom-in; overflow: hidden; }
.masonry figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.2rem 1rem; color: var(--ivory);
  background: linear-gradient(transparent, rgba(18,48,58,.7)); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; transition: opacity .5s ease;
}
.masonry figure:hover figcaption, .masonry figure:focus-visible figcaption { opacity: 1; }
.masonry figure[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 400; background: rgba(12, 28, 34, .96);
  display: none; align-items: center; justify-content: center; padding: 4rem 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; max-width: min(100%, 90rem); object-fit: contain; }
.lightbox p { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: var(--ivory); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; margin: 0; }
.lightbox button { position: absolute; color: var(--ivory); font-size: 2rem; width: 3.5rem; height: 3.5rem; line-height: 1; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: .5rem; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: .5rem; top: 50%; translate: 0 -50%; }

/* ---------- Contact / form ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 7vw, 8rem); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.6rem; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .7rem 0; transition: border-color .4s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brass); }
.field .err { color: #a3392e; font-size: .78rem; min-height: 1.2em; margin-top: .3rem; display: block; }
.field [aria-invalid="true"] { border-color: #a3392e; }
.field .field-label, .field legend { display: block; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---------- Custom controls ---------- */
.picker-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line);
  transition: border-color .4s ease;
}
.picker-trigger:hover, .picker-trigger[aria-expanded="true"], .picker-trigger.is-active { border-color: var(--brass); }
.picker-trigger:focus-visible { outline: 0; border-color: var(--brass); box-shadow: 0 1px 0 var(--brass); }
.picker-trigger[aria-invalid="true"] { border-color: #a3392e; }
.picker-value.is-placeholder { color: var(--muted); }
.picker-icon { flex: none; color: var(--brass-ink); transition: transform .5s var(--ease); }
.select.is-open .picker-icon { transform: rotate(180deg); }

/* select */
.select { z-index: 1; }
.select.is-open { z-index: 30; }
.select__list {
  position: absolute; left: 0; right: 0; top: calc(100% + .4rem); z-index: 5;
  max-height: 15rem; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ivory); border: 1px solid var(--line); border-radius: .4rem;
  box-shadow: 0 1.5rem 3rem -1rem rgba(18, 48, 58, .28);
  padding: .4rem; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-.5rem);
  transition: opacity .3s ease, transform .5s var(--ease), visibility 0s .3s;
  scrollbar-width: thin; scrollbar-color: var(--sand) transparent;
}
.select.is-up .select__list { top: auto; bottom: calc(100% + .4rem); transform: translateY(.5rem); }
.select.is-open .select__list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.select__list [role="option"] {
  padding: .75rem 1rem; border-radius: .25rem; cursor: pointer; font-size: .95rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background .2s ease;
}
.select__list [role="option"].is-active { background: var(--sand); }
.select__list [role="option"][aria-selected="true"]::after { content: ""; width: .45rem; height: .8rem; border: solid var(--brass); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }

/* stepper */
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.stepper__val { font-family: var(--serif); font-size: 1.5rem; line-height: 1; min-width: 2ch; text-align: center; }
.stepper__val.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: translateY(-3px) scale(1.12); } }
.stepper__btn {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line); font-size: 1.15rem; line-height: 1;
  display: grid; place-items: center; transition: background .3s ease, color .3s ease, border-color .3s ease, opacity .3s ease;
}
.stepper__btn:hover:not(:disabled) { background: var(--ocean); border-color: var(--ocean); color: var(--ivory); }
.stepper__btn:disabled { opacity: .3; cursor: not-allowed; }

/* chips (custom-drawn checkboxes) */
.chips__row { display: flex; flex-wrap: wrap; gap: .7rem; padding-top: .3rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 1.2rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.chip span::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; border: 1px solid currentColor; transition: background .35s ease, transform .35s var(--ease); }
.chip:hover span { border-color: var(--fg); }
.chip input:checked + span { background: var(--ocean); border-color: var(--ocean); color: var(--ivory); }
.chip input:checked + span::before { background: var(--seaglass); border-color: var(--seaglass); transform: scale(1.2); }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }

/* date-range picker */
.dp {
  position: absolute; z-index: 500; top: 0; left: 0; width: max-content; max-width: calc(100vw - 2rem);
  background: var(--ivory); color: var(--ink); border: 1px solid var(--line); border-radius: .6rem;
  box-shadow: 0 2.5rem 5rem -1.5rem rgba(18, 48, 58, .4);
  padding: 1.4rem 1.6rem 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(.6rem);
  transition: opacity .3s ease, transform .5s var(--ease), visibility 0s .3s;
}
.dp.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dp__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dp__hint { margin: 0; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-ink); text-align: center; flex: 1; }
.dp__nav { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, opacity .3s; }
.dp__nav:hover:not(:disabled) { background: var(--ocean); color: var(--ivory); border-color: var(--ocean); }
.dp__nav:disabled { opacity: .3; cursor: not-allowed; }
.dp__months { display: grid; grid-auto-flow: column; gap: 2.2rem; }
.dp__month { width: 17.5rem; }
.dp__title { font-size: 1.5rem; text-align: center; margin-bottom: .9rem; }
.dp__dow, .dp__days { display: grid; grid-template-columns: repeat(7, 1fr); }
.dp__dow span { text-align: center; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: .5rem; }
.dp__cell { aspect-ratio: 1; display: grid; place-items: center; }
.dp__cell.is-range { background: var(--sand); }
.dp__cell.is-preview.is-range { background: rgba(230, 216, 195, .55); }
.dp__cell.has-range.is-start { background: linear-gradient(90deg, transparent 50%, var(--sand) 50%); }
.dp__cell.has-range.is-end { background: linear-gradient(90deg, var(--sand) 50%, transparent 50%); }
.dp__cell.is-preview.is-start { background: linear-gradient(90deg, transparent 50%, rgba(230, 216, 195, .55) 50%); }
.dp__cell.is-preview.is-end { background: linear-gradient(90deg, rgba(230, 216, 195, .55) 50%, transparent 50%); }
.dp__day {
  width: 92%; aspect-ratio: 1; border-radius: 50%; font-size: .9rem; font-variant-numeric: tabular-nums;
  display: grid; place-items: center; position: relative; transition: background .25s ease, color .25s ease;
}
.dp__day:hover:not(:disabled):not([aria-pressed="true"]) { background: rgba(176, 141, 87, .22); }
.dp__day:disabled { color: var(--muted); opacity: .35; cursor: not-allowed; }
.dp__day.is-today::after { content: ""; position: absolute; bottom: .28rem; width: .22rem; height: .22rem; border-radius: 50%; background: var(--brass); }
.dp__day[aria-pressed="true"] { background: var(--ocean); color: var(--ivory); }
.dp__day[aria-pressed="true"].is-today::after { background: var(--seaglass); }
.dp__day:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.dp__foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); min-height: 3.4rem; }
.dp__summary { font-size: .85rem; color: var(--muted); }
.dp__actions { display: flex; gap: 1.2rem; align-items: center; }
.dp__clear { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; }
.dp__clear:hover { color: var(--ink); border-color: currentColor; }
.dp__done { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; background: var(--brass); color: #fff; padding: .6rem 1.3rem; border-radius: 999px; transition: background .3s; }
.dp__done:hover { background: var(--ocean); }

@media (max-width: 759px) { .dp__months { grid-auto-flow: row; } }
/* phones: bottom sheet */
@media (max-width: 640px) {
  .dp {
    position: fixed; inset: auto 0 0 0; top: auto !important; left: 0 !important; width: 100%; max-width: none;
    border-radius: 1.2rem 1.2rem 0 0; border-bottom: 0; padding: 1.2rem 1rem calc(1rem + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .dp.is-open { transform: none; }
  .dp__month { width: 100%; }
  .dp__cell { aspect-ratio: 1.15; }
  .dp__day { width: 2.6rem; }
  body.dp-sheet-open::after { content: ""; position: fixed; inset: 0; z-index: 499; background: rgba(12, 28, 34, .5); }
}

.form-success { display: none; padding: 3rem; border: 1px solid var(--line); text-align: center; }
.form-success.is-visible { display: block; }
.info dt { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-ink); margin-top: 2rem; }
.info dd { margin: .3rem 0 0; font-family: var(--serif); font-size: 1.5rem; }

.faq details { border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.5rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 1rem 0 0; color: var(--muted); max-width: 40rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ocean); color: var(--ivory); padding: clamp(4rem, 8vw, 7rem) 0 2rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(247,242,234,.15); }
.footer__top .logo { font-size: 2.4rem; }
.footer__top h4 { font-family: var(--sans); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--seaglass); margin-bottom: 1.2rem; }
.footer__top li { margin-bottom: .6rem; font-size: .92rem; opacity: .85; }
.footer__top a:hover { color: var(--brass); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; font-size: .75rem; opacity: .6; letter-spacing: .08em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-2, .xp, .xp:nth-of-type(even), .contact { grid-template-columns: 1fr; }
  .xp:nth-of-type(even) .xp__media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .masonry { columns: 1; }
  .form { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .curtain { display: none; }
}

/* ==========================================================================
   Phase 2 — shared UI additions
   ========================================================================== */

/* date picker: blocked / limited days, prices, legend */
.dp__day[aria-disabled="true"] { cursor: not-allowed; }
.dp__day.is-blocked { color: var(--muted); opacity: .45; text-decoration: line-through; text-decoration-thickness: 1px; }
.dp__day.is-limit:not(.is-blocked) { opacity: .35; }
.dp__day:hover[aria-disabled="true"] { background: none; }
.dp--prices .dp__day { flex-direction: column; gap: 0; line-height: 1.05; width: 96%; }
.dp--prices .dp__day.is-today::after { display: none; }
.dp__price { font-size: .56rem; letter-spacing: .02em; color: var(--brass-ink); font-weight: 500; }
.dp__day[aria-pressed="true"] .dp__price { color: var(--seaglass); }
.dp__legend { display: flex; gap: 1.4rem; font-size: .72rem; color: var(--muted); margin-top: .8rem; }
.dp__legend[hidden] { display: none; }
.dp__legend .lg { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .45rem; vertical-align: -1px; }
.lg--blocked { background: var(--sand); }
.lg--sel { background: var(--ocean); }

/* toasts */
.toasts { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 600; display: grid; gap: .6rem; max-width: min(24rem, calc(100vw - 2.4rem)); pointer-events: none; }
.toast {
  background: var(--ocean); color: var(--ivory); padding: .95rem 1.3rem; border-radius: .5rem; font-size: .9rem; line-height: 1.45;
  box-shadow: 0 1rem 2.4rem -.8rem rgba(18, 48, 58, .5); border-left: 3px solid var(--seaglass);
  opacity: 0; transform: translateY(.8rem); transition: opacity .4s ease, transform .5s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast--error { border-left-color: #e0786c; }
.toast--success { border-left-color: #8fd0a8; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; padding: 1rem; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s .35s; }
.modal.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.modal__scrim { position: absolute; inset: 0; background: rgba(12, 28, 34, .62); backdrop-filter: blur(4px); }
.modal__box {
  position: relative; background: var(--ivory); color: var(--ink); width: min(32rem, 100%); max-height: calc(100vh - 2rem); overflow: auto;
  padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: .8rem; box-shadow: 0 3rem 6rem -1.5rem rgba(0, 0, 0, .5);
  transform: translateY(1.2rem) scale(.98); transition: transform .6s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__box:focus { outline: 0; }
.modal__title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 1rem; }
.modal__body { color: var(--muted); }
.modal__body p:last-child { margin-bottom: 0; }
.modal__actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1.8rem; }
.modal__actions .btn { padding: .85rem 1.6rem; }

/* newsletter */
.newsletter { position: relative; display: flex; max-width: 24rem; border-bottom: 1px solid rgba(247,242,234,.35); margin-top: 1.4rem; }
.newsletter input { flex: 1; background: transparent; border: 0; color: var(--ivory); font: inherit; font-size: .9rem; padding: .8rem 0; min-width: 0; }
.newsletter input::placeholder { color: rgba(247,242,234,.55); }
.newsletter input:focus { outline: 0; }
.newsletter:focus-within { border-color: var(--brass); }
.newsletter button { color: var(--ivory); font-size: 1.2rem; padding: 0 .4rem; transition: transform .4s var(--ease), color .3s; }
.newsletter button:hover { color: var(--brass); transform: translateX(.3rem); }
.newsletter .err { position: absolute; top: 100%; left: 0; color: #f0a79d; font-size: .75rem; margin-top: .3rem; }
.site-header.is-rail.is-expanded { background: #1e4a58; }

/* side panel: hidden scrollbar + scroll cue */
.rail-panel__inner::-webkit-scrollbar { display: none; }
.rail-panel__more {
  position: absolute; left: 0; right: 0; bottom: 0; height: 5.2rem; padding: 0 5.2rem 1rem 2.2rem;
  display: flex; align-items: flex-end; gap: .7rem; color: var(--ivory);
  font-size: .64rem; letter-spacing: .26em; text-transform: uppercase;
  background: linear-gradient(to top, var(--ocean) 35%, rgba(18, 48, 58, 0));
  opacity: 0; visibility: hidden; transform: translateY(.6rem); pointer-events: none;
  transition: opacity .35s ease, transform .5s var(--ease), visibility 0s .35s;
}
.rail-panel.has-more.is-open .rail-panel__more { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.rail-panel__more svg { animation: nudge 1.8s var(--ease) infinite; color: var(--seaglass); }
.rail-panel__more:hover { color: var(--brass); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .rail-panel__more svg { animation: none; } }

/* home hero: clear the overlapping booking bar */
.hero--with-bar .hero__content { padding-bottom: calc(clamp(3rem, 8vh, 6rem) + 5.5rem); }
.hero--with-bar .scroll-cue { bottom: 6.5rem; }
@media (max-width: 900px) { .hero--with-bar .hero__content { padding-bottom: calc(clamp(3rem, 8vh, 6rem) + 7.5rem); } }
@media (max-width: 520px) { .hero--with-bar .hero__content { padding-bottom: 8.5rem; } .hero--with-bar .hero__row { gap: 1.2rem; } }
