/* =========================================================
   Apartment Natura Zadar — Mediterranean luxury
   Palette: olive, terracotta, sand, stone
   ========================================================= */

:root {
  --sand: #F3ECE1;
  --sand-deep: #E9DFCF;
  --cream: #FBF8F2;
  --ink: #1E2619;
  --ink-soft: #4A5243;
  --muted: #5F6558;
  --olive: #5A6B45;
  --olive-deep: #2B3524;
  --olive-darker: #1C2317;
  --terra: #9A4B31;
  --terra-soft: #D9A284;
  --line: rgba(30, 38, 25, .14);
  --line-light: rgba(251, 248, 242, .18);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);

  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1360px;
  --radius: 4px;

  --z-progress: 45;
  --z-nav: 50;
  --z-fab: 40;
  --z-menu: 48;
  --z-lightbox: 80;
  --z-loader: 100;
}

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* subtle paper grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
em { font-style: italic; }
::selection { background: var(--olive); color: var(--cream); }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .booking :focus-visible, .footer :focus-visible, .hero :focus-visible, .menu :focus-visible, .lightbox :focus-visible { outline-color: var(--terra-soft); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  background: var(--ink); color: var(--cream); padding: 10px 16px;
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(96px, 14vw, 180px) 0; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--terra-soft); }
.eyebrow--center { justify-content: center; }

.h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: 1.02; letter-spacing: -.015em;
}
.h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.06; letter-spacing: -.01em;
  margin-bottom: 24px;
}
.h2 em, .h3 em { color: var(--olive); font-weight: 300; }
.section--dark .h2 em, .booking .h2 em { color: var(--terra-soft); }
.body-lg { font-size: clamp(1.02rem, 1.2vw, 1.14rem); color: var(--ink-soft); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 30px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out), transform .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .ico { fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .45s var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn svg use[href="#i-whatsapp"] { stroke: none; }

.btn-light { background: var(--cream); color: var(--ink); }
.btn-light::before { background: var(--terra); }
.btn-light:hover { color: var(--cream); }

.btn-dark { background: var(--olive-deep); color: var(--cream); }
.btn-dark::before { background: var(--terra); }

.btn-outline { border: 1px solid var(--line); color: var(--ink); }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { color: var(--cream); border-color: var(--ink); }

.btn-nav { min-height: 44px; padding: 0 22px; font-size: 12px; background: var(--cream); color: var(--ink); }
.btn-nav::before { background: var(--terra); }
.btn-nav:hover { color: var(--cream); }
.nav.is-scrolled .btn-nav { background: var(--olive-deep); color: var(--cream); }

.btn-block { width: 100%; }

.link-line {
  position: relative; display: inline-block; padding: 6px 0;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform-origin: right; transition: transform .6s var(--ease-io);
}
.link-line:hover::after { transform: scaleX(0); transform-origin: left; animation: relink .6s .6s var(--ease-io) forwards; }
@keyframes relink { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.link-line--light { color: var(--cream); }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s;
}
.round-btn svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.round-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Preloader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-items: center;
  background: var(--olive-darker); color: var(--sand);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.25s var(--ease-io);
}
.js body.is-loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader-inner { text-align: center; transition: transform 1.25s var(--ease-io), opacity .8s; }
body.is-loaded .loader-inner { transform: translateY(-60px); opacity: 0; }
.loader-branch { margin: 0 auto 22px; fill: none; stroke: var(--terra-soft); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.loader-branch path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease-out) forwards; }
.loader-branch path:nth-child(2) { animation-delay: .25s; }
.loader-branch path:nth-child(3) { animation-delay: .35s; }
.loader-branch path:nth-child(4) { animation-delay: .45s; }
.loader-branch path:nth-child(5) { animation-delay: .55s; }
.loader-branch path:nth-child(6) { animation-delay: .65s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-small {
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase; opacity: 0;
  animation: fadeIn 1s .6s var(--ease-out) forwards;
}
.loader-word {
  font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: 1.05; letter-spacing: .02em; overflow: hidden; margin: 6px 0 10px;
}
.loader-word span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease-out) forwards; }
.loader-word span:nth-child(1) { animation-delay: .2s; }
.loader-word span:nth-child(2) { animation-delay: .27s; }
.loader-word span:nth-child(3) { animation-delay: .34s; }
.loader-word span:nth-child(4) { animation-delay: .41s; }
.loader-word span:nth-child(5) { animation-delay: .48s; }
.loader-word span:nth-child(6) { animation-delay: .55s; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeIn { to { opacity: .75; } }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: var(--z-progress); pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--terra); transform-origin: left; transform: scaleX(0); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--pad);
  color: var(--cream);
  transition: transform .7s var(--ease-out), background-color .5s, color .5s, padding .5s var(--ease-out), box-shadow .5s;
}
.js .nav { opacity: 0; transform: translateY(-20px); }
.js body.is-loaded .nav { opacity: 1; transform: none; transition: opacity 1s .9s, transform 1s .9s var(--ease-out), background-color .5s, color .5s, padding .5s var(--ease-out), box-shadow .5s; }
.nav.is-scrolled {
  background: rgba(251, 248, 242, .88);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  color: var(--ink);
  padding-top: 12px; padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.js body.is-loaded .nav.is-hidden { transform: translateY(-110%); }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { color: var(--terra-soft); transition: transform .8s var(--ease-out); }
.nav.is-scrolled .logo-mark { color: var(--olive); }
.logo:hover .logo-mark { transform: rotate(-12deg); }
.logo-text { font-family: var(--serif); font-size: 28px; line-height: 1; font-weight: 400; letter-spacing: .01em; display: flex; flex-direction: column; }
.logo-text small { font-family: var(--sans); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; margin-top: 4px; opacity: .8; }

.nav-links { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav-links a { position: relative; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 10px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-right { display: flex; align-items: center; gap: 22px; }
/* language switcher: segmented pill, always visible at the top */
.lang {
  display: flex; gap: 2px; padding: 3px;
  border: 1px solid rgba(251, 248, 242, .38); border-radius: 999px;
  background: rgba(20, 26, 16, .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .5s, background-color .5s;
}
.lang-btn {
  min-width: 40px; min-height: 36px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  opacity: .8; transition: opacity .3s, background-color .4s var(--ease-out), color .4s;
}
.lang-btn:hover { opacity: 1; }
.lang-btn.is-active { opacity: 1; background: var(--cream); color: var(--ink); }
.nav.is-scrolled .lang { border-color: var(--line); background: transparent; }
.nav.is-scrolled .lang-btn.is-active { background: var(--olive-deep); color: var(--cream); }
.menu-open .nav .lang { border-color: var(--line-light); background: transparent; }
.menu-open .nav .lang-btn.is-active { background: var(--sand); color: var(--ink); }
.menu .lang { display: none; }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .6s var(--ease-io), top .6s var(--ease-io); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--olive-darker); color: var(--sand);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--pad) 40px;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu-open .nav { color: var(--sand); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .nav .btn-nav { opacity: 0; pointer-events: none; }
.menu-links li { overflow: hidden; }
.menu-links a {
  display: flex; align-items: baseline; gap: 18px; padding: 6px 0;
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1.15;
  transform: translateY(105%); transition: transform .8s var(--ease-out), color .3s;
}
.menu-links a i { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .2em; color: var(--terra-soft); }
.menu-links a:hover { color: var(--terra-soft); }
.menu-open .menu-links a { transform: none; }
.menu-open .menu-links li:nth-child(1) a { transition-delay: .25s; }
.menu-open .menu-links li:nth-child(2) a { transition-delay: .31s; }
.menu-open .menu-links li:nth-child(3) a { transition-delay: .37s; }
.menu-open .menu-links li:nth-child(4) a { transition-delay: .43s; }
.menu-open .menu-links li:nth-child(5) a { transition-delay: .49s; }
.menu-open .menu-links li:nth-child(6) a { transition-delay: .55s; }
.menu-foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; border-top: 1px solid var(--line-light); padding-top: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--cream); overflow: hidden;
  background: var(--olive-darker);
}
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 3.2s var(--ease-out); }
body.is-loaded .hero-media img { transform: scale(1.02); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 26, 16, .55) 0%, rgba(20, 26, 16, .08) 28%, rgba(20, 26, 16, .15) 50%, rgba(20, 26, 16, .82) 100%),
    linear-gradient(90deg, rgba(20, 26, 16, .45) 0%, rgba(20, 26, 16, 0) 60%);
}
.hero-content {
  position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 9vh, 110px);
  will-change: transform, opacity;
}
.js .hero-eyebrow { opacity: 0; transform: translateY(16px); transition: opacity 1.2s 1.2s, transform 1.2s 1.2s var(--ease-out); }
.js body.is-loaded .hero-eyebrow { opacity: 1; transform: none; }
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.3rem, 9.4vw, 9rem);
  line-height: .96; letter-spacing: -.025em;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(112%); transition: transform 1.6s var(--ease-out); }
.js .hero-title .line:nth-child(1) > span { transition-delay: .75s; }
.js .hero-title .line:nth-child(2) > span { transition-delay: .9s; }
.js body.is-loaded .hero-title .line > span { transform: none; }
.hero-title em { color: var(--terra-soft); padding-right: .04em; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero-eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero-sub { max-width: 42ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: rgba(251, 248, 242, .88); }
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.js .hero-sub, .js .hero-actions { opacity: 0; transform: translateY(24px); transition: opacity 1.2s, transform 1.2s var(--ease-out); }
.js .hero-sub { transition-delay: 1.35s; }
.js .hero-actions { transition-delay: 1.5s; }
.js body.is-loaded .hero-sub, .js body.is-loaded .hero-actions { opacity: 1; transform: none; }

.hero-coords {
  position: absolute; right: var(--pad); top: 50%;
  writing-mode: vertical-rl; transform: translateY(-50%);
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; opacity: .7;
}
.scroll-cue {
  position: absolute; right: var(--pad); bottom: 30px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase; opacity: .8;
  padding: 6px;
}
.scroll-cue i { width: 1px; height: 46px; background: rgba(251, 248, 242, .25); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: var(--cream); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }

/* ---------- Reveal system ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.reveal-img { position: relative; overflow: hidden; background: var(--sand-deep); }
.js .reveal-img { background: transparent; }
/* clip the children, not the observed element (IntersectionObserver ignores fully clipped targets) */
.js .reveal-img > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-io); }
.js .reveal-img.is-in > * { clip-path: inset(0 0 0 0); }
.reveal-img .px { position: absolute; left: 0; right: 0; top: -9%; height: 118%; will-change: transform; }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; }
.js .reveal-img img { transform: scale(1.22); transition: transform 2.2s var(--ease-out); }
.js .reveal-img.is-in img { transform: scale(1); }

/* word split */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
[data-split] .wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(108%); transition: transform 1.15s var(--ease-out); }
.js [data-split].is-in .wi { transform: none; }

/* scroll-highlight paragraph */
[data-highlight] .hw { transition: opacity .5s var(--ease-out), color .5s; }
.js [data-highlight] .hw { opacity: .16; }
.js [data-highlight] .hw.on { opacity: 1; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.intro-lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.9rem, 3.1vw, 2.9rem); line-height: 1.22; letter-spacing: -.005em;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.stat dt { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); order: 2; }
.stat { display: flex; flex-direction: column-reverse; gap: 6px; }
.stat dd { font-family: var(--serif); font-size: clamp(2.4rem, 3.6vw, 3.4rem); line-height: 1; font-weight: 300; color: var(--olive-deep); }
.stat dd small { font-size: .45em; margin-left: 4px; color: var(--muted); }

.intro-visual { position: relative; padding-bottom: 18%; }
.intro-img-main { aspect-ratio: 4 / 5; width: 82%; margin-left: auto; border-radius: var(--radius); }
.intro-img-small { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1 / 1; border-radius: var(--radius); border: 10px solid var(--sand); }
.js .intro-img-small > * { transition-delay: .25s; }
.js .intro-img-small img { transition-delay: .25s; }
.intro-badge {
  position: absolute; right: -8px; bottom: 6%;
  display: flex; align-items: center; gap: 12px;
  background: var(--cream); padding: 14px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(30, 38, 25, .35);
}
.intro-badge svg { color: var(--olive); flex: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(20px, 3vw, 36px) 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px);
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 5rem); line-height: 1.1; color: var(--olive-deep); white-space: nowrap;
}
.marquee-item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--olive); }
.marquee-item svg { color: var(--terra); flex: none; width: .5em; height: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Spaces ---------- */
.section-head { max-width: 780px; margin-bottom: clamp(64px, 9vw, 130px); }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.space {
  display: grid; grid-template-columns: repeat(12, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(96px, 13vw, 190px);
}
.space:last-child { margin-bottom: 0; }
.space-media { grid-column: 1 / span 7; aspect-ratio: 3 / 2; border-radius: var(--radius); }
.space-media--tall { aspect-ratio: 4 / 4.4; grid-column: 1 / span 6; }
.space-body { grid-column: 9 / span 4; position: relative; }
.space--rev .space-media { grid-column: 6 / span 7; order: 2; }
.space--rev .space-media--tall { grid-column: 7 / span 6; }
.space--rev .space-body { grid-column: 1 / span 4; order: 1; }
.space-num {
  position: absolute; top: -.72em; left: -.08em; z-index: -1;
  font-family: var(--serif); font-weight: 300; font-size: clamp(7rem, 13vw, 12rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(154, 75, 49, .28);
  pointer-events: none;
}
.space-body { z-index: 0; }

/* ---------- Gallery ---------- */
.gallery { position: relative; background: var(--cream); padding: clamp(96px, 12vw, 150px) 0; }
.gallery.is-pinned { padding: 0; }
.gallery.is-pinned .gallery-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(32px, 4vh, 56px); }
.gallery-head .h2 { margin: 0; }
.gallery-meta { display: flex; align-items: center; gap: 18px; font-size: 13px; letter-spacing: .14em; color: var(--muted); padding-bottom: 12px; }
.gallery-count b { font-weight: 600; color: var(--ink); }
.gallery-bar { width: clamp(80px, 12vw, 180px); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.gallery-bar span { position: absolute; inset: 0; background: var(--terra); transform-origin: left; transform: scaleX(.08); }
.gallery-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery.is-pinned .gallery-viewport { overflow: visible; }
.gallery-track { display: flex; gap: clamp(16px, 2vw, 32px); width: max-content; padding: 0 var(--pad); will-change: transform; }
.g-item { position: relative; flex: none; text-align: left; scroll-snap-align: center; cursor: zoom-in; }
.g-img { display: block; overflow: hidden; border-radius: var(--radius); background: var(--sand-deep); height: min(58vh, 560px); }
.g-item--wide .g-img { aspect-ratio: 3 / 2; }
.g-item--tall .g-img { aspect-ratio: 4 / 5; }
.g-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease-out), filter .6s; }
.g-item:hover .g-img img, .g-item:focus-visible .g-img img { transform: scale(1.12); }
.g-cap { display: flex; gap: 14px; align-items: baseline; margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.g-cap i { font-style: normal; font-size: 11px; letter-spacing: .2em; color: var(--terra); font-weight: 600; }
.g-zoom {
  position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(251, 248, 242, .92); color: var(--ink);
  opacity: 0; transform: scale(.7); transition: opacity .4s, transform .5s var(--ease-out);
}
.g-zoom svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { opacity: 1; transform: none; }

/* ---------- Amenities ---------- */
.section--dark { background: var(--olive-deep); color: var(--sand); }
.checkin { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: rgba(243, 236, 225, .85); }
.checkin p { display: flex; align-items: center; gap: 12px; }
.checkin svg { fill: none; stroke: var(--terra-soft); stroke-width: 1.6; }
.am-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.am {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  padding: clamp(24px, 2.6vw, 40px);
  border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
  font-size: 15px; line-height: 1.4; color: rgba(243, 236, 225, .92);
  overflow: hidden;
}
.am::before {
  content: ""; position: absolute; inset: 0; background: rgba(243, 236, 225, .05);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out);
}
.am:hover::before { transform: scaleY(1); }
.am-ico {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(217, 162, 132, .45); color: var(--terra-soft);
  transition: background .5s var(--ease-out), color .5s, border-color .5s, transform .6s var(--ease-out);
}
.am-ico svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.am:hover .am-ico { background: var(--terra-soft); color: var(--olive-deep); border-color: var(--terra-soft); transform: rotate(-8deg); }
.am > span:last-child { position: relative; }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.loc-text .h2 { margin-bottom: 28px; }
.distances { margin-top: 48px; border-top: 1px solid var(--line); }
.distances li { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.distances i { flex: 1; border-bottom: 1px dotted rgba(30, 38, 25, .3); transform: translateY(-4px); }
.distances b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--olive-deep); }
.loc-map { aspect-ratio: 4 / 4.2; border-radius: var(--radius); }
.loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) sepia(.25) contrast(.95) brightness(1.02); transition: filter .8s; }
.loc-map:hover iframe { filter: none; }
.loc-pin {
  position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--olive-deep); color: var(--sand); padding: 12px 18px; border-radius: 999px; font-size: 13px; letter-spacing: .06em;
  pointer-events: none;
}
.loc-pin svg { fill: none; stroke: var(--terra-soft); stroke-width: 1.6; }

/* ---------- Reviews ---------- */
.reviews { background: var(--sand-deep); text-align: center; overflow: hidden; }
.reviews-inner { max-width: 980px; }
.rev-quote-mark { font-family: var(--serif); font-size: clamp(7rem, 12vw, 10rem); line-height: .5; color: var(--terra); opacity: .5; height: .45em; margin-top: 12px; }
.rev-stage { display: grid; margin: 24px 0 48px; }
.rev-slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), visibility 0s .9s;
}
.rev-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 1s .15s var(--ease-out), transform 1s .15s var(--ease-out), visibility 0s; }
.rev-stars { display: flex; justify-content: center; gap: 4px; color: var(--terra); margin-bottom: 26px; }
.rev-stars svg { fill: currentColor; stroke: none; }
.rev-text { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.3; color: var(--ink); max-width: 30ch; margin: 0 auto 30px; }
.rev-text--long { font-size: clamp(1.25rem, 2.2vw, 1.8rem); max-width: 40ch; }
.rev-author { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.rev-author span { display: block; font-weight: 400; letter-spacing: .12em; color: var(--muted); margin-top: 4px; font-size: 12px; }
.rev-controls { display: flex; align-items: center; justify-content: center; gap: 24px; }
.rev-dots { display: flex; gap: 4px; }
.rev-dot { width: 44px; height: 44px; display: grid; place-items: center; }
.rev-dot::before { content: ""; width: 28px; height: 2px; background: var(--line); transition: background .4s, width .5s var(--ease-out); }
.rev-dot.is-active::before { background: var(--terra); width: 40px; }

/* ---------- Booking ---------- */
.booking { position: relative; overflow: hidden; color: var(--sand); padding: clamp(110px, 14vw, 190px) 0; background: var(--olive-darker); }
.booking-bg { position: absolute; inset: 0; overflow: hidden; }
.booking-bg .px { position: absolute; left: 0; right: 0; top: -10%; height: 120%; }
.booking-bg img { width: 100%; height: 100%; object-fit: cover; }
.booking-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(28, 35, 23, .94) 0%, rgba(28, 35, 23, .86) 45%, rgba(28, 35, 23, .55) 100%); }
.booking-grid { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 540px); gap: clamp(48px, 7vw, 110px); align-items: center; }
.booking-text .h2 { margin-bottom: 28px; }
.booking-text .body-lg { color: rgba(243, 236, 225, .85); }
.contact-list { margin-top: 44px; display: flex; flex-direction: column; gap: 6px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list svg { flex: none; fill: none; stroke: var(--terra-soft); stroke-width: 1.5; color: var(--terra-soft); }
.contact-list .host { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-soft); }
.contact-list li > span:not(.host) { font-size: 15px; color: rgba(243, 236, 225, .8); padding: 8px 0; }
.contact-list a { position: relative; padding: 8px 0; font-size: 17px; }
.contact-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.contact-list a:hover::after { transform: scaleX(1); transform-origin: left; }

.bk-form {
  background: var(--cream); color: var(--ink);
  border-radius: 6px; padding: clamp(28px, 3.4vw, 48px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(30, 38, 25, .28);
  border-radius: 0; padding: 8px 0;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231E2619' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.field input[type="date"] { cursor: pointer; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--terra); box-shadow: 0 1px 0 var(--terra); }
.field input[aria-invalid="true"] { border-bottom-color: #B3261E; }
.field textarea::placeholder { color: #8A8F82; }
.bk-summary { min-height: 1.6em; font-family: var(--serif); font-size: 1.35rem; color: var(--olive-deep); margin: -4px 0 6px; }
.bk-error { min-height: 1.4em; font-size: 14px; color: #B3261E; margin-bottom: 8px; }
.bk-actions { display: grid; gap: 12px; }
.bk-actions .btn svg use[href="#i-whatsapp"] { fill: currentColor; }
.bk-note { margin-top: 18px; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--olive-darker); color: var(--sand); padding: clamp(80px, 10vw, 130px) 0 32px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 15px; }
.footer-col a:not(.btn) { padding: 4px 0; opacity: .82; transition: opacity .3s, color .3s; }
.footer-col a:not(.btn):hover { opacity: 1; color: var(--terra-soft); }
.footer-col--cta { align-items: flex-end; text-align: right; gap: 26px; }
.footer-col--cta .btn { opacity: 1; }
.footer-col--cta .btn:hover { color: var(--cream); }
.footer-tag { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.2; }
.muted-light { color: rgba(243, 236, 225, .6); }
.footer-word {
  font-family: var(--serif); font-weight: 300; font-size: clamp(6rem, 25vw, 26rem);
  line-height: .82; letter-spacing: -.03em; text-align: center; color: var(--sand);
  margin: 0 -.05em; padding-top: .06em; user-select: none;
}
.footer-word .wi { color: var(--sand); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line-light); padding-top: 24px; margin-top: 16px; font-size: 13px; color: rgba(243, 236, 225, .65); }
.to-top { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; transition: color .3s; }
.to-top svg { fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease-out); }
.to-top:hover { color: var(--terra-soft); }
.to-top:hover svg { transform: translateY(-4px); }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-fab);
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--olive-deep); color: var(--cream);
  box-shadow: 0 16px 36px -12px rgba(28, 35, 23, .6);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .5s, transform .6s var(--ease-out), background .3s;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: var(--terra); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  background: rgba(20, 25, 16, .96); color: var(--cream);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-stage { max-width: min(1200px, 88vw); transform: scale(.96); transition: transform .7s var(--ease-out); }
.lightbox.is-open .lb-stage { transform: none; }
.lb-img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius); transition: opacity .35s, transform .5s var(--ease-out); }
.lb-img.is-swapping { opacity: 0; transform: translateX(var(--dir, 20px)); }
.lb-cap { display: flex; justify-content: center; gap: 16px; margin-top: 18px; font-size: 14px; letter-spacing: .06em; color: rgba(251, 248, 242, .8); }
.lb-count { color: var(--terra-soft); letter-spacing: .2em; font-size: 12px; font-weight: 600; padding-top: 2px; }
.lightbox .round-btn { position: absolute; border-color: var(--line-light); color: var(--cream); }
.lightbox .round-btn:hover { background: var(--cream); color: var(--ink); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; margin-top: -26px; }
.lb-next { right: 22px; top: 50%; margin-top: -26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .am-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col--cta { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
}
@media (max-width: 900px) {
  .intro-grid, .loc-grid, .booking-grid { grid-template-columns: 1fr; }
  .intro-visual { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .space, .space--rev { grid-template-columns: 1fr; gap: 36px; }
  .space-media, .space-media--tall, .space--rev .space-media, .space--rev .space-media--tall { grid-column: 1; order: 0; aspect-ratio: 4 / 3.4; }
  .space-body, .space--rev .space-body { grid-column: 1; order: 1; }
  .space-num { font-size: 6rem; top: -.55em; }
  .hero-coords { display: none; }
  .g-img { height: auto; width: 78vw; }
  .g-item--wide .g-img, .g-item--tall .g-img { aspect-ratio: 4 / 5; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .loc-map { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 900px) {
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-right { gap: 8px; }
  .lang-btn { min-width: 36px; padding: 0 6px; font-size: 11px; }
  .logo { gap: 8px; }
  .logo-text small { letter-spacing: .16em; white-space: nowrap; font-size: 8.5px; }
  .btn-nav { display: none; }
  .logo-text { font-size: 24px; }
  .hero-actions { gap: 20px; }
  .am-grid { grid-template-columns: repeat(2, 1fr); }
  .am { padding: 22px 18px; font-size: 14px; }
  .bk-row { grid-template-columns: 1fr; gap: 0; }
  .intro-badge { right: 0; bottom: -2%; font-size: 12px; padding: 12px 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; margin: 0; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .scroll-cue { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .reveal-img > *, .js [data-split] .wi, .js .hero-title .line > span, .js .hero-sub, .js .hero-actions, .hero-eyebrow { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-highlight] .hw { opacity: 1; }
  .marquee-track { animation: none; }
  .hero-media img, .js .reveal-img img { transform: none !important; }
}
