/* CheapLodges.co.zw — hand-written design system. No frameworks.
   Identity: Space Grotesk (display + prices) + Inter (body), warm neutral base,
   brand orange for CTAs, and a per-duration accent language:
     Hourly = amber   ·   Day rest = sky   ·   Overnight = indigo
   Organised: variables → base → header → buttons → hero/finder → cards →
   duration language → forms/filters → detail → reviews → ads → admin → utils. */

:root {
  /* Palette */
  --bg:        #FAF7F2;
  --surface:   #ffffff;
  --ink:       #211c18;
  --ink-soft:  #5c554e;
  --muted:     #736A60;  /* SYNC: mirrored in layout.php critical CSS. ≥4.5:1 on --bg */
  --line:      #ece5db;
  --line-2:    #e0d8cc;
  --primary:   #E85D26;   /* CheapLodges orange — CTAs / brand */
  --primary-d: #cf4d1b;
  --primary-t: #fbe9df;
  --wa:        #25D366;   /* WhatsApp green */
  --wa-d:      #1da851;
  --star:      #f5a623;
  --ok:        #1f9d55;
  --danger:    #d23b2f;

  /* Per-duration accents (the app's core visual language) */
  --dur-hourly:    #E8971E;  --dur-hourly-t:    #fdf1dd;  --dur-hourly-d:    #b5720e;
  --dur-day:       #1288C4;  --dur-day-t:       #e2f2fb;  --dur-day-d:       #0c6a9a;
  --dur-overnight: #5B54C9;  --dur-overnight-t: #eae9fa;  --dur-overnight-d: #453fa6;

  /* Spacing */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;

  /* Radii */
  --r-sm:10px; --r:14px; --r-lg:18px; --r-xl:24px; --r-pill:999px;

  /* Shadow */
  --shadow:    0 1px 2px rgba(33,28,24,.05), 0 8px 24px rgba(33,28,24,.09);
  --shadow-lg: 0 12px 48px rgba(33,28,24,.18);

  /* Fluid width: 92% of the viewport, capped so lines stay readable on huge
     screens. Mobile ignores the % (see media query) — padding alone governs. */
  --wrap: min(1280px, 92%);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
/* SYNC: mirrored in layout.php critical CSS */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 var(--s3); }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h2 { font-size: 1.4rem; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; letter-spacing: -.02em; }
p { margin: 0 0 var(--s3); }
small { font-size: .8rem; }
b, strong { font-weight: 600; }
/* Prices & numerals use the display face with tabular figures — scannable. */
.num, .price { font-family: var(--display); font-feature-settings: "tnum" 1; letter-spacing: -.01em; }

/* Inline SVG icons (see icon() helper) — em-sized so they track text size.
   SYNC: mirrored in layout.php critical CSS */
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
.section { padding: var(--s6) 0; }
.section--tight { padding-bottom: 0; }
.stack > * + * { margin-top: var(--s3); }

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,247,242,.9); backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: none;
}
.site-header__bar { display: flex; align-items: center; gap: var(--s4); height: 66px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 0; background: url('/assets/img/logo.png') center / contain no-repeat; color: transparent; font-size: 0; box-shadow: none; }
.brand__tld { color: var(--muted); font-weight: 500; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
/* :not(.btn) — plain-link styles must never override .btn padding/colour
   (this was squashing the Sign up button). Buttons also never shrink or wrap. */
.site-nav a { flex: none; white-space: nowrap; }
.site-nav a:not(.btn) { color: var(--ink-soft); padding: var(--s2) var(--s3); border-radius: var(--r-pill); font-weight: 500; font-size: .95rem; transition: background .15s ease, color .15s ease; }
.site-nav a:not(.btn):hover { background: var(--primary-t); color: var(--primary-d); text-decoration: none; }
.site-nav a[aria-current="page"], .site-header__panel a[aria-current="page"] { background: var(--primary-t); color: var(--primary-d); font-weight: 600; }
.site-nav .btn { margin-left: var(--s2); }

/* Skip link — SYNC: mirrored in layout.php critical CSS */
.skip-link { position: absolute; top: -56px; left: 12px; z-index: 60; background: var(--primary); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); font-weight: 600; }
.skip-link:focus { top: 8px; }

/* Header search — icon lives inside the pill field (filled style) */
.site-search { position: relative; display: flex; align-items: center; }
.site-search__input { min-height: 40px; width: 200px; border-radius: var(--r-pill); padding: 8px var(--s4) 8px 38px; font-size: .9rem; background: var(--bg); border-color: transparent; transition: width .2s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.site-search__input:hover { background: #fff; border-color: var(--line-2); }
.site-search__input:focus { width: 260px; background: #fff; }
.site-search__btn { position: absolute; left: 5px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: none; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.site-search__btn .ic { width: 17px; height: 17px; }
.site-search__btn:hover { color: var(--primary); background: var(--primary-t); }
.site-search--panel { margin-bottom: var(--s2); }
.site-search--panel .site-search__input { flex: 1; width: auto; min-height: 48px; font-size: 1rem; padding-left: 42px; }
.site-search--panel .site-search__input:focus { width: auto; }
.site-search--panel .site-search__btn { left: 8px; width: 34px; height: 34px; }
.site-nav__search { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; color: var(--ink-soft); flex: none; }
.site-nav__search:hover { background: var(--primary-t); text-decoration: none; }

/* Mobile menu — checkbox toggle, works without JS.
   SYNC: display/checked/breakpoint + burger box rules mirrored in layout.php critical CSS */
.site-header__burger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: var(--r-pill); background: var(--primary-t); color: var(--primary-d); cursor: pointer; flex: none; transition: background .15s ease, color .15s ease, transform .15s ease; }
.site-header__burger:hover { background: var(--primary); color: #fff; }
.site-header__burger:active { transform: scale(.96); }
.site-header__burger-bars { position: relative; display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px; transition: background .12s ease; }
.site-header__burger-bars::before, .site-header__burger-bars::after { content: ""; position: absolute; left: 0; width: 17px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .15s ease, top .15s ease; }
.site-header__burger-bars::before { top: -6px; }
.site-header__burger-bars::after { top: 6px; }
.site-header__toggle:checked ~ .site-header__bar .site-header__burger-bars { background: transparent; }
.site-header__toggle:checked ~ .site-header__bar .site-header__burger-bars::before { top: 0; transform: rotate(45deg); }
.site-header__toggle:checked ~ .site-header__bar .site-header__burger-bars::after { top: 0; transform: rotate(-45deg); }
.site-header__toggle:focus-visible ~ .site-header__bar .site-header__burger { outline: 2px solid var(--primary); outline-offset: 2px; }
.site-header__panel { display: none; border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 16px 32px rgba(33,28,24,.12); max-height: calc(100dvh - 66px); overflow-y: auto; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.site-header__toggle:checked ~ .site-header__panel { display: block; }
.site-header__panel > .wrap { padding-top: var(--s4); padding-bottom: var(--s6); }
.site-header__panel-group { margin-top: var(--s5); }
.site-header__panel-group:first-child { margin-top: var(--s2); }
.site-header__panel-group > a:not(.btn) { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s3); border-radius: var(--r); color: var(--ink); font-weight: 500; }
.site-header__panel-group > a:not(.btn):hover { background: var(--primary-t); color: var(--primary-d); text-decoration: none; }
.site-header__panel-group > .btn { margin-top: var(--s2); }
@media (max-width: 700px) {
  /* Mobile: the fluid % width would squeeze content — padding alone governs */

  .site-header__burger { display: inline-flex; }
  .site-nav__search { display: inline-flex; }
  .site-nav a:not(.btn) { display: none; }
  .site-search--bar { display: none; }
}
@media (min-width: 701px) {
  .site-header__toggle { display: none; }
  .site-header__panel { display: none !important; }
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 46px; padding: 0 var(--s5); border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(232,93,38,.28); }
.btn--primary:hover { background: var(--primary-d); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.28); }
.btn--wa:hover { background: var(--wa-d); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-d); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 var(--s4); font-size: .9rem; }
.btn--lg { min-height: 54px; padding: 0 var(--s6); font-size: 1.08rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* --- Hero -------------------------------------------------------------- */
/* Photographic background (bk.png) with a warm scrim so the light text stays
   readable — darker on the left where the headline sits.
   SYNC: background + hero text colours mirrored in layout.php critical CSS */
.hero {
  position: relative; padding: var(--s7) 0 var(--s6); overflow: hidden;
  background:
    linear-gradient(112deg, rgba(24,16,11,.92) 0%, rgba(24,16,11,.72) 48%, rgba(24,16,11,.55) 100%),
    url(/assets/bk.png) center/cover no-repeat,
    var(--ink);
}
/* Fade the photo into the page background below it */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 88px; pointer-events: none;
  background: linear-gradient(180deg, rgba(250,247,242,0), var(--bg));
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: center; }
/* Below-the-bar meta: popular-city chips + trust points, quieter than the bar */
.hero__meta { display: flex; flex-direction: column; gap: var(--s3); }
.hero__meta-label { flex: none; align-self: center; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); max-width: 16ch; color: #fff; }
.hero__accent { font-style: normal; background: linear-gradient(90deg, #ffcf9e, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 46ch; }
/* Light treatment for the chips + trust strip that sit over the photo */
.hero .chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(4px); }
.hero .chip:hover { background: #fff; border-color: #fff; color: var(--primary-d); }
.hero .trust-strip li { color: rgba(255,255,255,.92); }
.hero .trust-strip li .ic { color: #6fe0a3; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .82rem; color: var(--primary-d); background: #fff; border: 1px solid var(--line-2); padding: 6px 14px; border-radius: var(--r-pill); box-shadow: var(--shadow); }
.hero__eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: eyebrow-pulse 2.2s ease-out infinite; }
@keyframes eyebrow-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,157,85,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(31,157,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); }
}
.trust-strip { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); list-style: none; padding: 0; margin: 0; }
.trust-strip li { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.trust-strip li .ic { color: var(--ok); }

/* --- The Finder: unified search bar (location → area → type → price) ----
   Shared by the home hero and listing pages. Desktop = one segmented bar with
   popover Type/Price pickers; mobile listing collapses to a bottom sheet.
   SYNC: the bar frame + segment layout are mirrored in layout.php critical CSS. */
.finder { position: relative; }
.finder--hero { width: 100%; max-width: 960px; }
.finder--listing { margin-bottom: var(--s5); }

.finder__bar {
  position: relative; display: flex; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: 0 24px 64px -30px rgba(33,28,24,.32), 0 2px 6px rgba(33,28,24,.05);
}
.finder--listing .finder__bar { box-shadow: var(--shadow); }
.finder__field { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 18px; }
.finder__field:not(:first-child)::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.finder__label { font-size: .64rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.finder__select { border: none; background-color: transparent; box-shadow: none; min-height: 30px; padding: 0 26px 0 0; font-weight: 600; font-size: 1rem; color: var(--ink); background-position: right 2px center; cursor: pointer; }
.finder__select:focus { box-shadow: none; outline: none; }
.finder__field--select:focus-within { background: var(--bg); border-radius: var(--r-lg); }

/* Type / Price popover segments (native <details>) */
.finder__popsummary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.finder__popsummary::-webkit-details-marker { display: none; }
.finder__value { font-weight: 600; font-size: 1rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 22px; }
.finder__chev { position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--muted); transition: transform .15s ease; }
.finder__pop[open] > .finder__popsummary .finder__chev { transform: rotate(180deg); }
.finder__pop[open] { background: var(--bg); border-radius: var(--r-lg); }
.finder__popbody { position: absolute; top: calc(100% + 10px); left: 0; z-index: 45; min-width: 300px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: var(--s4); animation: popIn .14s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.finder__go { flex: none; align-self: center; margin: 6px; min-height: 52px; border-radius: var(--r-lg); padding: 0 22px; }

/* Amenities (optional / secondary) */
.finder__more { margin-top: var(--s3); }
.finder__more-summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--ink-soft); padding: 8px 0; }
.finder__more-summary::-webkit-details-marker { display: none; }
.finder__more[open] .finder__more-summary { color: var(--primary-d); }
.finder__more-body { padding-top: var(--s2); }

/* Mobile sheet chrome (listing) — revealed only ≤700px */
.finder__summary, .finder__scrim, .finder__head, .finder__close { display: none; }

@media (max-width: 700px) {
  /* Bar stacks (used by the expanded hero and inside the listing sheet) */
  .finder__bar { flex-direction: column; border-radius: var(--r-lg); }
  .finder__field { padding: 12px 16px; }
  .finder__field:not(:first-child)::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
  .finder__popbody { position: static; min-width: 0; border: none; box-shadow: none; padding: var(--s3) 0 0; animation: none; }
  .finder__chev { top: 16px; margin-top: 0; }
  .finder__go { margin: 8px 16px 16px; width: calc(100% - 32px); }

  /* Listing: slim summary bar that opens a bottom sheet */
  .finder--listing .finder__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  /* border: 1px solid var(--line-2); */
  border-radius: var(--r-pill);
  padding: 15px 16px;
  /* box-shadow: var(--shadow); */
  font-weight: 600;
  border-bottom: 5px solid lightgrey;
}.finder--listing .finder__summary-ic { color: var(--primary); display: inline-flex; }
  .finder--listing .finder__summary-ic .ic { width: 18px; height: 18px; }
  .finder--listing .finder__summary-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .finder--listing .finder__summary-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--primary-d); font-size: .9rem; }
  .finder--listing .finder__summary-cta .ic { width: 16px; height: 16px; }
  .finder--listing .finder__panel { display: none; }
  .finder--listing .finder__toggle:checked ~ .finder__scrim { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(24,16,11,.5); animation: fadeIn .18s ease; }
  .finder--listing .finder__toggle:checked ~ .finder__panel { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s4) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom)); box-shadow: 0 -8px 40px rgba(24,16,11,.28); animation: sheetUp .24s ease; }
  .finder--listing .finder__panel .finder__bar { border: none; box-shadow: none; }
  .finder--listing .finder__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s2); }
  .finder--listing .finder__head strong { font-family: var(--display); font-size: 1.15rem; }
  .finder--listing .finder__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 1.6rem; color: var(--muted); cursor: pointer; border-radius: 50%; }
  .finder--listing .finder__go { margin: 12px 0 0; width: 100%; }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .finder__popbody, .finder--listing .finder__toggle:checked ~ .finder__panel, .finder--listing .finder__toggle:checked ~ .finder__scrim { animation: none; }
}

/* Segmented control (duration pills) */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.seg--4 { grid-template-columns: repeat(2, 1fr); }
.finder__popbody .seg__opt { min-height: 62px; }
.seg__opt {
  --acc: var(--muted); --acc-t: var(--line);
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 72px; padding: var(--s3) var(--s2); cursor: pointer; user-select: none;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r);
  font-weight: 600; font-size: .92rem; color: var(--ink-soft); text-align: center;
  transition: border-color .12s ease, background .12s ease, transform .08s ease, box-shadow .12s ease;
}
.seg__opt .seg__icon { font-size: 1.35rem; line-height: 1; }
.seg__opt:hover { border-color: var(--acc); color: var(--acc); text-decoration: none; }
.seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg__opt.on, .seg__opt:has(input:checked) {
  background: var(--acc-t); border-color: var(--acc); color: var(--acc);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--acc) 22%, transparent);
}
.seg__opt--hourly    { --acc: var(--dur-hourly-d);    --acc-t: var(--dur-hourly-t); }
.seg__opt--day_rest  { --acc: var(--dur-day-d);       --acc-t: var(--dur-day-t); }
.seg__opt--overnight { --acc: var(--dur-overnight-d); --acc-t: var(--dur-overnight-t); }
.seg__opt--any       { --acc: var(--primary-d);       --acc-t: var(--primary-t); }

/* Price band chips */
.bands { display: flex; flex-wrap: wrap; gap: var(--s2); }
.band-chip {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4);
  border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--surface);
  color: var(--ink-soft); font-weight: 600; font-size: .92rem; cursor: pointer;
}
.band-chip .num { font-weight: 700; }
.band-chip:hover { border-color: var(--primary); color: var(--primary-d); text-decoration: none; }
.band-chip.on, .band-chip:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
.band-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

/* --- Chips (generic) --------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 var(--s4);
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink-soft); font-size: .92rem; font-weight: 500; cursor: pointer; user-select: none;
}
.chip:hover { border-color: var(--primary); color: var(--primary-d); text-decoration: none; }
.chip--active, .chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* --- Cards / grid ------------------------------------------------------ */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
/* Prevent min-content (min-width:auto) overflow in grid/flex children on
   narrow screens — lets tracks shrink below their content's intrinsic size. */
.grid > *, .hero__grid > *, .detail-cols > *, .seg, .seg__opt, .rail, .filters, .finder { min-width: 0; }

.lodge-card { position: relative; border: 1px solid transparent; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.lodge-card:hover, .lodge-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); text-decoration: none; }
.lodge-card__media { position: relative; aspect-ratio: 4/3; background: var(--line) center/cover no-repeat; }
.lodge-card__media img { width: 100%; height: 100%; object-fit: cover; }
/* SYNC: base .lodge-card__noimg rule mirrored in layout.php critical CSS */
.lodge-card__noimg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .8rem; background: linear-gradient(135deg, var(--primary-t), var(--dur-day-t)); }
.lodge-card__noimg--hourly    { background: linear-gradient(135deg, var(--dur-hourly-t), #fff); color: var(--dur-hourly-d); }
.lodge-card__noimg--day_rest  { background: linear-gradient(135deg, var(--dur-day-t), #fff); color: var(--dur-day-d); }
.lodge-card__noimg--overnight { background: linear-gradient(135deg, var(--dur-overnight-t), #fff); color: var(--dur-overnight-d); }
.lodge-card__body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.lodge-card__name { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.1rem; letter-spacing: -.02em; }
.lodge-card__area { color: var(--muted); font-size: .84rem; display: inline-flex; align-items: center; gap: 5px; }
.lodge-card__badge { color: var(--ink-soft); font-size: .82rem; margin-top: auto; }
.lodge-card__badge-ic { color: var(--ok); font-weight: 700; }

/* Rating pill over the image */
.rating-pill {
  position: absolute; top: var(--s3); right: var(--s3); z-index: 2;
  background: rgba(33,28,24,.82); color: #fff; font-family: var(--display); font-weight: 700;
  font-size: .82rem; padding: 4px 10px; border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
.rating-pill .badge-star { color: var(--star); }
.badge-featured {
  position: absolute; top: var(--s3); left: var(--s3); z-index: 2;
  background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 11px; border-radius: var(--r-pill); letter-spacing: .02em; box-shadow: var(--shadow);
}
.badge-star { color: var(--star); }

/* --- Area cards (home: popular areas) ----------------------------------- */
.area-card { position: relative; padding: var(--s4); gap: 2px; border: 1px solid transparent; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.area-card:hover, .area-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); text-decoration: none; }
.area-card__name { font-family: var(--display); font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.area-card__meta { color: var(--muted); font-size: .85rem; }
.area-card__arrow { position: absolute; right: var(--s4); top: 50%; transform: translateY(-50%); color: var(--primary); font-weight: 700; transition: transform .14s ease; }
.area-card__arrow .ic { display: block; width: 18px; height: 18px; }
.area-card:hover .area-card__arrow { transform: translateY(-50%) translateX(3px); }

/* Alternating band + CTA card (home rhythm) */
.section--band { background: var(--surface); border-block: 1px solid var(--line); }
.cta-card { padding: var(--s6); text-align: center; align-items: center; background: linear-gradient(180deg, #fff, var(--primary-t)); }

/* --- Empty states ------------------------------------------------------- */
.empty-state { text-align: center; padding: var(--s6) var(--s4); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty-state__art { font-size: 2.2rem; line-height: 1; margin-bottom: var(--s3); color: var(--muted); }
.empty-state__art .ic { width: 1.4em; height: 1.4em; }
.empty-state__title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: var(--s2); }
.empty-state__hint { color: var(--muted); font-size: .92rem; margin: 0 auto var(--s4); max-width: 44ch; }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }

/* --- Duration price pills (the price-forward card language) ------------ */
.price-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.price-pills--sub { opacity: .92; }
.price-pill {
  --acc: var(--muted); --acc-t: var(--line);
  display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--acc-t); color: var(--acc); font-size: .82rem; font-weight: 600; line-height: 1;
}
.price-pill .price { font-weight: 700; font-size: .92rem; }
.price-pill .price-pill__ic { font-size: .9rem; }
.price-pill .price-pill__unit { font-weight: 500; opacity: .8; font-size: .74rem; }
.price-pill--hourly    { --acc: var(--dur-hourly-d);    --acc-t: var(--dur-hourly-t); }
.price-pill--day_rest  { --acc: var(--dur-day-d);       --acc-t: var(--dur-day-t); }
.price-pill--overnight { --acc: var(--dur-overnight-d); --acc-t: var(--dur-overnight-t); }

/* Headline (lead) price when a duration is active */
.price-lead { display: flex; align-items: baseline; gap: var(--s2); }
.price-lead__amt { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: -.03em; line-height: 1; }
.price-lead__ic { font-size: 1.05rem; }
.price-lead__unit { color: var(--muted); font-weight: 500; font-size: .82rem; }
.price-lead--hourly .price-lead__amt    { color: var(--dur-hourly-d); }
.price-lead--day_rest .price-lead__amt  { color: var(--dur-day-d); }
.price-lead--overnight .price-lead__amt { color: var(--dur-overnight-d); }

/* --- Forms ------------------------------------------------------------- */
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 12px var(--s4); min-height: 46px;
}
/* Custom chevron so selects look consistent (native arrow varies wildly). */
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c554e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  padding-right: 42px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.field { margin-bottom: var(--s4); }
.field__hint { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-narrow { max-width: 480px; }

/* --- Listing results / secondary filters ------------------------------- */
.chip input[type="checkbox"] { width: auto; min-height: 0; margin: 0; }
.results-bar { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin: 0 0 var(--s4); }
.results-bar .num { font-size: 1.05rem; }
.filters__row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; }
.filters__row .field { margin-bottom: 0; }
.filters__group { flex: 1; min-width: 130px; }
.rail__label { font-weight: 700; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s2); }

/* Crawlable "browse by type" strip (SEO links to duration pages) */
.type-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); }
.type-links__label { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.type-links__link {
  --acc: var(--ink-soft); --acc-t: var(--line);
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 var(--s3);
  border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--surface);
  color: var(--ink-soft); font-weight: 600; font-size: .88rem;
}
.type-links__link:hover { border-color: var(--acc); color: var(--acc); text-decoration: none; }
.type-links__link.is-active { background: var(--acc); border-color: var(--acc); color: #fff; }
.type-links__link--hourly    { --acc: var(--dur-hourly-d); }
.type-links__link--day_rest  { --acc: var(--dur-day-d); }
.type-links__link--overnight { --acc: var(--dur-overnight-d); }

/* --- Breadcrumbs ------------------------------------------------------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: var(--s4); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-soft); }
.crumbs span[aria-current] { color: var(--ink); }

/* --- Alerts ------------------------------------------------------------ */
.toast-region { position: fixed; top: 82px; right: 24px; z-index: 90; display: grid; gap: 10px; width: min(390px, calc(100vw - 40px)); pointer-events: none; }
.alert { --alert-accent: var(--primary); position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) 26px; align-items: start; gap: 10px; padding: 13px 12px 13px 14px; border: 1px solid color-mix(in srgb, var(--alert-accent) 20%, #fff); border-radius: 14px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 18px 44px rgba(33,28,24,.16), 0 2px 7px rgba(33,28,24,.08); font-size: .9rem; line-height: 1.4; pointer-events: auto; animation: toast-in .26s cubic-bezier(.2,.8,.25,1) both; }
.alert::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--alert-accent); }
.alert__icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--alert-accent) 12%, #fff); color: var(--alert-accent); font-weight: 800; font-size: 1rem; }
.alert__message { margin: 3px 0; }
.alert__dismiss { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.alert__dismiss:hover { background: var(--bg); color: var(--ink); }
.alert--success { --alert-accent: #168152; } .alert--success .alert__icon::after { content: "✓"; }
.alert--error { --alert-accent: #be3b32; } .alert--error .alert__icon::after { content: "!"; }
.alert--info { --alert-accent: var(--dur-day); } .alert--info .alert__icon::after { content: "i"; font-family: Georgia, serif; }
.alert--warn { --alert-accent: #b46d00; } .alert--warn .alert__icon::after { content: "!"; }
.alert.is-leaving { animation: toast-out .18s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(18px) translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(18px); } }
@media (max-width: 600px) { .toast-region { top: 76px; right: 12px; width: calc(100vw - 24px); } }
@media (prefers-reduced-motion: reduce) { .alert, .alert.is-leaving { animation: none; } }

/* --- Lodge detail ------------------------------------------------------ */
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s2); border-radius: var(--r-lg); overflow: hidden; }
.detail-gallery a { display: block; position: relative; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.detail-gallery a:first-child { grid-row: span 2; }
.detail-gallery a:first-child img { aspect-ratio: 1/1; }
/* A lone photo shouldn't become a giant full-width square that crops the
   subject out — show it as a proper wide banner instead. */
.detail-gallery--single { grid-template-columns: 1fr; }
.detail-gallery--single a:first-child { grid-row: auto; }
.detail-gallery--single a:first-child img,
.detail-gallery--single img { aspect-ratio: 16/9; }
.gallery-empty { aspect-ratio: 16/7; background: linear-gradient(135deg, var(--primary-t), var(--dur-day-t)); border: 1px dashed var(--line-2); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; color: var(--primary-d); font-weight: 600; gap: var(--s2); }

.detail-cols { display: grid; grid-template-columns: 1fr 340px; gap: var(--s6); align-items: start; }
.rates-table { width: 100%; border-collapse: collapse; }
.rates-table th, .rates-table td { text-align: left; padding: var(--s3); border-bottom: 1px solid var(--line); }
.rates-table td:last-child { text-align: right; font-family: var(--display); font-weight: 700; color: var(--primary-d); white-space: nowrap; }
.rate-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.rate-row__ic { width: 44px; height: 44px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex: none; }
.rate-row__price { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.rate-row__unit { color: var(--muted); font-family: var(--font); font-weight: 400; font-size: .72rem; }
.rate-row__note { color: var(--muted); font-size: .82rem; }
.rate-row--hourly    .rate-row__ic { background: var(--dur-hourly-t); }    .rate-row--hourly    .rate-row__price { color: var(--dur-hourly-d); }
.rate-row--day_rest  .rate-row__ic { background: var(--dur-day-t); }       .rate-row--day_rest  .rate-row__price { color: var(--dur-day-d); }
.rate-row--overnight .rate-row__ic { background: var(--dur-overnight-t); } .rate-row--overnight .rate-row__price { color: var(--dur-overnight-d); }

.insight-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.insight { background: var(--primary-t); color: var(--primary-d); border-radius: var(--r-pill); padding: 6px var(--s3); font-size: .85rem; font-weight: 600; }
.insight--star { background: #fff4e0; color: #a86a00; }

.amenity-list { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: 0; }
.amenity-list li { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 6px var(--s3); font-size: .85rem; color: var(--ink-soft); }

.side-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--shadow); }
.side-card + .side-card { margin-top: var(--s4); }
.facts { display: flex; flex-direction: column; margin-top: var(--s2); }
.fact { display: flex; align-items: center; gap: var(--s2); padding: 6px 0; font-size: .9rem; color: var(--ink-soft); }
.fact__ic { flex: none; width: 20px; text-align: center; }
.no-contact { background: var(--primary-t); border: 1px dashed var(--primary); border-radius: var(--r-lg); padding: var(--s4); }
.claim-banner { background: #fff6e6; border: 1px solid #f5dfa8; border-radius: var(--r); padding: var(--s3) var(--s4); margin-bottom: var(--s4); font-size: .9rem; display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: var(--s3) var(--s4); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,.08); display: none; }
.sticky-cta .btn { width: 100%; }

/* --- Reviews ----------------------------------------------------------- */
.review-list { list-style: none; padding: 0; margin: 0; }
.review-item { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.review-item__head { display: flex; justify-content: space-between; gap: var(--s3); align-items: center; }
.review-stars { color: var(--star); letter-spacing: 1px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(20,16,12,.55); z-index: 100; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; width: 100%; max-width: 480px; padding: var(--s5); box-shadow: var(--shadow-lg); transform: translateY(20px); transition: transform .25s ease; }
.modal-backdrop.open .modal { transform: translateY(0); }
.rv-step { display: none; } .rv-step.active { display: block; animation: slidein .25s ease; }
@keyframes slidein { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.rv-stars { display: flex; gap: var(--s2); justify-content: center; margin: var(--s5) 0; }
.rv-star { font-size: 46px; line-height: 1; cursor: pointer; color: var(--line-2); transition: transform .1s ease, color .1s ease; background: none; border: none; padding: 0; min-width: 48px; min-height: 48px; }
.rv-star.on { color: var(--star); } .rv-star:active { transform: scale(1.2); }
.rv-chips { display: flex; flex-direction: column; gap: var(--s3); margin: var(--s4) 0; }
.rv-chip { min-height: 52px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font-size: 1.05rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.rv-chip:hover { border-color: var(--primary); color: var(--primary-d); }
.rv-chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.rv-dots { display: flex; gap: 6px; justify-content: center; margin-top: var(--s4); }
.rv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.rv-dot.on { background: var(--primary); }
.rv-done { text-align: center; padding: var(--s5) 0; }
.rv-done__check { font-size: 56px; }

.reengage { position: fixed; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: 60; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: var(--s3) var(--s4); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: var(--s3); max-width: 520px; margin: 0 auto; }
.reengage a { color: #fff; font-weight: 700; text-decoration: underline; }
.reengage button { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.7); font-size: 1.4rem; cursor: pointer; }

/* --- Ads --------------------------------------------------------------- */
.ad-banner { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 90px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); overflow: hidden; }
.ad-banner__tag, .ad-native__tag { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: .65rem; padding: 2px 8px; border-radius: var(--r-pill); z-index: 2; }
.card--ad { position: relative; }
.ad-native__img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ad-native__label { padding: var(--s4); font-weight: 600; color: var(--ink); }

/* --- Lightbox ---------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 200; display: none; align-items: center; justify-content: center; padding: var(--s4); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--r); }
.lightbox__close { position: absolute; top: var(--s4); right: var(--s4); color: #fff; font-size: 2rem; background: none; border: none; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.5rem; color: #fff; background: none; border: none; cursor: pointer; padding: var(--s3); }
.lightbox__nav--prev { left: 0; } .lightbox__nav--next { right: 0; }

/* --- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #cfc7bd; margin-top: var(--s8); padding: var(--s6) 0; }
.site-footer a { color: #e9e2d8; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s5); }
.footer-cols h3 { color: #fff; font-size: .95rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 6px; font-size: .9rem; }
.site-footer__tagline { font-size: .9rem; color: #cfc7bd; }
.footer-logo { display: block; width: 54px; height: 54px; object-fit: contain; margin-bottom: var(--s2); }
.site-footer__copy { margin-top: var(--s5); font-size: .82rem; color: #8f877d; }

/* --- Pagination -------------------------------------------------------- */
.pagination { display: flex; gap: var(--s2); justify-content: center; margin-top: var(--s6); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--s3); border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-soft); font-weight: 600; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Admin ------------------------------------------------------------- */
.admin-layout { display: grid; grid-template-columns: 210px 1fr; gap: var(--s5); align-items: start; }
.admin-nav { position: sticky; top: 78px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--s3); }
.admin-nav a { display: block; padding: 10px var(--s3); border-radius: var(--r); color: var(--ink-soft); font-weight: 500; font-size: .92rem; }
.admin-nav a:hover, .admin-nav a.active { background: var(--primary-t); color: var(--primary-d); text-decoration: none; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s4); }
.stat { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--s4); }
.stat__n { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--primary-d); }
.stat__l { color: var(--muted); font-size: .85rem; }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { text-align: left; padding: var(--s3); border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.data-table th { background: #f4efe8; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tablewrap { overflow-x: auto; }
.pill { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; }
.pill--published, .pill--approved, .pill--active { background: #e9f7ef; color: #12603a; }
.pill--pending, .pill--open { background: #fff6e6; color: #8a5a00; }
.pill--rejected, .pill--hidden, .pill--voided, .pill--suspended { background: #fdeceb; color: #9a271f; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s4); }
.mod-card { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.mod-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.mod-card__actions { display: flex; gap: var(--s2); padding: var(--s2); }
.mod-card__actions .btn { flex: 1; }

/* --- Utilities --------------------------------------------------------- */
.muted { color: var(--muted); }
.text-sm { font-size: .9rem; }
.text-xs { font-size: .8rem; }
.maxw-prose { max-width: 72ch; }
/* SYNC: mirrored in layout.php critical CSS (nav toggle depends on it) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.row { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); }
.hide { display: none !important; }
.tag { display: inline-block; background: var(--primary-t); color: var(--primary-d); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); }

/* --- Responsive -------------------------------------------------------- */
@media (min-width: 861px) {
  /* Hero is single-column now: headline block, then the full-width search bar */
  .hero__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .finder--hero .finder__go span { display: inline; }
  .hero__meta { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--s5); }
}
/* Keep a reliable page gutter through tablet and phone widths. Some layouts
   intentionally run full-bleed, but their inner .wrap should never do so. */
@media (max-width: 850px) {
  .wrap { padding-inline: 20px; }
}
@media (max-width: 860px) {
  .detail-cols { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; flex-wrap: wrap; gap: var(--s2); }
  .admin-nav a { flex: 1 1 auto; text-align: center; }
  .sticky-cta { display: block; }
  .detail-gallery { grid-template-columns: 1fr 1fr; }
  .detail-gallery a:first-child { grid-column: span 2; grid-row: auto; }
  .detail-gallery a:first-child img { aspect-ratio: 16/9; }
  body.has-sticky-cta { padding-bottom: 76px; }
}
@media (max-width: 520px) {
  /* More breathing room on small screens — 16px reads cramped on modern phones */
  .wrap { padding: 0 20px; }
  .section { padding: var(--s5) 0; }
  /* Header: brand + search + menu only. The Sign up button moves into the
     menu drawer (Account group) — it physically can't fit a 360px bar without
     squashing, and booking is via WhatsApp so sign-up is secondary here. */
  .site-header__bar { gap: var(--s2); }
  .site-nav .btn { display: none; }
  .brand { font-size: 1.05rem; }
  /* Hero: calmer type scale, primary action (the finder) closer to the fold */
  .hero { padding: 36px 0 32px; }
  .hero h1 { font-size: 1.7rem; }
  .hero__lead { font-size: .98rem; }
  .trust-strip li { font-size: .84rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .lodge-card__name { font-size: 1rem; }
  .seg__opt { min-height: 66px; }
  .band-chip { min-height: 44px; font-size: .88rem; }
  /* Opt-in single-line horizontal scroller for chip/tab rows */
  .scroll-x { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .scroll-x::-webkit-scrollbar { display: none; }
  .scroll-x > * { scroll-snap-align: start; flex: none; }
}
@media (max-width: 380px) {
  .brand__tld { display: none; } /* reclaim bar space on the narrowest phones */
  .grid { grid-template-columns: 1fr; }
  .grid--areas { grid-template-columns: 1fr 1fr; } /* area cards are short — 2-col stays readable */
  /* Compact row cards: denser, more scannable on very narrow screens.
     Scoped to .lodge-card so .card--ad and .ad-banner keep their layout. */
  .lodge-card { flex-direction: row; }
  .lodge-card__media { width: 118px; flex: none; aspect-ratio: 1; }
  .lodge-card__body { padding: var(--s3); }
  .lodge-card .price-lead__amt { font-size: 1.35rem; }
  .lodge-card .badge-featured { font-size: .62rem; padding: 3px 8px; }
  .lodge-card .rating-pill { font-size: .74rem; padding: 3px 8px; top: var(--s2); right: var(--s2); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- Refined surfaces: calmer, flatter and more spacious ---------------- */
.page--home .site-search--bar { display: none; }
.page--home .section { padding: var(--s7) 0; }

.hero {
  padding: 72px 0 64px;
  background:
    linear-gradient(90deg, rgba(255,250,245,.97) 0%, rgba(255,250,245,.88) 43%, rgba(245,238,229,.22) 100%),
    url('/assets/img/hero-lodge-bed.png') right center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::after { display: none; }
.hero h1 { max-width: 18ch; color: var(--ink); font-size: clamp(2.3rem, 5vw, 3.5rem); }
.hero__accent { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--primary-d); }
.hero__lead { color: var(--ink-soft); max-width: 52ch; font-size: 1.06rem; }
.hero__grid { gap: var(--s6); }
.hero__eyebrow { color: var(--primary-d); background: var(--primary-t); border-color: transparent; box-shadow: none; }
.hero__eyebrow-dot { animation: none; }
.hero .chip {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink-soft);
  backdrop-filter: none;
  border: none;
  padding-left: 30px;
  padding-right: 30px;
}.hero .chip:hover { background: var(--primary-t); border-color: var(--primary); color: var(--primary-d); }
.hero .trust-strip li { color: var(--ink-soft); }
.hero .trust-strip li .ic { color: var(--ok); }
.hero__meta-label { color: var(--muted); }
.origin-badge { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .78rem; line-height: 1.35; }
.origin-badge img { width: 58px; height: auto; flex: none; }
.hero__origin { max-width: 190px; }

.listing-hero {
  padding: var(--s5) 0 var(--s6);
  background:
    linear-gradient(90deg, rgba(255,250,245,.97) 0%, rgba(255,250,245,.88) 45%, rgba(245,238,229,.25) 100%),
    url('/assets/img/hero-lodge-bed.png') right center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.listing-hero h1 { max-width: 25ch; margin-top: var(--s4); }
.listing-hero .finder--listing { margin-top: var(--s5); margin-bottom: var(--s4); }
.listing-results { padding-top: var(--s5); }

.finder__bar {
  border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(33,28,24,.04);
  border: none;
  border-bottom: 5px solid #DBCCC5;
}
.finder__go { border-radius: var(--r); box-shadow: none; }
.btn--primary, .btn--wa { box-shadow: none; }
.btn--ghost { box-shadow: none; }

.home-featured-grid .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border-radius: var(--r); box-shadow: none; }
.lodge-card {
  border: 0;
  border-bottom: 5px solid #DBCCC5;
  transition: background .14s ease, border-bottom-color .14s ease;
}.lodge-card:hover, .lodge-card:focus-visible { transform: none; box-shadow: none; border-bottom-color: #d2ad9e; background: #fffdfb; }
.area-card { box-shadow: none; transition: border-color .14s ease, background .14s ease; }
.area-card:hover, .area-card:focus-visible { transform: none; box-shadow: none; background: #fffdfb; }
.section--band { background: #f5f1eb; }
.cta-card { background: var(--surface); padding: var(--s7); }

.detail-cols { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); }
.detail-gallery-wrap { width: 100%; }
.detail-gallery { width: 100%; margin-left: 0; border-radius: 0; }
.detail-gallery--single a { height: clamp(280px, 50vw, 620px); background: #f3eee7; }
.detail-gallery--single a:first-child img,
.detail-gallery--single img { height: 100%; aspect-ratio: auto; object-fit: contain; margin: 0 auto; }
.lodge-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.lodge-intro__location { margin: 0; }
.lodge-intro__price { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; text-align: right; white-space: nowrap; }
.lodge-intro__price span, .lodge-intro__price small { color: var(--muted); font-size: .78rem; }
.lodge-intro__price strong { font-family: var(--display); font-size: 1.65rem; letter-spacing: -.03em; color: var(--primary-d); }
.lodge-intro__price small { grid-column: 1 / -1; }
.insight-row { gap: 6px; }
.insight { background: #f4efe8; color: var(--ink-soft); padding: 5px 10px; font-size: .8rem; }
.insight--star { background: #fff4e0; color: #8a5a00; }
.rate-row { padding: var(--s4) 0; gap: var(--s4); }
.rate-row__ic { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
.rate-row__price { font-size: 1.16rem; }
.amenity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s5); }
.amenity-list li { display: flex; align-items: center; gap: 8px; background: none; border: 0; border-radius: 0; padding: 8px 0; font-size: .9rem; }
.amenity-list li::first-letter { color: var(--ok); }
.side-card {
  border-color: var(--line);
  border-radius: var(--r);
  box-shadow: none;
  border: none;
  border-bottom: 5px solid lightgrey;
}
.side-card--booking { padding: var(--s5); background: #fffdfb; }
.side-card--facts { background: transparent; border: 0; padding: var(--s4) 0; }
.origin-badge--sidebar { width: 100%; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.listing-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.listing-actions a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; }
.listing-actions a.btn { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-weight: 500; }
.listing-actions a:hover { color: var(--primary-d); text-decoration: none; }

@media (max-width: 860px) {
  .detail-cols { grid-template-columns: 1fr; }
  .home-featured-grid .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .page--home .section { padding: var(--s6) 0; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 2rem; }
  .hero__origin { max-width: none; }
  .listing-hero { padding: var(--s4) 0 var(--s5); }
  .lodge-intro { align-items: flex-start; flex-direction: column; gap: var(--s3); }
  .lodge-intro__price { text-align: left; }
  .amenity-list { grid-template-columns: 1fr; }
}

/* --- Member dashboard --------------------------------------------------- */
.member-dashboard { min-height: calc(100vh - 66px); }
.member-dashboard__hero { background: var(--ink); color: #fff; padding: var(--s7) 0 0; }
.dashboard-greeting { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.dashboard-greeting__identity { display: flex; align-items: center; gap: var(--s4); }
.dashboard-avatar { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; flex: none; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.dashboard-greeting__eyebrow, .dashboard-kicker { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.dashboard-greeting__eyebrow { color: #cfc7bd; }
.dashboard-greeting h1 { margin: 3px 0 4px; color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.dashboard-greeting p { margin: 0; color: #cfc7bd; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); position: relative; z-index: 1; margin-top: var(--s7); transform: translateY(48px); }
.dashboard-stat { --dash-accent: var(--primary); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); display: grid; gap: 7px; box-shadow: 0 10px 24px rgba(20,16,12,.1); }
.dashboard-stat--orange { --dash-accent: var(--primary); }
.dashboard-stat--blue { --dash-accent: var(--dur-day); }
.dashboard-stat--green { --dash-accent: var(--ok); }
.dashboard-stat--purple { --dash-accent: var(--dur-overnight); }
.dashboard-stat__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--dash-accent) 14%, white); color: var(--dash-accent); }
.dashboard-stat__icon .ic { width: 18px; height: 18px; }
.dashboard-stat strong { font-family: var(--display); font-size: 1.8rem; letter-spacing: -.04em; line-height: 1; }
.dashboard-stat > span:last-child { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.member-dashboard__content { padding-top: 96px; }
.dashboard-section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.dashboard-section-head h2 { margin: 4px 0 0; }
.dashboard-count { color: var(--muted); font-size: .84rem; font-weight: 600; }
.owner-lodge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.owner-lodge-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-bottom: 5px solid var(--primary); border-radius: var(--r); padding: var(--s5); }
.owner-lodge-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.owner-lodge-card__head h3 { margin: 4px 0 0; font-size: 1.2rem; }
.owner-lodge-card__place { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .8rem; }
.owner-lodge-card__place .ic { color: var(--primary); }
.owner-lodge-card__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin: var(--s5) 0; padding: var(--s4) 0; border-block: 1px solid var(--line); }
.owner-lodge-card__metrics span { color: var(--muted); font-size: .76rem; }
.owner-lodge-card__metrics strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.08rem; }
.owner-lodge-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-size: .82rem; }
.owner-lodge-card__rating { color: var(--muted); }
.owner-lodge-card__foot a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.owner-lodge-card__foot .ic { width: 14px; height: 14px; }
.owner-lodge-card__actions { display: flex; gap: var(--s2); margin-top: var(--s5); }
.owner-lodge-card__actions .btn { flex: 1; }
.dashboard-empty { display: flex; align-items: center; gap: var(--s4); padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-bottom: 5px solid var(--primary); border-radius: var(--r); }
.dashboard-empty__icon, .dashboard-activity-list__icon { display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-t); border-radius: 50%; flex: none; }
.dashboard-empty__icon { width: 48px; height: 48px; }
.dashboard-empty h3 { margin: 0 0 4px; }
.dashboard-empty p { margin: 0; color: var(--muted); }
.dashboard-empty .btn { margin-left: auto; }
.dashboard-activity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s7); }
.dashboard-activity-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); }
.dashboard-activity-list { list-style: none; margin: 0; padding: 0; }
.dashboard-activity-list li { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.dashboard-activity-list__icon { width: 32px; height: 32px; }
.dashboard-activity-list__icon .ic { width: 16px; height: 16px; }
.dashboard-activity-list li > span:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.dashboard-activity-list strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-activity-list small { color: var(--muted); font-size: .78rem; }

@media (max-width: 860px) {
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-lodge-grid, .dashboard-activity { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .member-dashboard__hero { padding-top: var(--s5); }
  .dashboard-greeting { align-items: flex-start; flex-direction: column; }
  .dashboard-greeting .btn { width: 100%; }
  .dashboard-greeting__identity { align-items: flex-start; }
  .dashboard-avatar { width: 46px; height: 46px; font-size: 1.15rem; }
  .dashboard-stats { gap: var(--s3); margin-top: var(--s6); transform: translateY(32px); }
  .dashboard-stat { padding: var(--s3); }
  .dashboard-stat strong { font-size: 1.45rem; }
  .member-dashboard__content { padding-top: 72px; }
  .owner-lodge-card, .dashboard-activity-card { padding: var(--s4); }
  .dashboard-empty { align-items: flex-start; flex-wrap: wrap; padding: var(--s5); }
  .dashboard-empty .btn { width: 100%; margin-left: 0; }
}

/* --- Lodge submission --------------------------------------------------- */
.submit-lodge-banner { padding: var(--s5) 0 var(--s7); color: #fff; background: linear-gradient(100deg, rgba(33,28,24,.97) 0%, rgba(33,28,24,.9) 48%, rgba(33,28,24,.48) 100%), url('/assets/img/hero-lodge-bed.png') right center / cover no-repeat; }
.submit-lodge-banner__crumbs { margin-bottom: var(--s7); color: rgba(255,255,255,.65); }
.submit-lodge-banner__crumbs a, .submit-lodge-banner__crumbs span[aria-current] { color: inherit; }
.submit-lodge-banner__content { max-width: 620px; }
.submit-lodge-banner__eyebrow { display: inline-flex; padding: 6px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.14); color: #ffcf9e; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.submit-lodge-banner h1 { margin: var(--s3) 0; color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 13ch; }
.submit-lodge-banner p { max-width: 54ch; margin: 0; color: rgba(255,255,255,.82); font-size: 1.04rem; }
.submit-steps { display: flex; flex-wrap: wrap; gap: var(--s4); margin: var(--s6) 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.82); font-size: .84rem; font-weight: 600; }
.submit-steps li { display: inline-flex; align-items: center; gap: 8px; }
.submit-steps span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #ffcf9e; font-family: var(--display); }
.submit-lodge-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: var(--s6); align-items: start; }
.submit-lodge-form { display: grid; gap: var(--s4); }
.submit-section {
  background: var(--surface);
  /* border: 1px solid var(--line); */
  border-radius: var(--r);
  padding: 40px;
  border-bottom: 5px solid lightgrey;
}.submit-section__head { display: flex; align-items: flex-start; gap: var(--s3); margin-bottom: var(--s5); }
.submit-section__number { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--primary-t); color: var(--primary-d); font-family: var(--display); font-size: .82rem; font-weight: 700; }
.submit-section__head h2 { margin: 0 0 4px; font-size: 1.2rem; }
.submit-section__head p { margin: 0; color: var(--muted); font-size: .88rem; }
.submit-location [data-city-area], .submit-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.submit-location .field { margin-bottom: 0; }
.submit-section fieldset { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.submit-section fieldset legend { display: none; }
.submit-section fieldset .row { display: grid; grid-template-columns: 88px minmax(100px, .7fr) auto minmax(64px, .45fr) auto minmax(130px, 1fr); gap: var(--s2); }
.submit-section fieldset .row label { width: auto !important; align-self: center; font-weight: 600; }
.submit-section fieldset .row input { min-width: 0; max-width: none !important; }
.submit-section fieldset .row input[type="number"] { width: 100%; }
.submit-section fieldset .row input[type="text"] { width: 100%; }
.submit-amenities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.submit-amenities label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-soft); font-size: .86rem; cursor: pointer; }
.submit-amenities label:hover { border-color: var(--primary); background: #fffaf7; }
.submit-amenities input { width: auto; min-height: 0; margin: 0; accent-color: var(--primary); }
.submit-section--gallery { background: linear-gradient(145deg, #fff, #fff8f3); }
.submit-gallery-drop { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 190px; padding: var(--s5); border: 1.5px dashed var(--primary); border-radius: var(--r); background: rgba(255,255,255,.76); color: var(--ink-soft); cursor: pointer; text-align: center; }
.submit-gallery-drop:hover { background: var(--primary-t); }
.submit-gallery-drop__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: var(--s3); border-radius: 50%; background: var(--primary); color: #fff; }
.submit-gallery-drop__icon .ic { width: 22px; height: 22px; }
.submit-gallery-drop strong { color: var(--ink); font-family: var(--display); font-size: 1.06rem; }
.submit-gallery-drop > span:last-of-type { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.submit-gallery-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.submit-gallery-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.submit-gallery-preview:empty { display: none; }
.submit-gallery-preview div { overflow: hidden; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--line); }
.submit-gallery-preview img { width: 100%; height: 100%; object-fit: cover; }
.submit-gallery-existing-label { margin: var(--s4) 0 0; font-weight: 600; }
.submit-gallery-preview--existing { margin-top: var(--s2); }
.submit-gallery-photo { position: relative; }
.submit-gallery-photo__delete { position: absolute; top: 5px; right: 5px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(33,28,24,.82); color: #fff; font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s ease, background .15s ease; }
.submit-gallery-photo:hover .submit-gallery-photo__delete, .submit-gallery-photo:focus-within .submit-gallery-photo__delete { opacity: 1; }
.submit-gallery-photo__delete:hover { background: var(--danger); }
.owner-listing-actions, .owner-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); margin-top: var(--s4); padding: var(--s5); border-radius: var(--r); }
.owner-listing-actions { background: var(--surface); border: 1px solid var(--line); }
.owner-danger-zone { border: 1px solid #f1cbc7; background: #fff8f7; }
.owner-listing-actions h2, .owner-danger-zone h2 { margin: 0 0 4px; font-size: 1rem; }
.owner-listing-actions p, .owner-danger-zone p { max-width:55ch; margin: 0; color: var(--muted); font-size: .88rem; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #ad2c26; }
@media (max-width: 600px) { .owner-listing-actions, .owner-danger-zone { align-items: stretch; flex-direction: column; } .owner-listing-actions .btn, .owner-danger-zone .btn { width: 100%; } .submit-gallery-photo__delete { opacity: 1; } }
.submit-lodge-submit { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5); background: var(--ink); border-radius: var(--r); color: #fff; }
.submit-lodge-submit strong, .submit-lodge-submit span { display: block; }
.submit-lodge-submit span { margin-top: 3px; color: #cfc7bd; font-size: .84rem; }
.submit-lodge-aside { position: sticky; top: 86px; display: grid; gap: var(--s4); }
.submit-lodge-aside__card { padding: var(--s5); background: var(--surface);  border-radius: var(--r); }
.submit-lodge-aside__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #e9f7ef; color: var(--ok); }
.submit-lodge-aside__card h2 { margin: var(--s3) 0; font-size: 1.15rem; }
.submit-lodge-aside__card ul, .submit-lodge-aside__card ol { display: grid; gap: var(--s3); margin: 0; padding-left: 18px; color: var(--muted); font-size: .86rem; }
.submit-lodge-aside__card--quiet { background: transparent; }
.submit-lodge-aside__card--quiet ol { padding: 0; list-style: none; counter-reset: submit-next; }
.submit-lodge-aside__card--quiet li { position: relative; padding-left: 30px; counter-increment: submit-next; }
.submit-lodge-aside__card--quiet li::before { content: counter(submit-next); position: absolute; left: 0; top: 0; color: var(--primary-d); font-family: var(--display); font-weight: 700; }
.submit-lodge-aside__card--quiet strong, .submit-lodge-aside__card--quiet span { display: block; }
.submit-lodge-aside__card--quiet strong { color: var(--ink); font-size: .9rem; }
.submit-lodge-aside__card--quiet span { margin-top: 2px; }

@media (max-width: 960px) {
  .submit-lodge-layout { grid-template-columns: 1fr; }
  .submit-lodge-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .submit-location [data-city-area], .submit-two-col, .submit-lodge-aside { grid-template-columns: 1fr; }
  .submit-section fieldset .row { grid-template-columns: 1fr 1fr; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .submit-section fieldset .row label { grid-column: 1 / -1; }
  .submit-section fieldset .row span { display: none; }
  .submit-section fieldset .row input[type="text"] { grid-column: 1 / -1; }
  .submit-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submit-lodge-submit { align-items: stretch; flex-direction: column; }
  .submit-lodge-submit .btn { width: 100%; }
}
@media (max-width: 520px) {
  .submit-lodge-banner { padding: var(--s4) 0 var(--s6); }
  .submit-lodge-banner__crumbs { margin-bottom: var(--s6); }
  .submit-lodge-banner h1 { font-size: 2.2rem; }
  .submit-steps { gap: var(--s2); font-size: .76rem; }
  .submit-section { padding: var(--s4); }
  .submit-amenities { grid-template-columns: 1fr; }
  .submit-gallery-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Community photo contribution -------------------------------------- */
.photo-contribute-hero { padding: var(--s5) 0 var(--s7); color: #fff; background: linear-gradient(105deg, rgba(33,28,24,.97) 0%, rgba(33,28,24,.88) 50%, rgba(33,28,24,.46) 100%), url('/assets/img/hero-lodge-bed.png') right center / cover no-repeat; }
.photo-contribute-hero__crumbs { margin-bottom: var(--s7); color: rgba(255,255,255,.68); }
.photo-contribute-hero__crumbs a, .photo-contribute-hero__crumbs span[aria-current] { color: inherit; }
.photo-contribute-hero__content { max-width: 620px; }
.photo-contribute-hero__eyebrow { display: inline-flex; padding: 6px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.14); color: #ffcf9e; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.photo-contribute-hero h1 { margin: var(--s3) 0; color: #fff; font-size: clamp(2rem, 4.8vw, 3.3rem); max-width: 14ch; }
.photo-contribute-hero h1 em { color: #ffcf9e; font-style: normal; }
.photo-contribute-hero p { max-width: 56ch; margin: 0; color: rgba(255,255,255,.82); font-size: 1.03rem; }
.photo-contribute-facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s6); color: rgba(255,255,255,.88); font-size: .86rem; }
.photo-contribute-facts span { display: inline-flex; align-items: center; gap: 6px; }
.photo-contribute-facts .ic { color: #ffcf9e; }
.photo-contribute-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6); align-items: start; }
.photo-contribute-form { padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.photo-contribute-form__head { display: flex; align-items: flex-start; gap: var(--s3); margin-bottom: var(--s5); }
.photo-contribute-form__head--compact { margin-bottom: var(--s4); }
.photo-contribute-form__step { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--primary-t); color: var(--primary-d); font-family: var(--display); font-size: .82rem; font-weight: 700; }
.photo-contribute-form__head h2 { margin: 0 0 4px; font-size: 1.25rem; }
.photo-contribute-form__head h2 small { color: var(--muted); font-family: var(--font); font-size: .78rem; font-weight: 500; }
.photo-contribute-form__head p { margin: 0; color: var(--muted); font-size: .88rem; }
.photo-contribute-drop { display: flex; min-height: 230px; align-items: center; justify-content: center; flex-direction: column; padding: var(--s5); border: 1.5px dashed var(--primary); border-radius: var(--r); background: linear-gradient(145deg, #fff, #fff7f1); cursor: pointer; text-align: center; }
.photo-contribute-drop:hover { background: var(--primary-t); }
.photo-contribute-drop__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: var(--s3); border-radius: 50%; background: var(--primary); color: #fff; }
.photo-contribute-drop__icon .ic { width: 24px; height: 24px; }
.photo-contribute-drop strong { color: var(--ink); font-family: var(--display); font-size: 1.1rem; }
.photo-contribute-drop > span:last-of-type { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.photo-contribute-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-contribute-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.photo-contribute-preview:empty { display: none; }
.photo-contribute-preview div { overflow: hidden; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--line); }
.photo-contribute-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-contribute-divider { height: 1px; margin: var(--s6) 0; background: var(--line); }
.photo-contribute-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.photo-contribute-submit { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s5); padding: var(--s4) var(--s5); border-radius: var(--r); background: var(--ink); color: #fff; }
.photo-contribute-submit strong, .photo-contribute-submit span { display: block; }
.photo-contribute-submit span { margin-top: 3px; color: #cfc7bd; font-size: .82rem; }
.photo-contribute-status { min-height: 1.5em; margin-top: var(--s3); color: var(--muted); font-size: .88rem; text-align: center; }
.photo-contribute-aside { position: sticky; top: 86px; display: grid; gap: var(--s4); }
.photo-contribute-aside__card { padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.photo-contribute-aside__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #e9f7ef; color: var(--ok); }
.photo-contribute-aside__card h2 { margin: var(--s3) 0; font-size: 1.15rem; }
.photo-contribute-aside__card ul { display: grid; gap: var(--s3); margin: 0; padding-left: 18px; color: var(--muted); font-size: .86rem; }
.photo-contribute-aside__card--quiet { background: transparent; }
.photo-contribute-aside__card--quiet p { color: var(--muted); font-size: .88rem; }
.photo-contribute-aside__card--quiet a { display: inline-flex; align-items: center; gap: 5px; font-size: .88rem; font-weight: 600; }
.photo-contribute-aside__card--quiet .ic { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .photo-contribute-layout { grid-template-columns: 1fr; }
  .photo-contribute-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .photo-contribute-hero { padding: var(--s4) 0 var(--s6); }
  .photo-contribute-hero__crumbs { margin-bottom: var(--s6); }
  .photo-contribute-hero h1 { font-size: 2.15rem; }
  .photo-contribute-form { padding: var(--s4); }
  .photo-contribute-contact, .photo-contribute-aside { grid-template-columns: 1fr; }
  .photo-contribute-submit { align-items: stretch; flex-direction: column; }
  .photo-contribute-submit .btn { width: 100%; }
  .photo-contribute-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Centered listing and claim flows ---------------------------------- */
.centered-flow { max-width: 820px; }
.centered-flow--claim { max-width: 680px; }
.centered-photo-flow { max-width: 760px; }
.flow-back { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: var(--s5); color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.flow-back:hover { color: var(--primary-d); text-decoration: none; }
.flow-intro { max-width: 620px; margin: 0 auto var(--s6); text-align: center; }
.flow-intro__eyebrow { display: inline-flex; margin-bottom: var(--s2); color: var(--primary-d); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.flow-intro h1 { margin-bottom: var(--s3); font-size: clamp(2rem, 4vw, 2.8rem); }
.flow-intro p { margin: 0; color: var(--muted); font-size: 1rem; }
.centered-submit-form { display: grid; gap: var(--s4); }
.flow-form { display: grid; gap: var(--s4); }
.flow-form__section { display: flex; gap: var(--s3); padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.flow-form__section .field { width: 100%; margin: 0; }
.flow-form__number { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--primary-t); color: var(--primary-d); font-family: var(--display); font-size: .82rem; font-weight: 700; }
.flow-form label small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.flow-submit { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5); border-radius: var(--r); background: var(--ink); color: #fff; }
.flow-submit strong, .flow-submit span { display: block; }
.flow-submit span { margin-top: 3px; color: #cfc7bd; font-size: .84rem; }

@media (max-width: 600px) {
  /* This comes last so the page gutter survives narrow-screen layout rules. */
  .wrap, .centered-flow { padding-inline: 20px !important; }
  .centered-flow { max-width: none; }
  .flow-back { margin-bottom: var(--s4); }
  .flow-intro { margin-bottom: var(--s5); text-align: left; }
  .flow-intro h1 { font-size: 2.15rem; }
  .flow-form__section { padding: var(--s4); }
  .flow-submit { align-items: stretch; flex-direction: column; }
  .flow-submit .btn { width: 100%; }
}
