/* ============================================================
   Central Apartment Matera — design system
   Palette drawn from Matera's tufo limestone: warm ivory,
   sun-baked stone, terracotta. Type: Fraunces (display) + Inter.
   ============================================================ */

/* ---------- Fonts (self-hosted, GDPR-friendly) ---------- */
/* Prata ships a single 400 weight and no italic — italics are synthesised. */
@font-face {
  font-family: 'Prata';
  src: url('../fonts/prata-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F6F1E7;
  --paper-2: #EFE6D4;
  --cream: #FBF8F1;
  --ink: #28211A;
  --ink-soft: #5D5346;
  --line: rgba(40, 33, 26, .14);
  --terra: #2E241B;       /* primary accent: dark brown, kin to the reviews panel */
  --terra-deep: #1B1510;
  --gold: #B98A4A;
  --green: #6FE08B;        /* light, vibrant green for the direct-booking offer */
  --green-deep: #27934D;
  --night: #241D16;
  --night-2: #2E261D;
  --cream-on-night: #F3EBDD;

  --font-display: 'Prata', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, .61, .21, 1);
  --radius: 8px;
  --radius-btn: 6px;
  --section-pad: clamp(4.5rem, 10vw, 8rem);
  --container: 1360px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--terra); text-decoration: none; }
a:hover { color: var(--terra-deep); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; }
p { margin: 0 0 1.1em; }
figure { margin: 0; }
::selection { background: var(--terra); color: var(--cream); }
p a:not(.btn), li a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: .6rem 1rem;
}
.skip-link:focus { left: 0; color: var(--cream); }

/* Anchor targets land below the fixed nav */
[id] { scroll-margin-top: 96px; }

/* Subtle paper grain over everything */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: 860px; }
.section { padding-block: var(--section-pad); position: relative; }
.section--tint { background: var(--paper-2); }
.section--night {
  background:
    radial-gradient(90rem 40rem at 85% -10%, rgba(160, 82, 43, .16), transparent 60%),
    var(--night);
  color: var(--cream-on-night);
}
.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 640px; }
.section__head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; max-width: none;
}
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--inline { margin-bottom: 1.8rem; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 0; }
.section__sub { color: var(--ink-soft); margin-top: 1rem; }
.section__note { color: var(--ink-soft); font-size: .95rem; white-space: nowrap; padding-bottom: .35rem; }
.section__smallprint { color: var(--ink-soft); font-size: .875rem; margin-top: 2rem; }

.eyebrow {
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--gold); }

.lede { font-size: 1.2rem; line-height: 1.6; }
.lede em { font-family: var(--font-display); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--terra);
  color: var(--cream);
  font-weight: 560;
  font-size: .95rem;
  padding: .85rem 1.6rem;
  border: 1px solid var(--terra);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover {
  background: var(--terra-deep);
  border-color: var(--terra-deep);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(27, 21, 16, .55);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: rgba(40, 33, 26, .05); color: var(--ink); box-shadow: none; }
.btn--small { padding: .55rem 1.1rem; font-size: .85rem; }
.btn--big { padding: 1.05rem 2.2rem; font-size: 1.02rem; }
.btn--light { background: var(--cream-on-night); border-color: var(--cream-on-night); color: var(--night); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--night); }

.link-arrow {
  font-weight: 560; font-size: .95rem;
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: .1rem;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease),
              backdrop-filter .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(246, 241, 231, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav__brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.nav__brand:hover { color: var(--terra-deep); }
.nav__logo { height: 52px; width: auto; display: block; }
.footer__logo { height: 84px; width: auto; display: block; margin-bottom: 1rem; }
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.08rem; font-weight: 540; letter-spacing: .01em;
  margin: 0; white-space: nowrap;
}
.nav__wordmark em { font-weight: 400; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__links > a:not(.btn) {
  color: var(--ink); font-size: .92rem; font-weight: 500;
  position: relative;
}
.nav__links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1.5px; background: var(--terra);
  transition: right .3s var(--ease);
}
.nav__links > a:not(.btn):hover::after { right: 0; }
.nav__toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: .5rem;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  margin: 5px 0; transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(82svh, 620px);
  display: flex;
  flex-direction: column;
  overflow: clip;
  background: var(--paper);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  padding-top: clamp(7rem, 13vh, 9.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  width: 100%;
}
.hero__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  height: clamp(540px, 75vh, 800px);
  box-shadow: 0 30px 60px -38px rgba(40, 33, 26, .55);
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover;
  scale: 1.06; /* headroom for the parallax drift */
}
.hero__title {
  font-size: clamp(2.3rem, 3.9vw, 3.6rem);
  margin-bottom: .45em;
}
.hero__sub {
  max-width: 560px;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero__score {
  display: inline-flex; align-items: center; gap: .8rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem 1.1rem;
  color: var(--ink);
  box-shadow: 0 14px 34px -22px rgba(40, 33, 26, .4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hero__score:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(40, 33, 26, .5);
  color: var(--ink);
}
.hero__score-num {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 560;
  background: var(--night); color: var(--cream-on-night);
  border-radius: var(--radius-btn);
  padding: .35rem .6rem;
  line-height: 1;
}
.hero__score-label { font-size: .8rem; line-height: 1.35; color: var(--ink-soft); }
.hero__score-label strong { display: block; font-size: .92rem; color: var(--ink); }
/* 90% of the score box (1.7rem type + .7rem padding ≈ 2.4rem) */
.hero__score-logo { height: 2.15rem; width: auto; display: block; margin-left: .2rem; }
.hero__art {
  margin-top: auto;
  z-index: 1;
  pointer-events: none;
  line-height: 0;
}
.skyline { width: 100%; height: clamp(240px, 36vh, 400px); display: block; }

/* ---------- Fact bar ---------- */
.factbar {
  background: var(--night);
  color: var(--cream-on-night);
  overflow-x: auto;
  scrollbar-width: none;
}
.factbar::-webkit-scrollbar { display: none; }
.factbar__track {
  display: flex; align-items: center; gap: 1.1rem;
  padding-block: .85rem;
  white-space: nowrap;
  font-size: .78rem; font-weight: 560;
  letter-spacing: .14em; text-transform: uppercase;
}
.factbar__track i { color: var(--gold); font-style: normal; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split--rev .split__media { order: -1; }
.split__media--tall img { aspect-ratio: 8 / 15; }
.split__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 60px -38px rgba(40, 33, 26, .55);
}
.split__media img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 11 / 13;
  scale: 1.08; /* headroom for the parallax drift */
}
.split__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 2.4rem 1.4rem .9rem;
  font-size: .8rem; letter-spacing: .04em;
  color: var(--cream);
  background: linear-gradient(to top, rgba(36, 29, 22, .55), transparent);
}
.checklist {
  list-style: none; padding: 0; margin: 1.6rem 0 0;
}
.checklist li {
  position: relative;
  padding: 1rem 0 1rem 2.2rem;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: '';
  position: absolute; left: .2rem; top: 1.5rem;
  width: 14px; height: 8px;
  border-left: 2px solid var(--terra);
  border-bottom: 2px solid var(--terra);
  transform: rotate(-45deg);
}

/* ---------- "The spaces" auto slider ---------- */
/* Full-bleed band: the wrapper spans the whole viewport with ~10% side padding. */
.slider-wrap { padding-inline: 10vw; }
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  transition: transform .75s var(--ease);
  will-change: transform;
}
.slider__slide {
  position: relative;
  flex: 0 0 auto; /* width follows each photo's own aspect ratio */
  height: clamp(520px, 76vh, 780px);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  opacity: .4;
  scale: .96;
  transition: opacity .6s var(--ease), scale .6s var(--ease);
}
.slider__slide.is-active { opacity: 1; scale: 1; }
.slider__slide img {
  display: block;
  height: 100%;
  width: auto;           /* natural width at the fixed height */
  max-width: 80vw;       /* wide photos never outgrow the viewport */
  object-fit: cover;
}
.slider__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 2.4rem 1.3rem .95rem;
  font-size: .84rem; letter-spacing: .04em;
  color: var(--cream);
  background: linear-gradient(to top, rgba(36, 29, 22, .55), transparent);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.slider__slide.is-active figcaption { opacity: 1; }
.slider__controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1.2rem;
  margin-top: 1.4rem;
}
.slider__btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: .5rem .9rem;
  cursor: pointer;
  font-size: 1rem; line-height: 1;
  color: var(--ink);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.slider__btn:hover { background: rgba(40, 33, 26, .07); transform: translateY(-1px); }
.slider__dots { display: flex; gap: .5rem; }
.slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0; padding: 0;
  background: rgba(40, 33, 26, .22);
  cursor: pointer;
  transition: background .25s var(--ease), scale .25s var(--ease);
}
.slider__dot.is-active { background: var(--terra); scale: 1.25; }


/* ---------- Amenities ---------- */
.amenities {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.amenities li {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.35rem;
}
.amenities svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--terra); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: .9rem;
}
.amenities strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 520;
  margin-bottom: .3rem;
}
.amenities span { font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
/* Pinned reviews: the section sticks just below the navbar while the
   page scroll drives the inner review list (see main.js). */
#reviews { padding-block: 0; }
.reviews-pin { position: relative; }
.reviews-sticky {
  position: sticky;
  top: 76px; /* navbar height */
  padding-block: var(--section-pad); /* same breathing room as other sections */
}
.reviews__scroll {
  position: relative;
  max-height: min(720px, calc(100svh - 76px - 2 * var(--section-pad) - 2rem));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 235, 221, .25) transparent;
  padding-right: .5rem;
}
.reviews__scroll::-webkit-scrollbar { width: 6px; }
.reviews__scroll::-webkit-scrollbar-thumb {
  background: rgba(243, 235, 221, .25);
  border-radius: 3px;
}
/* Top fade: appears once the list has started scrolling */
.reviews__scroll::before {
  content: '';
  position: sticky;
  top: 0;
  display: block;
  height: 56px;
  margin-bottom: -56px;
  background: linear-gradient(to bottom, var(--night) 0%, rgba(36, 29, 22, 0) 100%);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.reviews__scroll.is-scrolled::before { opacity: 1; }
/* Bottom fade: inverted, hides when the list reaches its end */
.reviews__scroll::after {
  content: '';
  position: sticky;
  bottom: 0;
  display: block;
  height: 56px;
  margin-top: -56px;
  background: linear-gradient(to top, var(--night) 0%, rgba(36, 29, 22, 0) 100%);
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity .35s var(--ease);
}
.reviews__scroll.at-bottom::after { opacity: 0; }
.reviews__big {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 7rem);
  font-weight: 560;
  line-height: .95;
  margin: 0;
  color: var(--cream-on-night);
}
.reviews__verdict {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin: .4rem 0 .6rem;
}
.reviews__meta { color: rgba(243, 235, 221, .72); font-size: .92rem; }
.reviews__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 1.6rem; }
.chip {
  font-size: .78rem; font-weight: 560; letter-spacing: .02em;
  border: 1px solid rgba(243, 235, 221, .3);
  border-radius: 4px;
  padding: .35rem .8rem;
  color: var(--cream-on-night);
}
.reviews__bklogo {
  display: block;
  height: 44px; width: auto;
  margin-bottom: 1.2rem;
}
.chip strong { color: var(--gold); }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
}
.review {
  margin: 0;
  background: var(--night-2);
  border: 1px solid rgba(243, 235, 221, .12);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .85rem;
}
.review--wide { grid-column: 1 / -1; }
.review__head {
  display: flex; align-items: center; gap: .85rem;
}
.review__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.review__who { flex: 1; min-width: 0; }
.review__who strong {
  display: block;
  font-size: .98rem; font-weight: 640;
  color: var(--cream-on-night);
}
.review__who span {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem;
  color: rgba(243, 235, 221, .6);
}
.review__flag { font-style: normal; font-size: .95rem; line-height: 1; }
.review__score {
  flex: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  background: var(--cream-on-night);
  color: var(--night);
  border-radius: var(--radius-btn) var(--radius-btn) var(--radius-btn) 2px;
  padding: .3rem .55rem;
  line-height: 1;
}
.review__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--cream-on-night);
  margin: 0;
}
.review__body {
  font-size: .93rem;
  line-height: 1.6;
  color: rgba(243, 235, 221, .82);
  margin: 0;
}

/* ---------- Location ---------- */
.poi { list-style: none; padding: 0; margin: 1.4rem 0; }
.poi li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.poi li:last-child { border-bottom: 0; }
.poi strong { font-family: var(--font-display); font-weight: 540; font-size: 1.05rem; }
.poi span { color: var(--ink-soft); }
.poi__travel {
  font-size: .92rem; color: var(--ink-soft);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
}
.section--tint .poi__travel { background: var(--paper); }

/* ---------- Booking card ---------- */
.booking-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.8rem, 4.5vw, 3.5rem);
  box-shadow: 0 40px 80px -48px rgba(40, 33, 26, .5);
}
.booking-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.booking-form__field { display: flex; flex-direction: column; gap: .4rem; }
.booking-form__field label {
  font-size: .72rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.booking-form__field input,
.booking-form__field select {
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: .8rem .9rem;
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
  min-height: 49px;
}
.booking-form__field 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='%235D5346' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.2rem;
}
.booking-form__field input:focus,
.booking-form__field select:focus,
.booking-form__field textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(46, 36, 27, .16);
}
.booking-form__submit { grid-column: 1 / -1; margin-top: .4rem; }
.booking-form__error {
  grid-column: 1 / -1;
  color: #8C2F16;
  background: rgba(140, 47, 22, .09);
  border-radius: var(--radius-btn);
  padding: .7rem 1rem;
  font-size: .9rem;
  margin: 0;
}
.booking-card__alt {
  text-align: center;
  font-size: .88rem; color: var(--ink-soft);
  margin: 1.4rem 0 0;
}

/* Discount badge inside the booking card — outline style, distinct from the sticky tag */
.discount-badge {
  display: inline-flex; align-items: baseline; gap: .5rem;
  margin: 1.1rem auto 0;
  padding: .5rem 1rem;
  border: 1.5px solid var(--green);
  background: rgba(111, 224, 139, .12);
  border-radius: var(--radius-btn);
  font-size: .74rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-deep);
}
.discount-badge strong {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--green-deep);
}

/* Date fields + custom range picker (replaces the native date inputs) */
.datefield {
  font-family: var(--font-body);
  font-size: .98rem;
  text-align: left;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: .8rem .9rem;
  width: 100%;
  min-height: 49px;
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.datefield--set { color: var(--ink); }
.datefield:hover { border-color: var(--terra); }
.datefield[aria-expanded="true"] {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(46, 36, 27, .16);
}
.datepick {
  grid-column: 1 / -1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem 1.15rem;
  animation: waIn .25s var(--ease);
}
.datepick__months {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}
.datepick__hint {
  margin: .9rem 0 0;
  text-align: center;
  font-size: .78rem;
  color: var(--ink-soft);
}
.dp-day {
  font-family: var(--font-body);
  font-size: .8rem;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.dp-day:hover:not(:disabled) { background: rgba(46, 36, 27, .14); }
.dp-day:disabled { cursor: default; }
.dp-day--empty { background: none; }
.dp-day--past { opacity: .3; background: none; }
.dp-day--booked {
  background: rgba(46, 36, 27, .14);
  color: var(--ink-soft);
  text-decoration: line-through;
  opacity: .6;
}
.dp-day--range { background: rgba(46, 36, 27, .12); }
.dp-day--start, .dp-day--end {
  background: var(--terra);
  color: var(--cream);
  font-weight: 600;
}
.dp-day--start:hover, .dp-day--end:hover { background: var(--terra) !important; }

/* Availability check result + direct booking request */
.booking-form__field textarea {
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: .8rem .9rem;
  width: 100%;
  min-height: 96px;
  resize: vertical;
}
.booking-form__field--wide { grid-column: 1 / -1; }
.bf-result {
  grid-column: 1 / -1;
  border-radius: var(--radius-btn);
  padding: .85rem 1.1rem;
  font-size: .95rem;
  margin: 0;
}
.bf-result--ok { background: rgba(63, 107, 66, .13); color: #2E4A31; }
.bf-result--no { background: rgba(140, 47, 22, .09); color: #8C2F16; }
.bf-result--info { background: var(--paper-2); color: var(--ink-soft); }
.bf-result strong { color: inherit; }
.bf-result small {
  display: block;
  margin-top: .4rem;
  font-size: .86rem;
  opacity: .9;
}
.request-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.request-form[hidden] { display: none; }
.bf-banner {
  background: rgba(63, 107, 66, .13);
  color: #2E4A31;
  border-radius: var(--radius-btn);
  padding: .9rem 1.1rem;
  font-size: .95rem;
  margin: 0 0 1.4rem;
}
.bf-sync {
  text-align: center;
  font-size: .8rem;
  color: var(--ink-soft);
  margin: 1rem 0 0;
}

/* Mini availability calendar */
.minical { margin-top: 2.2rem; }
.minical[hidden] { display: none; }
.minical__nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.minical__nav p {
  margin: 0;
  font-size: .72rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.minical__btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: .35rem .7rem;
  cursor: pointer;
  font-size: .85rem;
  color: var(--ink);
  transition: background .2s var(--ease);
}
.minical__btn:hover { background: rgba(40, 33, 26, .06); }
.minical__btn:disabled { opacity: .35; cursor: default; }
.minical__months {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
}
.minical__title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 540;
  margin: 0 0 .6rem;
}
.minical__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  font-size: .8rem;
}
.minical__dow {
  text-align: center;
  font-size: .62rem; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: .3rem;
}
.minical__day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
.minical__day--empty { background: none; }
.minical__day--past { opacity: .32; }
.minical__day--booked {
  background: rgba(46, 36, 27, .16);
  color: var(--ink-soft);
  text-decoration: line-through;
}
.minical__legend {
  display: flex; gap: 1.2rem;
  font-size: .78rem; color: var(--ink-soft);
  margin-top: .9rem;
}
.minical__legend i {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 3px;
  margin-right: .4rem;
  font-style: normal;
}
.minical__legend .l-free i { background: var(--paper); border: 1px solid var(--line); }
.minical__legend .l-booked i { background: rgba(46, 36, 27, .16); }

/* ---------- Journal cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.card {
  display: flex; flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover {
  color: var(--ink);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -38px rgba(40, 33, 26, .55);
}
.card figure { overflow: hidden; aspect-ratio: 16 / 10; }
.card figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: scale .6s var(--ease);
}
.card:hover figure img { scale: 1.06; }
.card__tag {
  font-size: .7rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terra);
  margin: 1.3rem 1.4rem .4rem;
}
.card h3 { font-size: 1.3rem; margin: 0 1.4rem .5rem; }
.card__excerpt { font-size: .92rem; color: var(--ink-soft); margin: 0 1.4rem 1.2rem; flex: 1; }
.card .link-arrow { margin: 0 1.4rem 1.4rem; align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.18rem; font-weight: 500;
  padding: 1.15rem 0;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.3rem; font-weight: 300;
  color: var(--terra);
  transition: rotate .3s var(--ease);
  flex: none;
}
.faq details[open] summary { color: var(--terra-deep); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--ink-soft); padding-bottom: 1.2rem; margin: 0; max-width: 62ch; }

/* ---------- WhatsApp chat widget ---------- */
/* Expanding panel: the guest writes the first message here; sending opens
   the conversation in WhatsApp with that text pre-filled. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wa-widget {
  position: fixed;
  right: 1.1rem; bottom: 4.6rem;
  z-index: 61;
  display: flex; flex-direction: column; align-items: flex-end;
}
.wa-fab {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: #25D366;
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 14px 30px -14px rgba(18, 92, 52, .65);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 36px -14px rgba(18, 92, 52, .75);
}
.wa-panel {
  position: absolute;
  bottom: calc(100% + .75rem);
  right: 0;
  width: min(330px, calc(100vw - 2rem));
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(27, 21, 16, .55);
  border: 1px solid var(--line);
}
.wa-panel:not([hidden]) { animation: waIn .28s var(--ease); }
@keyframes waIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
}
.wa-panel__head {
  display: flex; align-items: center; gap: .8rem;
  background: #008069;
  color: #fff;
  padding: .85rem 1rem;
}
.wa-panel__id { flex: 1; min-width: 0; }
.wa-panel__id strong { display: block; font-size: .95rem; font-weight: 640; }
.wa-panel__id span { font-size: .76rem; opacity: .85; }
.wa-panel__close {
  background: none; border: 0; cursor: pointer;
  color: #fff; font-size: 1.5rem; line-height: 1;
  padding: 0 .2rem;
  opacity: .85;
}
.wa-panel__close:hover { opacity: 1; }
.wa-panel__body {
  background: var(--paper-2);
  padding: 1.1rem 1rem;
  min-height: 86px;
}
.wa-bubble {
  background: #fff;
  border-radius: 2px 10px 10px 10px;
  padding: .65rem .85rem;
  font-size: .92rem;
  line-height: 1.45;
  max-width: 88%;
  margin: 0;
  box-shadow: 0 1px 2px rgba(40, 33, 26, .12);
}
.wa-panel__form {
  display: flex; align-items: center; gap: .55rem;
  padding: .75rem .75rem .5rem;
}
.wa-panel__form input {
  flex: 1; min-width: 0;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: .6rem .8rem;
}
.wa-panel__form input:focus {
  outline: none;
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, .2);
}
.wa-send {
  flex: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #25D366;
  color: #fff;
  border: 0; cursor: pointer;
  border-radius: 50%;
  transition: background .2s var(--ease);
}
.wa-send svg { width: 22px; height: 22px; }
.wa-send:hover { background: #1EBE5A; }
.wa-panel__note {
  margin: 0;
  padding: 0 0 .65rem;
  text-align: center;
  font-size: .72rem;
  color: var(--ink-soft);
}

/* ---------- Sticky direct-booking promo ---------- */
.promo-tag {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  z-index: 60;
  display: inline-flex; align-items: baseline; gap: .45rem;
  background: var(--night);
  color: var(--cream-on-night);
  border: 1px solid rgba(243, 235, 221, .18);
  border-radius: var(--radius-btn);
  padding: .6rem .95rem;
  font-size: .82rem; font-weight: 560;
  box-shadow: 0 16px 34px -18px rgba(27, 21, 16, .6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.promo-tag strong {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  color: var(--green);
}
.promo-tag:hover {
  color: var(--cream-on-night);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -18px rgba(27, 21, 16, .7);
}
@media (max-width: 560px) {
  .wa-widget { right: .8rem; bottom: 4rem; }
  .wa-fab { width: 48px; height: 48px; }
  .promo-tag { right: .8rem; bottom: .8rem; padding: .5rem .8rem; }
  .promo-tag span { display: none; }
}

/* ---------- Closer ---------- */
.closer { text-align: center; }
.closer h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.closer .btn { margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--night);
  color: var(--cream-on-night);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer a { color: var(--cream-on-night); }
.footer a:hover { color: var(--gold); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__tag { color: rgba(243, 235, 221, .65); font-size: .9rem; margin-top: .8rem; max-width: 34ch; }
.footer__col { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.footer__col a { font-size: .92rem; }
.footer__head {
  font-size: .7rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .5rem;
}
.footer__note { font-size: .85rem; color: rgba(243, 235, 221, .65); margin: 0; max-width: 30ch; }
.footer__legal {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(243, 235, 221, .14);
  padding-block: 1.4rem;
  font-size: .82rem;
  color: rgba(243, 235, 221, .55);
}
.footer__legal p { margin: 0; }

/* ---------- Blog / article pages ---------- */
.article-hero {
  padding-top: clamp(8rem, 16vh, 10rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.article-hero .eyebrow a { color: inherit; }
.article-hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); max-width: 18ch; }
.article-hero__meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem;
  color: var(--ink-soft); font-size: .88rem;
}
.article-figure {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.article-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article {
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: var(--section-pad);
}
.article h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 2.2em;
}
.article h3 { font-size: 1.25rem; margin-top: 1.8em; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: .45rem; }
.article li::marker { color: var(--terra); }
.tldr {
  background: var(--paper-2);
  border-left: 3px solid var(--terra);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  padding: 1.3rem 1.5rem;
  margin: 0 0 2.2rem;
  font-size: .97rem;
}
.tldr strong:first-child {
  display: block;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .5rem;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  margin: 1.4rem 0 2rem;
}
.article th {
  text-align: left;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
  padding: .55rem .7rem .55rem 0;
}
.article td {
  border-bottom: 1px solid var(--line);
  padding: .6rem .7rem .6rem 0;
  vertical-align: top;
}
.article-cta {
  background: var(--night);
  color: var(--cream-on-night);
  border-radius: 10px;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  margin: 3rem 0 0;
  text-align: center;
}
.article-cta h2 { margin-top: 0; font-size: 1.7rem; }
.article-cta p { color: rgba(243, 235, 221, .75); max-width: 46ch; margin-inline: auto; }
.article-cta .btn { margin-top: .6rem; }
.article .faq { margin-top: 1rem; }
.article-nav {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}

/* ---------- Motion: reveal-on-scroll with a gentle delay ---------- */
/* Gated behind html.js so content is never hidden without JavaScript. */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .9s var(--ease) var(--d, 0ms),
    transform .9s var(--ease) var(--d, 0ms);
  will-change: opacity, transform;
}
html.js .reveal.is-in { opacity: 1; transform: none; }
/* Cards inside the nested reviews scroller skip the reveal — the
   clipping container makes staggered fades misfire. */
html.js .reviews__scroll .reveal { opacity: 1; transform: none; transition: none; }

/* Parallax layers are driven by JS (translate3d); nothing needed here. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery__item img, .card figure img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .amenities { grid-template-columns: repeat(2, 1fr); }
  #reviews { padding-block: var(--section-pad); }
  .reviews-sticky { position: static; padding-block: 0; }
  .reviews { grid-template-columns: 1fr; }
  .reviews__scroll { max-height: none; overflow: visible; padding-right: 0; }
  .reviews__scroll::before, .reviews__scroll::after { display: none; }
  .reviews__score { position: static; display: grid; grid-template-columns: auto 1fr; column-gap: 2rem; align-items: center; }
  .reviews__score .eyebrow { grid-column: 1 / -1; }
  .reviews__score .btn { justify-self: start; grid-column: 1 / -1; margin-top: 1rem; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero__photo { height: clamp(380px, 54vh, 540px); }
  .slider-wrap { padding-inline: 5vw; }
  .slider__slide { height: clamp(420px, 58vh, 560px); }
  .slider__slide img { max-width: 86vw; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__media img { aspect-ratio: 4 / 3; }
  .split__media--tall img { aspect-ratio: 3 / 4; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .cards { grid-template-columns: 1fr; }
  .booking-form { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: .6rem; }

  .nav__links {
    position: fixed; inset: 0; z-index: 40;
    flex-direction: column; justify-content: center;
    gap: 1.6rem;
    background: var(--paper);
    font-size: 1.2rem;
    opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease);
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__links > a:not(.btn) { font-size: 1.25rem; }
  .nav__toggle { display: block; position: relative; z-index: 45; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .amenities { grid-template-columns: 1fr; }
  .booking-form { grid-template-columns: 1fr; }
  .request-form { grid-template-columns: 1fr; }
  .minical__months { grid-template-columns: 1fr; }
  .datepick__months { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .gallery__item--wide { grid-column: span 1; }
  .gallery__item--tall { grid-row: span 1; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .poi li { grid-template-columns: 1fr; gap: .1rem; }
  .hero__cta .btn { width: 100%; }
}
