/* Pinea Glamping — premium demo.
   Type: Bricolage Grotesque (display) + Geist (text), self-hosted, with metric-matched fallbacks.
   One accent (pine-shoot lime), pine ink, limestone paper. */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../assets/fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-var.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
/* local fallbacks sized to the web fonts, so the swap does not move the layout */
@font-face { font-family: 'Bricolage Fallback'; src: local('Arial'), local('ArialMT'), local('Helvetica Neue'), local('Roboto'); size-adjust: 98.96%; ascent-override: 93.98%; descent-override: 27.28%; line-gap-override: 0%; }
@font-face { font-family: 'Geist Fallback'; src: local('Arial'), local('ArialMT'), local('Helvetica Neue'), local('Roboto'); size-adjust: 104.21%; ascent-override: 96.44%; descent-override: 28.31%; line-gap-override: 0%; }

:root {
  --ink: #10261f;
  --ink-2: #2a4a3e;
  --ink-soft: rgba(16, 38, 31, .7);
  --paper: #f4f0e6;
  --paper-2: #e9e3d4;
  --card: #fbf9f4;
  --line: rgba(16, 38, 31, .13);
  --accent: #d8f26a;
  --accent-ink: #10261f;
  --pine: #1e4d3a;
  --sea: #1fa9ae;
  --night: #0a1428;
  --r-s: 12px;
  --r: 20px;
  --r-l: 28px;
  --shadow: 0 1px 2px rgba(16, 38, 31, .06), 0 14px 40px -14px rgba(16, 38, 31, .24);
  --f-display: 'Bricolage Grotesque', 'Bricolage Fallback', 'Arial', sans-serif;
  --f-body: 'Geist', 'Geist Fallback', 'Arial', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --hdr: 72px;
  --sec: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.62 var(--f-body); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' 0; overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: var(--r-s); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0; position: relative; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nowrap { white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow { font: 600 12.5px/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .55; }
.h2 { font: 500 clamp(38px, 5.2vw, 80px)/1.0 var(--f-display); letter-spacing: -.034em; text-wrap: balance; max-width: 15ch; }
.h3 { font: 500 clamp(32px, 3.5vw, 48px)/1.04 var(--f-display); letter-spacing: -.028em; text-wrap: balance; }
.h2 .soft, .h3 .soft { font-weight: 300; }
.split-line { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--f-body); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .1s; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 12px 28px -12px rgba(150, 180, 40, .9); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--pine); box-shadow: 0 12px 28px -14px rgba(16, 38, 31, .8); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .16); }
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateY(2px); }
.btn-arrow:hover .i { transform: translateX(3px); }
.link-btn { background: none; border: 0; padding: 12px 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; color: inherit; font-size: 15px; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background-color .35s, color .35s, box-shadow .35s, transform .4s var(--ease); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 20px; padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.hdr.is-solid { background: rgba(244, 240, 230, .88); color: var(--ink); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font: 600 26px/1 var(--f-display); letter-spacing: -.035em; }
.brand-sub { font: 500 11.5px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; opacity: .78; padding-left: 12px; border-left: 1px solid currentColor; margin-left: 2px; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 999px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.hdr-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; }
.lang-btn { min-width: 44px; min-height: 40px; border: 0; background: transparent; border-radius: 999px; font: 600 13px/1 var(--f-body); letter-spacing: .06em; cursor: pointer; transition: background-color .2s, color .2s; }
.lang-btn[aria-pressed="true"] { color: var(--ink); background: #fff; }
.hdr.is-solid .lang-btn[aria-pressed="true"] { color: #fff; background: var(--ink); }
.hdr-cta { min-height: 44px; padding: 10px 20px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.menu-lines, .menu-lines::before { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-lines { top: 19px; }
.menu-lines::before { content: ""; left: 0; right: 0; top: 8px; }
.menu-btn[aria-expanded="true"] .menu-lines { top: 23px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(-90deg); }

/* demo badge */
.demo { position: relative; }
.demo-badge { min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px dashed currentColor; background: transparent; font: 600 11.5px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.demo-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(340px, calc(100vw - 32px)); padding: 22px 22px 16px; background: var(--card); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); font-size: 15px; z-index: 60; }
.demo-title { font: 600 21px/1.2 var(--f-display); letter-spacing: -.02em; margin-bottom: 8px; }
.demo-panel a { font-weight: 600; }
.demo-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.demo-close svg { width: 18px; height: 18px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2f6f78; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the poster sits on top and fades out once the video plays: the video itself is never opacity 0,
   because Safari refuses to autoplay a video that CSS makes invisible */
.hero-poster { z-index: 1; transition: opacity .9s var(--ease); }
.hero-media.is-playing .hero-poster { opacity: 0; }
.hero-shade { z-index: 2; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(6, 22, 20, .5) 0%, rgba(6, 22, 20, 0) 24%),
  linear-gradient(0deg, rgba(6, 22, 20, .78) 0%, rgba(6, 22, 20, .34) 36%, rgba(6, 22, 20, 0) 62%),
  linear-gradient(90deg, rgba(6, 22, 20, .38) 0%, rgba(6, 22, 20, 0) 58%); }
.hero-in { width: 100%; max-width: 1600px; margin: 0 auto; padding: calc(var(--hdr) + 40px) var(--gutter) clamp(32px, 6vh, 72px); }
.hero-eyebrow { color: rgba(255, 255, 255, .92); }
.hero-eyebrow::before { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(216, 242, 106, .25); }
.hero-h { font: 500 clamp(46px, 7.1vw, 124px)/.94 var(--f-display); letter-spacing: -.045em; margin: 0 0 clamp(24px, 3.2vw, 40px); max-width: none; text-wrap: balance; }
.hero-h .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-h .line > span { display: block; }
.hero-h .soft { font-weight: 300; color: var(--accent); letter-spacing: -.04em; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-right: 64px; }
.hero-lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; max-width: 40ch; margin: 0; color: rgba(255, 255, 255, .92); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-seal { position: absolute; right: var(--gutter); top: calc(var(--hdr) + 32px); width: 124px; height: 124px; color: #fff; opacity: .9; }
.hero-seal svg { width: 100%; height: 100%; animation: spin 48s linear infinite; }
.hero-seal text { font: 600 9.6px var(--f-body); letter-spacing: .24em; fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-pause { position: absolute; right: var(--gutter); bottom: clamp(32px, 6vh, 72px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .18); cursor: pointer; display: none; place-items: center; transition: background-color .2s; }
.hero-pause:hover { background: rgba(0, 0, 0, .35); }
.hero-pause.is-ready { display: grid; }
.hero-pause svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; }
.hero-pause .ic-play { display: none; fill: #fff; stroke: none; }
.hero-pause[aria-pressed="true"] .ic-play { display: block; }
.hero-pause[aria-pressed="true"] .ic-pause { display: none; }
/* entrance (CSS only, so it starts with the first paint and never waits for scripts): ≈1.1 s */
@media (prefers-reduced-motion: no-preference) {
  .hero-h .line > span { animation: hero-rise .95s cubic-bezier(.16, 1, .3, 1) .06s backwards; }
  .hero-h .line + .line > span { animation-delay: .15s; }
  .hero-eyebrow { animation: hero-up .6s var(--ease) .1s backwards; }
  .hero-lead { animation: hero-up .7s var(--ease) .32s backwards; }
  .hero-actions .btn { animation: hero-up .7s var(--ease) .4s backwards; }
  .hero-actions .btn + .btn { animation-delay: .46s; }
  .hero-seal { animation: hero-fade .8s ease .5s backwards; }
  .hero-media { animation: hero-settle 1.8s var(--ease) backwards; }
}
@keyframes hero-rise { from { transform: translateY(104%); } }
@keyframes hero-up { from { opacity: .35; transform: translateY(16px); } }
@keyframes hero-fade { from { opacity: 0; } }
@keyframes hero-settle { from { scale: 1.06; } }

/* ---------- intro ---------- */
.intro { overflow: hidden; }
.manifesto { font: 400 clamp(28px, 3.6vw, 54px)/1.16 var(--f-display); letter-spacing: -.025em; max-width: 22ch; margin: 0 0 clamp(48px, 6.5vw, 96px); text-wrap: pretty; position: relative; z-index: 1; }
.manifesto .w { opacity: .56; }   /* dim but still 3:1 for large text, then lit word by word */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); position: relative; z-index: 1; }
.facts li { padding: 24px 24px 0 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.fact-n { display: block; font: 400 clamp(44px, 5.4vw, 80px)/1 var(--f-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.fact-n small { font-size: .36em; letter-spacing: -.01em; margin-left: 4px; font-weight: 500; }
.fact-t { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.intro-float { position: absolute; inset: 0; pointer-events: none; }
.float { position: absolute; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.float img { width: 100%; height: 100%; object-fit: cover; }
.f1 { width: clamp(150px, 14vw, 220px); aspect-ratio: 2 / 3; right: max(var(--gutter), calc((100vw - 1360px) / 2 + 40px)); top: 10%; }
.f2 { width: clamp(170px, 17vw, 264px); aspect-ratio: 3 / 2; right: max(calc(var(--gutter) + 120px), calc((100vw - 1360px) / 2 + 250px)); top: 46%; }

/* ---------- stay ---------- */
.stay { padding-top: 0; }
.sec-head { margin-bottom: clamp(40px, 5.5vw, 80px); }
.unit { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.unit + .unit { margin-top: clamp(72px, 9vw, 128px); }
.unit-rev .unit-media { order: 2; }
.unit-media { position: relative; padding-bottom: 12%; }
.unit-img { border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); }
.unit-img img { width: 100%; height: 100%; object-fit: cover; }
.unit-img.main { aspect-ratio: 4 / 3.25; }
.unit-img.side { position: absolute; width: 42%; aspect-ratio: 3 / 2; bottom: 0; right: -6%; border: 6px solid var(--paper); border-radius: 22px; box-shadow: var(--shadow); }
.unit-img.side.tall { aspect-ratio: 2 / 3; width: 31%; bottom: -4%; right: auto; left: -5%; }
.unit-rev .unit-img.side.tall { left: auto; right: -5%; }
.unit-no { font: 500 14px/1 var(--f-body); letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 18px; display: flex; gap: 12px; align-items: center; font-variant-numeric: tabular-nums; }
.unit-no::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--line); }
.unit-lead { font-size: 18px; color: var(--ink-2); margin: 18px 0 26px; max-width: 44ch; text-wrap: pretty; }
.spec { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.spec li { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); }
.spec li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.spec b { display: block; font-weight: 600; font-size: 16px; }
.spec span { display: block; font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }
.unit-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-top: 30px; }
.price { margin: 0; color: var(--ink-soft); font-size: 15px; }
.price b { font: 500 clamp(34px, 3.4vw, 46px)/1 var(--f-display); color: var(--ink); letter-spacing: -.04em; margin: 0 2px; font-variant-numeric: tabular-nums; }

/* ---------- map (signature moment) ---------- */
.map { background:
  radial-gradient(110% 70% at 50% 46%, #e5f1ec 0%, #dcebe6 42%, rgba(244, 240, 230, 0) 78%),
  linear-gradient(180deg, var(--paper) 0%, #e6efe9 26%, #e1eee9 74%, var(--paper) 100%);
  padding-bottom: clamp(56px, 7vw, 104px); overflow: hidden; }
.map-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(8px, 2vw, 24px); }
.map-lead { color: var(--ink-2); max-width: 40ch; margin: 0; }
.map-frame { position: relative; height: min(86vh, 880px); min-height: 520px; margin: 0 auto; max-width: 1600px; }
.map-stage { position: absolute; inset: 0; overflow: hidden; }
.map-canvas { position: absolute; inset: 0; z-index: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1s var(--ease); outline: none; }
.map-frame.is-3d .map-canvas { opacity: 1; }
.map-static { position: absolute; inset: 0; transition: opacity .8s ease; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.map-static img { width: 100%; height: 100%; object-fit: cover; }
.map-frame.is-3d .map-static { opacity: 0; pointer-events: none; }
.map-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pin {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 14px 5px 5px;
  border: 0; border-radius: 999px; background: #fbf9f4; color: var(--ink);
  box-shadow: 0 1px 0 rgba(16, 38, 31, .06), 0 8px 22px -8px rgba(16, 38, 31, .38); cursor: pointer; white-space: nowrap;
  font: 600 14px/1 var(--f-body); letter-spacing: -.005em;
  transition: background-color .2s, color .2s, opacity .3s, box-shadow .25s;
}
.pin::after { content: ""; position: absolute; left: calc(50% - 1px); top: 100%; width: 2px; height: 12px; background: #fbf9f4; border-radius: 0 0 2px 2px; transition: background-color .2s; }
.pin-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; transition: background-color .2s; }
.pin-dot svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pin.is-book .pin-dot { background: var(--accent); }
.pin.is-book .pin-dot svg { stroke: var(--ink); }
.pin:hover, .pin.is-hot, .pin.is-sel { background: var(--ink); color: #fff; box-shadow: 0 10px 26px -8px rgba(16, 38, 31, .55); z-index: 3; }
.pin:hover::after, .pin.is-hot::after, .pin.is-sel::after { background: var(--ink); }
.pin:hover .pin-dot, .pin.is-hot .pin-dot, .pin.is-sel .pin-dot { background: var(--accent); }
.pin:hover .pin-dot svg, .pin.is-hot .pin-dot svg, .pin.is-sel .pin-dot svg { stroke: var(--ink); }
.pin.is-off { opacity: 0; pointer-events: none; }
.map-frame.has-card .pin:not(.is-sel) { opacity: .5; }
.map-ui { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; }
.map-hint { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(251, 249, 244, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; color: var(--ink-2); transition: opacity .5s; box-shadow: 0 6px 18px -10px rgba(16, 38, 31, .35); }
.map-hint.is-gone { opacity: 0; }
.map-zoom { display: flex; gap: 8px; pointer-events: auto; }
.map-zoom[hidden] { display: none; }
.map-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, transform .2s var(--ease); }
.map-btn:hover { background: #fff; transform: translateY(-1px); }
.map-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.map-loading { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; background: rgba(251, 249, 244, .94); font-size: 14px; box-shadow: var(--shadow); }
.map-loading[hidden] { display: none; }
.map-loading span:first-child { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }

.zone-card {
  position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; width: min(392px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow: auto;
  background: var(--card); border-radius: var(--r); box-shadow: 0 30px 80px -24px rgba(16, 38, 31, .48); z-index: 5;
  opacity: 0; transform: translateX(20px); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.zone-card[hidden] { display: block; visibility: hidden; pointer-events: none; }
.zone-card.is-open { opacity: 1; transform: none; visibility: visible; }
.zone-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.zone-img img { width: 100%; height: 100%; object-fit: cover; }
.zone-body { padding: 20px 24px 24px; }
.zone-kicker { font: 600 12px/1.3 var(--f-body); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.zone-title { font: 500 30px/1.06 var(--f-display); letter-spacing: -.03em; margin-bottom: 10px; outline: none; }
.zone-text { font-size: 15.5px; color: var(--ink-2); margin-bottom: 14px; }
.zone-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.zone-facts li { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.zone-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zone-foot .price b { font-size: 34px; }
.zone-foot .btn[hidden] { display: none; }
.zone-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(251, 249, 244, .94); cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.zone-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

.zone-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; justify-content: center; }
.zone-chip { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, color .2s, border-color .2s; }
.zone-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transition: background-color .2s; }
.zone-chip.is-book i { background: #9fbd2e; }
.zone-chip:hover, .zone-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.zone-chip:hover i, .zone-chip[aria-pressed="true"] i { background: var(--accent); }

/* ---------- day → night (one canvas, redrawn only when the scroll moves) ---------- */
.dn { position: relative; background: var(--night); color: var(--ink); height: 340vh; height: 340svh; }
.dn-pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.dn-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #040a1a 0%, #0c1834 55%, #1d2c55 100%); }
.dn-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dn-content { position: relative; z-index: 2; height: 100%; max-width: 1360px; margin: 0 auto; padding: calc(var(--hdr) + 32px) var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-rows: auto 1fr; gap: 24px 48px; transition: color .5s; }
.dn.is-night .dn-content { color: #eef1ea; }
.dn-top { grid-column: 1; }
.dn-top .eyebrow { color: currentColor; opacity: .78; }
.dn-clock { grid-column: 1; align-self: start; margin: 1vh 0 0; font: 400 clamp(72px, 12vw, 190px)/.9 var(--f-display); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.dn-list { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: grid; gap: 2px; padding: 10px; border-radius: 24px; background: rgba(250, 248, 241, .8); box-shadow: 0 20px 60px -30px rgba(10, 20, 40, .5); transition: background-color .5s; }
.dn.is-night .dn-list { background: rgba(10, 18, 38, .72); }
.dn-list li { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 11px 16px; border-radius: 14px; font-size: 15.5px; line-height: 1.4; opacity: .4; transition: opacity .35s, background-color .35s; }
.dn-list li.is-on { opacity: 1; }
.dn-list li.is-now { background: rgba(255, 255, 255, .78); }
.dn.is-night .dn-list li.is-now { background: rgba(255, 255, 255, .1); }
.dn-list time { font-weight: 600; font-variant-numeric: tabular-nums; }

/* static day→night when motion is reduced: the night scene, every item visible */
.dn.is-static { height: auto; }
.dn.is-static .dn-pin { position: relative; height: auto; min-height: 0; }
.dn.is-static .dn-content { height: auto; padding-top: clamp(88px, 11vw, 150px); padding-bottom: clamp(220px, 28vw, 360px); grid-template-columns: minmax(0, 1fr) minmax(0, 480px); color: #eef1ea; }
.dn.is-static .dn-list { background: rgba(10, 18, 38, .72); }
.dn.is-static .dn-list li { opacity: 1; }
.dn.is-static .dn-clock { display: none; }

/* ---------- reviews (night) ---------- */
.reviews { background: var(--night); color: #eef1ea; overflow: hidden; }
.reviews .eyebrow { color: rgba(238, 241, 234, .72); }
.reviews::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 62%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 58% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 48%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 90% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 46% 86%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 72%, #fff 50%, transparent 51%); opacity: .5; pointer-events: none; }
.rev-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 48px; margin-bottom: clamp(40px, 5vw, 72px); }
.rev-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.rev-score { margin: 0; font-size: 16px; color: rgba(238, 241, 234, .78); }
.rev-score b { font: 400 64px/1 var(--f-display); color: var(--accent); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.rev-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.rev { padding: 30px 28px 26px; border-radius: var(--r); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; }
.rev blockquote { margin: 0 0 22px; flex: 1; }
.rev blockquote p { font: 400 21px/1.38 var(--f-display); letter-spacing: -.015em; margin: 0; text-wrap: pretty; }
.rev-by { margin: 0; font-size: 14.5px; color: rgba(238, 241, 234, .72); }
.rev-by b { color: #fff; font-weight: 600; margin-right: 6px; }

/* ---------- location ---------- */
.where { background: linear-gradient(180deg, var(--night) 0%, #1d2b52 7%, #5d6488 13%, #d9a58c 20%, #f1d9bd 26%, var(--paper) 34%); }
.where-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-top: clamp(72px, 9vw, 140px); }
.where-text > p { color: var(--ink-2); max-width: 44ch; margin: 22px 0 28px; }
.dist { border-top: 1px solid var(--line); margin-bottom: 26px; }
.dist li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dist b { font-weight: 600; font-variant-numeric: tabular-nums; }
.addr { font-style: normal; display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--ink-2); font-size: 15.5px; }
.addr span { flex-basis: 100%; }
.addr a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.where-img { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 5; }
.where-img img { width: 100%; height: 115%; object-fit: cover; }
.where-img figcaption { position: absolute; left: 20px; bottom: 20px; padding: 8px 14px; border-radius: 999px; background: rgba(251, 249, 244, .94); font-size: 14px; }

/* ---------- booking ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.book-side { position: sticky; top: calc(var(--hdr) + 24px); }
.book-side .h2, .where-text .h2 { font-size: clamp(38px, 4.4vw, 66px); }
.book-lead { color: var(--ink-2); margin: 22px 0 28px; max-width: 40ch; }
.how { counter-reset: how; display: grid; border-top: 1px solid var(--line); margin-bottom: 26px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 44px 1fr; padding: 15px 0; border-bottom: 1px solid var(--line); }
.how li::before { content: "0" counter(how); grid-row: span 2; font: 500 14px/1.65 var(--f-body); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.how b { font-weight: 600; }
.how span { color: var(--ink-soft); font-size: 15px; }
.times { margin: 0 0 22px; display: grid; gap: 8px; font-size: 15px; }
.times div { display: flex; gap: 12px; }
.times dt { font-weight: 600; min-width: 72px; }
.times dd { margin: 0; color: var(--ink-soft); }
.book-help { font-size: 15px; color: var(--ink-soft); }
.book-help a { font-weight: 600; color: var(--ink); display: inline-block; padding: 10px 0; }
.book-main { background: var(--card); border-radius: var(--r-l); padding: clamp(16px, 2.4vw, 30px); box-shadow: var(--shadow); min-width: 0; scroll-margin-top: calc(var(--hdr) + 16px); }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 18px; background: var(--paper); margin-bottom: 18px; }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 64px; padding: 10px 18px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; text-align: left; transition: color .3s var(--ease); }
.tab span { font: 500 21px/1.1 var(--f-display); letter-spacing: -.02em; }
.tab small { font-size: 13.5px; color: var(--ink-soft); transition: color .3s; }
.tab:not([aria-selected="true"]):hover { background: rgba(16, 38, 31, .05); }
.tab[aria-selected="true"] { color: #fff; }
.tab[aria-selected="true"] small { color: rgba(255, 255, 255, .78); }
.tab-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 14px; background: var(--ink); transition: transform .45s var(--ease), box-shadow .45s; }
.tabs.is-pitch .tab-ink { transform: translateX(calc(100% + 4px)); }
.tabs.is-flash .tab-ink { box-shadow: 0 0 0 4px rgba(216, 242, 106, .9); }
.panels { display: grid; }
.panel { grid-area: 1 / 1; transition: opacity .3s var(--ease), transform .35s var(--ease); }
.panel.is-off { opacity: 0; transform: translateY(8px); visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
.panel-note { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 14px; padding: 0 4px; }
.widget-box { min-height: 420px; }
/* the widget mixes its secondary text from the page colour; a slightly stronger mix keeps the per-day prices at AA */
.widget-box [data-booking] { --muted: color-mix(in srgb, currentColor 72%, transparent); }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: #e9ece3; padding: clamp(64px, 8vw, 112px) 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; }
.ftr a:not(.btn) { color: #fff; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ftr-grid .ftr-claim { font: 400 clamp(28px, 3vw, 42px)/1.1 var(--f-display); letter-spacing: -.03em; max-width: 14ch; margin-bottom: 26px; text-wrap: balance; }
.ftr-h { font: 600 12.5px/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(233, 236, 227, .62); margin-bottom: 12px; }
.ftr-grid p { font-size: 15.5px; line-height: 1.75; }
.ftr-grid a:not(.btn) { display: inline-block; padding: 2px 0; }
.ftr-word { font: 600 clamp(120px, 26vw, 400px)/.8 var(--f-display); letter-spacing: -.07em; margin: clamp(44px, 6vw, 88px) 0 24px -.03em; padding-bottom: .06em; white-space: nowrap; user-select: none;
  color: rgba(216, 242, 106, .14); background: linear-gradient(180deg, rgba(216, 242, 106, .34) 0%, rgba(216, 242, 106, .04) 92%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 15px; }
.ftr-bottom p { margin: 0; }
.ftr-demo a { font-weight: 600; }
.credits { font-size: 14px; color: rgba(233, 236, 227, .72); margin-top: 12px; max-width: 90ch; }

/* ---------- mobile bar ---------- */
.mbar { display: none; }

/* ---------- reveal helpers (JS adds .js-anim on <html>) ---------- */
.js-anim [data-clip] { clip-path: inset(12% 0 0 0 round var(--r-l)); }

/* ================= responsive ================= */
@media (max-width: 1180px) {
  .nav { position: fixed; inset: 0; z-index: -1; background: var(--ink); color: #fff; display: flex; align-items: center; padding: calc(var(--hdr) + 24px) var(--gutter) 40px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { font: 500 clamp(34px, 7.5vw, 54px)/1.1 var(--f-display); padding: 6px 0; letter-spacing: -.03em; }
  .nav a::after { display: none; }
  body.nav-open .hdr { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nav-open .hdr .lang-btn[aria-pressed="true"] { color: var(--ink); background: #fff; }
  .menu-btn { display: block; }
}
@media (max-width: 960px) {
  .unit, .where-grid, .book-grid, .map-head { grid-template-columns: minmax(0, 1fr); }
  .unit-rev .unit-media { order: 0; }
  .unit-img.side { right: 4%; }
  .unit-img.side.tall, .unit-rev .unit-img.side.tall { left: auto; right: 4%; }
  .book-side { position: static; }
  .rev-list { grid-template-columns: minmax(0, 1fr); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-grid > :first-child { grid-column: 1 / -1; }
  .dn-content { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  .dn-list { grid-column: 1; grid-row: 3; align-self: start; }
  .dn-clock { grid-row: 2; align-self: start; margin: 0; font-size: clamp(64px, 17vw, 120px); }
  .dn.is-static .dn-content { grid-template-columns: minmax(0, 1fr); }
  .f1, .f2 { display: none; }
  .zone-card { top: auto; bottom: 12px; right: 12px; left: auto; width: min(420px, calc(100% - 24px)); translate: none; transform: translateY(20px); max-height: calc(100% - 24px); }
  .zone-card.is-open { transform: none; }
}
@media (max-width: 720px) {
  :root { --hdr: 64px; }
  body { font-size: 16.5px; }
  .brand-sub, .hdr-cta { display: none; }
  .demo-badge { padding: 6px 10px; }
  .hero-h { font-size: clamp(46px, 13.4vw, 70px); }
  .hero-seal { width: 88px; height: 88px; top: calc(var(--hdr) + 16px); }
  .hero-foot { padding-right: 0; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-pause { bottom: auto; top: calc(var(--hdr) + 122px); }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li { padding-bottom: 22px; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .spec { grid-template-columns: 1fr; }
  .spec li:nth-child(even) { padding-left: 0; border-left: 0; }
  .unit-media { padding-bottom: 18%; }
  .unit-img.main { aspect-ratio: 4 / 3.6; border-radius: 22px; }
  .map-frame { height: 76vh; height: 76svh; min-height: 480px; }
  .map-ui { bottom: 12px; }
  .map-hint { font-size: 13px; padding: 8px 12px; }
  .pin { font-size: 13px; min-height: 44px; min-width: 44px; padding: 7px; gap: 0; }
  .pin .pin-t { display: none; }
  .pin.is-sel, .pin.is-hot { padding-right: 12px; gap: 6px; }
  .pin.is-sel .pin-t, .pin.is-hot .pin-t { display: inline; }
  .zone-card { left: 12px; width: auto; }
  .zone-img { aspect-ratio: 16 / 7; }
  .zone-body { padding: 16px 18px 18px; }
  .zone-title { font-size: 25px; margin-bottom: 8px; }
  .zone-text { font-size: 15px; margin-bottom: 12px; }
  .zone-facts { margin-bottom: 14px; }
  .rev-head { grid-template-columns: minmax(0, 1fr); }
  .dn-list { align-self: start; background: transparent; box-shadow: none; padding: 0; }
  .dn.is-night .dn-list { background: transparent; }
  .dn-list li { grid-template-columns: 56px 1fr; padding: 14px 16px; font-size: 16px; display: none; background: rgba(250, 248, 241, .86); }
  .dn-list li.is-now { display: grid; }
  .dn.is-night .dn-list li.is-now { background: rgba(10, 18, 38, .72); }
  .dn.is-static .dn-list { background: transparent; }
  .dn.is-static .dn-list li { display: grid; background: rgba(10, 18, 38, .6); }
  .dn-content { padding-top: calc(var(--hdr) + 16px); gap: 12px; }
  .dn-top .h2 { font-size: 34px; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  .tab { min-height: 60px; padding: 8px 12px; }
  .tab span { font-size: 19px; }
  .tab small { font-size: 12.5px; }
  .book-main { margin: 0 calc(var(--gutter) * -1 + 8px); padding: 12px; border-radius: 22px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(16, 38, 31, .95); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateY(110%); transition: transform .4s var(--ease); }
  .mbar.is-on { transform: none; }
  .mbar-p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .82); }
  .mbar-p b { font: 500 26px/1 var(--f-display); color: #fff; margin-left: 4px; letter-spacing: -.03em; }
  .ftr { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-seal svg, .map-loading span:first-child { animation: none; }
  .btn, .pin, .zone-card, .panel, .tab-ink, .hero-poster { transition: none; }
}

/* internal: ?mapshot=land|port renders the static map image */
html.capture body > *:not(main), html.capture main > section:not(#karta), html.capture .map-head, html.capture .zone-list, html.capture .map-ui, html.capture .map-pins, html.capture .map-loading { display: none !important; }
html.capture #map-frame { position: fixed; inset: 0; z-index: 9999; height: 100vh; min-height: 0; max-width: none; background: #e0efea; }
html.capture .map-static { display: none; }
