/* ==========================================================================
   Villa Spenser — styles
   Palette from the watercolour logo: Pompeian red trim, cypress green,
   terracotta roof, lime-washed white and the black wordmark.
   Layout: full-screen "chapters" (hero → place) glide one per wheel step,
   then booking and footer scroll freely.
   ========================================================================== */

:root {
  /* Brand */
  --red-700: #8C1A28;
  --red-800: #721421;
  --red-100: #F4E2E0;
  --terracotta: #C8705F;
  --terracotta-soft: #E7B3A4;
  --cypress-700: #2F5B45;

  /* Neutrals */
  --cream: #F4EFE6;
  --paper: #FBF8F3;
  --sand: #E8DFD0;
  --line: #DDD2C2;
  --ink: #1B1815;
  --ink-2: #2A2520;
  --stone: #685E55;
  --sage-950: #171C17;
  --sage-900: #1F2620;
  --sage-800: #2B332C;
  --sage-600: #4A5546;
  --on-dark: #F4EFE6;
  --on-dark-muted: #C9C2B5;

  /* Semantic */
  --bg: var(--cream);
  --text: var(--ink);
  --text-muted: var(--stone);
  --accent: var(--red-700);
  --accent-hover: var(--red-800);
  --on-accent: #FFFFFF;
  --error: #A3261F;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px;
  --gutter: clamp(16px, 5vw, 88px);
  --header-h: 76px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 180ms;
  --t-med: 360ms;

  --z-header: 40;
  --z-sheet: 90;
  --z-overlay: 100;
  --z-curtain: 1000;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sage-950); color: var(--text);
  font-family: var(--font-body); font-size: 17px; font-weight: 300; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-2); top: -100px; z-index: calc(var(--z-curtain) + 1); background: var(--ink); color: var(--on-dark); padding: var(--s-1) var(--s-2); text-decoration: none; }
.skip-link:focus { top: var(--s-2); }
.small { font-size: 14px; }
.muted { color: var(--text-muted); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 5.6vw, 5.6rem); line-height: .98; letter-spacing: -.012em;
}
.display em { font-style: italic; font-weight: 300; }
.display--hero { font-size: clamp(3rem, 7.4vw, 7.6rem); }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln__in { display: inline-block; will-change: transform; }
.display--md { font-size: clamp(2.2rem, 4.2vw, 4.2rem); }
.display--sm { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; }
.eyebrow {
  display: inline-block; margin: 0 0 var(--s-3);
  font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
}
.eyebrow--rule { padding-bottom: 10px; border-bottom: 1px solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 45%, transparent); }
.eyebrow--light { color: var(--on-dark); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.18rem); max-width: 34em; }

/* Section number plate: "01 / THE VILLA" */
.plate {
  position: absolute; z-index: 3; left: var(--gutter); top: calc(var(--header-h) + clamp(24px, 5vh, 56px));
  display: flex; flex-direction: column; gap: 2px; color: var(--on-dark); pointer-events: none;
}
.plate__num { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: .9; }
.plate__title { font-size: 10px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.plate--dark { color: var(--ink); }
.plate--static { position: static; margin-bottom: var(--s-5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 var(--s-4); border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--on-dark); text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) ease;
}
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--block { width: 100%; }
.btn__count { opacity: .7; letter-spacing: .08em; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn[aria-busy="true"] .btn__label::after { content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px 0 5px;
  border: 1px solid rgba(27,24,21,.16); border-radius: 999px; background: rgba(255,255,255,.35);
  font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.pill:hover { background: rgba(255,255,255,.7); border-color: rgba(27,24,21,.3); }
.pill__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-dark); }
.pill__icon svg, .icon-btn svg, .hero__pause svg, .form-success svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); background: transparent; border-radius: 50%;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Curtain (loading) ---------- */
.curtain { position: fixed; inset: 0; z-index: var(--z-curtain); pointer-events: none; }
.curtain__stripes { position: absolute; inset: 0; display: flex; }
.curtain__stripes i { flex: 1; background: var(--sage-900); border-right: 1px solid rgba(244,239,230,.06); transform-origin: top; }
.curtain__mark { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; }
.curtain__mark img { width: min(240px, 50vw); filter: invert(1) blur(14px); opacity: .25; }
.curtain__count { font-size: 11px; letter-spacing: .3em; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.no-js .curtain { display: none; }
body.is-loading { overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header); height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-3);
  padding-inline: clamp(16px, 3vw, 40px);
  background: rgba(226, 220, 209, .95); color: var(--ink);
  border-bottom: 1px solid rgba(27,24,21,.08);
}
.site-header__logo { justify-self: start; position: relative; z-index: 2; }
.site-header__logo img { height: 52px; width: auto; }
@media (max-width: 600px) { :root { --header-h: 68px; } .site-header__logo img { height: 44px; } }
.site-nav ul { display: flex; gap: clamp(14px, 2vw, 32px); }
.site-nav a { position: relative; display: block; padding: 10px 0; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out); }
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: var(--s-2); }
.lang-switch { display: flex; }
.lang-switch button { min-width: 34px; min-height: 36px; padding: 0 5px; border: 0; background: none; font-size: 11px; font-weight: 500; letter-spacing: .12em; opacity: .55; transition: opacity var(--t-fast) ease; }
.lang-switch button:hover, .lang-switch button[aria-pressed="true"] { opacity: 1; }
.lang-switch button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 6px; }
.lang-switch--mobile { display: none; }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; padding: 0; z-index: 2; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor; content: ""; transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast); }
.menu-toggle__bars { top: 21px; }
.menu-toggle__bars::before { left: 0; top: -7px; }
.menu-toggle__bars::after { left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr; }
  .menu-toggle { display: block; }
  .site-header__actions > .lang-switch { display: none; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1; background: var(--cream);
    display: flex; flex-direction: column; justify-content: center; gap: var(--s-5); padding: var(--header-h) var(--gutter) var(--s-5);
    opacity: 0; visibility: hidden; transition: opacity var(--t-med) ease, visibility var(--t-med);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { font-family: var(--font-display); font-size: 2.3rem; font-weight: 300; letter-spacing: 0; text-transform: none; }
  .site-nav a::after { display: none; }
  .lang-switch--mobile { display: flex; gap: var(--s-2); }
  .lang-switch--mobile button { font-size: 14px; min-width: 44px; min-height: 44px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 560px) {
  .site-header__actions .pill span:last-child { display: none; }
  .site-header__actions .pill { padding-right: 5px; }
}

/* ---------- Chapters ---------- */
.chapter { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; color: var(--on-dark); background: var(--sage-900); }

/* ---------- Hero ---------- */
.hero__film { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--sage-950); }
.hero__frame { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; will-change: transform; backface-visibility: hidden; }
.hero__frame.is-active { opacity: 1; }
.hero__frame.is-active img { animation: kenburns 9s linear both; }
.hero__frame:nth-child(2n).is-active img { animation-name: kenburns-b; }
.hero__frame.is-intro img { animation: hero-intro 3.2s var(--ease-out) both, kenburns 9s linear 3.2s both; }
@keyframes kenburns { from { transform: scale(1.08) translate3d(1%, .4%, 0); } to { transform: scale(1.01) translate3d(-.6%, -.3%, 0); } }
@keyframes kenburns-b { from { transform: scale(1.01) translate3d(-1%, 0, 0); } to { transform: scale(1.08) translate3d(.6%, -.6%, 0); } }
@keyframes hero-intro { from { transform: scale(1.18); opacity: .4; } to { transform: scale(1.08) translate3d(1%, .4%, 0); opacity: 1; } }
.hero__light {
  position: absolute; inset: -20%; pointer-events: none; opacity: .18; will-change: transform;
  background: radial-gradient(40% 35% at 30% 30%, rgba(255,196,140,.75), transparent 70%), radial-gradient(30% 30% at 80% 70%, rgba(200,112,95,.5), transparent 70%);
  animation: light-drift 18s ease-in-out infinite alternate;
}
@keyframes light-drift { from { transform: translate3d(-6%, -3%, 0) rotate(0deg); } to { transform: translate3d(6%, 4%, 0) rotate(8deg); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, rgba(17,20,16,.86) 0%, rgba(17,20,16,.35) 42%, rgba(17,20,16,.05) 70%, rgba(17,20,16,.25) 100%),
  linear-gradient(to right, rgba(17,20,16,.55), transparent 58%); }
.hero__content { position: absolute; left: var(--gutter); bottom: clamp(56px, 11vh, 120px); max-width: min(760px, 58vw); }
.hero__h1 { margin: 0 0 var(--s-3); font-weight: inherit; }
.hero__h1 > .display { display: block; }
.hero__h1 > .eyebrow { line-height: 1.6; }
.hero__sub { max-width: 30em; font-size: 1.08rem; color: rgba(244,239,230,.9); margin: 0; }
.hero-card {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 11vh, 120px); width: min(360px, 30vw);
  padding: 28px 28px 20px; background: rgba(23, 28, 23, .9); color: var(--on-dark);
  border: 1px solid rgba(244,239,230,.14);
}
.hero-card__kicker { margin: 0 0 6px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--terracotta-soft); }
.hero-card__title { font-family: var(--font-display); font-size: 2rem; line-height: 1.05; margin-bottom: 8px; }
.hero-card__text { font-size: 14px; color: var(--on-dark-muted); margin-bottom: 16px; }
.hero-card__form { display: grid; gap: 10px; }
.hc-field { display: flex; flex-direction: column; border-bottom: 1px solid rgba(244,239,230,.22); }
.hc-field label { font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-muted); }
.hc-field input, .hc-field select { border: 0; background: transparent; color: var(--on-dark); padding: 6px 0 8px; min-height: 40px; font-size: 16px; color-scheme: dark; }
.hc-field select option { color: var(--ink); }
.hc-field:focus-within { border-bottom-color: var(--on-dark); }
.hero-card .btn { margin-top: 8px; }
.hero-card__foot { margin: 12px 0 0; font-size: 12px; color: var(--on-dark-muted); text-align: center; }
.hero__pause { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 24px); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(244,239,230,.35); background: rgba(23,28,23,.3); color: var(--on-dark); }
.hero__pause .i-play, .hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }
.hero__cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--on-dark-muted); }
.hero__cue i { width: 1px; height: 38px; background: rgba(244,239,230,.3); position: relative; overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; inset: 0; background: var(--on-dark); animation: drip 2.2s var(--ease-out) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Cinematic teaser chapters ---------- */
.cine__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cine__bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.cine__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, rgba(17,20,16,.82) 0%, rgba(17,20,16,.3) 45%, rgba(17,20,16,.08) 70%, rgba(17,20,16,.3) 100%),
  linear-gradient(to right, rgba(17,20,16,.72), rgba(17,20,16,.2) 45%, transparent 66%); }
.cine__shade--right { background:
  linear-gradient(to top, rgba(17,20,16,.82) 0%, rgba(17,20,16,.3) 45%, rgba(17,20,16,.1) 70%, rgba(17,20,16,.3) 100%),
  linear-gradient(to left, rgba(17,20,16,.72), rgba(17,20,16,.2) 45%, transparent 66%); }
/* the column is as wide as its headline, so the rule and numbers below line up with the text */
.cine__content { position: absolute; left: var(--gutter); bottom: clamp(36px, 6.5vh, 68px); width: fit-content; max-width: min(900px, 64vw); }
.cine__content h2 { margin-bottom: var(--s-3); font-size: clamp(2.6rem, min(5.6vw, 7.8vh), 5.6rem); }
/* short screens (laptops, browser zoom): smaller headlines so the text never reaches the chapter label at the top */
@media (min-width: 1001px) and (max-height: 820px) {
  .cine__content h2 { font-size: clamp(2.2rem, min(4.8vw, 6.2vh), 4.4rem); margin-bottom: var(--s-2); }
  .cine__content .cine__text { font-size: .98rem; }
  .cine__content .eyebrow { margin-bottom: var(--s-2); }
  .cine--center .cine__content { bottom: clamp(36px, 6.5vh, 68px); transform: translateX(-50%); }
}
.cine__text { max-width: 30em; font-size: 1.05rem; font-weight: 400; color: rgba(244,239,230,.95); margin: 0; }
/* text over photos: a soft shadow keeps it readable on bright parts of the picture */
.cine__content, .hero__content, .comforts__content, .chapter .plate { text-shadow: 0 1px 2px rgba(10,12,9,.35), 0 2px 18px rgba(10,12,9,.45); }
.cine__content .eyebrow, .hero__content .eyebrow { color: rgba(244,239,230,.92); }
.cine__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin: clamp(24px, 4.5vh, 44px) 0 0; padding-top: 18px; border-top: 1px solid rgba(244,239,230,.3); text-align: left; }
.cine__stats div { display: flex; flex-direction: column; gap: 4px; }
.cine__stats div:nth-child(2) { align-items: center; text-align: center; }
.cine__stats div:nth-child(3) { align-items: flex-end; text-align: right; }
.cine__stats dd { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 3.4vw, 3.4rem); line-height: 1; font-variant-numeric: lining-nums; }
.cine__stats dt { font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,239,230,.85); white-space: nowrap; }
.cine--right .cine__content { left: auto; right: var(--gutter); text-align: right; }
.cine--right .cine__text { margin-left: auto; }
.cine--right .cine__shade { background:
  linear-gradient(to top, rgba(17,20,16,.82) 0%, rgba(17,20,16,.3) 45%, rgba(17,20,16,.08) 70%, rgba(17,20,16,.3) 100%),
  linear-gradient(to left, rgba(17,20,16,.72), rgba(17,20,16,.2) 45%, transparent 66%); }
.cine--center .cine__content { left: 50%; right: auto; bottom: 50%; transform: translate(-50%, 50%); text-align: center; max-width: min(900px, 88vw); }
.cine--center .cine__text { margin-inline: auto; }
.cine--center .cine__shade { background: radial-gradient(70% 60% at 50% 55%, rgba(17,20,16,.62), rgba(17,20,16,.25)); }

/* ---------- 04 The estate ---------- */
.estate { background: radial-gradient(ellipse at 66% 48%, #59644F 0%, var(--sage-800) 46%, var(--sage-950) 100%); }
.estate__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.estate__zoom { position: absolute; inset: 0; }
.estate__tilt {
  --tilt: -7deg;
  position: absolute; top: 50%; left: 63%; width: min(68vw, 112vh); aspect-ratio: 1730 / 1120;
  transform: translate(-50%, -46%) rotate(var(--tilt));
}
.estate::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to right, rgba(23,28,23,.78) 0%, rgba(23,28,23,.35) 26%, transparent 42%); }
.estate__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.plan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; will-change: opacity; }
.plan--floor { padding: 4% 6%; }

/* garden drawing */
.g-ground { fill: #6B7660; }
.g-plot { fill: #8E9B79; stroke: #E9E1D2; stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.g-terraces path { fill: none; stroke: #7F8C6C; stroke-width: 4; }
.g-road { fill: none; stroke: #CDBB98; stroke-width: 20; stroke-linecap: round; }
.g-road--branch { stroke-width: 14; }
.g-label { font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: .32em; fill: rgba(244,239,230,.9); }
.g-label--sea { font-size: 14px; }
.g-label--road { font-size: 13px; letter-spacing: .3em; fill: #5E5039; }
.g-neighbour { fill: #A5978A; }
.g-neighbour-ridge { stroke: #8E7F72; stroke-width: 2; }
.g-lawn { fill: #A3AF89; }
.g-pool-deck { fill: #E3D6BE; }
.g-pool { fill: url(#pool-water); stroke: #F4EFE6; stroke-width: 3; }
.g-court { fill: #9DAA84; stroke: #E9E1D2; stroke-width: 1.5; }
.g-court--inner { fill: #8B9873; stroke: none; }
.g-path { fill: none; stroke: #D3C3A1; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 3 6; }
.g-gazebo { fill: #C8705F; stroke: #7E4338; stroke-width: 2; }
.g-roof-a { fill: #C8705F; }
.g-roof-b { fill: #B05D4E; }
.g-roof-c { fill: #BD6656; }
.g-ridge { stroke: #874539; stroke-width: 2.5; }
.g-chimney { fill: #874539; }
.g-roof-d { fill: #A9584A; }
.g-ridge--soft { stroke-width: 1.5; opacity: .6; }
.g-balcony { fill: #E3D6BE; stroke: #A59273; stroke-width: 1.2; }
.g-light, .fp-light { fill: url(#plan-light); pointer-events: none; }
.g-shadow { fill: rgba(16,20,14,.32); }
.g-tree { fill: #5A6A4E; }
.g-tree--olive { fill: #7D8B69; stroke: #6E7C5C; stroke-width: 1.2; }
.g-tree--pine { fill: #46573F; }
.g-tree--cypress { fill: #34452F; }
.g-tree--out { fill: #5E6A54; opacity: .8; }

/* floor plans */
.fp-ground { fill: transparent; }
.fp-room { fill: #F7F2EA; stroke: #CDBFAB; stroke-width: 1.2; }
.fp-room--alt { fill: #EDE5D8; }
.fp-room--open { fill: #E9DECB; stroke-dasharray: 4 3; }
.fp-terrace { fill: #E3D6BE; stroke: #B9A786; stroke-width: 1.2; stroke-dasharray: 3 2; }
.fp-court { fill: #9DAA84; stroke: #B6C29E; stroke-width: 1; }
.fp-wall { fill: none; stroke: #B5574A; stroke-width: 5; stroke-linejoin: round; }
.fp-ghost { fill: none; stroke: #E7B3A4; stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .5; }
.fp-window { stroke: #9CC2CF; stroke-width: 5; }
.fp-arches { stroke: #F7F2EA; stroke-width: 5; stroke-dasharray: 18 8; }
.fp-door { fill: none; stroke: var(--terracotta-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fp-sea { font-family: var(--font-body); font-size: 7.5px; font-weight: 500; letter-spacing: .32em; fill: rgba(244,239,230,.85); }
.fp-label { font-family: var(--font-body); font-size: 6.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; fill: #6E6358; }
.fp-label--soft { fill: #9A8E80; font-weight: 400; }
.fp-label--dark { fill: rgba(244,239,230,.75); }

/* hotspots */
.estate__dots { position: absolute; inset: 0; }
.dot {
  position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; display: grid; place-items: center; color: #fff;
}
.dot__halo { position: absolute; inset: 0; border-radius: 50%; background: rgba(200,112,95,.28); animation: halo 2.8s ease-out infinite; }
.dot:nth-child(3n+1) .dot__halo { animation-delay: .6s; }
.dot:nth-child(3n+2) .dot__halo { animation-delay: 1.3s; }
@keyframes halo { 0% { transform: scale(.55); opacity: .9; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.dot__num {
  position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red-700); box-shadow: 0 0 0 3px rgba(244,239,230,.28), 0 8px 18px rgba(0,0,0,.35);
  font-family: var(--font-display); font-size: 15px; line-height: 1; transform: rotate(calc(var(--tilt) * -1));
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) ease;
}
.dot:hover .dot__num, .dot:focus-visible .dot__num, .dot.is-hot .dot__num { transform: rotate(calc(var(--tilt) * -1)) scale(1.16); background: var(--red-800); }
.dot.is-active .dot__num { background: var(--cream); color: var(--red-700); }
.dot--pill { width: auto; height: auto; border-radius: 999px; }
.dot--pill .dot__num { width: auto; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.dot--pill:hover .dot__num { background: #fff; transform: rotate(calc(var(--tilt) * -1)); }

.estate__side { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(40px, 9vh, 96px); width: min(420px, 32vw); }
.estate__tabs { display: inline-flex; gap: 3px; padding: 4px; margin-bottom: clamp(24px, 5vh, 48px); background: rgba(23,28,23,.45); border: 1px solid rgba(244,239,230,.14); border-radius: 999px; }
.estate__tabs button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--on-dark); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.estate__tabs button:hover { background: rgba(244,239,230,.1); }
.estate__tabs button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.estate__peek { position: relative; height: 34px; margin: 0 0 var(--s-2); overflow: hidden; }
.estate__peek > span { position: absolute; left: 0; bottom: 0; transition: transform var(--t-med) var(--ease-out), opacity var(--t-med) ease; }
.estate__peek-default { margin: 0; }
.estate__peek-room { transform: translateY(110%); opacity: 0; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--terracotta-soft); white-space: nowrap; padding-bottom: 10px; }
.estate__peek-room b { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.35rem; letter-spacing: 0; margin-right: 10px; color: var(--on-dark); }
.estate__peek.is-peeking .estate__peek-default { transform: translateY(-110%); opacity: 0; }
.estate__peek.is-peeking .estate__peek-room { transform: none; opacity: 1; }
.estate__intro h2 { margin-bottom: var(--s-3); }
.estate__lead { color: var(--on-dark-muted); max-width: 26em; margin: 0; }
@keyframes detail-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Room page ---------- */
.room-page {
  position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; grid-template-columns: 1.35fr 1fr;
  background: var(--sage-900); color: var(--on-dark);
}
.room-page__media { position: relative; overflow: hidden; background: var(--sage-950); }
.room-page__media img { width: 100%; height: 100%; object-fit: cover; }
@keyframes photo-zoom { from { transform: scale(1.08); } to { transform: none; } }
.room-page__info { position: relative; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 24px) clamp(28px, 5vw, 88px) clamp(28px, 6vh, 64px); overflow-y: auto; }
.room-page__close { position: absolute; top: calc(var(--header-h) + 16px); right: clamp(16px, 3vw, 40px); color: var(--on-dark); }
.room-page__meta { display: flex; align-items: baseline; gap: 14px; margin: 0 0 var(--s-2); font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--terracotta-soft); }
.room-page__num { font-family: var(--font-display); font-style: italic; font-size: 3rem; font-weight: 300; letter-spacing: 0; line-height: 1; color: var(--terracotta); }
.room-page h2 { margin-bottom: var(--s-3); }
.room-page__lead { color: var(--on-dark-muted); max-width: 30em; margin-bottom: var(--s-4); }
.room-page__params { border-top: 1px solid rgba(244,239,230,.16); margin-bottom: var(--s-4); }
.room-page__params div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: var(--s-2); padding: 12px 0; border-bottom: 1px solid rgba(244,239,230,.16); font-size: 15px; }
.room-page__params dt { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 2px; }
.room-page__back { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--on-dark); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.room-page__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.room-page__back:hover span { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 860px) {
  .room-page { grid-template-columns: 1fr; grid-template-rows: 44svh auto; overflow-y: auto; }
  .room-page__info { justify-content: flex-start; padding: var(--s-4) var(--gutter) var(--s-5); overflow: visible; }
  .room-page__close { position: fixed; top: calc(var(--header-h) + 10px); right: 12px; background: rgba(23,28,23,.6); border-color: rgba(244,239,230,.4); }
}

/* ---------- 05 Comforts ---------- */
.comforts .cine__shade--right { background:
  linear-gradient(to top, rgba(17,20,16,.75) 0%, rgba(17,20,16,.2) 50%, rgba(17,20,16,.3) 100%),
  linear-gradient(to left, rgba(17,20,16,.85) 0%, rgba(17,20,16,.55) 42%, transparent 68%); }
.comforts__content { position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 88px); width: min(640px, 48vw); }
.comforts__content h2 { margin-bottom: var(--s-4); }
.comforts__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); border-top: 1px solid rgba(244,239,230,.2); }
.comforts__list li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid rgba(244,239,230,.2); }
.comforts__list svg { width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--terracotta-soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.comforts__list strong { font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.comforts__list span { grid-column: 2; font-size: 14px; line-height: 1.45; color: var(--on-dark-muted); }

/* ---------- 06 Gallery ---------- */
.gallery-ch { background: var(--cream); color: var(--ink); }
.gallery-ch__grid { position: absolute; inset: calc(var(--header-h) + 40px) var(--gutter) clamp(36px, 7vh, 72px); display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.6fr; gap: clamp(28px, 4vw, 72px); align-items: end; }
.gallery-ch__intro h2 { margin-bottom: var(--s-3); }
.gallery-ch__text { color: var(--text-muted); max-width: 26em; margin-bottom: var(--s-4); }
.mosaic { height: 100%; max-height: 72vh; display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.mosaic li { overflow: hidden; position: relative; background: var(--sand); min-height: 0; }
.mosaic li:first-child { grid-row: span 2; }
.mosaic button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mosaic button:hover img { transform: scale(1.06); }

/* ---------- 07 The place ---------- */
.place { background: var(--ink); }
.place__grid { position: absolute; inset: calc(var(--header-h) + 32px) var(--gutter) clamp(28px, 5vh, 56px); display: grid; grid-template-columns: minmax(300px, 0.8fr) 1.7fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.place__side h2 { margin-bottom: var(--s-3); font-size: clamp(2rem, 3.3vw, 3.4rem); }
.place__side .eyebrow { color: var(--on-dark-muted); }
.place__tabs { display: inline-flex; gap: 3px; padding: 4px; margin-bottom: var(--s-3); border: 1px solid rgba(244,239,230,.16); border-radius: 999px; }
.place__tabs button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--on-dark); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.place__tabs button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.place-card { min-height: 220px; padding: 22px 24px; background: var(--ink-2); border-top: 2px solid var(--terracotta); }
.place-card.is-switching > * { animation: detail-in 500ms var(--ease-out) both; }
.place-card__cat { margin: 0 0 6px; font-size: 10px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--terracotta-soft); }
.place-card__name { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.05; margin-bottom: 10px; }
.place-card__desc { font-size: 15px; color: var(--on-dark-muted); margin-bottom: 12px; }
.place-card__meta { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--on-dark); }
.place-card__meta a { text-decoration-color: rgba(244,239,230,.4); text-underline-offset: 3px; }
.place-card__meta a:hover { text-decoration-color: currentColor; }
.place__guide { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: var(--s-2); color: var(--on-dark); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.place__guide svg { width: 18px; height: 18px; fill: none; stroke: var(--terracotta-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms var(--ease-out); }
.place__guide span { border-bottom: 1px solid rgba(244,239,230,.3); padding-bottom: 2px; transition: border-color 300ms; }
.place__guide small { font-size: 9px; color: var(--on-dark-muted); letter-spacing: .2em; }
.place__guide:hover span { border-color: currentColor; }
.place__guide:hover svg { transform: translateY(2px); }
.place__map { align-self: end; min-width: 0; display: flex; justify-content: flex-end; }
/* --ratio (width / height of the visible map) is set by js/main.js */
.place__box { position: relative; width: min(100%, calc((100svh - var(--header-h) - 110px) * var(--ratio, 1.2))); }
.place__svg { display: block; width: 100%; height: auto; overflow: hidden; border: 1px solid rgba(244,239,230,.08); }
.place__credit { position: absolute; right: 8px; bottom: 6px; margin: 0; font-size: 10px; color: rgba(244,239,230,.6); }
.place__credit a { color: inherit; }
.place__pins { position: absolute; inset: 0; pointer-events: none; }
.place__pins .pin { pointer-events: auto; }
.place__legend { position: absolute; left: 12px; bottom: 8px; margin: 0; display: flex; gap: 18px; font-size: 11px; color: var(--on-dark-muted); }
.place__legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 22px; height: 0; border-top: 2px dotted #8F8476; }
.lg--ferry { border-top: 2px dashed #6E8F95; }
.lg--walk { width: 14px; height: 14px; border: 1.5px dashed var(--terracotta-soft); border-radius: 50%; }
.lg--food { width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); border: 0; }

/* map drawings */
/* region (OpenStreetMap) */
.m-land { fill: #2F2A24; }
.m-island { stroke: #6A5E50; stroke-width: .8; }
.m-sea { fill: #18252A; stroke: #6A5E50; stroke-width: .9; }
.m-river { fill: none; stroke: #2E4A52; stroke-width: 2.4; stroke-linecap: round; }
.m-road { fill: none; stroke: #4A423A; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.m-motor { fill: none; stroke: #8C6A55; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-town { fill: #A89C8C; font-family: var(--font-body); font-size: 10px; letter-spacing: .1em; }
.m-town-dot { fill: #A89C8C; }
.m-water { fill: #6C8A92; font-family: var(--font-display); font-style: italic; font-size: 22px; }
/* around the villa (OpenStreetMap) */
.n-bg { fill: #27231E; }
.n-wood { fill: #2D3529; }
.n-sea { fill: #18252A; }
.n-path { fill: none; stroke: #4B453D; stroke-width: 1.2; stroke-linecap: round; }
.n-road { fill: none; stroke: #625849; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.n-road--minor { stroke: #3B352E; stroke-width: 1.3; }
.n-road--major { stroke: #8A7A66; stroke-width: 3.6; }
.n-santanna { fill: none; stroke: var(--terracotta-soft); stroke-width: 2.6; stroke-dasharray: 1.5 4; stroke-linecap: round; }
.pin--off .pin__dot { width: 8px; height: 8px; opacity: .7; }
.pin--off .pin__label { font-style: italic; opacity: .75; }
.n-town { fill: #8F8576; font-family: var(--font-body); letter-spacing: .3em; }
.n-walk { fill: rgba(200,112,95,.07); stroke: var(--terracotta-soft); stroke-width: 2; stroke-dasharray: 8 8; }
.n-ring-label { fill: var(--terracotta-soft); font-family: var(--font-body); font-size: 15px; letter-spacing: .22em; }
.lg--trail { width: 22px; border-top: 2px dotted var(--terracotta-soft); }
.lg--motor { width: 22px; border-top: 2px solid #8C6A55; }
.pin--quiet .pin__label { display: none; }
.pin--quiet[aria-pressed="true"] .pin__label, .pin--quiet:hover .pin__label { display: inline; }

.pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px; border: 0; background: none; color: var(--on-dark); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.pin__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--on-dark); box-shadow: 0 0 0 4px rgba(244,239,230,.12); transition: transform var(--t-fast) ease, background-color var(--t-fast) ease; }
.pin__label { opacity: .85; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.pin--left { flex-direction: row-reverse; transform: translate(calc(-100% + 10px), -50%); }
.pin--food .pin__dot { background: var(--terracotta); box-shadow: 0 0 0 4px rgba(200,112,95,.18); }
.pin--bus .pin__dot { background: #9CC2CF; border-radius: 3px; }
.pin--off .pin__dot { width: 10px; height: 10px; }
.pin:hover .pin__dot, .pin[aria-pressed="true"] .pin__dot { transform: scale(1.4); }
.pin[aria-pressed="true"] .pin__label { opacity: 1; color: #fff; }
.pin--home .pin__dot { width: 18px; height: 18px; background: var(--red-700); box-shadow: 0 0 0 6px rgba(140,26,40,.35); animation: pulse 2.4s ease-out infinite; }
.pin--home .pin__label { font-weight: 500; opacity: 1; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,112,95,.55); } 100% { box-shadow: 0 0 0 18px rgba(200,112,95,0); } }

/* ---------- 08 Booking ---------- */
.booking { position: relative; background: var(--cream); color: var(--ink); padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) var(--gutter) clamp(72px, 10vw, 128px); }
.booking__inner { max-width: 1080px; margin-inline: auto; }
.booking__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: end; margin-bottom: var(--s-6); }
.booking__head .lead { margin: 0; color: var(--text-muted); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.bk-block { position: relative; background: var(--paper); padding: clamp(24px, 4vw, 48px); margin-bottom: var(--s-3); }
.bk-block__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); }
.bk-block__title { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1; }
.bk-block__num { font-style: italic; color: var(--accent); font-size: .8em; }

/* calendar */
.calendar__nav { display: flex; gap: var(--s-1); }
.calendar__months { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.cal-month__name { font-family: var(--font-display); font-size: 1.35rem; text-transform: capitalize; margin-bottom: var(--s-1); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { font-size: 10.5px; text-align: center; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 6px; }
.cal-day { aspect-ratio: 1; min-height: 34px; border: 0; background: transparent; font-size: 14px; font-variant-numeric: tabular-nums; display: grid; place-items: center; position: relative; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.cal-day:hover:not(:disabled) { background: var(--sand); }
.cal-day:disabled { cursor: not-allowed; }
.cal-day.is-past { color: #B8ADA0; }
.cal-day.is-booked { color: var(--text-muted); text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(140,26,40,.13) 4px 6px); }
.cal-day.is-in-range { background: var(--red-100); }
.cal-day.is-start, .cal-day.is-end { background: var(--accent); color: var(--on-accent); }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.calendar__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.calendar__foot p { margin: 0; }
.calendar__legend { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: 13px; color: var(--text-muted); }
.calendar__legend li { display: flex; align-items: center; gap: 8px; }
.day-key { width: 16px; height: 16px; display: inline-block; border: 1px solid var(--line); }
.day-key--booked { background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(140,26,40,.35) 3px 5px); }
.day-key--sel { background: var(--accent); border-color: var(--accent); }
@media (max-width: 900px) { .calendar__months { grid-template-columns: repeat(2, 1fr); } .cal-month:nth-child(3) { display: none; } }
@media (max-width: 560px) { .calendar__months { grid-template-columns: 1fr; } .cal-month:nth-child(2) { display: none; } }

/* seasons */
.seasons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.season { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; background: var(--paper); }
.season__name { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.season__dates { font-size: 14px; color: var(--text-muted); }
.season__price { margin-top: auto; padding-top: 14px; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; font-variant-numeric: lining-nums; }
.season__price small { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.season__price--text { font-size: 1.6rem; font-style: italic; }
.season--peak { background: var(--ink); color: var(--on-dark); }
.season--peak .season__dates, .season--peak .season__price small { color: var(--on-dark-muted); }
.season--muted .season__price { color: var(--text-muted); }
@media (max-width: 900px) { .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .season--muted { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .season { padding: 18px 12px; }
  .season__name { font-size: 10px; letter-spacing: .1em; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
  .season__price { font-size: 1.6rem; white-space: nowrap; }
}

/* policies */
.policies { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-5); }
.policies > div { display: grid; grid-template-columns: 150px 1fr; gap: var(--s-2); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.policies dt { font-weight: 500; }
.policies dd { color: var(--text-muted); }
@media (max-width: 900px) { .policies { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .policies > div { grid-template-columns: 1fr; gap: 2px; } }

/* form */
.enquiry__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 800px) { .enquiry__grid { grid-template-columns: 1fr; gap: 0; } .booking__head { grid-template-columns: 1fr; gap: var(--s-3); } }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s-3); min-width: 0; }
legend { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-2); padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-2); min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: 14px; font-weight: 500; }
.req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; font-size: 16px; background: var(--cream); border: 1px solid var(--line); border-radius: 0; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(140,26,40,.18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 0; font-size: 14px; color: var(--error); }
.field__error:empty { display: none; }
.field__error::before { content: "! "; font-weight: 500; }
.field__help { margin: 0; font-size: 14px; color: var(--text-muted); }
.field--check { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin: 3px 0 0; accent-color: var(--accent); }
.field--check label { font-weight: 300; font-size: 15px; }
.field--check .field__error { grid-column: 2; }
.enquiry__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.enquiry__foot .field { margin: 0; flex: 1 1 320px; }
.form-summary { border-left: 3px solid var(--error); background: #FBEDEB; padding: var(--s-2); margin-bottom: var(--s-3); font-size: 15px; }
.form-summary ul { list-style: disc; padding-left: 20px; margin-top: 6px; }
.form-summary a { color: var(--error); }
.form-success { position: absolute; inset: 0; background: var(--paper); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: var(--s-5); animation: detail-in 500ms var(--ease-out); }
.form-success svg { width: 48px; height: 48px; color: var(--cypress-700); margin-bottom: var(--s-2); stroke-width: 1.2; }
.form-success p:not(.display) { max-width: 26em; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); color: var(--ink); padding: var(--s-6) var(--gutter) var(--s-4); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s-5); align-items: center; max-width: 1080px; margin-inline: auto; }
.site-footer__brand img { width: 100%; max-width: 340px; }
.site-footer h2.eyebrow { margin-bottom: var(--s-2); color: var(--accent); }
.site-footer p, .site-footer address { font-style: normal; line-height: 1.9; margin: 0; }
.site-footer a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--t-fast) ease; }
.site-footer a:hover { border-color: currentColor; }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2); max-width: 1080px; margin: var(--s-5) auto 0; padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: 13px; color: var(--text-muted); }
.site-footer__base p { margin: 0; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Privacy policy / legal notice (privacy.html) ---------- */
.legal-page { background: var(--cream); color: var(--ink); }
.legal-page .site-header { grid-template-columns: auto 1fr auto; }
.legal-page .site-header__actions > .lang-switch { display: flex; }
.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) var(--gutter) var(--s-6); }
.legal h1 { margin: var(--s-2) 0 var(--s-1); }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.15; margin: var(--s-5) 0 var(--s-2); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: var(--s-1); }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal__date { color: var(--text-muted); font-size: 14px; }
.legal-page .site-footer { padding-top: var(--s-3); }
.legal-page .site-footer__base { margin-top: 0; }
@media (max-width: 560px) { .legal-page .pill span:last-child { display: none; } }

/* ---------- Gallery overlay + lightbox ---------- */
.gallery-overlay { position: fixed; inset: 0; z-index: var(--z-overlay); overflow-y: auto; overscroll-behavior: contain; background: var(--cream); color: var(--ink); animation: fade-in var(--t-med) ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.gallery-overlay__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: 14px var(--gutter); background: rgba(244,239,230,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.gallery-overlay__title { font-family: var(--font-display); font-size: 1.8rem; margin-right: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 38px; padding: 0 16px; border: 1px solid var(--line); background: transparent; border-radius: 999px; font-size: 13px; letter-spacing: .06em; transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.gallery-overlay__grid { columns: 3 300px; column-gap: 12px; padding: var(--s-3) var(--gutter) var(--s-6); }
.gallery-overlay__grid li { break-inside: avoid; margin-bottom: 12px; }
.gallery-overlay__grid button { display: block; width: 100%; padding: 0; border: 0; background: var(--sand); overflow: hidden; cursor: zoom-in; }
.gallery-overlay__grid img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.gallery-overlay__grid button:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: calc(var(--z-overlay) + 1); background: rgba(14,16,13,.96); color: var(--on-dark); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; animation: fade-in var(--t-med) ease; }
.lightbox .icon-btn { margin: auto; color: var(--on-dark); }
.lightbox__close { position: absolute; top: var(--s-2); right: var(--s-2); z-index: 1; }
.lightbox__figure { height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--s-5) 0; min-width: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100svh - 120px); object-fit: contain; }
.lightbox__figure figcaption { margin-top: var(--s-2); font-size: 12px; letter-spacing: .2em; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: var(--s-3); }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 1000px) {
  .chapter { height: auto; min-height: 100svh; }
  .hero { display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 80px) var(--gutter) 64px; }
  .hero__content, .hero-card { position: relative; left: auto; right: auto; bottom: auto; max-width: none; width: 100%; }
  .hero-card { margin-top: var(--s-4); }
  .hero__cue { display: none; }

  .cine { display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 140px) var(--gutter) var(--s-5); }
  .cine__content, .cine--right .cine__content, .cine--center .cine__content { position: relative; left: auto; right: auto; bottom: auto; transform: none; max-width: none; text-align: left; }
  .cine--right .cine__text, .cine--center .cine__text { margin-left: 0; }
  .cine__content { width: auto; }
  .cine__stats { margin-top: var(--s-5); }

  .estate { display: flex; flex-direction: column; padding: calc(var(--header-h) + 120px) 0 var(--s-5); }
  .estate::after { display: none; }
  .estate__stage { position: relative; inset: auto; height: auto; aspect-ratio: 1730 / 1120; overflow: visible; }
  .estate__tilt { position: absolute; inset: 0; width: 100%; transform: none; --tilt: 0deg; top: 0; left: 0; }
  .estate__side { position: relative; left: auto; bottom: auto; width: auto; padding: var(--s-4) var(--gutter) 0; }
  .estate__tabs { margin-bottom: var(--s-4); }
  .comforts { display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 140px) var(--gutter) var(--s-5); }
  .comforts__content { position: relative; right: auto; bottom: auto; width: auto; }
  .comforts .cine__shade--right { background: linear-gradient(to top, rgba(17,20,16,.9) 0%, rgba(17,20,16,.6) 60%, rgba(17,20,16,.3) 100%); }
  .place__map, .place__box { display: block; width: 100%; }

  .gallery-ch, .place { padding: calc(var(--header-h) + 120px) var(--gutter) var(--s-5); }
  .gallery-ch__grid, .place__grid { position: relative; inset: auto; grid-template-columns: 1fr; }
  .mosaic { height: 70vw; }
  .place__map { order: -1; }
}
@media (max-width: 600px) {
  /* small dots, but a 40px touch area each */
  .dot { width: 40px; height: 40px; }
  .dot__num { width: 26px; height: 26px; font-size: 12px; }
  .plate__title, .eyebrow, .site-nav a, .estate__tabs button, .place__tabs button { letter-spacing: .14em; }
  .plate__title { font-size: 11px; }
  .dot--pill .dot__num { height: 26px; padding: 0 10px; font-size: 9px; letter-spacing: .1em; }
  .estate__tabs button { padding: 0 11px; font-size: 10px; letter-spacing: .08em; }
  .comforts__list { grid-template-columns: 1fr; }
  .cine__stats dd { font-size: 2.1rem; }
  .cine__stats { gap: var(--s-2); }
  .cine__stats dt { white-space: normal; letter-spacing: .14em; }
  .pin__label { display: none; }
  .pin--home .pin__label, .pin[aria-pressed="true"] .pin__label { display: inline; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
