/* =========================================================
   Casa Bellavista (demo) — "Quiet Luxury"
   Calm private villa: clean white, deep Amalfi blue
   (the shutters) as the only accent. Refined serif headlines,
   light sans text, small spaced capitals in the menu.
   Headlines: Cormorant Garamond. Text: Jost.
   Deliberately different from Areia: no orange, no pills,
   no lowercase, slow dissolves instead of wipes.
   ========================================================= */

:root {
  --stone: #ffffff;       /* clean white */
  --stone-2: #f3f5f7;
  --ink: #1d2733;         /* text */
  --ink-soft: #5b6470;
  --blue: #1f3b5c;        /* Amalfi shutter blue: the only accent */
  --blue-soft: #d9e1ea;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;

  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.25, 1, 0.3, 1);
  --slow: cubic-bezier(0.45, 0, 0.15, 1);
  /* soft, wide glow-shadow that lifts photos off the page */
  --lift: 0 36px 90px -10px rgba(29, 39, 51, 0.36), 0 12px 30px -8px rgba(29, 39, 51, 0.2);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
body.is-loading, body.menu-open { overflow: hidden; }

/* ---------- Buttons: square-cornered, thin lines (not pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 2px;
  font: 400 0.78rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn--line { border: 1px solid currentColor; }
.btn--line:hover { background: var(--white); color: var(--blue); border-color: var(--white); }

/* ---------- Loading screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--stone);
  transition: opacity 1.4s var(--slow), visibility 1.4s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
/* between pages: just the limestone veil, no monogram */
.loader.is-veil .loader__inner { display: none; }
.loader.is-veil { transition-duration: 0.8s; }
.loader.is-leaving { transition-duration: 0.6s; }
.loader__inner { display: grid; justify-items: center; gap: 18px; }
.monogram path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 1.8s var(--slow) forwards;
}
.monogram path:nth-child(2) { animation-delay: 0.35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  opacity: 0;
  animation: fade 1s ease 1.1s forwards;
}
@keyframes fade { to { opacity: 1; } }
.loader__bar { width: 120px; height: 1px; background: rgba(31, 59, 92, 0.15); overflow: hidden; opacity: 0; animation: fade 0.8s ease 0.6s forwards; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width 0.5s ease; }

/* ---------- Menu ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px var(--gutter);
  color: var(--white);
  transition: background 0.8s var(--ease), color 0.8s var(--ease), padding 0.8s var(--ease), border-color 0.8s ease;
  border-bottom: 1px solid transparent;
}
/* past the photo, the menu settles onto limestone */
.nav.is-solid {
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(255,255,255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-color: rgba(29, 39, 51, 0.08);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mono {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.nav__name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.04em; white-space: nowrap; }

.nav__links { display: flex; gap: clamp(22px, 3vw, 44px); }
.nav__links a {
  position: relative;
  padding: 6px 0;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
/* thin line that grows from the centre */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
/* hovering another link: the current page's line hides, so only one shows */
.nav__links:hover a[aria-current="page"]:not(:hover)::after { transform: scaleX(0); }

.nav__right { display: flex; align-items: center; gap: 16px; }

/* language globe + small dropdown (never a pop-up) */
.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: 6px; padding: 8px 4px; font-size: 0.72rem; letter-spacing: 0.14em; }
.lang__btn svg { fill: none; stroke: currentColor; stroke-width: 1.3; }
.lang__list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 170px;
  padding: 8px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(29, 39, 51, 0.08);
  box-shadow: 0 24px 50px -24px rgba(29, 39, 51, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease), visibility 0.4s;
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; transform: none; }
.lang__list button { width: 100%; padding: 9px 12px; text-align: left; font-size: 0.92rem; font-weight: 300; }
.lang__list button:hover { background: var(--stone); }
.lang__list button[aria-current="true"] { color: var(--blue); font-weight: 400; }

.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 1px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 23px; }
.menu-open .nav__burger span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* phone menu: a limestone sheet that dissolves in */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stone);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--slow), visibility 0.6s;
}
.menu-open .sheet { opacity: 1; visibility: visible; }
.sheet__links { display: grid; gap: 10px; text-align: center; }
.sheet__links a { font-family: var(--serif); font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.2; }
.sheet__links a:last-child { color: var(--blue); font-style: italic; }
.menu-open .nav { color: var(--ink); }

@media (max-width: 920px) {
  .nav__links, .nav__book { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 420px) {
  .nav__name { font-size: 1.15rem; }
}

/* ---------- First screen ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
}
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  /* a slow settle (the photo drifts back to still), not a zoom-in */
  transform: scale(1.06);
  transition: transform 3.4s var(--slow);
}
.is-ready .hero__photo img { transform: scale(1); }
/* soft shade for readable text, then a fade into the limestone below */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 28, 38, 0.38) 0%, transparent 22%),
    radial-gradient(60% 34% at 50% 52%, rgba(20, 28, 38, 0.5), transparent 78%);
}
/* scroll transition: the photo drifts slowly (parallax) and dissolves into limestone.
   script.js sets --p from 0 (top) to 1 (first screen scrolled away). */
.hero { --p: 0; background: var(--stone); }
.hero__frame { position: absolute; inset: 0; overflow: hidden; }
.hero__frame .hero__photo img,
.is-ready .hero__frame .hero__photo img {
  transform: translateY(calc(var(--p) * 22%)) scale(calc(1 + var(--p) * 0.05));
  opacity: calc(1 - var(--p) * 0.85);
}
/* the long, eased blend into limestone (many stops = no visible band) */
.hero__blend {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none;
  height: calc(46% + var(--p) * 30%);
  background: linear-gradient(180deg,
    rgba(255,255,255, 0) 0%,
    rgba(255,255,255, 0.03) 18%,
    rgba(255,255,255, 0.1) 32%,
    rgba(255,255,255, 0.22) 45%,
    rgba(255,255,255, 0.38) 57%,
    rgba(255,255,255, 0.56) 68%,
    rgba(255,255,255, 0.74) 78%,
    rgba(255,255,255, 0.88) 87%,
    rgba(255,255,255, 0.97) 94%,
    var(--stone) 100%);
}
.hero__text { transform: translateY(calc(var(--p) * -80px)); opacity: calc(1 - var(--p) * 1.5); }
.hero--page .hero__text { transform: none; opacity: 1; }
/* very fine grain: hides the photo's softness */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  text-align: center;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 14ch;
  text-shadow: 0 2px 30px rgba(20, 28, 38, 0.45), 0 0 2px rgba(20, 28, 38, 0.2);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.6s var(--slow) 0.5s, transform 1.8s var(--slow) 0.5s;
}
.hero__place {
  margin-top: 26px;
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-shadow: 0 1px 3px rgba(20, 28, 38, 0.55), 0 0 22px rgba(20, 28, 38, 0.55);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1.4s ease 1.2s;
}
.is-ready .hero__title { opacity: 1; transform: none; }
.is-ready .hero__place { opacity: 1; }
@media (min-width: 900px) { .hero__title { max-width: none; } }

/* scroll hint: a thin blue line that slowly fills and empties. No text, no arrow bobbing. */
.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(18px, 3.5vh, 34px);
  width: 40px;
  margin-left: -20px;
  display: grid;
  justify-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 1s ease 1.8s;
}
.is-ready .scroll-cue { opacity: 1; }
.scroll-cue.is-gone { opacity: 0 !important; pointer-events: none; transition-delay: 0s; }
/* like the ReWeb and Areia cues: a soft track with a blue drop gliding down it, and a small arrow */
.scroll-cue span { position: relative; width: 2px; height: 56px; border-radius: 2px; background: rgba(31, 59, 92, 0.18); overflow: hidden; }
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -16px;
  width: 100%;
  height: 16px;
  border-radius: 2px;
  background: var(--blue);
  animation: cueDrop 2.2s var(--slow) infinite;
}
.scroll-cue svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.2s var(--slow) infinite; }
@keyframes cueDrop {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  80%, 100% { transform: translateY(72px); opacity: 0; }
}
@keyframes nudge { 0%, 100% { transform: translateY(-2px); opacity: 0.65; } 50% { transform: translateY(4px); opacity: 1; } }
@keyframes line {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Inner-page headers ---------- */
.hero--page { height: 70svh; min-height: 460px; }
.hero--page::after {
  background:
    linear-gradient(180deg, rgba(20, 28, 38, 0.38) 0%, transparent 22%),
    radial-gradient(60% 34% at 50% 50%, rgba(20, 28, 38, 0.46), transparent 78%),
    linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,255,255,0.12) 68%, rgba(255,255,255,0.4) 80%, rgba(255,255,255,0.75) 90%, var(--stone) 100%) !important;
}
.hero--page .hero__title { font-size: clamp(3rem, 7vw, 6rem); }

/* ---------- Shared layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(96px, 12vw, 170px) 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__note { color: var(--ink-soft); max-width: 36ch; text-align: right; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1.05; letter-spacing: -0.005em; }
.kicker { margin-bottom: 18px; font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--blue); font-weight: 400; }
figure { margin: 0; }
.link {
  display: inline-block; padding-bottom: 6px;
  font-size: 0.74rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue);
  background: linear-gradient(var(--blue), var(--blue)) left bottom / 100% 1px no-repeat;
  transition: background-size 0.7s var(--ease);
}
.link:hover { background-size: 30% 1px; }
.btn--blue { background: var(--blue); color: var(--white); border: 1px solid var(--blue); }
.btn--blue:hover { background: transparent; color: var(--blue); }
/* soft shadow behind photos, just a little depth */
.hosts__photo img, .slider__images, .room__img img, .split__img img, .area-teaser__imgs img, .map, .book__card {
  box-shadow: var(--lift);
}

/* ---------- Reveal: slow rise and fade ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.3s var(--slow), transform 1.5s var(--slow); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Intro statement: words rise in one by one ---------- */
.intro { padding: clamp(110px, 13vw, 190px) 0 clamp(40px, 5vw, 70px); text-align: center; }
.intro__line {
  margin: 0 auto; max-width: 20ch;
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.12; text-wrap: balance;
}
.intro__line--small { max-width: 30ch; font-size: clamp(1.7rem, 3vw, 2.5rem); text-align: center; }
.intro__sub { margin: 26px auto 0; max-width: 40ch; color: var(--ink-soft); font-size: 1.08rem; }
[data-words] .w { display: inline-block; opacity: 0; transform: translateY(0.35em); transition: opacity 1s ease, transform 1.2s var(--slow); }
[data-words].is-in .w { opacity: 1; transform: none; }
/* calm, premium line reveal: the whole sentence comes into focus, no movement */
[data-soft] { opacity: 0; filter: blur(8px); transition: opacity 2.2s var(--slow), filter 2.4s var(--slow); }
[data-soft].is-in { opacity: 1; filter: none; }

/* ---------- Hosts: editorial spread, photo bleeds to the left edge of the screen ---------- */
.hosts__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.hosts__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hosts__photo--square img { aspect-ratio: 1; }
.hosts__quote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.22; color: var(--ink); }
.hosts__sign { margin-top: 24px; font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--blue); }
.hosts__body { margin: 28px 0 34px; color: var(--ink-soft); max-width: 42ch; font-size: 1.05rem; }
.hosts--page .hosts__body { margin-top: 22px; }
@media (max-width: 860px) {
  .hosts__grid { grid-template-columns: 1fr; }
}

/* home: text left, the wide photo right in its natural shape, set on an offset limestone panel */
.hosts--side { padding-top: clamp(70px, 9vw, 120px); }
.hosts__side { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hosts--side .hosts__quote { font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.28; }
.hosts--side .hosts__body { margin: 26px 0 32px; }
/* underline sits on the "Your hosts" label here, not on the link */
.hosts--side .kicker { display: inline-block; padding-bottom: 6px; background: linear-gradient(var(--blue), var(--blue)) left bottom / 100% 1px no-repeat; }
/* text link with a long thin arrow instead of an underline */
.link--arrow { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 0; background: none; }
.link--arrow svg { width: 30px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1; transition: transform 0.7s var(--ease); }
.link--arrow:hover svg { transform: translateX(6px); }
.hosts__pic { position: relative; }
.hosts__pic::before {
  content: ""; position: absolute; z-index: 0;
  top: 12%; right: -7%; bottom: -12%; left: 16%;
  background: var(--stone-2);
}
.hosts__pic img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  box-shadow: var(--lift);
}
@media (max-width: 860px) {
  .hosts__side { grid-template-columns: 1fr; }
  .hosts__pic { order: -1; }
  .hosts__pic::before { right: -4%; }
}

/* ---------- Reel (walkthrough film) ---------- */
.reel { padding: clamp(40px, 6vw, 90px) 0 clamp(20px, 3vw, 40px); }
.reel__head { text-align: center; margin-bottom: clamp(32px, 4.5vw, 56px); }
.reel__frame { max-width: 1080px; margin: 0 auto; }
.reel__video {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--stone-2);
  box-shadow: var(--lift);
}

/* ---------- Rooms slider (arrows, crossfade) ---------- */
.rooms-slider { padding-top: clamp(40px, 6vw, 80px); }
.slider { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
/* "All rooms and prices" lines up with the room text column, on the heading's baseline */
.rooms-slider .section__head { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: baseline; }
.rooms-slider .section__head .link { justify-self: start; }
.slider__images { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--slow); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 2.4s var(--slow); }
.slide.is-on { opacity: 1; }
.slide.is-on img { transform: none; }
.slider__texts { position: relative; min-height: 250px; }
.slide-text { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity 0.35s ease, transform 0.6s var(--slow); pointer-events: none; }
.slide-text.is-on { opacity: 1; transform: none; transition: opacity 0.9s ease 0.45s, transform 1.1s var(--slow) 0.45s; pointer-events: auto; }
.slide-text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; }
.slide-text p { margin-top: 14px; color: var(--ink-soft); max-width: 32ch; }
.slide-text .slide-text__price { margin: 22px 0 26px; color: var(--ink); font-size: 0.95rem; }
.slide-text__price b, .room__price b { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: var(--blue); }
.slider__nav { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.slider__arrow { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(29, 39, 51, 0.25); border-radius: 50%; transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }
.slider__arrow:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.slider__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.slider__count { font-size: 0.8rem; letter-spacing: 0.2em; color: var(--ink-soft); }
.slider__count b { color: var(--blue); font-weight: 400; }
@media (max-width: 860px) {
  .slider { grid-template-columns: 1fr; }
  .rooms-slider .section__head { display: flex; align-items: flex-end; }
  .slider__texts { min-height: 250px; }
}
@media (max-width: 700px) {
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__note { text-align: left; }
  .wide__text .h2 { font-size: 2.1rem; }
}

/* ---------- Numbers: big italic numerals, no box, no lines ---------- */
.numbers { padding: clamp(40px, 6vw, 80px) 0 clamp(110px, 13vw, 170px); }
.numbers__row {
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center;
  border-top: 1px solid rgba(31, 59, 92, 0.18); border-bottom: 1px solid rgba(31, 59, 92, 0.18);
}
.numbers__row li { display: grid; justify-items: center; align-content: center; gap: 14px; padding: clamp(34px, 4vw, 52px) clamp(18px, 3vw, 40px); }
.numbers__row li + li { border-left: 1px solid rgba(31, 59, 92, 0.18); }
.numbers__k { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--blue); }
.numbers__v { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.3; color: var(--ink); max-width: 18ch; text-wrap: balance; }
@media (max-width: 700px) {
  .numbers__row { grid-template-columns: 1fr; }
  .numbers__row li + li { border-left: 0; border-top: 1px solid rgba(31, 59, 92, 0.18); }
}

/* ---------- Full-width photo, blended at top and bottom ---------- */
.wide { position: relative; height: clamp(520px, 84vh, 800px); overflow: hidden; color: var(--white); }
.wide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wide::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* eased fade into limestone at both edges, so there is no visible seam */
    linear-gradient(180deg,
      var(--stone) 0%, rgba(255,255,255, 0.94) 3%, rgba(255,255,255, 0.8) 7%, rgba(255,255,255, 0.6) 11%,
      rgba(255,255,255, 0.38) 15%, rgba(255,255,255, 0.2) 19%, rgba(255,255,255, 0.08) 23%, rgba(255,255,255, 0) 28%,
      rgba(255,255,255, 0) 72%, rgba(255,255,255, 0.08) 77%, rgba(255,255,255, 0.2) 81%, rgba(255,255,255, 0.38) 85%,
      rgba(255,255,255, 0.6) 89%, rgba(255,255,255, 0.8) 93%, rgba(255,255,255, 0.94) 97%, var(--stone) 100%),
    radial-gradient(58% 42% at 50% 52%, rgba(20, 28, 38, 0.45), transparent 78%);
}
.wide__text { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--gutter); text-align: center; }
.wide__text .h2 { max-width: 22ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(20, 28, 38, 0.4); }
.wide__text p { margin-top: 20px; max-width: 40ch; font-size: 1.05rem; text-shadow: 0 1px 14px rgba(20, 28, 38, 0.6); }

/* ---------- Area teaser: text + two staggered photos ---------- */
.area-teaser__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.area-teaser__text p:not(.kicker) { margin: 22px 0 32px; color: var(--ink-soft); max-width: 36ch; font-size: 1.05rem; }
.area-teaser__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.area-teaser__imgs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.area-teaser__b { margin-top: 70px; }
@media (max-width: 860px) { .area-teaser__grid { grid-template-columns: 1fr; } }

/* ---------- Booking ---------- */
.section--book { background: var(--stone-2); }
.book { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.book__text > p { margin: 22px 0 30px; color: var(--ink-soft); max-width: 34ch; font-size: 1.05rem; }
.book__card { padding: clamp(24px, 3.4vw, 40px); background: var(--white); }
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking__field { display: grid; gap: 8px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.booking__field--wide { grid-column: 1 / -1; }
.booking select, .booking input {
  width: 100%; padding: 13px 14px; border: 1px solid rgba(29, 39, 51, 0.18); border-radius: 0;
  background: var(--stone); color: var(--ink); font: 300 1rem var(--sans); letter-spacing: 0; text-transform: none;
  appearance: none; -webkit-appearance: none;
}
.booking select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f3b5c' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.booking select:focus, .booking input:focus { outline: none; border-color: var(--blue); }
.booking__nights { grid-column: 1 / -1; min-height: 1.4em; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--blue); }
.booking__go { grid-column: 1 / -1; padding: 16px; }
.booking[hidden], .booking-preview[hidden] { display: none; }
.booking-preview { display: grid; gap: 16px; justify-items: start; }
.booking-preview__title { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }
.booking-preview__text { color: var(--ink-soft); max-width: 40ch; }
.booking-preview__back { font-size: 0.85rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .booking { grid-template-columns: 1fr; } }

/* ---------- "See more" details ---------- */
.more { max-width: 44ch; padding: 16px 0; border-bottom: 1px solid rgba(29, 39, 51, 0.1); }
.more summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-family: var(--serif); font-size: 1.3rem; line-height: 0.8; color: var(--blue); transition: transform 0.5s var(--ease); }
.more[open] summary::after { transform: rotate(45deg); }
.more p { margin-top: 12px; color: var(--ink-soft); }

/* ---------- Rooms page / area page rows ---------- */
.room { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.room + .room { margin-top: clamp(100px, 12vw, 160px); }
.room--reverse .room__img { order: 2; }
.room__img img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.room__desc { margin-top: 20px; color: var(--ink-soft); max-width: 38ch; font-size: 1.05rem; }
.room__facts { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 0.95rem; }
.room__facts li { padding-left: 16px; position: relative; }
.room__facts li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 1px; background: var(--blue); }
.room__foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 34px; }
.room__price { font-size: 0.95rem; }
.spacer { height: clamp(100px, 12vw, 160px); }
@media (max-width: 860px) { .room { grid-template-columns: 1fr; } .room--reverse .room__img { order: 0; } }

/* ---------- House page ---------- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(100px, 12vw, 160px); }
.split--reverse .split__img { order: 2; }
.split__img img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.split__text p:not(.kicker) { margin-top: 20px; color: var(--ink-soft); max-width: 36ch; font-size: 1.05rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__img { order: 0; } }

/* ---------- Good to know ---------- */
.know__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); }
@media (max-width: 860px) { .know__grid { grid-template-columns: 1fr; } }

/* ---------- Map ---------- */
.mapbox { margin-top: clamp(48px, 6vw, 72px); }
.map { height: clamp(380px, 60vh, 560px); background: var(--stone-2); z-index: 0; }
.map--short { height: clamp(320px, 46vh, 440px); }
.map .leaflet-control-attribution { background: rgba(255,255,255, 0.85); font-size: 10px; }
.pin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); }
.pin--home { width: 20px; height: 20px; background: var(--blue); border: 3px solid var(--white); }
.map-label { padding: 6px 12px; border: 0; border-radius: 0; background: var(--white); color: var(--ink); font: 400 0.8rem var(--sans); letter-spacing: 0.04em; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35); }
.map-label::before { display: none; }
.map-label--home { background: var(--blue); color: var(--white); font-family: var(--serif); font-size: 0.95rem; }
.map-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--ink-soft); font-size: 0.92rem; }
.map-note .pin { width: 12px; height: 12px; border-width: 2px; box-shadow: none; }

/* ---------- Footer: Amalfi blue ---------- */
.footer { background: var(--blue); color: rgba(255, 255, 255, 0.75); padding: clamp(64px, 8vw, 96px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 1.6rem; color: var(--white); }
.footer__line { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.footer__links, .footer__contact { display: grid; gap: 10px; align-content: start; font-size: 0.92rem; }
.footer__links a:hover, .footer__contact a:hover { color: var(--white); }
.footer__base { margin-top: clamp(48px, 6vw, 72px); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; justify-content: space-between; gap: 16px; font-size: 0.76rem; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } .footer__base { flex-direction: column; } }

/* ---------- Smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .hero__photo img { transform: none; }
  [data-reveal], [data-words] .w { opacity: 1; transform: none; }
  [data-soft] { opacity: 1; filter: none; }
}
