/* ===== ROCHAL — design tokens ===== */
:root {
  --ivory: #F3EFE7;
  --black: #10100F;
  --espresso: #29231F;
  --champagne: #C9AE7B;
  --atlantic: #234C54;
  --terracotta: #B0522D; /* rare accent only — never a primary button */
  --ink-soft: rgba(16, 16, 15, 0.62);
  --ink-soft-on-dark: rgba(243, 239, 231, 0.68);
  --border: rgba(16, 16, 15, 0.12);
  --border-on-dark: rgba(243, 239, 231, 0.14);
  --overlay-dark: rgba(16, 16, 15, 0.55);
  --champagne-tint: rgba(201, 174, 123, 0.18);
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Manrope', sans-serif;
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--champagne);
  display: inline-block;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-editorial), transform 1s var(--ease-editorial); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Thin line that expands once the residence index reveals */
.residence-index.reveal .line { width: 0; transition: width 1s var(--ease-editorial) .25s; }
.residence-index.reveal.is-visible .line { width: 44px; }

/* ===== Film grain — very subtle, applied to fullscreen photographic moments ===== */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  opacity: .02; mix-blend-mode: overlay;
  background-repeat: repeat; background-size: 140px 140px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===== Arrow nudge on CTAs ===== */
.btn-primary-light::after, .btn-outline-dark::after, .btn-nav::after {
  content: "→"; margin-left: 8px; display: inline-block; transition: transform .3s var(--ease-editorial);
}
.btn-primary-light:hover::after, .btn-outline-dark:hover::after, .btn-nav:hover::after { transform: translateX(4px); }

/* ===== Navigation ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 64px);
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--ivory);
  transition: background .4s ease, backdrop-filter .4s ease, padding .35s ease, border-color .4s ease, color .4s ease;
}
.site-header.nav-scrolled {
  background: rgba(243, 239, 231, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 16px clamp(20px, 5vw, 64px);
  color: var(--black);
}
.site-logo {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(20px, 3vw, 26px); letter-spacing: 3px;
  color: inherit;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative; font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
  color: inherit; opacity: .82; padding-bottom: 4px;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: currentColor; transition: right .35s var(--ease-editorial);
}
.nav-links a:hover::after { right: 0; }

.btn-nav {
  border: 1px solid currentColor; padding: 11px 22px; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; border-radius: 2px;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn-nav:hover { background: var(--champagne); border-color: var(--champagne); color: var(--black); }

/* ===== Language switch ===== */
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch button {
  background: none; border: none; padding: 0; color: inherit;
  font-size: 11px; letter-spacing: 1.5px; opacity: .55;
}
.lang-switch button:hover, .lang-switch button.active { opacity: 1; }
.lang-switch span { opacity: .4; font-size: 11px; }
.mobile-nav .lang-switch { margin-top: 4px; }
.mobile-nav .lang-switch button, .mobile-nav .lang-switch span { font-size: 13px; letter-spacing: 2px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.menu-toggle span { width: 22px; height: 1px; background: currentColor; display: block; }
.mobile-nav { display: none; flex-direction: column; }
.mobile-nav.open { display: flex; }
@media (max-width: 900px) {
  .nav-links, .btn-nav.desktop-only { display: none; }
  .menu-toggle { display: flex; }
}
.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--ivory); color: var(--black);
  border-bottom: 1px solid var(--border);
  padding: 14px clamp(20px, 5vw, 64px) 22px; gap: 16px;
}
.mobile-nav a { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--black); }

/* ===== Icon rail ===== */
.icon-rail {
  position: fixed; left: clamp(12px, 2.5vw, 28px); top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 14px;
}
.icon-rail a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ivory); color: var(--black);
  box-shadow: 0 8px 20px rgba(16, 16, 15, 0.18);
  transition: background .2s ease, color .2s ease;
}
.icon-rail a:hover { background: var(--champagne); }
@media (max-width: 640px) { .icon-rail { display: none; } }

/* ===== Floating contact ===== */
.floating-contact {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: 24px; z-index: 95;
  display: flex; align-items: center; gap: 9px;
  background: var(--black); color: var(--ivory);
  padding: 15px 26px; border-radius: 2px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(16, 16, 15, 0.3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .3s ease;
}
.floating-contact.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-contact:hover { background: var(--champagne); color: var(--black); }

/* ===== Buttons ===== */
.btn-primary-light {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--black); color: var(--ivory);
  padding: 17px 34px; border-radius: 2px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}
.btn-primary-light:hover { background: var(--champagne); color: var(--black); }
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--ivory); color: var(--ivory);
  padding: 16px 34px; border-radius: 2px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}
.btn-outline-dark:hover { background: var(--ivory); color: var(--black); }

/* ===== Hero ===== */
#top { position: relative; height: 100vh; min-height: 640px; width: 100%; overflow: hidden; }
#top .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#top .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16,16,15,.72) 0%, rgba(16,16,15,.08) 45%, rgba(16,16,15,.3) 100%);
}
.hero-content {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(20px, 6vw, 72px) clamp(72px, 13vh, 130px); max-width: 980px;
}
.hero-eyebrow { color: var(--champagne); font-size: clamp(11px, 1vw, 13px); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 22px; }
.hero-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(64px, 11vw, 150px); line-height: .92; color: var(--ivory); }
.hero-sub { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(20px, 2.4vw, 30px); color: var(--ivory); margin-top: 24px; max-width: 620px; }
.hero-cta { margin-top: 40px; }
.scroll-cue { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ivory); opacity: .7; }
.scroll-cue .line { width: 1px; height: 42px; background: currentColor; overflow: hidden; position: relative; }
.scroll-cue .line::after { content: ""; position: absolute; top: -100%; left: 0; right: 0; height: 100%; background: var(--champagne); animation: scrollcue 2.2s ease-in-out infinite; }
@keyframes scrollcue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ===== The Residence ===== */
.residence { padding: clamp(120px, 16vh, 180px) clamp(20px, 6vw, 72px); background: var(--ivory); overflow: hidden; }
.residence-grid {
  display: grid; grid-template-columns: minmax(300px, .9fr) minmax(340px, 1.3fr);
  gap: clamp(40px, 6vw, 90px); align-items: center; max-width: 1440px; margin: 0 auto;
}
.residence-index { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 3px; color: var(--ink-soft); margin-bottom: 30px; text-transform: uppercase; }
.residence-index .line { width: 44px; height: 1px; background: var(--champagne); }
.residence-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(40px, 5.4vw, 74px); line-height: 1.08; color: var(--black); }
.residence-title .accent { color: var(--champagne); }
.residence-text { font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin-top: 26px; max-width: 420px; }
.residence-media { position: relative; max-width: 560px; margin-left: auto; margin-right: 8%; }
.residence-media img { width: 100%; height: auto; aspect-ratio: 1086 / 1448; object-fit: contain; border-radius: 4px; }
@media (max-width: 900px) {
  .residence-grid { grid-template-columns: 1fr; }
  .residence-media { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; order: -1; margin-bottom: 8px; }
}

/* ===== Rochal at a Glance ===== */
.glance { position: relative; background: var(--black); color: var(--ivory); padding: clamp(100px, 14vh, 160px) clamp(20px, 6vw, 72px); overflow: hidden; }
.glance-bg { position: absolute; inset: 0; z-index: 0; }
.glance-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .6s ease, transform 1.4s var(--ease-editorial);
}
.glance-bg img.is-visible { opacity: .3; transform: scale(1); }
.glance-bg::after { content: ""; position: absolute; inset: 0; background: rgba(16,16,15,.55); }
.glance-head, .glance-grid { position: relative; z-index: 1; }
.glance-head { max-width: 620px; margin: 0 auto clamp(60px, 8vh, 90px); }
.glance-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(38px, 5vw, 58px); margin-top: 16px; }
.glance-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-on-dark); max-width: 1440px; margin: 0 auto; }
.glance-feature { border-right: 1px solid var(--border-on-dark); transition: opacity .4s ease; }
.glance-feature:last-child { border-right: none; }
.glance-feature-content { padding: 44px 26px 8px; }
.glance-grid.is-hovering .glance-feature:not(.is-active) { opacity: .32; }
.glance-number { font-family: var(--font-serif); font-weight: 500; font-size: clamp(90px, 10vw, 180px); line-height: .88; color: var(--ivory); transition: color .3s ease; }
.glance-feature.is-active .glance-number { color: var(--champagne); }
.glance-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-top: 18px; color: var(--ink-soft-on-dark); transition: color .3s ease; }
.glance-feature.is-active .glance-label { color: var(--champagne); }
.glance-detail-line { width: 28px; height: 1px; background: var(--champagne); margin-top: 18px; opacity: .55; }
.glance-feature-img { display: none; }
@media (max-width: 900px) {
  .glance-bg { display: none; }
  .glance-grid { grid-template-columns: 1fr; border-top: none; }
  .glance-feature {
    border-right: none; border-bottom: 1px solid var(--border-on-dark);
    position: relative; padding: 0; min-height: 260px; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
  }
  .glance-feature-img {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .38; z-index: 0;
  }
  .glance-feature-content { position: relative; z-index: 1; padding: 28px 24px; }
}

/* ===== Explore Rochal ===== */
.explore { position: relative; background: var(--ivory); }
.explore-head { padding: clamp(90px, 12vh, 140px) clamp(20px, 6vw, 72px) clamp(40px, 6vh, 60px); max-width: 680px; }
.explore-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(38px, 5vw, 58px); margin-top: 16px; color: var(--black); }

.explore-pin-wrap { position: relative; height: auto; }
.explore-pin-wrap.js-pinned { height: 700vh; }
.explore-pin { position: relative; height: 100vh; overflow: hidden; background: var(--black); will-change: transform; }
/* Native position:sticky — html/body use overflow-x:clip (not hidden), which contains
   horizontal bleed the same way but doesn't create a scroll container, so sticky resolves
   correctly against the viewport. No JS ever computes or writes a vertical position here. */
.explore-pin-wrap.js-pinned .explore-pin { position: sticky; top: 0; }

.explore-track {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 28px);
  height: 100%; padding: 0 clamp(20px, 6vw, 72px);
  will-change: transform;
}
.explore-card {
  position: relative; flex: 0 0 auto;
  width: min(74vw, 640px); height: 78vh;
  border-radius: 4px; overflow: hidden; background: var(--espresso);
}
.explore-card .explore-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.explore-card .explore-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,16,15,.68) 0%, rgba(16,16,15,.05) 45%, rgba(16,16,15,.15) 100%); }
.explore-card-count { position: absolute; top: 20px; right: 22px; z-index: 1; color: var(--champagne); font-size: 12px; letter-spacing: 2px; }
.explore-card-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 24px 28px; color: var(--ivory); }
.explore-card-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px, 3.2vw, 40px); }
.explore-card-content p { margin-top: 8px; font-size: 14px; color: var(--ink-soft-on-dark); }

.explore-progress {
  position: absolute; left: 0; right: 0; bottom: clamp(22px, 4vh, 34px); z-index: 1;
  display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(20px, 6vw, 72px);
  color: var(--ink-soft-on-dark); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
}
.explore-progress-line { flex: 1 1 auto; height: 1px; background: var(--border-on-dark); position: relative; }
.explore-progress-line span { position: absolute; inset: 0 auto 0 0; width: 14%; background: var(--champagne); transition: width .1s linear; }

/* Fallback / mobile: native horizontal swipe, no JS pin */
@media (max-width: 900px) {
  .explore-pin-wrap, .explore-pin-wrap.js-pinned { height: auto !important; }
  .explore-pin { height: auto; position: static !important; padding-bottom: 60px; }
  .explore-track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 24px clamp(20px, 6vw, 72px); }
  .explore-card { width: 82vw; height: 60vh; scroll-snap-align: start; }
  .explore-progress { position: static; margin-top: 4px; padding: 0 clamp(20px, 6vw, 72px); }
}

.explore-cta { text-align: center; padding: clamp(70px, 10vh, 110px) clamp(20px, 6vw, 72px); background: var(--ivory); }
.explore-cta p { color: var(--ink-soft); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; }

/* ===== Fullscreen lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: #0B0B0A;
  display: none; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-counter { position: absolute; top: 24px; left: 24px; color: var(--ivory); font-size: 12px; letter-spacing: 2px; transition: opacity .25s ease; }
.lightbox-caption { position: absolute; bottom: 24px; left: 24px; color: var(--ink-soft-on-dark); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: none; border: none; color: var(--ivory); }
.lightbox-close { top: 20px; right: 24px; width: 32px; height: 32px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }
.lightbox-mode { position: absolute; top: 24px; right: 68px; display: flex; gap: 14px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.lightbox-mode button { background: none; border: none; color: var(--ink-soft-on-dark); }
.lightbox-mode button.active { color: var(--champagne); }
.lightbox-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 80px 90px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-grid { display: none; width: 100%; height: 100%; overflow-y: auto; padding: 90px clamp(20px, 6vw, 72px) 40px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.lightbox-grid img { width: 100%; height: 160px; object-fit: cover; cursor: pointer; }
.lightbox.grid-mode .lightbox-stage { display: none; }
.lightbox.grid-mode .lightbox-grid { display: grid; }
@media (max-width: 640px) {
  .lightbox-stage { padding: 60px 20px; }
  .lightbox-prev, .lightbox-next { display: none; }
}

/* ===== Private Suites ===== */
.suites { background: var(--black); color: var(--ivory); padding: clamp(100px, 14vh, 160px) clamp(20px, 6vw, 72px); text-align: center; }
.suites-head { max-width: 640px; margin: 0 auto clamp(50px, 7vh, 80px); }
.suites-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(42px, 6vw, 80px); margin-top: 16px; }
.suites-sub { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft-on-dark); margin-top: 16px; }
.suites-media { position: relative; max-width: 1100px; margin: 0 auto; border-radius: 4px; overflow: hidden; height: clamp(360px, 52vw, 560px); }
.suites-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease-editorial); }
.suites-media img.is-active { opacity: 1; }
.suites-nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 26px; font-size: 12px; letter-spacing: 2px; color: var(--ink-soft-on-dark); }
.suites-nav button { background: none; border: 1px solid var(--border-on-dark); border-radius: 50%; color: var(--ivory); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; transition: border-color .2s ease, color .2s ease; }
.suites-nav button:hover { border-color: var(--champagne); color: var(--champagne); }

/* ===== By the Pool — full-bleed photo moment, click-toggle between day/night (no scroll effect) ===== */
.day-night { position: relative; height: 90vh; min-height: 480px; overflow: hidden; }
.day-night-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.day-night-img.is-active { opacity: 1; }
.day-night-overlay { position: absolute; inset: 0; background: rgba(16,16,15,.32); }
.day-night-content { position: absolute; top: clamp(50px, 8vh, 80px); left: clamp(20px, 6vw, 72px); z-index: 2; color: var(--ivory); max-width: 520px; }
.day-night-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.day-night-toggle { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.day-night-toggle button { background: none; border: none; padding: 0; color: inherit; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .55; }
.day-night-toggle button:hover, .day-night-toggle button.active { opacity: 1; }
.day-night-toggle span { opacity: .4; font-size: 12px; }
@media (max-width: 900px) {
  .day-night { height: 70vh; }
}

/* ===== Sunset Silence ===== */
.sunset { position: relative; height: 100svh; width: 100vw; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.sunset img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sunset-overlay { position: absolute; inset: 0; background: rgba(16,16,15,.28); }
.sunset-content { position: relative; z-index: 1; color: var(--ivory); }
.sunset-eyebrow { font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--champagne); }
.sunset-title { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 6vw, 68px); margin-top: 20px; }
header.hide-on-sunset, .icon-rail.hide-on-sunset { opacity: 0; pointer-events: none; }

/* ===== Agadir / Location ===== */
.agadir { padding: clamp(100px, 14vh, 160px) clamp(20px, 6vw, 72px); background: var(--ivory); }
.agadir-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.agadir-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(38px, 6vw, 68px); line-height: 1.1; margin-top: 16px; color: var(--black); }
.agadir-facts { display: flex; justify-content: center; gap: 32px; margin: 40px 0; flex-wrap: wrap; }
.agadir-facts span { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-soft); }
.agadir-facts span:not(:last-child)::after { content: "·"; margin-left: 32px; color: var(--champagne); }
.agadir-address { font-size: 14px; color: var(--ink-soft); margin-bottom: 36px; }
.map-panel { max-width: 900px; margin: 0 auto; border-radius: 4px; overflow: hidden; height: 0; opacity: 0; transition: height .5s var(--ease-editorial), opacity .5s ease; }
.map-panel.open { height: clamp(320px, 40vw, 440px); opacity: 1; margin-top: 40px; }
.map-panel iframe { width: 100%; height: 100%; border: 0; }

/* ===== Contact / CTA ===== */
#contact { position: relative; padding: clamp(110px, 16vh, 170px) clamp(20px, 6vw, 72px); text-align: center; overflow: hidden; }
#contact .contact-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#contact .contact-overlay { position: absolute; inset: 0; background: rgba(16,16,15,.72); }
.contact-inner { position: relative; max-width: 640px; margin: 0 auto; color: var(--ivory); }
.contact-eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--champagne); }
.contact-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin-top: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 40px; }
.contact-phone { margin-top: 30px; font-size: 14px; color: var(--ink-soft-on-dark); }

/* ===== Footer ===== */
footer {
  padding: 36px clamp(20px, 6vw, 72px); background: var(--black); color: var(--ivory);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
footer .footer-logo { font-family: var(--font-serif); font-size: 20px; letter-spacing: 2px; }
footer .footer-meta { font-size: 12px; color: var(--ink-soft-on-dark); }

/* ===== Booking modal — availability calendar (own component, independent from the lightbox) ===== */
.booking-modal {
  position: fixed; inset: 0; z-index: 210;
  display: none; align-items: center; justify-content: center;
  padding: 24px; background: var(--overlay-dark);
}
.booking-modal.open { display: flex; }
.booking-modal-panel {
  position: relative; width: min(560px, 100%);
  max-height: min(720px, 90vh); overflow-y: auto;
  background: var(--ivory); color: var(--black);
  border-radius: 4px; padding: clamp(28px, 5vw, 48px);
  transform: translateY(18px); opacity: 0;
  transition: transform .4s var(--ease-editorial), opacity .4s var(--ease-editorial);
}
.booking-modal.open .booking-modal-panel { transform: translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .booking-modal-panel, .booking-modal.open .booking-modal-panel { transition: opacity .2s ease; transform: none; }
}

.booking-modal-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; color: var(--black); opacity: .6;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  transition: opacity .2s ease;
}
.booking-modal-close:hover, .booking-modal-close:focus-visible { opacity: 1; }
.booking-modal button:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }

.booking-modal-head { padding-right: 32px; }
.booking-modal-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(24px, 3.4vw, 32px); margin-top: 10px; color: var(--black); }

.booking-calendar { margin-top: clamp(24px, 4vw, 32px); }
.booking-calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.booking-month-label { font-family: var(--font-serif); font-weight: 500; font-size: clamp(17px, 2.2vw, 20px); }
.booking-nav-btn {
  background: none; border: 1px solid var(--border); border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  color: var(--black); transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
.booking-nav-btn:hover { border-color: var(--champagne); color: var(--champagne); }
.booking-nav-btn:disabled { opacity: .3; cursor: default; }
.booking-nav-btn:disabled:hover { border-color: var(--border); color: var(--black); }

.booking-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.booking-weekdays span {
  display: block; text-align: center; font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink-soft); padding-bottom: 6px;
}
.booking-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; transition: opacity .2s ease; }
.booking-grid.is-loading { opacity: .4; pointer-events: none; }
.booking-day-empty { visibility: hidden; }
.booking-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid transparent; border-radius: 2px;
  font-size: 13px; color: var(--black);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.booking-day:not(:disabled):hover { border-color: var(--champagne); }
.booking-day:disabled { color: var(--border); cursor: default; }
.booking-day.is-today { font-weight: 700; }
.booking-day.is-in-range { background: var(--champagne-tint); }
.booking-day.is-checkin, .booking-day.is-checkout { background: var(--black); color: var(--ivory); border-color: var(--black); }

.booking-status { margin-top: 14px; font-size: 13px; color: var(--ink-soft); text-align: center; min-height: 18px; }
.booking-status.is-error { color: var(--terracotta); }

.booking-fallback {
  display: none; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 4px; text-align: center;
}
.booking-fallback.visible { display: flex; }
.booking-fallback p { font-size: 14px; color: var(--ink-soft); }
.booking-fallback .btn-outline-dark { border-color: var(--black); color: var(--black); padding: 13px 26px; }
.booking-fallback .btn-outline-dark:hover { background: var(--black); color: var(--ivory); }

.booking-selection {
  display: flex; align-items: center; gap: 20px;
  margin-top: clamp(24px, 4vw, 32px); padding-top: 20px; border-top: 1px solid var(--border);
}
.booking-selection-field { flex: 1; min-width: 0; }
.booking-selection-label { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.booking-selection-value { font-family: var(--font-serif); font-size: clamp(16px, 2.2vw, 20px); }
.booking-selection-divider { width: 1px; height: 30px; background: var(--border); flex: 0 0 auto; }

.booking-continue { width: 100%; justify-content: center; margin-top: 22px; }
.booking-continue:disabled { opacity: .35; cursor: default; }
.booking-continue:disabled:hover { background: var(--black); color: var(--ivory); }

/* ===== Booking modal — step switching (dates / details / success) ===== */
.booking-step { display: none; }
.booking-modal[data-step="dates"] .booking-step[data-step-panel="dates"],
.booking-modal[data-step="details"] .booking-step[data-step-panel="details"],
.booking-modal[data-step="success"] .booking-step[data-step-panel="success"] { display: block; }

.booking-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; margin-bottom: 20px;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft);
  transition: color .2s ease;
}
.booking-back-btn:hover { color: var(--black); }

.booking-recap {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: clamp(24px, 4vw, 32px); padding-bottom: 20px; border-bottom: 1px solid var(--border);
}

/* ===== Booking modal — guest details form ===== */
.booking-form { display: flex; flex-direction: column; gap: 18px; }
.booking-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking-field { display: flex; flex-direction: column; gap: 6px; }
.booking-field label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }
.booking-field input, .booking-field textarea {
  font-family: inherit; font-size: 15px; color: var(--black);
  background: none; border: none; border-bottom: 1px solid var(--border);
  padding: 8px 0; transition: border-color .2s ease; border-radius: 0;
}
.booking-field input:focus, .booking-field textarea:focus { outline: none; border-color: var(--champagne); }
.booking-field input[aria-invalid="true"], .booking-field textarea[aria-invalid="true"] { border-color: var(--terracotta); }
.booking-field textarea { resize: vertical; min-height: 64px; }
.booking-field-error { font-size: 12px; color: var(--terracotta); min-height: 15px; }

.booking-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.booking-form-error { margin-top: 4px; font-size: 13px; color: var(--terracotta); text-align: center; min-height: 16px; }

.booking-success { text-align: center; padding: clamp(20px, 4vw, 32px) 0; }
.booking-success:focus { outline: none; }
.booking-success-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(26px, 3.6vw, 34px); color: var(--black); }
.booking-success-text { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-top: 16px; max-width: 420px; margin-left: auto; margin-right: auto; }
.booking-success .btn-outline-dark { margin-top: 28px; border-color: var(--black); color: var(--black); }
.booking-success .btn-outline-dark:hover { background: var(--black); color: var(--ivory); }

@media (max-width: 640px) {
  .booking-modal { padding: 0; align-items: flex-end; }
  .booking-modal-panel { width: 100%; max-height: 92vh; border-radius: 12px 12px 0 0; padding: 26px 20px 30px; }
  .booking-selection { gap: 14px; }
}
@media (max-width: 480px) {
  .booking-form-row { grid-template-columns: 1fr; }
}
