/* ==========================================================================
   Răsfăț la țară — "storybook honesty"
   Warm paper, forest ink, clay accents. Leaves, not stars.
   ========================================================================== */

/* ---------- Fonts (self-hosted, CSP-safe) ---------- */
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/fraunces-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2026;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0218-021B, U+1E00-1EFF;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/fraunces-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2026;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0218-021B, U+1E00-1EFF;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/fraunces-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2026;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0218-021B, U+1E00-1EFF;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/fraunces-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2026;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext-400-italic.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0218-021B, U+1E00-1EFF;
}

/* ---------- Tokens ---------- */
:root {
  --paper:      #f7f1e5;
  --paper-deep: #efe6d3;
  --line:       #ddd0b8;
  --ink:        #2e2a22;
  --ink-soft:   #6b6252;
  --forest:     #35523a;
  --forest-deep:#243a29;
  --clay:       #b4552e;
  --clay-deep:  #94431f;
  --hay:        #c9a24b;
  --sage:       #8a9c7e;
  --leaf:       #4a7c46;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: Georgia, 'Times New Roman', serif;
  --shadow: 0 2px 4px rgba(46,42,34,.06), 0 12px 32px -12px rgba(46,42,34,.22);
  --radius: 14px;
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='9' viewBox='0 0 120 9'%3E%3Cpath d='M0 6 Q 10 1 20 6 T 40 6 T 60 6 T 80 6 T 100 6 T 120 6' fill='none' stroke='%23b4552e' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--body);
  color: var(--ink);
  background-color: var(--paper);
  /* faint paper grain */
  background-image: radial-gradient(rgba(46,42,34,.028) 1px, transparent 1px);
  background-size: 5px 5px;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration-color: rgba(53,82,58,.4); text-underline-offset: 3px; }
a:hover { color: var(--clay); }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }
.section.tight { padding-bottom: 0; }
.check-row { flex-direction: row !important; align-items: baseline !important; gap: .5rem !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.narrow { max-width: 640px; margin: 3rem auto 5rem; padding-inline: clamp(1.25rem, 4vw, 2rem); }

/* section heading with hand-drawn squiggle */
.sq { position: relative; display: inline-block; padding-bottom: .55rem; }
.sq::after {
  content: ''; position: absolute; left: 2px; bottom: 0;
  width: min(120px, 70%); height: 9px;
  background: var(--squiggle) no-repeat; background-size: 120px 9px;
}

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 30;
  display: flex; align-items: center; gap: 1.6rem;
  padding: 1rem clamp(1.25rem, 4vw, 1.75rem);
}
.site-header .brand {
  font-family: var(--display); font-weight: 700; font-size: 2.0rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
  margin-right: 1.6rem;   /* doubles the header gap between brand and nav */
}
.site-nav { display: flex; gap: 1.3rem; flex: 1; flex-wrap: wrap; padding-top: 10px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 1.2rem;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.site-nav a:hover { border-bottom-color: var(--clay); color: var(--ink); }
.header-side { display: flex; gap: .35rem; align-items: center; }
.lang {
  text-decoration: none; font-size: .82rem; padding: .18rem .55rem;
  border-radius: 999px; color: var(--ink-soft); border: 1px solid transparent;
}
.lang.on { border-color: var(--line); background: rgba(255,255,255,.55); color: var(--ink); }
.site-nav .nav-lang { display: none; }   /* language row lives in the mobile menu only */

/* hamburger — hidden on desktop */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%; border-radius: 2px;
  background: var(--ink); transition: transform .25s ease, opacity .2s ease;
}
body.has-hero .nav-toggle { border-color: rgba(247,241,229,.45); }
body.has-hero .nav-toggle span { background: var(--paper); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* header floating over the hero video */
body.has-hero .site-header {
  position: absolute; top: 0; left: 0; right: 0;
}
body.has-hero .site-header .brand,
body.has-hero .site-nav a { color: var(--paper); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
body.has-hero .lang { color: rgba(247,241,229,.85); }
body.has-hero .lang.on { background: rgba(0,0,0,.25); border-color: rgba(247,241,229,.4); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  background: var(--forest-deep);
}
.hero video, .hero .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,30,20,.42) 0%, rgba(20,30,20,.18) 40%, rgba(28,38,26,.66) 100%);
}
.hero-inner {
  position: relative; z-index: 2; text-align: center;
  padding: 6rem 1.25rem 4rem; max-width: 780px;
  animation: heroRise 1.1s cubic-bezier(.2,.7,.2,1) both .15s;
}
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero h1 {
  color: var(--paper); font-size: 3.6rem;
  margin: 0 0 1rem; text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero p {
  color: rgba(247,241,229,.92); font-size: 1.28rem;
  margin: 0 auto 2.2rem; max-width: 34em; text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero-inner .btn { font-size: 1.4rem; }
.hero .promise {
  display: inline-block; font-family: var(--display); font-style: italic;
  color: var(--hay); margin-top: 2.4rem; font-size: 1.4rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.scroll-cue {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(247,241,229,.75); font-size: 1.6rem; text-decoration: none;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 600;
  font-size: 1.02rem; padding: .72rem 1.6rem; border-radius: 999px;
  background: var(--clay); color: #fff8ef; text-decoration: none;
  border: none; cursor: pointer; box-shadow: 0 3px 0 var(--clay-deep);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--clay-deep); color: #fff; }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--clay-deep); }
.btn.ghost {
  background: transparent; color: var(--forest); box-shadow: none;
  border: 2px solid var(--forest);
}
.btn.ghost:hover { background: var(--forest); color: var(--paper); }

/* ---------- Sections ---------- */
/* vertical only — never overrides .wrap's side gutters */
.section { padding-top: 4.2rem; padding-bottom: 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.section-head .more { font-size: .95rem; white-space: nowrap; }

/* category tiles */
.cat-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.cat-tile {
  background: rgba(255,255,255,.5); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 1.1rem .9rem; text-align: center;
  text-decoration: none; color: var(--ink);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.cat-tile:hover { transform: translateY(-3px) rotate(-.4deg); border-color: var(--clay); background: #fff; color: var(--ink); }
.cat-tile .ico { font-size: 2.3rem; display: block; margin-bottom: .35rem; }
.cat-tile .name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; display: block; }

/* ---------- Listing cards ---------- */
/* masonry: cards keep their natural height, shorter ones let neighbours ride up */
.card-grid {
  columns: 280px;
  column-gap: 1.5rem;
  padding-bottom: 2rem;
}
.lcard {
  background: #fffdf7; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin: 0 0 1.5rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.lcard:hover { transform: translateY(-4px) rotate(-.3deg); color: var(--ink); }
.lcard:nth-child(even):hover { transform: translateY(-4px) rotate(.3deg); }
.lcard-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-deep); }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; }
.lcard-media .badges { position: absolute; top: .6rem; left: .6rem; right: .6rem; display: flex; justify-content: space-between; }
.pill {
  display: inline-block; font-size: .8rem; padding: .14rem .6rem;
  background: rgba(30,40,28,.72); color: var(--paper); border-radius: 999px;
  backdrop-filter: blur(3px);
}
.pill.leaves-pill { letter-spacing: .06em; }
.lcard-body { padding: .95rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.lcard-body h3 { margin: 0; font-size: 1.08rem; }
.lcard-meta { font-size: .87rem; color: var(--ink-soft); }
.lcard-summary { font-size: .92rem; color: var(--ink-soft); margin: .15rem 0 .4rem; }
.lcard-foot { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.lcard-foot .price strong { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.tag { font-size: .8rem; color: var(--forest); border: 1px solid var(--sage); border-radius: 999px; padding: .05rem .55rem; }

/* staggered reveal */
.reveal > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.reveal > *:nth-child(1) { animation-delay: .05s; } .reveal > *:nth-child(2) { animation-delay: .12s; }
.reveal > *:nth-child(3) { animation-delay: .19s; } .reveal > *:nth-child(4) { animation-delay: .26s; }
.reveal > *:nth-child(5) { animation-delay: .33s; } .reveal > *:nth-child(6) { animation-delay: .40s; }
.reveal > *:nth-child(n+7) { animation-delay: .47s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- How-we-choose strip ---------- */
.how-strip {
  margin: 4rem 0 0; padding: 3.4rem 0 3.8rem;
  background: var(--forest); color: var(--paper);
  border-top: 6px solid var(--hay);
}
.how-strip h2 { color: var(--paper); }
.how-strip p { max-width: 44em; color: rgba(247,241,229,.9); }
.how-strip .btn.ghost { border-color: var(--hay); color: var(--hay); }
.how-strip .btn.ghost:hover { background: var(--hay); color: var(--forest-deep); }

/* ---------- Filters (discover) ---------- */
.filters {
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
  background: rgba(255,255,255,.55); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .8rem; margin: 1.4rem 0 2rem;
}
.filters select, .filters input[type="search"], .filters input[type="text"] {
  font: inherit; font-size: .93rem; padding: .45rem .7rem;
  border: 1px solid var(--line); border-radius: 9px; background: #fffdf7; color: var(--ink);
  max-width: 100%;
}
.filters input[type="search"] { flex: 1; min-width: 150px; }
.filters .btn { padding: .5rem 1.2rem; font-size: .95rem; }

.empty {
  text-align: center; padding: 3.5rem 1rem; color: var(--ink-soft);
  font-family: var(--display); font-style: italic; font-size: 1.15rem;
}

/* ---------- Maps ---------- */
.discover-map {
  height: 420px; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); margin: 0 0 2.2rem; z-index: 1;
}
.map-head { margin-bottom: .9rem; }
.listing-map {
  height: 260px; border-radius: var(--radius); border: 1px solid var(--line);
  margin: 1.2rem 0 .4rem; z-index: 1;
}
.map-popup { font: 14px/1.45 Georgia, serif; }
.map-popup a { font-weight: 700; }

/* brand map pin: clay teardrop with a leaf */
.brand-pin-wrap { background: none; border: none; }
.brand-pin {
  width: 34px; height: 34px;
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(46,42,34,.35);
  display: flex; align-items: center; justify-content: center;
}
.brand-pin span { transform: rotate(45deg); font-size: 15px; line-height: 1; }
.leaflet-popup-content-wrapper { border-radius: 12px; border: 1px solid var(--line); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #fffdf7; color: var(--ink); }

/* Ctrl+scroll hint overlay + popup / mini-map external links */
.map-hint {
  position: absolute; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: rgba(36,58,41,.55); color: var(--paper);
  font: 600 1.02rem/1.4 var(--display); padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.show-hint .map-hint { opacity: 1; }
.map-popup-links { display: flex; gap: .5rem; margin-top: .5rem; }
.map-links { display: flex; gap: .6rem; margin: .2rem 0 0; }
.map-icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); background: #fffdf7; color: var(--forest);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.map-icon-link svg { width: 17px; height: 17px; }
.map-icon-link:hover { color: #fff8ef; background: var(--clay); border-color: var(--clay); }

/* street / satellite toggle (bottom-left of every map) */
.map-layer-toggle {
  font: 600 .85rem/1 var(--display);
  padding: .5rem .85rem; border-radius: 9px; cursor: pointer;
  background: #fffdf7; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(46,42,34,.25);
}
.map-layer-toggle:hover { background: var(--paper-deep); }
.map-layer-toggle.on-sat { background: var(--forest-deep); color: var(--paper); border-color: var(--forest-deep); }

/* ---------- Listing detail ---------- */
.ldetail-head { padding-top: 2.2rem; padding-bottom: 1rem; }
.ldetail-head .crumbs { font-size: .88rem; margin-bottom: 1rem; }
.ldetail-head h1 { margin: .2rem 0 .5rem; }
.ldetail-meta { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; color: var(--ink-soft); font-size: .95rem; }
.leaves-big { font-size: 1.15rem; letter-spacing: .1em; }

.gallery { display: grid; gap: .7rem; grid-template-columns: 2fr 1fr; margin: 1.4rem 0; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .g-side { display: grid; gap: .7rem; }
.gallery.single { grid-template-columns: 1fr; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }

.video-embed {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); background: var(--forest-deep);
  margin: 1rem 0 1.6rem;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ldetail-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; padding-bottom: 4rem; }
@media (max-width: 860px) { .ldetail-cols { grid-template-columns: 1fr; } }

.prose p { margin: 0 0 1.1em; }
.demo-note {
  font-size: .85rem; color: var(--ink-soft); border-left: 3px solid var(--hay);
  padding: .5rem .9rem; background: rgba(201,162,75,.09); border-radius: 0 9px 9px 0;
  margin-top: 1.6rem;
}

/* score panel */
.panel-side {
  background: #fffdf7; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1.3rem 1.5rem; margin-bottom: 1.6rem;
}
.panel-side h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
.score-line { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .8rem; }
.score-line .leaves-big { font-size: 1.4rem; }
.score-line .pct { color: var(--ink-soft); font-size: .92rem; }
.crit-list { list-style: none; margin: 0; padding: 0; }
.crit-list li {
  display: flex; gap: .55rem; align-items: baseline; padding: .42rem 0;
  border-bottom: 1px dashed var(--line); font-size: .93rem;
}
.crit-list li:last-child { border-bottom: none; }
.crit-list .pts { margin-left: auto; white-space: nowrap; color: var(--leaf); font-weight: 600; font-size: .85rem; }
.crit-note { font-size: .82rem; color: var(--ink-soft); margin-top: .7rem; }

.host-box { font-size: .95rem; }
.host-box .verified { color: var(--leaf); font-size: .85rem; }

.included li { margin-bottom: .35rem; }

/* inquiry form */
.stack { display: flex; flex-direction: column; gap: .9rem; }
.stack label { display: flex; flex-direction: column; gap: .3rem; font-size: .92rem; color: var(--ink-soft); }
.stack input, .stack textarea, .stack select {
  font: inherit; font-size: .98rem; color: var(--ink);
  padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
.stack input:focus, .stack textarea:focus, .stack select:focus {
  outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }
.form-ok {
  background: rgba(74,124,70,.12); border: 1px solid var(--leaf); color: var(--forest-deep);
  border-radius: 9px; padding: .8rem 1rem; font-size: .95rem;
}
.form-error {
  background: rgba(180,85,46,.1); border: 1px solid var(--clay); color: var(--clay-deep);
  border-radius: 9px; padding: .8rem 1rem; font-size: .95rem;
}
.field-error input, .field-error textarea { border-color: var(--clay); }
/* honeypot — hidden from humans, tempting for bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Standard page ---------- */
.standard-intro { max-width: 46em; }
.crit-table { width: 100%; border-collapse: collapse; background: #fffdf7; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1rem 0 2.4rem; box-shadow: var(--shadow); overflow-x: auto; }
.crit-table th, .crit-table td { text-align: left; padding: .6rem .9rem; border-bottom: 1px dashed var(--line); font-size: .95rem; vertical-align: top; }
.crit-table th { background: var(--paper-deep); font-family: var(--display); }
.crit-table td.p { text-align: right; font-weight: 700; color: var(--leaf); white-space: nowrap; }
.crit-table .desc { color: var(--ink-soft); font-size: .87rem; display: block; }

/* ---------- Manifesto ---------- */
.manifesto { font-size: 1.12rem; }
.manifesto p { margin: 0 0 1.3em; }
.manifesto .big {
  font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.7rem); font-style: italic;
  color: var(--forest); line-height: 1.4;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem; padding: 3rem 1.5rem 2.4rem;
  background: var(--forest-deep); color: rgba(247,241,229,.85);
  text-align: center;
}
.site-footer a { color: var(--hay); }
.site-footer .promise {
  font-family: var(--display); font-style: italic; font-size: 1.25rem;
  color: var(--paper); margin: 0 0 1rem;
}
.site-footer .muted { color: rgba(247,241,229,.55); font-size: .85rem; }

/* ---------- Lightbox ---------- */
.lb-hidden { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(30, 26, 20, .92);
  padding: 2.5rem;
}
.lightbox.open { display: flex; animation: lbFade .18s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
body.lightbox-open { overflow: hidden; }
.lightbox-img {
  max-width: min(92vw, 1400px); max-height: 86vh;
  border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  background: var(--paper-deep);
}
.lightbox-btn {
  position: absolute; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  font: 400 2rem/1 var(--display); cursor: pointer;
  background: rgba(247,241,229,.12); color: var(--paper);
  border: 1px solid rgba(247,241,229,.35);
  transition: background .15s ease;
}
.lightbox-btn:hover { background: rgba(247,241,229,.28); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  color: rgba(247,241,229,.85); font-size: .95rem; letter-spacing: .06em;
}
@media (max-width: 640px) {
  .lightbox { padding: 1rem; }
  .lightbox-btn { width: 44px; height: 44px; }
  .lightbox-prev { left: .4rem; } .lightbox-next { right: .4rem; }
}

/* ---------- Errors ---------- */
.error-page { text-align: center; padding: 6rem 1.25rem 7rem; max-width: 560px; margin: 0 auto; }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Mobile navigation (≤820px) ---------- */
@media (max-width: 820px) {
  .site-header { gap: .8rem; }
  .header-side { margin-left: auto; }
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 3px solid var(--hay);
    box-shadow: 0 18px 30px -18px rgba(46,42,34,.4);
    padding: .4rem 0 .8rem;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: .85rem clamp(1.25rem, 5vw, 1.75rem);
    font-size: 1.05rem; border-bottom: 1px dashed var(--line);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a:hover { background: var(--paper-deep); }

  /* over the hero video: dark panel, cream links */
  body.has-hero .site-nav { background: var(--forest-deep); border-bottom-color: var(--hay); }
  body.has-hero .site-nav a { color: var(--paper); text-shadow: none; border-bottom-color: rgba(247,241,229,.15); }
  body.has-hero .site-nav a:hover { background: rgba(247,241,229,.08); }

  /* RO/EN + account link move from the header bar into the open menu */
  .header-side .lang, .header-side .account-link { display: none; }
  .site-nav .nav-lang .account-link { margin-left: auto; margin-right: 0; }
  body.has-hero .site-nav .nav-lang .account-link {
    color: var(--paper); border-color: rgba(247,241,229,.4); background: rgba(0,0,0,.25);
  }
  .site-nav .nav-lang {
    display: flex; gap: .5rem;
    padding: .7rem clamp(1.25rem, 5vw, 1.75rem) .2rem;
  }
  .site-nav .nav-lang a {
    padding: .18rem .7rem; font-size: .85rem; border: 1px solid transparent;
    border-radius: 999px; border-bottom-style: solid;
  }
  .site-nav .nav-lang a.on { border-color: var(--line); background: rgba(255,255,255,.15); }
  .site-nav .nav-lang a:hover { background: var(--paper-deep); }
  body.has-hero .site-nav .nav-lang a:hover { background: rgba(247,241,229,.08); }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .hero-inner { padding: 5rem 1.25rem 3.5rem; }
  .hero h1 { font-size: 2.4rem; }   /* desktop size doesn't fit a phone screen */
  .hero .promise { font-size: 1.3rem; }
  .section { padding-top: 2.6rem; }
  .narrow { margin-top: 2rem; }

  /* filters stack full-width */
  .filters { flex-direction: column; align-items: stretch; padding: .9rem; }
  .filters select, .filters input[type="search"], .filters .btn { width: 100%; }

  .discover-map { height: 320px; }
  .lcard-media { aspect-ratio: 16 / 10; }
  .site-footer { padding: 2.4rem 1.25rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Private-mode gate ---------- */
.gate-page { display: grid; min-height: 100vh; place-items: center; background: var(--paper); }
.gate { max-width: 420px; width: 100%; padding: 2.5rem clamp(1.25rem, 5vw, 2.5rem); text-align: center; }
.gate-brand { font-family: var(--display); font-size: 1.15rem; color: var(--forest); margin-bottom: 2.2rem; }
.gate h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin-bottom: .8rem; }
.gate-message { color: var(--ink-soft); margin-bottom: 2rem; }
.gate form { text-align: left; }
.gate .form-error { text-align: left; margin-bottom: 1rem; }
.gate-lang { margin-top: 2rem; color: var(--ink-soft); }
.gate-lang .on { font-weight: 700; }

/* ---------- Logged-in account link (header) ---------- */
.account-link {
  text-decoration: none; font-size: .82rem; padding: .18rem .7rem; margin-right: .3rem;
  border-radius: 999px; color: var(--forest); border: 1px solid var(--line);
  background: rgba(255,255,255,.55); white-space: nowrap; max-width: 12em;
  overflow: hidden; text-overflow: ellipsis;
}
.account-link:hover { background: var(--forest); color: var(--paper); }

/* ---------- Gallery "+N more photos" badge (3rd visible photo, bottom-left) ---------- */
.g-side a { position: relative; }
.g-more {
  position: absolute; right: 0; bottom: 0;
  padding: .25rem .8rem; border-radius: 10px 0 0 0;
  background: rgba(20, 30, 20, .72); color: var(--paper);
  font-size: 1.4rem; font-weight: 600; letter-spacing: .02em;
  pointer-events: none;  /* clicks fall through to the photo link */
}
/* photos beyond the visible three: lightbox-only, never rendered in the grid */
.gallery .lb-hidden { display: none; }
