/* ==================================================================
   Hugo's House — styles
   Forest palette · Airbnb-like minimal layout · mobile-first
   ================================================================== */

/* DM Sans, self-hosted (SIL Open Font License, see fonts/OFL.txt). No requests to Google. */
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette */
  --forest: #2F5D3A;
  --forest-dark: #234A2D;
  --forest-deep: #1B3322;
  --moss: #6E8B5E;
  --fern: #E7EFE3;
  --fern-strong: #D3E2CC;
  --cream: #F8F6F0;
  --white: #FFFFFF;
  --bark: #8A6A4B;
  --ink: #1F2421;
  --ink-soft: #4C544E;
  --muted: #6B736D;
  --mist: #D9DDD6;
  --line: #E6E8E3;
  --whatsapp: #1E8E4E;
  --whatsapp-dark: #177340;
  --airbnb: #E0565B;
  --booking: #1F4FA0;

  /* Shape & depth */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(31, 36, 33, .06), 0 1px 3px rgba(31, 36, 33, .08);
  --shadow: 0 6px 16px rgba(31, 36, 33, .08), 0 2px 4px rgba(31, 36, 33, .05);
  --shadow-lg: 0 18px 40px rgba(31, 36, 33, .14);

  /* Layout */
  --container: 1120px;
  --gutter: 16px;
  --header-h: 64px;

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; } /* <picture> only chooses AVIF vs JPEG; layout uses the <img> */
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.2em;
}
.icon .fill, svg use[href="#i-whatsapp"] { fill: currentColor; stroke: none; }
.icon-star { fill: currentColor; stroke: none; color: var(--bark); }
.icon-lg { width: 1em; height: 1em; vertical-align: -0.08em; margin-right: .3em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }

.proto-bar {
  position: fixed; left: 12px; bottom: 12px; z-index: 60; max-width: calc(100% - 24px);
  background: var(--bark); color: #fff; font-size: .78rem; padding: 6px 12px; border-radius: var(--r-pill); box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.3em; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-sm { padding: .55em 1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--fern); color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--mist); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--cream); color: var(--ink); }
.btn-link { background: none; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; border: 1px solid var(--mist); background: var(--white); cursor: pointer;
  transition: background-color .15s, opacity .15s;
}
.icon-btn:hover:not(:disabled) { background: var(--fern); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn-dark { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.icon-btn-dark:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }

/* ---------- Header: transparent over the hero, forest green after scrolling ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: #fff;
  background: rgba(35, 74, 45, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 6px 24px rgba(15, 30, 19, .18);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.site-header.is-over-hero { background: transparent; border-bottom-color: transparent; box-shadow: none; }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

/* Reading progress: fills left to right as you scroll the page */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: rgba(255, 255, 255, .12); pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #A9C49B, #E7EFE3);
  transform: scaleX(0); transform-origin: 0 50%;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; margin-right: auto; }
.brand:hover { color: #E7EFE3; }
.brand-mark { width: 34px; height: 34px; fill: currentColor; }
.site-nav { display: none; }
.header-cta { display: none; }
.site-header .header-cta { background: #fff; color: var(--forest-deep); }
.site-header .header-cta:hover { background: var(--fern); color: var(--forest-deep); }
/* Language menu */
.lang-switch { position: relative; flex: none; }
.lang-switch summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--r-pill); background: rgba(255, 255, 255, .12);
  color: #fff; font-size: .85rem; font-weight: 600; letter-spacing: .04em; cursor: pointer; user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: rgba(255, 255, 255, .22); }
.lang-switch summary .icon { width: 18px; height: 18px; }
.flag { flex: none; width: 20px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); overflow: hidden; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 170px; padding: 6px;
  background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 500; }
.lang-menu a:hover { background: var(--cream); color: var(--ink); }
.lang-menu a[aria-current="page"] { background: var(--fern); color: var(--forest-dark); font-weight: 700; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--r-pill); background: rgba(255, 255, 255, .12); color: #fff;
}

.site-nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--forest-dark); border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-lg);
  padding: 8px var(--gutter) 16px;
}
.site-nav a { color: #fff; text-decoration: none; font-weight: 500; padding: 12px 4px; border-radius: var(--r-sm); }
.site-nav a:hover { color: #CFE3C4; }

@media (min-width: 900px) {
  .nav-toggle, .nav-contact-mobile { display: none; }
  .site-nav, .site-nav.is-open { display: flex; flex-direction: row; position: static; padding: 0; gap: 4px; background: none; border: 0; box-shadow: none; }
  .site-nav a { padding: 8px 12px; font-size: .95rem; }
  .site-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
  .header-cta { display: inline-flex; border-radius: var(--r-pill); }
}

.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; }


/* ---------- Hero: full-width photo + rotating headline ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 600px; min-height: max(600px, 100vh); min-height: max(600px, 100svh);
  color: #fff; background: var(--forest-deep); overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  /* The house sits left of the photo's centre; 32% keeps it centred on tall (phone) screens.
     On wide screens the photo fills the width, so this changes nothing there. */
  object-position: 32% 55%;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 24, 15, .55) 0%, rgba(12, 24, 15, 0) 22%, rgba(12, 24, 15, .05) 45%, rgba(12, 24, 15, .82) 100%),
    linear-gradient(90deg, rgba(12, 24, 15, .45) 0%, rgba(12, 24, 15, 0) 65%);
}
.hero-inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: 88px;
}
.hero-copy { max-width: 820px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.hero-title {
  font-weight: 400; font-size: clamp(2.8rem, 1.2rem + 6.2vw, 6.25rem); line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 22px; text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.rotator { display: grid; align-items: end; }
.rot-item {
  grid-area: 1 / 1; opacity: 0; transform: translateY(.3em);
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1);
}
.rot-item.is-active { opacity: 1; transform: none; }
.rot-item.is-leaving { opacity: 0; transform: translateY(-.3em); }
/* With JS: the box is exactly as tall as the line that is showing (set in main.js),
   so the location line above it never floats too high; height changes glide. */
.js .rotator {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; position: relative;
  transition: height 1.4s cubic-bezier(.2, .7, .2, 1);
}
.js .rot-item { position: absolute; left: 0; right: 0; bottom: 0; }
.js .rot-item.is-active { position: relative; }
.hero-sub { font-size: clamp(1rem, .92rem + .35vw, 1.2rem); font-weight: 300; max-width: 540px; margin: 0; color: rgba(255, 255, 255, .9); }

.hero-card { display: none; }
@media (min-width: 960px) {
  .hero-card {
    display: block; flex: none; width: 300px; padding: 28px;
    background: #fff; color: var(--ink); border-radius: var(--r-sm); box-shadow: var(--shadow-lg);
  }
}
.hero-card p { margin: 0; }
.hero-card-score { display: flex; align-items: center; gap: 8px; font-size: 3.25rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.hero-card-score .icon { width: .55em; height: .55em; }
.hero-card-text { color: var(--ink-soft); margin: 14px 0 16px !important; }
.hero-card-stars { display: flex; gap: 3px; color: var(--bark); }
.hero-card-stars .icon { fill: currentColor; stroke: none; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px;
}
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: hero-zoom 20s ease-in-out infinite alternate; }
  .hero-scroll span { animation: scroll-dot 2s ease-in-out infinite; }
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 599px) { .hero-scroll { display: none; } .hero-inner { padding-bottom: 56px; } }

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
@media (min-width: 768px) { .section { padding-block: 80px; } }
.section-tint { background: var(--fern); }
.section-forest { background: var(--forest-deep); color: #EDF2EA; position: relative; overflow: hidden; }
.section-forest::before {
  /* subtle tree-line silhouette */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; opacity: .18; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60' preserveAspectRatio='none'%3E%3Cpath fill='%236E8B5E' d='M0 60V40l8-14 8 14 6-22 8 22 6-12 7 12 9-30 9 30 6-16 7 16 8-24 8 24 5-10 6 10 9-34 9 34 6-18 6 18 8-26 8 26 6-12 6 12 9-28 9 28 5-14 6 14 8-22 8 22 6-10 5 10V60z'/%3E%3C/svg%3E") repeat-x bottom / 480px 120px;
}
.section-head { max-width: 680px; margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--moss); margin: 0 0 8px; }
.section-forest .eyebrow { color: #A9C49B; }
.lead { font-size: 1.08rem; color: var(--ink-soft); margin: 10px 0 0; }
.section-forest .lead { color: #C9D6C3; }
.subhead { margin: 40px 0 16px; }

/* ---------- Photos: one-at-a-time slider ---------- */
.car-viewport {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--forest-deep);
  aspect-ratio: 4 / 3; box-shadow: var(--shadow);
}
@media (min-width: 768px) { .car-viewport { aspect-ratio: 16 / 9; } }
.car-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.car-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; cursor: zoom-in; }
.car-slide::before {
  content: ""; position: absolute; inset: -40px;
  background: var(--bg) center / cover no-repeat; filter: blur(30px) brightness(.65); transform: scale(1.1);
}
.car-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.car-btn {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow); cursor: pointer;
  transition: transform .2s ease, background-color .2s;
}
.car-btn:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.car-btn .icon { width: 22px; height: 22px; }
.car-prev { left: 14px; }
.car-next { right: 14px; }
.car-expand {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 0; border-radius: var(--r-pill);
  background: rgba(15, 25, 18, .6); color: #fff; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.car-expand:hover { background: rgba(15, 25, 18, .8); }
.car-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; }
.car-caption { margin: 0; color: var(--ink-soft); }
.car-count { color: var(--muted); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.car-progress { height: 3px; margin-top: 12px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.car-progress span { display: block; height: 100%; width: 0; background: var(--forest); transition: width .5s ease; }

/* ---------- About Rakitna ---------- */
.rakitna {
  display: grid; gap: 24px; padding: 24px;
  background: var(--white); border: 1px solid var(--fern-strong); border-radius: var(--r-lg);
}
@media (min-width: 900px) { .rakitna { grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; padding: 36px; } }
.rakitna h3 { margin-bottom: 12px; }
.rakitna p { color: var(--ink-soft); }
.rakitna p:last-child { margin-bottom: 0; }
.rakitna-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rakitna-facts li { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--r); background: var(--fern); }
.rakitna-facts b { font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--forest); }
.rakitna-facts span { font-size: .88rem; color: var(--muted); }

/* ---------- Reviews: still grid of cards ---------- */
.reviews-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (min-width: 1000px) { .reviews-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- About ---------- */
.about { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
}
.about-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; color: var(--ink-soft); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .icon { color: var(--forest); }

.highlights { display: grid; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.highlights li { display: flex; gap: 16px; align-items: flex-start; }
.highlights .icon { width: 26px; height: 26px; color: var(--forest); margin-top: 2px; }
.highlights strong { display: block; }
.highlights span { color: var(--muted); font-size: .95rem; }

.prose { padding-top: 28px; max-width: 68ch; color: var(--ink-soft); }

.rooms { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .rooms { grid-template-columns: 1fr 1fr; } }
.room-card { margin: 0; overflow: hidden; background: var(--white); border: 1px solid var(--mist); border-radius: var(--r-lg); }
.room-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.room-card figcaption { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px 24px; }
.room-card strong { font-size: 1.15rem; font-weight: 600; }
.room-card figcaption > span:last-child { color: var(--ink-soft); }
.bed-icons { display: flex; gap: 10px; margin-bottom: 12px; color: var(--ink); }
.bed-icons .icon { width: 30px; height: 30px; stroke-width: 1.5; }

.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; }
.amenities li { display: flex; align-items: center; gap: 14px; }
.amenities .icon { width: 24px; height: 24px; color: var(--forest); }
.all-amenities-btn { margin-top: 24px; }

.book-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 24px; display: grid; gap: 12px;
}
@media (min-width: 960px) { .book-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.book-card-kicker { font-size: 1.2rem; font-weight: 700; margin: 0; }
.book-card-rating { margin: 0 0 6px; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; }
.book-card-note { margin: 4px 0 0; font-size: .88rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- Amenities popup (tabs per category) ---------- */
.amen-modal {
  width: min(860px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 24px)); max-width: none; max-height: none;
  padding: 0; border: 1px solid rgba(255, 255, 255, .6); border-radius: var(--r-lg); color: var(--ink); box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.amen-modal[open] { display: flex; flex-direction: column; }
.amen-modal::backdrop { background: rgba(15, 25, 18, .2); }
.amen-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid rgba(31, 36, 33, .1); }
.amen-head .icon-btn { background: rgba(255, 255, 255, .6); }
.amen-head h2 { font-size: 1.25rem; }
.amen-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.amen-tabs { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; border-bottom: 1px solid rgba(31, 36, 33, .1); scrollbar-width: thin; }
.amen-tabs button {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; border: 0; border-radius: var(--r-sm); background: none; cursor: pointer;
  font-weight: 500; color: var(--ink-soft); text-align: left; white-space: nowrap;
}
.amen-tabs button span { font-size: .78rem; color: var(--muted); background: rgba(255, 255, 255, .6); padding: 1px 8px; border-radius: var(--r-pill); }
.amen-tabs button:hover { background: rgba(255, 255, 255, .5); }
.amen-tabs button[aria-selected="true"] { background: rgba(231, 239, 227, .9); color: var(--forest-dark); font-weight: 600; }
.amen-tabs button[aria-selected="true"] span { background: #fff; }
.amen-panels { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px; }
.amen-panels h3 { margin-bottom: 8px; }
.amen-panels li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(31, 36, 33, .1); }
.amen-panels li:last-child { border-bottom: 0; }
.amen-panels li .icon { color: var(--forest); }
@media (min-width: 720px) {
  .amen-body { flex-direction: row; }
  .amen-tabs { flex-direction: column; width: 260px; overflow-x: visible; overflow-y: auto; border-bottom: 0; border-right: 1px solid rgba(31, 36, 33, .1); padding: 16px; }
  .amen-panels { padding: 24px 32px; }
}

/* ---------- Explore ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--fern-strong); padding: 8px 14px; border-radius: var(--r-pill); font-size: .95rem; }
.chips .icon { color: var(--forest); }

.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.place-card {
  display: flex; flex-direction: column; gap: 6px; position: relative;
  background: var(--white); border: 1px solid var(--fern-strong); border-radius: var(--r); padding: 20px;
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.place-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--moss); color: var(--ink); }
.place-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.place-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r); background: var(--fern); color: var(--forest); margin-bottom: 8px; }
.place-icon .icon { width: 24px; height: 24px; }
.place-dist { position: absolute; top: 20px; right: 20px; font-size: .78rem; font-weight: 600; color: var(--bark); background: #F3ECE3; padding: 3px 10px; border-radius: var(--r-pill); }

.map-wrap { margin-top: 32px; }
.area-map {
  position: relative; z-index: 0; isolation: isolate; /* keep Leaflet's layers below the sticky header */
  width: 100%; height: 340px; border-radius: var(--r-lg); overflow: hidden; background: var(--mist);
}
.area-map .leaflet-control-attribution { font-size: .7rem; }
.area-map .leaflet-control-zoom a { color: var(--ink); }
.map-note { margin: 10px 0 0; font-size: .9rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* ---------- Reviews ---------- */
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 48px; margin-bottom: 24px; }
.scores li { display: grid; grid-template-columns: 24px 118px 1fr 32px; align-items: center; gap: 12px; font-size: .95rem; }
.scores li > .icon { width: 22px; height: 22px; color: var(--forest); }
.scores .bar { height: 4px; background: var(--mist); border-radius: 4px; overflow: hidden; }
.scores .bar i { display: block; height: 100%; width: 100%; background: var(--forest); border-radius: 4px; }
.scores .bar i.v-96 { width: 96%; }
.scores b { text-align: right; font-weight: 600; }

.review-card { scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.review-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-card header div { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; }
.review-card header div span { color: var(--muted); font-size: .88rem; }
.review-card p { margin: 0; color: var(--ink-soft); }
.review-stars { display: flex; gap: 2px; margin: 0 0 10px; }
.review-stars .icon { width: 14px; height: 14px; }
.review-card .review-note { margin-top: 12px; font-size: .8rem; color: var(--muted); }
.review-card.is-placeholder { border-style: dashed; border-color: var(--moss); background: #FBFCFA; box-shadow: none; }
.review-card.is-placeholder p { font-style: italic; color: var(--muted); }

.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fern-strong); color: var(--forest-dark); font-weight: 700; flex: none; }
.avatar-lg { width: 56px; height: 56px; font-size: .95rem; background: var(--moss); color: #fff; }
.source { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); color: #fff; letter-spacing: .02em; }
.source-airbnb { background: var(--airbnb); }
.source-booking { background: var(--booking); }
.reviews-more { margin: 28px 0 0; text-align: center; }

/* ---------- Meet your hosts ---------- */
.host-section { padding-top: 24px; }
.host-section h2 { padding-top: 48px; border-top: 1px solid var(--line); }
/* Same divider between the About section and the photos */
.photos-section { padding-top: 24px; }
.photos-section .section-head { padding-top: 48px; border-top: 1px solid var(--line); }
.host-grid { display: grid; gap: 40px; margin-top: 32px; }
@media (min-width: 900px) { .host-grid { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 80px; align-items: start; } }

.host-card { padding: 32px 24px 24px; background: var(--white); border-radius: 24px; box-shadow: 0 6px 24px rgba(31, 36, 33, .14); }
.host-people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.host-id { display: flex; flex-direction: column; align-items: center; text-align: center; }
.host-photo { position: relative; width: 104px; height: 104px; }
.host-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.host-initial {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--moss); color: #fff; font-size: 2.75rem; font-weight: 600; line-height: 1;
}
.host-badge {
  position: absolute; right: -4px; bottom: 4px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: #fff; box-shadow: var(--shadow);
}
.host-badge .icon { width: 19px; height: 19px; stroke-width: 2; }
.host-name { margin-top: 12px; font-size: 1.6rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.host-role { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.host-role .icon { color: var(--bark); }

.host-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.host-stats li { display: flex; flex-direction: column; align-items: center; padding: 0 8px; }
.host-stats li + li { border-left: 1px solid var(--line); }
.host-stats b { display: flex; align-items: center; gap: 2px; font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.host-stats b .icon { width: .7em; height: .7em; color: var(--ink); }
.host-stats span { font-size: .75rem; font-weight: 600; color: var(--ink-soft); }

.host-facts { display: grid; gap: 14px; margin-top: 28px; }
.host-facts li { display: flex; align-items: center; gap: 14px; }
.host-facts .icon { width: 26px; height: 26px; color: var(--forest); }

.host-right h3 { font-size: 1.2rem; margin-bottom: 10px; }
.host-right p { margin-bottom: 28px; color: var(--ink-soft); }
.btn-host { background: #ECEFEA; color: var(--ink); padding: .9em 1.5em; }
.btn-host:hover { background: var(--fern-strong); color: var(--ink); }

/* ---------- Calendar ---------- */
.calendar-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--fern-strong); }
@media (min-width: 768px) { .calendar-card { padding: 28px 32px; } }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-status { margin: 0; font-size: .88rem; color: var(--muted); text-align: center; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.demo-tag { background: #F3ECE3; color: var(--bark); font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: .06em; }

.cal-months { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .cal-months { grid-template-columns: 1fr 1fr; gap: 48px; } }
.cal-month h3 { text-align: center; font-size: 1rem; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal-dow { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); padding-bottom: 6px; }
.cal-day {
  position: relative; aspect-ratio: 1; max-height: 48px; width: 100%;
  display: grid; place-items: center; border: 0; background: none; padding: 0;
  font-size: .92rem; font-weight: 500; border-radius: 50%; cursor: pointer; color: var(--ink);
  transition: background-color .12s;
}
.cal-day:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day.is-past { color: #B9BEB8; cursor: default; }
.cal-day.is-booked { color: #A4AAA3; text-decoration: line-through; cursor: not-allowed; background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(31,36,33,.05) 4px 6px); border-radius: 0; }
.cal-day.is-checkout-only { cursor: pointer; text-decoration: none; color: var(--ink); background: none; border-radius: 50%; }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--forest); }
.cal-day.in-range { background: var(--fern); border-radius: 0; }
.cal-day.is-start, .cal-day.is-end { background: var(--forest); color: #fff; border-radius: 50%; }
.cal-day.is-start.has-end { border-radius: 50% 0 0 50%; }
.cal-day.is-end { border-radius: 0 50% 50% 0; }
.cal-day.is-start.is-end { border-radius: 50%; }

.cal-error { text-align: center; padding: 40px 16px; }
.cal-error p { color: var(--ink-soft); }

.cal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--ink-soft); }
.cal-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--mist); }
.lg-free { background: var(--white); }
.lg-booked { background: repeating-linear-gradient(135deg, #fff 0 3px, var(--mist) 3px 5px); }
.lg-selected { background: var(--forest); border-color: var(--forest); }
.cal-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cal-selection p { margin: 0; font-weight: 600; }
.cal-selection-actions { display: flex; gap: 8px; }

/* ---------- Good to know ---------- */
.gtk-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gtk-grid h4 { margin-bottom: 12px; font-size: 1.02rem; }
.gtk-key { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 600px) { .gtk-key { grid-template-columns: 1fr 1fr; } }
.gtk-key-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.gtk-key-item > .icon { width: 30px; height: 30px; color: var(--forest); flex: none; }
.gtk-key-item h4 { font-size: 1.02rem; margin-bottom: 4px; }
.gtk-key-item p { margin: 0; color: var(--muted); }
.gtk-key-item a { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--ink); }
.gtk-grid p { color: var(--ink-soft); }
.rule-list li { display: flex; gap: 12px; align-items: center; padding: 6px 0; color: var(--ink-soft); }
.rule-list .icon { color: var(--forest); }
.tax-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px; margin-bottom: 1em; }
.tax-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tax-list li:last-child { border-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; position: relative; padding-bottom: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; } }
.contact-main h2 { color: #fff; }
.hosts { display: flex; align-items: center; gap: 14px; margin: 28px 0; }
.hosts strong { display: block; color: #fff; }
.hosts span { color: #C9D6C3; font-size: .92rem; }
/* The hidden attribute must win over display rules below */
[hidden] { display: none !important; }
.contact-dates { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r); padding: 12px 16px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .btn { flex: 1 1 240px; }

.qr-title { font-weight: 600; color: #fff; margin-bottom: 16px; }
.qr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 420px; }
.qr-card {
  background: #fff; border-radius: var(--r-lg); padding: 16px; text-align: center; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
}
.qr-card:hover { transform: translateY(-3px); color: var(--ink); }
.qr-box { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-box .qr-missing { font-size: .8rem; color: var(--muted); border: 1.5px dashed var(--mist); border-radius: var(--r); width: 100%; height: 100%; display: grid; place-items: center; padding: 8px; line-height: 1.35; }
.qr-label { font-weight: 700; font-size: .95rem; }
#qr-airbnb-link .qr-label { color: var(--airbnb); }
#qr-booking-link .qr-label { color: var(--booking); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #C9D6C3; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; }
.footer-inner p { margin: 0; }
.footer-inner strong { color: #fff; }
.site-footer .muted { color: #9DB093; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: #111512; color: #fff;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.lb-count { font-size: .92rem; color: #C9D6C3; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; position: relative; touch-action: pan-y; }
.lb-figure { margin: 0; height: 100%; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lb-figure img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: var(--r-sm); }
.lb-figure figcaption { font-size: .9rem; color: #C9D6C3; text-align: center; max-width: 60ch; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (min-width: 768px) { .lb-nav { position: static; transform: none; } }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 16px; scrollbar-width: thin; }
.lb-thumbs button { flex: none; width: 72px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #222; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.lb-thumbs button:hover { opacity: .85; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: #fff; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Scroll reveal (only when JS runs and motion is OK) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ==================================================================
   Phones and touch screens. Nothing in this block changes the
   desktop layout: it is limited by screen width or touch input.
   ================================================================== */

/* Quick booking bar (phones and small tablets, where the booking card isn't beside the text) */
.mobile-bar { display: none; }
@media (max-width: 959px) {
  .js .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(248, 246, 240, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(15, 30, 19, .10);
    opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
  }
  .js .mobile-bar.is-shown { opacity: 1; visibility: visible; }
  .mobile-bar .btn { flex: 1 1 0; min-width: 0; min-height: 46px; padding: .7em .9em; font-size: .95rem; white-space: nowrap; }
  .has-mobile-bar .proto-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
/* Narrow phones: drop the icons so longer translations fit */
@media (max-width: 399px) {
  .mobile-bar .btn { padding: .7em .6em; }
  .mobile-bar .btn .icon { display: none; }
}

/* Good to know: tap a topic to open it (phones only; main.js adds the buttons) */
.gtk-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.gtk-toggle .icon { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .4s ease; }
.gtk-acc.is-open .gtk-toggle .icon { transform: rotate(180deg); }
@media (max-width: 599px) {
  .gtk-key, .gtk-grid { gap: 10px; }
  .gtk-key { margin-bottom: 10px; }
  .gtk-acc.is-collapsible {
    display: block; padding: 0 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  }
  .gtk-acc.is-collapsible > .icon { display: none; }
  .gtk-acc.is-collapsible h4 { margin: 0; font-size: 1rem; }
  .gtk-acc.is-collapsible .gtk-toggle { margin: 0 -18px; width: calc(100% + 36px); padding: 16px 18px; min-height: 52px; }
  .gtk-acc.is-collapsible:not(.is-open) h4 ~ * { display: none; }
  .gtk-acc.is-open { padding-bottom: 16px; }
}

/* Explore: compact rows on phones (icon left, text right) */
@media (max-width: 599px) {
  .places { gap: 10px; }
  .place-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 14px 16px; align-items: start; }
  .place-icon { grid-row: 1 / span 3; width: 40px; height: 40px; margin: 2px 0 0; }
  .place-icon .icon { width: 22px; height: 22px; }
  .place-dist { position: static; grid-column: 2; justify-self: start; margin-bottom: 4px; }
  .place-card h4, .place-card p { grid-column: 2; }
  .place-card h4 { margin: 0; }
  .place-card p { font-size: .9rem; }
}

/* Map on touch screens: one finger scrolls the page, two fingers move the map */
.area-map.map-touch.leaflet-container { touch-action: pan-x pan-y; }
.map-hint {
  position: absolute; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
  background: rgba(15, 30, 19, .55); color: #fff; font-weight: 600; text-align: center;
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.map-hint.is-shown { opacity: 1; }

/* Platform links: on touch screens a QR code can't be scanned from the same screen, so show buttons */
.qr-open { display: none; }
@media (hover: none) and (pointer: coarse) {
  .qr-scan, .qr-box, .qr-label { display: none; }
  .qr-cards { grid-template-columns: 1fr; gap: 10px; }
  .qr-card { flex-direction: row; justify-content: center; padding: 14px 18px; min-height: 52px; border-radius: var(--r-pill); }
  .qr-open { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
  .qr-open .icon { width: 18px; height: 18px; }
  #qr-airbnb-link .qr-open { color: var(--airbnb); }
  #qr-booking-link .qr-open { color: var(--booking); }
}

/* Short email button text on phones (the full address can wrap awkwardly) */
.email-short { display: none; }
@media (max-width: 599px) {
  .contact-actions .js-email-label { display: none; }
  .contact-actions .email-short { display: inline; }
}

/* Calendar: roomier days on phones (about 44 px, Apple's recommended tap size) */
@media (max-width: 599px) {
  .calendar-card { padding: 20px 12px; }
}
