/* ==========================================================================
   BakuGo — city guide UI
   --------------------------------------------------------------------------
   Written for BakuGo, not inherited from the agency site. Two ideas drive it:

   1. The PLACE CARD is the atom. Everything is a grid of cards, so the card
      has to carry the whole decision — photo, name, category, rating, area,
      price and whether it is open right now. A visitor should not need to open
      a page to rule a place in or out.

   2. Search is chrome, not a section. The bar and the category rail persist,
      because in a directory the next query is always one thought away.

   Palette: Caspian teal as the brand, a warm flame accent for actions (Baku is
   the Land of Fire), near-black text on warm off-white. Accent is used only for
   things you can click — it stays meaningful.
   ========================================================================== */

:root {
  --ink:        #12181f;
  --ink-2:      #4a5563;
  --ink-3:      #7b8794;
  --line:       #e6e9ed;
  --line-2:     #f1f3f5;
  --bg:         #ffffff;
  --bg-2:       #fbfaf8;
  --bg-3:       #f5f4f1;

  --brand:      #0f6f78;   /* Caspian teal */
  --brand-ink:  #0a5158;
  --brand-wash: #e7f3f4;

  --accent:     #d4581f;   /* flame — actions only */
  --accent-ink: #a8431492;
  --accent-wash:#fdefe7;

  --ok:         #1a7f4b;
  --ok-wash:    #e6f4ec;
  --warn:       #b3541e;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(18,24,31,.04), 0 8px 24px -12px rgba(18,24,31,.14);
  --shadow-lg:  0 2px 4px rgba(18,24,31,.05), 0 18px 44px -16px rgba(18,24,31,.22);

  --hdr-h:      64px;
  --maxw:       1240px;
  --font:       'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* `.container` is Tourister's name for the same thing, used by the inherited
   views (contact, contact/success, posts). It was never defined here, so
   those pages rendered edge-to-edge at full window width — the contact page's
   heading sat flush against x=0. Aliased rather than renamed, for the same
   reason as `.form-group`: those files are on the backport ledger. */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.page-header { padding: 34px 0 8px; }
.page-header h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.028em; margin: 0 0 10px; }
.page-header p { color: var(--ink-3); font-size: 1.02rem; line-height: 1.6; margin: 0; max-width: 70ch; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.hdr__bar {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 20px; height: var(--hdr-h);
  display: flex; align-items: center; gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; flex: none; }
.brand__mark { color: var(--brand); font-size: 1.1em; line-height: 1; }
.brand__name span, .brand span { color: var(--accent); }

/* Search — the most important control on the site, so it gets the room */
.search {
  flex: 1 1 auto; max-width: 560px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-3);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }
.search__icon { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.search input {
  flex: 1; border: 0; background: none; outline: none;
  font: inherit; font-size: .95rem; color: var(--ink); min-width: 0;
}
.search input::placeholder { color: var(--ink-3); }
.search button {
  flex: none; border: 0; cursor: pointer;
  background: var(--ink); color: #fff;
  font: inherit; font-weight: 600; font-size: .86rem;
  padding: 8px 18px; border-radius: 999px;
  transition: background .15s;
}
.search button:hover { background: var(--accent); }

.hdr__links { display: flex; align-items: center; gap: 4px; flex: none; font-weight: 600; font-size: .92rem; }
.hdr__links > a, .hdr__more > summary {
  color: var(--ink-2); padding: 7px 11px; border-radius: 999px;
  transition: color .15s, background .15s;
}
.hdr__links > a:hover, .hdr__more > summary:hover { color: var(--ink); background: var(--bg-3); }

/* Active state. There was none — no page told you where you were, which is
   most of why the bar felt flat. A tinted pill, not an underline, so it
   reads at a glance next to the pill-shaped CTA and search. */
.hdr__links > a.is-active, .hdr__more.is-active > summary {
  color: var(--brand-ink); background: var(--brand-wash);
}

/* "More" — a <details>, so it opens with no JavaScript and Escape closes it
   for free. */
.hdr__more { position: relative; }
.hdr__more > summary {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; list-style: none;
}
.hdr__more > summary::-webkit-details-marker { display: none; }
.hdr__chev {
  width: 8px; height: 8px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s;
}
.hdr__more[open] .hdr__chev { transform: rotate(-135deg) translate(-3px, -3px); }
.hdr__pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 208px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(18,24,31,.14);
  display: flex; flex-direction: column;
}
.hdr__pop a { padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink-2); white-space: nowrap; }
.hdr__pop a:hover { background: var(--bg-3); color: var(--ink); }
.hdr__pop a.is-active { color: var(--brand-ink); background: var(--brand-wash); }

.hdr__cta { color: var(--accent) !important; border: 1.5px solid var(--accent); border-radius: 999px; padding: 6px 15px; margin-left: 6px; }
.hdr__cta:hover { background: var(--accent); color: #fff !important; }

/* Account entrance — the public sign-in door, distinct from the staff
   /adminAuth/ login. Reuses .hdr__more / .hdr__pop for the dropdown; only the
   trigger's colour differs from the "More" summary. */
.hdr__signin { color: var(--brand-ink); font-weight: 700; padding: 7px 11px; border-radius: 999px; margin-left: 2px; }
.hdr__signin:hover { background: var(--brand-wash); }
.hdr__acct > summary { color: var(--ink-2); padding: 7px 11px; border-radius: 999px; font-weight: 600; }
.hdr__acct > summary:hover, .hdr__acct[open] > summary { color: var(--ink); background: var(--bg-3); }

/* Message envelope in the header — live unread indicator for a signed-in
   operator or traveller. The red count rides the top-right of the glyph. */
.hdr__bell { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; color: var(--ink-2); font-size: 1.15rem; text-decoration: none; }
.hdr__bell:hover { color: var(--ink); background: var(--bg-3); }
.hdr__bell.has-unread { color: var(--brand-ink); }
.hdr__bell-n { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  background: #e5484d; color: #fff; font-size: .64rem; font-weight: 700; line-height: 16px;
  text-align: center; border-radius: 999px; box-sizing: border-box; }
.hdr__bell-n[hidden] { display: none; }

.hdr__burger { display: none; flex: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; padding: 10px; border-radius: var(--radius-sm); }
.hdr__burger:hover { background: var(--bg-3); }
.hdr__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: transform .22s, opacity .18s; }
/* Burger morphs into an X while the drawer is open — the button that opened
   it is the obvious place to look for the way out. */
body.mnav-open .hdr__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.mnav-open .hdr__burger span:nth-child(2) { opacity: 0; }
body.mnav-open .hdr__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══ MOBILE DRAWER ═══════════════════════════════════════════════════════
 * A real panel. What it replaces: the desktop <nav> with display:flex forced
 * back on by JS — a horizontal row of eleven links inside a phone-width
 * header, with nothing behind `.is-open` at all.
 */
/* Scroll lock. position:fixed rather than overflow:hidden because iOS
   Safari ignores the latter on <body>; the scroll offset is preserved in JS
   and restored on close. */
body.mnav-lock { position: fixed; width: 100%; overflow: hidden; }

.mnav { position: fixed; inset: 0; z-index: 80; }
.mnav[hidden] { display: none; }   /* display:block would beat [hidden] */
.mnav__scrim {
  position: absolute; inset: 0; background: rgba(18,24,31,.5);
  opacity: 0; transition: opacity .22s;
}
.mnav__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(330px, 88vw); background: #fff;
  box-shadow: -8px 0 40px rgba(18,24,31,.18);
  padding: 16px 18px 28px; overflow-y: auto;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
body.mnav-open .mnav__scrim { opacity: 1; }
body.mnav-open .mnav__panel { transform: translateX(0); }

.mnav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mnav__x { font-size: 1.9rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: 0 4px; }
.mnav__x:hover { color: var(--ink); }

.mnav__links { display: flex; flex-direction: column; }
.mnav__links a {
  padding: 13px 12px; border-radius: var(--radius-sm);
  font-size: 1.02rem; font-weight: 700; color: var(--ink);
}
.mnav__links a:hover { background: var(--bg-3); }
.mnav__links a.is-active { color: var(--brand-ink); background: var(--brand-wash); }

.mnav__sec {
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-3); margin: 20px 0 9px 12px;
}
.mnav__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.mnav__cats a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .84rem; font-weight: 600; color: var(--ink-2);
  background: var(--bg-3); padding: 6px 12px; border-radius: 999px;
}
.mnav__cats a:hover { background: var(--brand-wash); color: var(--brand-ink); }
.mnav__cats em { font-style: normal; font-size: .74rem; color: var(--ink-3); }

.mnav__cta { margin-top: 22px; justify-content: center; }
.mnav__signin { text-align: center; margin-top: 14px; font-weight: 700; color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .mnav__panel, .mnav__scrim { transition: none; }
}

/* Category rail — horizontal scroll on every width, no hidden overflow */
.rail {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 20px 10px;
}
.rail::-webkit-scrollbar { display: none; }
.rail__item {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 600; color: var(--ink-2);
  background: var(--bg-3); border: 1px solid transparent;
  padding: 6px 13px; border-radius: 999px;
  transition: all .15s; white-space: nowrap;
}
.rail__item:hover { background: var(--brand-wash); color: var(--brand-ink); border-color: #cfe6e8; }
.rail__item.is-active { background: var(--ink); color: #fff; }
.rail__item em { font-style: normal; font-size: .74rem; color: var(--ink-3); font-weight: 500; }
.rail__item:hover em, .rail__item.is-active em { color: inherit; opacity: .7; }

/* ── Hero (home) ────────────────────────────────────────────────────────── */

.hero { background: linear-gradient(170deg, #0d3f45 0%, #0f6f78 55%, #14868f 100%); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; inset: auto -10% -60% -10%; height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,88,31,.32), transparent 68%);
  pointer-events: none;
}
.hero__in { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; max-width: 16ch; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.14rem); opacity: .9; margin: 0 0 28px; max-width: 56ch; }

.hero__search { display: flex; gap: 8px; background: #fff; border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow-lg); max-width: 680px; }
.hero__search input { flex: 1; border: 0; outline: none; font: inherit; font-size: 1rem; padding: 12px 14px; color: var(--ink); min-width: 0; }
.hero__search button { border: 0; cursor: pointer; background: var(--accent); color: #fff; font: inherit; font-weight: 700; padding: 12px 26px; border-radius: var(--radius-sm); transition: background .15s; }
.hero__search button:hover { background: #b84715; }

.hero__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero__quick a { font-size: .85rem; font-weight: 600; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 6px 14px; border-radius: 999px; transition: background .15s; }
.hero__quick a:hover { background: rgba(255,255,255,.26); }

/* ── Sections ───────────────────────────────────────────────────────────── */

.sec { padding: 52px 0; }
.sec--tint { background: var(--bg-2); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.sec__head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.02em; margin: 0; font-weight: 800; }
.sec__head p { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; }
.sec__more { flex: none; font-weight: 600; font-size: .9rem; color: var(--brand); }
.sec__more:hover { color: var(--accent); }

/* ── Place card ─────────────────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 20px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d7dce2; }

.card__media { position: relative; aspect-ratio: 3 / 2; background: var(--bg-3); overflow: hidden; }
/* <picture> is an inline wrapper with no box of its own, so an <img> set to
   height:100% inside it resolves against ZERO and the image vanishes. Give the
   wrapper the container's box before sizing the image. */
.card__media picture, .pl__hero picture { display: block; width: 100%; height: 100%; }
/* Same trap wherever else the partial is used: the wrapper has no box, so any
   sizing rule on the <img> inside resolves against nothing. */
.ugc-shots picture { display: block; width: 100%; }
.rv__shots picture { display: block; flex: none; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.045); }
.card__media--empty { display: grid; place-items: center; color: var(--ink-3); font-size: 1.8rem; }

.card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: .69rem; font-weight: 700; letter-spacing: .01em;
  padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(6px);
}
.badge--open   { background: rgba(26,127,75,.94); color: #fff; }
.badge--closed { background: rgba(18,24,31,.72); color: #fff; }
/* Verified: a scalloped seal, the shape people already read as "checked" from
   Instagram and X. Delivered through ::before so all eight existing call
   sites (place cards, operators, stays, contributors) upgrade without a
   markup change. The rosette is white with a brand-coloured tick, because it
   sits ON the coloured chip. */
.badge--verified {
  background: rgba(15,111,120,.94); color: #fff;
  display: inline-flex; align-items: center; gap: 4px; padding-left: 6px;
}
.badge--verified::before {
  content: ""; flex: none; width: 13px; height: 13px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M9.59%2C3.02Q12%2C0.6%2014.41%2C3.02Q17.7%2C2.13%2018.58%2C5.42Q21.87%2C6.3%2020.98%2C9.59Q23.4%2C12%2020.98%2C14.41Q21.87%2C17.7%2018.58%2C18.58Q17.7%2C21.87%2014.41%2C20.98Q12%2C23.4%209.59%2C20.98Q6.3%2C21.87%205.42%2C18.58Q2.13%2C17.7%203.02%2C14.41Q0.6%2C12%203.02%2C9.59Q2.13%2C6.3%205.42%2C5.42Q6.3%2C2.13%209.59%2C3.02Z%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%230f6f78%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M8.2%2C12.3%20l2.6%2C2.6%20l5.1%2C-5.5%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}

/* The standalone seal — a brand-blue rosette with a white tick, sized to sit
   beside a name the way a platform check does. No chip, no label: at this
   point the shape IS the label. `.seal--lg` for profile headings. */
.seal {
  display: inline-block; vertical-align: -.14em; flex: none;
  width: 1.05em; height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%230f6f78%22%20d%3D%22M9.59%2C3.02Q12%2C0.6%2014.41%2C3.02Q17.7%2C2.13%2018.58%2C5.42Q21.87%2C6.3%2020.98%2C9.59Q23.4%2C12%2020.98%2C14.41Q21.87%2C17.7%2018.58%2C18.58Q17.7%2C21.87%2014.41%2C20.98Q12%2C23.4%209.59%2C20.98Q6.3%2C21.87%205.42%2C18.58Q2.13%2C17.7%203.02%2C14.41Q0.6%2C12%203.02%2C9.59Q2.13%2C6.3%205.42%2C5.42Q6.3%2C2.13%209.59%2C3.02Z%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M8.2%2C12.3%20l2.6%2C2.6%20l5.1%2C-5.5%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}
.seal--lg { width: 1.25em; height: 1.25em; }
.badge--featured { background: rgba(212,88,31,.95); color: #fff; }

.card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.card__title { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin: 0; }
.card__summary { font-size: .87rem; color: var(--ink-2); line-height: 1.45; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 9px; display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--ink-2); }

.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); }
.rating svg { width: 14px; height: 14px; fill: #f0a92c; }
.rating em { font-style: normal; font-weight: 500; color: var(--ink-3); font-size: .92em; }

.dot { color: var(--line); }
.muted { color: var(--ink-3); }
.price { letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.price b { color: var(--ink); font-weight: 700; }

/* ── Directory layout: filters + map ────────────────────────────────────── */

.dir { display: grid; grid-template-columns: 1fr 420px; gap: 0; align-items: start; }
.dir__list { padding: 24px 20px 60px; min-width: 0; }
.dir__map { position: sticky; top: var(--hdr-h); height: calc(100vh - var(--hdr-h)); background: var(--bg-3); }
#map { width: 100%; height: 100%; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 14px; transition: all .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip select { border: 0; background: none; font: inherit; color: inherit; outline: none; cursor: pointer; }

.results-count { font-size: .9rem; color: var(--ink-2); margin: 0 0 18px; }
.results-count b { color: var(--ink); }

/* Leaflet popup restyled to match the cards */
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.pop { display: block; }
.pop img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.pop__b { padding: 10px 12px 12px; }
.pop__t { font-weight: 700; font-size: .95rem; margin: 0 0 3px; }
.pop__m { font-size: .8rem; color: var(--ink-2); }

/* ── Place detail ───────────────────────────────────────────────────────── */

.pl__hero { position: relative; aspect-ratio: 21/9; max-height: 460px; background: var(--bg-3); overflow: hidden; }
.pl__hero img { width: 100%; height: 100%; object-fit: cover; }

.pl { display: grid; grid-template-columns: minmax(0,1fr) 366px; gap: 44px; padding: 32px 0 72px; align-items: start; }
/* Sticky needs travel room: align-items:start shrinks the aside to its
   content, leaving .act nowhere to slide. Stretch the aside cell itself. */
.pl > aside { align-self: stretch; }

/* ── Tour gallery (GYG-style, but balanced — no half-page hero) ────────── */

.tg { margin: 14px 0 6px; }
/* The frame takes the IMAGE's proportions, not the other way around:
   photos are mixed 3:2 / 4:3 / 16:9, a fixed-ratio box either crops
   (cover) or letterboxes (contain) — both vetoed. fit-content shrinks the
   frame to the photo, centered; only the height is capped. */
.tg__main {
  position: relative; width: fit-content; max-width: 100%; margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden; background: var(--bg-3); cursor: zoom-in;
}
.tg__main picture { display: block; }
.tg__main img { display: block; width: auto; height: auto; max-width: 100%; max-height: 480px; }
.tg__count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(12,18,20,.72); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; pointer-events: none;
}
.tg__thumbs {
  display: flex; gap: 8px; margin-top: 8px; overflow-x: auto;
  scrollbar-width: thin; padding-bottom: 4px;
}
/* Centered when there's spare width, still scrollable when there isn't —
   plain justify-content:center clips the left items once the row
   overflows, so the auto margins do the centering instead. */
.tg__thumb:first-child { margin-left: auto; }
.tg__thumb:last-child  { margin-right: auto; }
.tg__thumb {
  flex: 0 0 auto; width: 108px; aspect-ratio: 4/3; border-radius: 8px;
  overflow: hidden; padding: 0; border: 2px solid transparent; cursor: pointer;
  background: var(--bg-3);
}
.tg__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg__thumb.is-on { border-color: var(--brand); }
.tg__thumb:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,14,16,.92);
      display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; }
.lb__img { max-width: min(94vw, 1400px); max-height: 88vh; border-radius: 8px; }
.lb__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px;
  width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.lb__btn:hover { background: rgba(255,255,255,.25); }
.lb__prev { left: 18px; } .lb__next { right: 18px; }
.lb__close { position: absolute; top: 16px; right: 18px; transform: none; }
.lb__n { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
         color: #fff; font-size: .85rem; opacity: .8; }

.pl__head h1 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); letter-spacing: -.025em; margin: 0 0 10px; font-weight: 800; }
.pl__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-2); margin-bottom: 22px; }

.pl__body { font-size: 1.02rem; line-height: 1.68; color: var(--ink-2); }
.pl__body h2 { font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; margin: 34px 0 12px; }
.pl__body p { margin: 0 0 16px; }

/* Sticky action card — the conversion element */
.act {
  position: sticky; top: calc(var(--hdr-h) + 20px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.act__status { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.act__status--open   { color: var(--ok); }
.act__status--closed { color: var(--warn); }
.act__status--unknown{ color: var(--ink-3); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: 13px 18px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: all .15s; text-align: center;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #b84715; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1eb257; }

.facts { border-top: 1px solid var(--line-2); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.fact { display: flex; gap: 10px; align-items: flex-start; }
.fact__k { flex: none; width: 78px; color: var(--ink-3); font-weight: 600; font-size: .84rem; }
.fact__v { color: var(--ink); min-width: 0; word-break: break-word; }
.fact__v a { color: var(--brand); font-weight: 600; }

.hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:first-child { color: var(--ink-2); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { font-weight: 700; color: var(--ink); }

.pl__map { height: 260px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }

/* ── Reviews ────────────────────────────────────────────────────────────── */

.rv { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; background: #fff; }
.rv__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rv__who { font-weight: 700; font-size: .94rem; }
.rv__meta { font-size: .8rem; color: var(--ink-3); }
.rv__body { font-size: .95rem; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* ══ FORM FIELD — one component, every form ══════════════════════════════
 *
 * This block used to exist FOUR times, scoped to .sub-form, .act,
 * .contrib__pane and .rep-modal, with the copies drifted to .93 / .94 /
 * .95rem and 10px / 11px padding — differences nobody chose. Any form that
 * was not one of those four (the Q&A ask and answer forms, for instance)
 * inherited nothing and rendered as raw browser controls.
 *
 * So: `.fld` is the component. Wrap a label + control in it and it is styled,
 * anywhere on the site, forever. Containers below override only what is
 * genuinely theirs (a tighter modal, a two-up row) — never the field itself.
 *
 * Every input type is listed explicitly rather than using a bare `input`
 * selector, because a bare one would also capture checkboxes and radios and
 * stretch them to 100% width.
 */
/* `.form-group` is aliased on purpose. The views inherited from Tourister —
 * signup, login, password reset, comments — use `.form-group` and
 * `.form-control`, and BakuGo's layout loads ONLY bakugo.css, where neither
 * was ever defined. Every one of those forms, including SIGN-UP, was
 * rendering as raw browser inputs. Aliasing repairs them all at once instead
 * of rewriting each view to a different class name, and new markup should
 * still use `.fld`. */
.fld, .form-group { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.fld label, .form-group label { font-size:.88rem; font-weight:700; color:var(--ink); }
.fld label small, .fld > small,
.form-group label small, .form-group > small { font-size:.79rem; font-weight:400; color:var(--ink-3); line-height:1.45; }

.fld input[type=text],  .fld input[type=email],  .fld input[type=url],
.fld input[type=tel],   .fld input[type=number], .fld input[type=password],
.fld input[type=search],.fld input[type=date],   .fld input[type=month],
.fld input[type=time],  .fld input[type=file],   .fld select, .fld textarea,
.form-group input[type=text],  .form-group input[type=email], .form-group input[type=url],
.form-group input[type=tel],   .form-group input[type=number],.form-group input[type=password],
.form-group input[type=search],.form-group input[type=date],  .form-group input[type=month],
.form-group input[type=time],  .form-group select,            .form-group textarea {
  font:inherit; font-size:.95rem; padding:11px 13px; border:1.5px solid var(--line);
  border-radius:var(--radius-sm); background:#fff; color:var(--ink); width:100%; outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.fld input:focus, .fld select:focus, .fld textarea:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color:var(--brand); box-shadow:0 0 0 4px var(--brand-wash);
}
.fld input::placeholder, .fld textarea::placeholder,
.form-group input::placeholder, .form-group textarea::placeholder { color:var(--ink-3); opacity:.75; }

/* A textarea people are asked to write a real answer in must LOOK like it
   wants one. A three-line box asks for three lines. */
.fld textarea, .form-group textarea { resize:vertical; line-height:1.65; min-height:132px; }

/* The native select arrow differs per platform and per OS theme; this makes
   it ours, and matches the custom date control below. */
.fld select, .form-group select {
  appearance:none; -webkit-appearance:none; padding-right:38px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7a80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 13px center; background-size:12px;
}

.fld--invalid input, .fld--invalid select, .fld--invalid textarea { border-color:#d05a45; }
.fld--invalid .fld__err { font-size:.79rem; color:#8c2b21; font-weight:600; }

/* ══ AUTH SCREENS ════════════════════════════════════════════════════════
 * One shell for sign in, sign up and the password flows. These were five
 * separate piles of inline style using Tourister's blue (#3b82f6) and a
 * `shadow:` property that is not a CSS property at all, so it did nothing.
 * `.login-wrapper` / `.sidebar-box` are aliased because the inherited login
 * view uses them.
 */
.auth, .login-wrapper { max-width:430px; margin:56px auto 72px; padding:0 20px; }
.auth__card, .sidebar-box {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:28px 26px; box-shadow:0 4px 20px rgba(18,24,31,.06);
}
.auth__head { text-align:center; margin-bottom:22px; }
.auth__head h1, .auth__head h2, .login-header {
  font-size:1.5rem; letter-spacing:-.025em; margin:0 0 6px;
}
.login-header { text-align:center; }
.auth__sub { font-size:.9rem; color:var(--ink-3); margin:0; line-height:1.55; }
.auth__foot, .login-footer {
  text-align:center; margin-top:20px; padding-top:18px; border-top:1px solid var(--line);
  font-size:.88rem; color:var(--ink-3);
}
.auth__link, .login-link { color:var(--brand); font-weight:700; }
.auth__link:hover, .login-link:hover { text-decoration:underline; }
.auth__aside { text-align:right; margin-top:6px; font-size:.82rem; }

/* Flash messages (partials/messages.php). Dismiss is pure CSS: a hidden
   checkbox precedes the message and the "×" is its <label>, so clicking it
   checks the box and the adjacent .msg is hidden — no JS. Without these rules
   the raw checkbox showed and the message had no box (bakugo.css never carried
   the inherited .alert/.msg classes). */
.alert-wrap { margin:0 0 18px; }
.alert-toggle { position:absolute; width:0; height:0; opacity:0; pointer-events:none; }
.alert-toggle:checked + .msg { display:none; }
.msg {
  display:flex; align-items:flex-start; gap:10px;
  padding:12px 14px; border-radius:var(--radius-sm);
  font-size:.9rem; line-height:1.5; border:1px solid transparent;
}
.msg > span { flex:1 1 auto; }
.msg-success { background:var(--ok-wash); color:#12603a; border-color:#bfe3cd; }
.msg-error   { background:#fdecea;        color:#8c2b21; border-color:#f5c6c0; }
.alert-close {
  flex:none; cursor:pointer; font-size:1.15rem; line-height:1;
  color:inherit; opacity:.5; padding:0 2px; user-select:none;
}
.alert-close:hover { opacity:1; }

/* Password reveal: the button sits inside the field rather than beside it,
   so the input keeps its full width and the control cannot wrap on mobile. */
.pw-field, .password-field { position:relative; }
.pw-field input, .password-field input { padding-right:44px !important; }
.pw-toggle, .password-toggle {
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  display:flex; align-items:center; justify-content:center; width:34px; height:34px;
  background:none; border:0; border-radius:var(--radius-sm); cursor:pointer; color:var(--ink-3);
}
.pw-toggle:hover, .password-toggle:hover { color:var(--brand); background:var(--brand-wash); }

/* ══ DATE PICKER ═════════════════════════════════════════════════════════
 * Paired with public/assets/js/bg-datepicker.js. The native input stays in
 * the DOM as the value and is hidden by the SCRIPT, not by this stylesheet —
 * if the script never runs the field must remain visible and usable, so its
 * fallback cannot depend on CSS that loads regardless.
 */
.bg-dp { position:relative; }
.bg-dp__native { position:absolute; opacity:0; pointer-events:none; width:1px; height:1px; }

.bg-dp__field {
  display:flex; align-items:center; gap:9px; width:100%; cursor:pointer; text-align:left;
  font:inherit; font-size:.95rem; padding:11px 13px; border:1.5px solid var(--line);
  border-radius:var(--radius-sm); background:#fff; color:var(--ink);
  transition:border-color .15s, box-shadow .15s;
}
.bg-dp__field:hover { border-color:var(--brand); }
.bg-dp__field:focus-visible,
.bg-dp.is-open .bg-dp__field { border-color:var(--brand); box-shadow:0 0 0 4px var(--brand-wash); outline:none; }
.bg-dp__ico { display:flex; flex:none; color:var(--ink-3); }
.bg-dp__ico svg { width:17px; height:17px; }
.bg-dp.is-set .bg-dp__ico { color:var(--brand); }
.bg-dp__txt { font-weight:600; }
.bg-dp__txt.is-empty { font-weight:400; color:var(--ink-3); }

.bg-dp__pop {
  position:absolute; z-index:60; top:calc(100% + 6px); left:0; width:min(310px, calc(100vw - 32px));
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:0 14px 40px rgba(18,24,31,.16); padding:12px;
}
.bg-dp__pop[hidden] { display:none; }
.bg-dp__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; }
.bg-dp__title { font-weight:700; font-size:.92rem; letter-spacing:-.01em; }
.bg-dp__nav {
  width:30px; height:30px; display:flex; align-items:center; justify-content:center;
  font-size:1.15rem; line-height:1; cursor:pointer; color:var(--ink-2);
  background:none; border:1px solid var(--line); border-radius:var(--radius-sm);
}
.bg-dp__nav:hover:not(:disabled) { border-color:var(--brand); color:var(--brand); background:var(--brand-wash); }
.bg-dp__nav:disabled { opacity:.3; cursor:not-allowed; }

.bg-dp__grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.bg-dp__dow { text-align:center; font-size:.66rem; font-weight:700; text-transform:uppercase;
              letter-spacing:.03em; color:var(--ink-3); padding:4px 0 6px; }
.bg-dp__pad { aspect-ratio:1; }
.bg-dp__day {
  aspect-ratio:1; display:flex; align-items:center; justify-content:center;
  font:inherit; font-size:.85rem; cursor:pointer; color:var(--ink);
  background:none; border:1px solid transparent; border-radius:var(--radius-sm);
  transition:background .12s, color .12s;
}
.bg-dp__day:hover:not(:disabled) { background:var(--brand-wash); color:var(--brand); }
.bg-dp__day:disabled { color:var(--ink-3); opacity:.3; cursor:not-allowed; }
/* Today is outlined, the selection is filled — so both can show at once and
   the one you chose always wins visually. */
.bg-dp__day.is-today { border-color:var(--line); font-weight:700; }
.bg-dp__day.is-selected { background:var(--brand); border-color:var(--brand); color:#fff; font-weight:700; }
.bg-dp__day.is-selected:hover { background:var(--brand); color:#fff; }

/* ── Submission forms ───────────────────────────────────────────────────── */
/* Inherits .fld entirely — only its own layout pieces remain. */
.sub-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.sub-more { border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px 14px; margin-top:4px; }
.sub-more summary { cursor:pointer; font-weight:700; font-size:.9rem; }

/* The honeypot must be unreachable to people but present in the DOM — so it is
   moved off-screen rather than display:none, which some bots detect. */
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.sub-errors {
  background:var(--accent-wash); border:1px solid #f3cdb8; color:#8a3d12;
  border-radius:var(--radius-sm); padding:14px 16px; margin-bottom:22px; font-size:.92rem;
}
.sub-errors ul { margin:8px 0 0; padding-inline-start:20px; }

/* ── Tours: operator credit, itinerary, booking card ────────────────────── */

/* Who runs the tour sits above the description, not buried at the bottom. On a
   marketplace the supplier is half of what is being chosen. */
.op-credit {
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 26px; background: var(--bg-2);
}
.op-credit__who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1rem; }
.op-credit__lic { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.op-credit p { font-size: .9rem; color: var(--ink-2); line-height: 1.55; margin: 8px 0 6px; }
.op-credit a { font-size: .87rem; font-weight: 700; color: var(--brand); }

.stops { list-style: none; counter-reset: stop; padding: 0; margin: 0 0 8px; }
.stops li {
  counter-increment: stop; position: relative; padding: 0 0 20px 38px;
  border-inline-start: 2px solid var(--line-2); margin-inline-start: 11px;
}
.stops li:last-child { border-inline-start-color: transparent; padding-bottom: 0; }
.stops li::before {
  content: counter(stop); position: absolute; inset-inline-start: -12px; top: -2px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: .73rem; font-weight: 800; display: grid; place-items: center;
}
.stops a { color: var(--ink); }
.stops a:hover strong { color: var(--brand); }
.stops__t { font-size: .78rem; color: var(--ink-3); margin-inline-start: 8px; }
.stops p { font-size: .9rem; margin: 4px 0 0; }

.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.incl ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: .93rem; }
.incl li { position: relative; padding-inline-start: 24px; line-height: 1.5; }
.incl li::before { position: absolute; inset-inline-start: 0; font-weight: 800; }
.incl__yes li::before { content: '✓'; color: var(--ok); }
.incl__no li { color: var(--ink-3); }
.incl__no li::before { content: '✕'; color: var(--ink-3); }

.rv__reply { margin-top: 10px; padding: 10px 12px; background: var(--bg-2); border-radius: var(--radius-sm); font-size: .9rem; }
.rv__reply p { margin: 4px 0 0; color: var(--ink-2); }

/* Booking card. The total updates as the traveller changes guests — a price
   that only appears after submitting is the main reason people abandon. */
.bk-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.bk-price__from { font-size: .82rem; color: var(--ink-3); }
.bk-price strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-price__cur { font-size: 1rem; font-weight: 700; color: var(--ink-2); }
.bk-price__unit { font-size: .82rem; color: var(--ink-3); width: 100%; }

/* ── Booking selection widget (Tourister-style) ─────────────────────────── */

.bk-date-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 10px 12px; font: inherit; font-size: .93rem; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); cursor: pointer;
}
.bk-date-toggle[aria-expanded="true"] { border-color: var(--brand); }

.bk-cal { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 8px; padding: 10px; background: #fff; }
.bk-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: .9rem; }
.bk-cal__nav { border: 0; background: var(--bg-3); border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 1rem; }
.bk-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.bk-cal__dow { text-align: center; font-size: .68rem; font-weight: 700; color: var(--ink-3); padding: 3px 0; }
.bk-cal__day {
  border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 600;
  padding: 7px 0; text-align: center; border-radius: 7px; cursor: pointer; color: var(--ink);
}
.bk-cal__day:hover:not(.is-off) { background: var(--brand-wash); }
.bk-cal__day.is-on { background: var(--brand); color: #fff; }
.bk-cal__day.is-off { color: var(--ink-3); opacity: .38; cursor: default; }

.bk-times { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bk-time {
  font: inherit; font-size: .82rem; font-weight: 700; padding: 7px 11px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
}
.bk-time small { font-weight: 500; color: var(--ink-3); }
.bk-time.is-on { border-color: var(--brand); background: var(--brand-wash); }

.bk-stepper { display: flex; align-items: center; gap: 8px; }
.bk-stepper input { width: 64px; text-align: center; }
.bk-step {
  width: 36px; height: 36px; border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer; color: var(--ink);
}
.bk-step:hover { border-color: var(--brand); }

.bk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.bk-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font: inherit; padding: 9px 6px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer;
}
.bk-tab span { font-size: .88rem; font-weight: 700; color: var(--ink); }
.bk-tab__p { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bk-tab.is-on { border-color: var(--brand); background: var(--brand-wash); }
.bk-mode-note { font-size: .84rem; color: var(--ink-2); margin: 0 0 4px; }

.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Booking panel: fields come from .fld. Only the tighter rhythm of a panel
   that sits beside content, rather than being the page, is its own. */
.act .fld { margin-bottom: 12px; }
.act .fld textarea { min-height: 88px; }
.bk-pax { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.bk-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; margin-bottom: 4px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  font-size: .92rem; color: var(--ink-2);
}
.bk-total strong { font-size: 1.2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-note { font-size: .8rem; color: var(--ink-3); line-height: 1.5; margin: 10px 0 0; text-align: center; }

/* ── Contributor profiles ───────────────────────────────────────────────── */

.prof { display:flex; gap:20px; align-items:flex-start; margin-bottom:22px; flex-wrap:wrap; }
.prof__avatar { flex:none; width:84px; height:84px; border-radius:50%; overflow:hidden;
                background:var(--brand); color:#fff; display:grid; place-items:center;
                font-size:2rem; font-weight:800; }
.prof__avatar img { width:100%; height:100%; object-fit:cover; }
.prof__who h1 { font-size:clamp(1.5rem,3vw,2rem); letter-spacing:-.028em; margin:0 0 8px; }
.prof__badges { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.tier { background:var(--brand-wash); color:var(--brand-ink); border:1px solid #cfe6e8;
        border-radius:20px; padding:2px 12px; font-size:.78rem; font-weight:800; }
.prof__since { font-size:.8rem; color:var(--ink-3); }
.prof__tiernote { font-size:.85rem; color:var(--ink-3); margin:8px 0 0; }
.prof__bio { font-size:.95rem; color:var(--ink-2); line-height:1.6; margin:10px 0 0; max-width:60ch; }

.prof__stats { display:grid; grid-template-columns:repeat(6,1fr); gap:10px; margin-bottom:22px; }
.prof__stats > div { background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm);
                     padding:12px; text-align:center; }
.prof__stats strong { display:block; font-size:1.4rem; font-weight:800; letter-spacing:-.02em; }
.prof__stats span { font-size:.72rem; color:var(--ink-3); text-transform:uppercase; letter-spacing:.04em; }
.prof__stats .is-points { background:var(--brand-wash); border-color:#cfe6e8; }

/* ── Q&A ──────────────────────────────────────────────────────────────── */
.qa-head { display:flex; align-items:flex-start; gap:20px; flex-wrap:wrap; margin-bottom:20px; }
.qa-head > div { flex:1 1 420px; }

.qa-topics { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 18px; }
.qa-topics a { display:inline-flex; align-items:center; gap:6px; font-size:.82rem; font-weight:600;
               padding:5px 11px; border:1px solid var(--line); border-radius:99px;
               background:#fff; color:var(--ink-2); }
.qa-topics a:hover { border-color:var(--brand); color:var(--brand); }
.qa-topics a.is-on { background:var(--brand); border-color:var(--brand); color:#fff; }
.qa-topics a span { font-size:.72rem; color:var(--ink-3); font-weight:700; }
.qa-topics a.is-on span { color:rgba(255,255,255,.8); }

.qa-bar { display:flex; align-items:center; gap:14px; flex-wrap:wrap;
          border-bottom:1px solid var(--line); padding-bottom:10px; margin-bottom:4px; }
.qa-sorts { display:flex; gap:14px; }
.qa-sorts a { font-size:.85rem; font-weight:600; color:var(--ink-3); padding-bottom:6px; margin-bottom:-11px;
              border-bottom:2px solid transparent; }
.qa-sorts a.is-on { color:var(--ink); border-bottom-color:var(--brand); }
.qa-unans { margin-left:auto; font-size:.8rem; font-weight:600; color:var(--ink-3);
            border:1px solid var(--line); border-radius:99px; padding:4px 11px; background:#fff; }
.qa-unans.is-on { border-color:var(--brand); color:var(--brand); }

.qa-list { list-style:none; padding:0; margin:0; }
.qa-item { display:flex; gap:16px; padding:17px 0; border-bottom:1px solid var(--line); }
.qa-metrics { display:flex; flex-direction:column; gap:7px; flex:none; width:72px; text-align:center; }
.qa-metric { border:1px solid var(--line); border-radius:var(--radius-sm); padding:6px 4px; background:#fff; }
.qa-metric strong { display:block; font-size:1rem; font-weight:800; line-height:1.1; }
.qa-metric span { font-size:.64rem; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-3); }
.qa-metric.is-pos { border-color:#cfe6e8; background:var(--brand-wash); }
.qa-metric.is-answered { border-color:#cfe6e8; }
.qa-metric.is-accepted { background:#e6f4ea; border-color:#b7dfc4; }
.qa-metric.is-accepted strong, .qa-metric.is-accepted span { color:#1d6b34; }

.qa-body { min-width:0; flex:1; }
.qa-title { font-size:1.05rem; font-weight:700; letter-spacing:-.015em; margin:0 0 5px; line-height:1.35; }
.qa-title a { color:var(--ink); }
.qa-title a:hover { color:var(--brand); }
.qa-excerpt { font-size:.88rem; color:var(--ink-2); line-height:1.55; margin:0 0 8px; }
.qa-meta { display:flex; align-items:center; gap:7px; flex-wrap:wrap; font-size:.78rem; color:var(--ink-3); }
.qa-meta--lg { margin:6px 0 14px; }
.qa-tag { font-size:.73rem; font-weight:700; border-radius:4px; padding:2px 8px;
          background:var(--bg-3); color:var(--ink-2); }
.qa-tag:hover { background:var(--brand-wash); color:var(--brand); }
.qa-tag--place { background:#eef4ff; color:#2b4a8c; }
.qa-tag--team  { background:#fff3cd; color:#856404; }
.qa-who { margin-left:auto; }
.qa-who a { color:var(--ink-2); font-weight:600; }

.qa-pager { display:flex; align-items:center; gap:16px; justify-content:center;
            margin-top:24px; font-size:.85rem; color:var(--ink-3); }
.qa-pager a { color:var(--brand); font-weight:600; }

.qa-flash { border-radius:var(--radius-sm); padding:11px 14px; font-size:.88rem; margin:0 0 18px; }
.qa-flash--err  { background:#fdecea; color:#8c2b21; }
.qa-flash--ok   { background:#e6f4ea; color:#1d6b34; }
.qa-flash--wait { background:#fff3cd; color:#856404; }

/* Vote control. Sized so the tap target clears 44px on touch, and it never
   moves between states — a control that shifts when you press it reads as a
   glitch. Only the colour and the number change. */
/* Up arrow, score, down arrow — the arrangement people already know. The
   control never changes size between states; only colour and the number
   move, because a control that resizes when you press it reads as a glitch. */
.qa-vote { display:flex; flex-direction:column; align-items:center; flex:none;
           width:46px; gap:2px; }
.qa-vote__btn { display:flex; align-items:center; justify-content:center;
                width:38px; height:30px; padding:0; cursor:pointer; font:inherit; font-size:.8rem;
                background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm);
                color:var(--ink-3); transition:background .15s, border-color .15s, color .15s; }
.qa-vote__btn:hover:not(:disabled):not(.is-gated) { border-color:var(--brand); color:var(--brand); background:var(--brand-wash); }
.qa-vote__up.is-on   { background:var(--brand); border-color:var(--brand); color:#fff; }
.qa-vote__down.is-on { background:#b3402f; border-color:#b3402f; color:#fff; }
.qa-vote__btn:disabled { opacity:.4; cursor:not-allowed; }
/* Gated, not broken: still visible and still explains itself on hover. */
.qa-vote__down.is-gated { opacity:.45; cursor:help; }
.qa-vote__n { font-size:1rem; font-weight:800; line-height:1.3; font-variant-numeric:tabular-nums;
              color:var(--ink); min-height:1.3em; }
.qa-vote__n.is-pos { color:var(--brand); }
.qa-vote__n.is-neg { color:#b3402f; }
.qa-vote.is-refused .qa-vote__btn { border-color:#e0a1a1; background:#fdecea; }
.qa-vote__why { font-size:.76rem; color:#8c2b21; background:#fdecea; border-radius:var(--radius-sm);
                padding:6px 10px; margin:8px 0 0; max-width:52ch; }

.qa-q__head { display:flex; gap:14px; align-items:flex-start; }
.qa-a__row  { display:flex; gap:14px; align-items:flex-start; }
.qa-a__row .qa-a__body { flex:1; min-width:0; margin-bottom:0; }

.qa-q { border-bottom:1px solid var(--line); padding-bottom:18px; margin-bottom:22px; }
.qa-q__title { font-size:clamp(1.35rem,2.8vw,1.85rem); letter-spacing:-.025em; line-height:1.3; margin:0 0 4px; }
.qa-q__body { font-size:.98rem; line-height:1.7; color:var(--ink-2); margin:12px 0; max-width:70ch; }

.qa-h { font-size:1.15rem; letter-spacing:-.02em; margin:26px 0 12px; }
.qa-none { font-size:.9rem; color:var(--ink-3); margin:0 0 8px; }

.qa-answers { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:14px; }
.qa-a { border:1px solid var(--line); border-radius:var(--radius-sm); padding:15px 17px; background:#fff; }
.qa-a.is-accepted { border-color:#b7dfc4; background:#f6fbf7; }
.qa-a.is-pending  { border-style:dashed; background:var(--bg-2); }
.qa-a__flag { font-size:.78rem; font-weight:700; color:#1d6b34; margin:0 0 8px; }
.qa-a__flag--wait { color:#856404; }
.qa-a__body { font-size:.95rem; line-height:1.7; color:var(--ink); margin-bottom:10px; max-width:70ch; }
.qa-accept { margin-left:8px; }
.qa-accept__btn { font-size:.75rem; font-weight:700; border:1px solid var(--line); background:#fff;
                  border-radius:99px; padding:3px 11px; cursor:pointer; color:var(--ink-2); }
.qa-accept__btn:hover { border-color:#b7dfc4; color:#1d6b34; }

.qa-reply { margin-top:30px; }
.qa-reply__note { font-size:.85rem; color:var(--ink-3); margin:0 0 14px; max-width:70ch; }
/* Q&A forms inherit .fld — this used to be the ONLY rule they had, which is
   why the answer box rendered as a raw browser textarea.
   Both are given a card, because both are the moment the page is asking for
   something: a card says "this is the thing to do here" in a way a bare
   stack of inputs floating on the background does not. */
.qa-form, .qa-reply__box {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 22px; box-shadow:0 1px 3px rgba(18,24,31,.05);
}
.qa-form__note { font-size:.8rem; color:var(--ink-3); margin-top:12px; max-width:65ch; }
.qa-form .btn, .qa-reply__box .btn { width:100%; justify-content:center; }
@media (min-width:620px) {
  .qa-form .btn, .qa-reply__box .btn { width:auto; min-width:190px; }
}

/* Breadcrumbs. Used by every Q&A page and by cars/events; never defined. */
.crumbs { display:flex; align-items:center; gap:7px; flex-wrap:wrap;
          font-size:.82rem; color:var(--ink-3); margin:0 0 14px; }
.crumbs a { color:var(--ink-3); font-weight:600; }
.crumbs a:hover { color:var(--brand); }
.crumbs span { color:var(--line); }

.qa-related { margin-top:34px; }
.qa-related__list { list-style:none; padding:0; margin:0; }
.qa-related__list li { display:flex; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); font-size:.9rem; }
.qa-related__list a { color:var(--ink); font-weight:600; }
.qa-related__list a:hover { color:var(--brand); }
.qa-related__list span { margin-left:auto; color:var(--ink-3); font-size:.8rem; white-space:nowrap; }

/* The honeypot must be unreachable, not merely invisible: display:none alone
   is a signal some bots check for. */
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ── Ladder: how far to the next tier ─────────────────────────────────── */
.prof__ladder { background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm);
                padding:13px 15px; margin-bottom:22px; }
.prof__ladder-head { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
                     font-size:.85rem; font-weight:700; margin-bottom:9px; }
.prof__ladder-goal { margin-left:auto; font-weight:600; color:var(--ink-3); }
.prof__ladder-top { font-size:.85rem; color:var(--ink-3); margin:0 0 22px; }

.prof__bar { display:block; height:7px; border-radius:99px; background:var(--bg-3); overflow:hidden; }
.prof__bar > span { display:block; height:100%; border-radius:99px; background:var(--brand);
                    transition:width .4s ease; }
.prof__bar--sm { height:5px; margin-top:6px; }

/* ── Badges ───────────────────────────────────────────────────────────── */
.prof__earned, .prof__plan { margin-bottom:24px; }
.prof__earned h2, .prof__plan h2 { font-size:1.2rem; letter-spacing:-.02em; margin:0 0 12px; }
.prof__plan-group { font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em;
                    color:var(--ink-3); margin:16px 0 9px; }

.badge-grid { list-style:none; padding:0; margin:0;
              display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:10px; }
.badge-chip { display:flex; gap:10px; align-items:flex-start;
              background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); padding:11px 12px; }
.badge-chip.is-earned { background:var(--brand-wash); border-color:#cfe6e8; }
/* Locked badges stay legible rather than greyed to nothing — an achievement
   you cannot read is not an incentive. */
.badge-chip.is-locked { opacity:.72; }
.badge-chip__icon { font-size:1.25rem; line-height:1.2; flex:none; }
.badge-chip.is-locked .badge-chip__icon { filter:grayscale(1); }
.badge-chip__body { display:flex; flex-direction:column; gap:2px; min-width:0; }
.badge-chip__body strong { font-size:.87rem; font-weight:700; letter-spacing:-.01em; }
.badge-chip__body small { font-size:.75rem; color:var(--ink-3); line-height:1.4; }
.badge-chip__body em { font-size:.7rem; font-style:normal; color:var(--ink-3); font-weight:600; }

.prof__mine { background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-sm);
              padding:12px 15px; font-size:.87rem; color:var(--ink-2); line-height:1.55; margin-bottom:22px; }

/* "Run tours or own a place?" — the two supplier doors, surfaced on a member's
   own profile because they are linked nowhere else obvious. */
.prof__partner { border:1px solid var(--line); border-left:3px solid var(--brand);
                 border-radius:var(--radius-sm); background:#fff; padding:16px 18px; margin-bottom:24px; }
.prof__partner h2 { font-size:1.05rem; letter-spacing:-.01em; margin:0 0 6px; }
.prof__partner p { font-size:.9rem; color:var(--ink-2); line-height:1.55; margin:0 0 12px; }
.prof__partner-cta { display:flex; flex-wrap:wrap; gap:10px; }
.prof__partner-note { font-size:.8rem; color:var(--ink-3); margin:12px 0 0 !important; }

/* Your businesses — operator accounts owned by this member, as switchable cards. */
.prof__biz { margin-bottom:24px; }
.prof__biz > h2 { font-size:1.2rem; letter-spacing:-.02em; margin:0 0 12px; }
.prof__biz-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:12px; }
.prof__biz-card { border:1px solid var(--line); border-left:3px solid var(--brand); border-radius:var(--radius-sm);
                  background:#fff; padding:14px 16px; display:flex; flex-direction:column; gap:8px; }
.prof__biz-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.prof__biz-top strong { font-size:.98rem; }
.prof__biz-type { font-size:.8rem; color:var(--ink-3); }
.prof__biz-card form { margin-top:2px; }
.prof__biz-add { margin:12px 0 0; font-size:.9rem; }
.prof__biz-empty { font-size:.9rem; color:var(--ink-2); line-height:1.55; margin:0 0 12px; }

.prof__h { font-size:1.2rem; letter-spacing:-.02em; margin:0 0 14px; }

.contribs { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.contrib-item { border:1px solid var(--line); border-radius:var(--radius-sm); padding:14px 16px; background:#fff; }
.contrib-item.is-pending  { border-style:dashed; background:var(--bg-2); }
.contrib-item.is-rejected { opacity:.6; }
.contrib-item__top { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:.82rem; }
.ci-kind { font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em;
           color:var(--ink-3); background:var(--bg-3); border-radius:4px; padding:2px 7px; }
.ci-where { font-weight:700; color:var(--ink); }
.ci-where:hover { color:var(--brand); }
.ci-when { margin-left:auto; color:var(--ink-3); }
.ci-state { font-size:.7rem; font-weight:700; border-radius:4px; padding:1px 7px; }
.ci-state--pending  { background:#fff3cd; color:#856404; }
.ci-state--rejected { background:#fdecea; color:#8c2b21; }
.ci-title { display:block; margin:8px 0 2px; font-size:.95rem; }
.ci-body { font-size:.88rem; color:var(--ink-2); line-height:1.55; margin:6px 0 0; }
.ci-shot { width:150px; height:110px; object-fit:cover; border-radius:var(--radius-sm); margin-top:10px; display:block; }
.ci-helpful { display:inline-block; font-size:.75rem; color:var(--ok); font-weight:700; margin-top:8px; }

.people { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.person { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line);
          border-radius:var(--radius-sm); padding:14px 16px; }
.person__av { flex:none; width:48px; height:48px; border-radius:50%; overflow:hidden; background:var(--brand);
              color:#fff; display:grid; place-items:center; font-weight:800; text-decoration:none; }
.person__av img { width:100%; height:100%; object-fit:cover; }
.person__body { flex:1; min-width:0; }
.person__body h2 { font-size:1rem; margin:0; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.person__tier { display:block; font-size:.78rem; color:var(--brand); font-weight:700; margin-top:2px; }
.person__bits { display:block; font-size:.78rem; color:var(--ink-3); margin-top:2px; }
.person__pts { flex:none; text-align:right; }
.person__pts strong { display:block; font-size:1.2rem; font-weight:800; }
.person__pts span { font-size:.68rem; color:var(--ink-3); text-transform:uppercase; letter-spacing:.04em; }

/* ── Contributions: tips, visitor photos, the write-back panel ──────────── */

.contrib-flash { background:#e6f4ec; border:1px solid #bfe2ce; color:#14603a;
                 border-radius:var(--radius-sm); padding:12px 16px; margin:18px 0 0; font-weight:600; font-size:.92rem; }

/* Tips sit above the reviews: a traveller standing outside needs "which door"
   before they need somebody's opinion of the coffee. */
.tips { list-style:none; padding:0; margin:0 0 8px; display:flex; flex-direction:column; gap:10px; }
.tip { border:1px solid var(--line); border-left:3px solid var(--brand); border-radius:var(--radius-sm);
       padding:12px 14px; background:#fff; }
.tip--warning { border-left-color:var(--warn); }
.tip--timing  { border-left-color:#0d6efd; }
.tip--cost    { border-left-color:var(--ok); }
.tip__kind { font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-3); }
.tip__body { margin:4px 0 8px; font-size:.95rem; line-height:1.5; color:var(--ink); }
.tip__foot { display:flex; justify-content:space-between; align-items:center; gap:12px;
             font-size:.78rem; color:var(--ink-3); }

.ugc-shots { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.ugc-shots figure { margin:0; }
.ugc-shots img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--radius-sm); display:block; }
.ugc-shots figcaption { font-size:.75rem; color:var(--ink-3); margin-top:4px; }

.rv__src { font-size:.72rem; color:var(--ink-3); background:var(--bg-2); border-radius:4px; padding:1px 6px; }
.rv__shots { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.rv__shots img { width:110px; height:82px; object-fit:cover; border-radius:var(--radius-sm); }
.rv__acts { display:flex; gap:12px; align-items:center; margin-top:10px; }

.helpful, .report-btn, .linkish {
  background:none; border:0; padding:0; font:inherit; font-size:.78rem; font-weight:700;
  color:var(--ink-3); cursor:pointer;
}
.helpful:hover, .report-btn:hover, .linkish:hover { color:var(--brand); }
.helpful span { font-variant-numeric:tabular-nums; }
.helpful.is-voted { color:var(--ok); cursor:default; }

.act__foot { border-top:1px solid var(--line-2); padding-top:12px; display:flex; flex-wrap:wrap;
             align-items:center; gap:8px; font-size:.8rem; color:var(--ink-3); }
.act__foot a { color:var(--brand); font-weight:700; }
.act__claim { width:100%; margin-top:6px; font-size:.8rem; }

.contrib { border-top:1px solid var(--line); margin-top:40px; padding-top:28px; }
.contrib__head h2 { font-size:1.3rem; letter-spacing:-.02em; margin:0 0 6px; }
.contrib__head p { font-size:.9rem; color:var(--ink-2); line-height:1.55; margin:0 0 18px; max-width:62ch; }
.contrib__head a { color:var(--brand); font-weight:600; }
.contrib__tabs { display:inline-flex; gap:4px; background:var(--bg-2); border-radius:var(--radius-sm);
                 padding:4px; margin-bottom:18px; flex-wrap:wrap; }
.ctab { background:none; border:0; font:inherit; font-size:.85rem; font-weight:700; color:var(--ink-3);
        padding:7px 14px; border-radius:6px; cursor:pointer; }
.ctab.is-on { background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.1); }
/* Contribute panes: fields come from .fld. */
.contrib__pane .fld { margin-bottom:14px; }
.contrib__pane .btn { display:inline-flex; width:auto; }

/* Star picker: rendered in reverse order so the CSS sibling selector can light
   up the chosen star and everything before it without any JavaScript. */
.stars { display:inline-flex; flex-direction:row-reverse; justify-content:flex-end; gap:2px; }
.stars input { position:absolute; opacity:0; width:0; height:0; }
.stars label { font-size:1.9rem; line-height:1; color:var(--line); cursor:pointer; transition:color .12s; }
.stars input:checked ~ label,
.stars label:hover, .stars label:hover ~ label { color:#f0a92c; }
.stars input:focus-visible + label { outline:2px solid var(--brand); outline-offset:2px; }

.rep-modal { position:fixed; inset:0; background:rgba(18,24,31,.45); display:flex;
             align-items:center; justify-content:center; padding:20px; z-index:70; }
.rep-modal[hidden] { display:none; }   /* display:flex would beat [hidden] */
.rep-modal__box { background:#fff; border-radius:var(--radius); padding:20px 22px; width:min(460px,100%);
                  box-shadow:0 20px 50px rgba(0,0,0,.25); }
.rep-modal__head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.rep-close { background:none; border:0; font-size:1.5rem; line-height:1; cursor:pointer; color:var(--ink-3); }
/* Report dialog: fields come from .fld. */
.rep-modal .fld { margin-bottom:14px; }
.rep-modal .fld textarea { min-height:96px; }

/* ── Stays: search bar, unit picker ─────────────────────────────────────── */

.stay-search {
  display: grid; grid-template-columns: 1fr 1fr 110px auto; gap: 12px; align-items: end;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.stay-search .fld { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.stay-search label { font-size: .8rem; font-weight: 700; color: var(--ink); }
.stay-search input {
  font: inherit; font-size: .93rem; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%; outline: none;
}
.stay-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }
.stay-search .btn { height: 42px; }

/* Two sticky cards in one column fight for the same offset — so ONE sticky
   wrapper (.aside__stick) carries the whole stack, and any .act inside it
   goes static. Pages whose aside has no wrapper keep the old .act sticky. */
.aside__stick {
  position: sticky; top: calc(var(--hdr-h) + 20px);
  display: flex; flex-direction: column; gap: 16px;
}
.aside__stick .act { position: static; }
.aside--stay { display: flex; flex-direction: column; gap: 16px; }

.stay-card .stay-dates { border-bottom: 1px solid var(--line-2); padding-bottom: 14px; margin-bottom: 4px; }
.stay-card .stay-dates .btn { margin-top: 4px; }

.stay-units { display: flex; flex-direction: column; gap: 10px; }
.unit { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px; }
.unit--out { opacity: .62; background: var(--bg-2); }
.unit__top { display: flex; flex-direction: column; gap: 2px; margin-bottom: 5px; }
.unit__top strong { font-size: .95rem; }
.unit__spec { font-size: .78rem; color: var(--ink-3); }
.unit__desc { font-size: .85rem; color: var(--ink-2); line-height: 1.5; margin: 0 0 9px; }
.unit__out { font-size: .82rem; color: var(--ink-3); line-height: 1.45; }

/* The whole priced row is the label, so the tap target is the row not the dot. */
.unit__pick { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 400; }
.unit__pick input { flex: none; width: 17px; height: 17px; accent-color: var(--brand); }
.unit__pick strong { display: block; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.unit__pick em { display: block; font-style: normal; font-size: .78rem; color: var(--ink-3); }
.unit:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }

/* ── Booking confirmation ───────────────────────────────────────────────── */

.done { text-align: center; }
.done__mark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff;
  display: grid; place-items: center; font-size: 1.7rem; margin: 0 auto 18px;
}
.done h1 { font-size: 1.8rem; letter-spacing: -.028em; margin: 0 0 10px; }
.done__lede { color: var(--ink-2); line-height: 1.6; margin: 0 0 24px; }
.done__ref {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 22px;
}
.done__ref span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 4px; }
.done__ref strong { font-size: 1.6rem; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.done__rows { text-align: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; margin: 0 0 20px; background: #fff; }
.done__rows > div { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: .93rem; }
.done__rows > div:last-child { border-bottom: 0; }
.done__rows dt { flex: none; width: 84px; color: var(--ink-3); font-weight: 600; margin: 0; }
.done__rows dd { margin: 0; color: var(--ink); min-width: 0; }
.done__rows a { color: var(--brand); font-weight: 600; }
.done__contact { font-size: .9rem; color: var(--ink-2); margin: 0 0 22px; }
.done__contact a { color: var(--brand); font-weight: 700; }
.done__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.done__cta .btn { min-width: 170px; }
.done__save { font-size: .8rem; color: var(--ink-3); margin: 20px 0 0; }

/* ── Empty state ────────────────────────────────────────────────────────── */

.empty { text-align: center; padding: 64px 20px; color: var(--ink-2); }
.empty__icon { font-size: 2.6rem; margin-bottom: 12px; opacity: .35; }
.empty h2 { font-size: 1.2rem; color: var(--ink); margin: 0 0 8px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.ftr { background: var(--ink); color: #c3ccd6; padding: 52px 0 26px; margin-top: 60px; }
.ftr__grid { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
.ftr__grid p { font-size: .9rem; line-height: 1.6; margin: 12px 0 0; max-width: 42ch; }
.ftr h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin: 0 0 12px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.ftr a:hover { color: #fff; }
.brand--ftr { color: #fff; }
.ftr__base { max-width: var(--maxw); margin: 34px auto 0; padding: 20px 20px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #8a95a1; }
.ftr__base a { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .dir { grid-template-columns: 1fr; }
  .dir__map { position: relative; top: 0; height: 380px; order: -1; }
  .pl { grid-template-columns: 1fr; gap: 30px; }
  .act, .aside__stick { position: static; }
}

@media (max-width: 1080px) {
  /* The bar gives up "More" before it gives up the primary links — losing
     the four that matter last, not first. */
  .hdr__more { display: none; }
}

@media (max-width: 860px) {
  .hdr__links { display: none; }
  .hdr__burger { display: block; }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .prof__stats { grid-template-columns: repeat(3, 1fr); }
  .badge-grid { grid-template-columns: 1fr; }
  .prof__ladder-goal { margin-left: 0; width: 100%; }
  .qa-metrics { flex-direction: row; width: auto; }
  .qa-item { flex-direction: column; gap: 10px; }
  .qa-who { margin-left: 0; width: 100%; }
  .stay-search { grid-template-columns: 1fr 1fr; }
  .stay-search .btn { grid-column: 1 / -1; }
  .incl { grid-template-columns: 1fr; }
  .done__rows > div { flex-direction: column; gap: 2px; }
  .done__rows dt { width: auto; }
  .hdr__bar { gap: 10px; }
  .search button { display: none; }
  .search { padding-right: 14px; }
  .hero { padding: 44px 0 52px; }
  .hero__search { flex-direction: column; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card__summary { -webkit-line-clamp: 2; font-size: .82rem; }
  .ftr__grid { grid-template-columns: 1fr; }
  .sec { padding: 38px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .card:hover { transform: none; }
}

/* Owner badge on a claimed listing. States it maintains the page — nothing
   about quality, which is what places.is_verified means. */
.act__claim--managed { display:flex; flex-direction:column; gap:3px; }
.owner-badge { font-size:.8rem; font-weight:700; color:var(--ok); }
.act__claim--managed small { font-size:.75rem; color:var(--ink-3); line-height:1.45; }
