/* UK Map Guide — styles
   Visual language borrowed from UK survey maps: a red sheet cover, contour lines,
   a legend of category symbols and postcodes set like grid references. */

@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #1C2533;
  --ink-soft: #3A4556;
  --muted: #5B6573;
  --paper: #FFFFFF;
  --panel: #F1F4F2;
  --line: #D5DBD8;
  --line-strong: #AEB8B4;
  --brand: #F21C0D;          /* UK Map Guide red: logo, top band, large areas */
  --brand-strong: #E61B0C;   /* same red, a touch deeper so white text and small text stay readable */
  --brand-dark: #BA160A;     /* hover */
  --brand-tint: #FDE9E7;
  --water: #2468A8;
  --water-tint: #E7F0F9;
  --wood: #2F6B3A;
  --wood-tint: #E6F2E8;
  --amber: #8A5300;
  --amber-tint: #FCF1DE;
  --red: #A8231C;
  --red-tint: #FBE9E7;
  --radius: 4px;
  --display: "Overpass", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--panel); padding: .1em .35em; border-radius: 3px; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 1000; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.section { padding: 2.5rem 0; }
.page-top { padding-top: 2rem; padding-bottom: 3rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.empty, .empty-inline { color: var(--muted); }
.empty { padding: 2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.empty h2 { color: var(--ink); }

/* Header ------------------------------------------------------------------------ */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 500; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.site-nav a { text-decoration: none; color: var(--ink-soft); padding: .5rem .7rem; border-radius: var(--radius); font-weight: 700; font-size: .95rem; }
.site-nav a:hover { background: var(--panel); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand-strong); box-shadow: inset 0 -3px 0 var(--brand-strong); border-radius: 0; }
.site-nav .btn { color: #fff; margin-left: .5rem; }
.site-nav .btn:hover { color: #fff; }
.nav-sep { width: 1px; height: 24px; background: var(--line); margin: 0 .4rem; }
.nav-toggle { display: none; margin-left: auto; font: inherit; font-weight: 700; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .45rem .8rem; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(28,37,51,.35); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem .5rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brand-strong); padding-left: 1rem; }
  .site-nav .btn { margin: .5rem 0 0; text-align: center; }
  .nav-sep { display: none; }
}

/* Buttons ------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.2; padding: .7rem 1.15rem; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--brand-strong); border-color: var(--brand-strong); }
.btn-secondary:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-quiet { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--line-strong); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand-strong); }
.btn-light:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-danger { background: var(--paper); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red-tint); color: var(--red); }
.btn-small { padding: .45rem .8rem; font-size: .9rem; }
.btn-large { padding: .9rem 1.6rem; font-size: 1.1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--water); text-decoration: underline; cursor: pointer; }
form.inline { display: inline; }

/* Flash and notices ------------------------------------------------------------------ */
.flash-stack { padding-top: 1rem; }
.flash, .notice { padding: .8rem 1rem; border-radius: var(--radius); border-left: 4px solid var(--water); background: var(--water-tint); margin: 0 0 1rem; }
.flash-success { border-color: var(--wood); background: var(--wood-tint); }
.flash-error, .notice-error { border-color: var(--red); background: var(--red-tint); }
.flash-warning, .notice-warning { border-color: #C47F00; background: var(--amber-tint); }

/* Cover (home hero) ---------------------------------------------------------------- */
.cover { position: relative; background: var(--brand); color: #fff; overflow: hidden; }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255,255,255,.14); pointer-events: none; }
.cover-inner { position: relative; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.cover h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.9rem); max-width: 15ch; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.sheet-number { display: inline-flex; align-items: baseline; gap: .5rem; border: 2px solid #fff; padding: .35rem .75rem; margin-bottom: 1.25rem; font-family: var(--display); font-weight: 600; }
.sheet-number strong { font-size: 1.5rem; font-weight: 800; }
.search-bar { display: grid; grid-template-columns: 2fr 1fr auto; gap: .5rem; max-width: 820px; background: rgba(255,255,255,.12); padding: .5rem; border-radius: var(--radius); }
.search-bar input { font: inherit; font-size: 1.05rem; padding: .85rem 1rem; border: 0; border-radius: 3px; min-width: 0; color: var(--ink); }
.search-bar .btn { padding-left: 1.6rem; padding-right: 1.6rem; }
.cover-note { margin: 1rem 0 0; color: rgba(255,255,255,.92); }
.cover-note a { color: #fff; font-weight: 700; }
@media (max-width: 640px) { .search-bar { grid-template-columns: 1fr; } }

/* Section heads -------------------------------------------------------------------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.section-foot { margin-top: 1rem; color: var(--muted); }

/* Category legend ------------------------------------------------------------------ */
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); border-top: 1px solid var(--line); }
.legend li { border-bottom: 1px solid var(--line); }
.legend a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: .75rem; padding: .8rem .5rem; text-decoration: none; color: var(--ink); }
.legend a:hover { background: var(--panel); }
.legend a:hover .legend-name { color: var(--brand-dark); }
.legend-symbol { width: 30px; height: 30px; display: grid; place-items: center; background: var(--cat); color: #fff; font-family: var(--display); font-weight: 800; border-radius: 3px; }
.legend-name { font-family: var(--display); font-weight: 700; }
.legend-count { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .95rem; }
.legend-large { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 2rem; }
.legend-large a { grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; }
.legend-blurb { grid-column: 2 / 4; color: var(--muted); font-size: .95rem; }

/* Category marker & tags ------------------------------------------------------------- */
.cat-marker { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.cat-dot { width: 18px; height: 18px; display: inline-grid; place-items: center; background: var(--cat); color: #fff; font-size: .7rem; font-family: var(--display); font-weight: 800; border-radius: 2px; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: .1rem .45rem; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--ink-soft); }
.tag-featured { border-color: var(--brand-strong); color: var(--brand-strong); background: var(--brand-tint); }
.gridref { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .02em; border: 1px solid var(--ink-soft); padding: 0 .35rem; border-radius: 2px; color: var(--ink); white-space: nowrap; }
.distance { color: var(--wood); font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* Results -------------------------------------------------------------------------- */
.results { display: grid; gap: 0; border-top: 1px solid var(--line); }
.results-two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); column-gap: 2rem; }
.result { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; padding: 1rem .25rem; border-bottom: 1px solid var(--line); position: relative; }
.result.is-featured { box-shadow: inset 4px 0 0 var(--brand-strong); padding-left: 1rem; background: linear-gradient(90deg, var(--brand-tint), transparent 60%); }
.result.is-active { background: var(--water-tint); }
.result-thumb { width: 88px; height: 88px; border-radius: 3px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-blank { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: var(--line-strong); background: var(--panel); }
.result-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .2rem; }
.result-title { font-size: 1.15rem; margin: 0 0 .2rem; }
.result-title a { color: var(--ink); text-decoration: none; }
.result-title a:hover { color: var(--brand-dark); text-decoration: underline; }
.result-address { margin: 0 0 .3rem; color: var(--ink-soft); font-size: .95rem; }
.result-desc { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 520px) { .result { grid-template-columns: 64px 1fr; } .result-thumb { width: 64px; height: 64px; } }

/* Search page ------------------------------------------------------------------------ */
.search-head { background: var(--panel); border-bottom: 1px solid var(--line); padding: 1.75rem 0 1.25rem; }
.filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .75rem; align-items: end; }
.filter-bar .field { margin: 0; }
.filter-actions { display: flex; gap: .5rem; }
@media (max-width: 860px) { .filter-bar { grid-template-columns: 1fr 1fr; } .filter-bar .field:first-child { grid-column: 1 / -1; } .filter-actions { grid-column: 1 / -1; } }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: .5rem; }
.count { margin: 0; font-weight: 700; }
.view-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.view-switch a { padding: .45rem .85rem; text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: .9rem; border-left: 1px solid var(--line); }
.view-switch a:first-child { border-left: 0; }
.view-switch a[aria-current] { background: var(--ink); color: #fff; }
.results-layout { padding-bottom: 3rem; }
.results-layout.view-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.results-layout.view-split .map-col { position: sticky; top: 80px; }
.map { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.map-results { height: 70vh; min-height: 420px; }
.view-map .map-results { height: 75vh; }
.map-note { color: var(--muted); font-size: .9rem; margin: .4rem 0 0; }
@media (max-width: 860px) { .results-layout.view-split { grid-template-columns: 1fr; } .results-layout.view-split .map-col { position: static; order: -1; } .view-split .map-results { height: 45vh; min-height: 300px; } }

.pagination { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.5rem 0 0; align-items: center; }
.pagination a, .pagination span { min-width: 2.4rem; padding: .45rem .7rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 700; }
.pagination a:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
.pagination [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .gap { border: 0; min-width: auto; }

/* Premium band ---------------------------------------------------------------------- */
.premium-band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.premium-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.premium-item { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand-strong); }
.premium-item img, .premium-item .thumb-blank { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.premium-name { display: block; font-family: var(--display); font-weight: 700; padding: .7rem .8rem 0; }
.premium-meta { display: block; color: var(--muted); font-size: .9rem; padding: 0 .8rem .8rem; }
.premium-item:hover .premium-name { color: var(--brand-dark); }

/* Towns ------------------------------------------------------------------------------ */
.town-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.town-list a { display: inline-block; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.town-list a:hover { border-color: var(--brand-strong); color: var(--brand-dark); }
.town-list span { color: var(--muted); font-weight: 400; margin-left: .2rem; }

/* Listing CTA ---------------------------------------------------------------------- */
.list-cta { background: var(--ink); color: #fff; }
.list-cta-inner { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 2rem; align-items: center; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.list-cta h2 { color: #fff; }
.list-cta p { color: rgba(255,255,255,.85); margin: 0; }
.steps { margin: 0; padding-left: 1.4rem; display: grid; gap: .4rem; color: rgba(255,255,255,.9); }
.steps strong { color: #fff; }
@media (max-width: 900px) { .list-cta-inner { grid-template-columns: 1fr; } }

/* Blog ------------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.75rem; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; margin-bottom: .75rem; background: var(--panel); }
.post-card h2, .post-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--brand-dark); text-decoration: underline; }
.post-card p { color: var(--muted); font-size: .95rem; }
.post-date { color: var(--muted); font-size: .9rem; margin-bottom: .25rem; }
.topic-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2rem; }
.topic-list a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-size: .9rem; }
.topic-list a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.article { max-width: 760px; }
.article-image { width: 100%; border-radius: 3px; margin: 1rem 0 1.5rem; }
.prose { font-size: 1.1rem; line-height: 1.7; }
.prose p, .prose ul, .prose ol { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 4px solid var(--brand-strong); color: var(--ink-soft); }

/* Breadcrumb ---------------------------------------------------------------------- */
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-soft); }

/* Business detail ----------------------------------------------------------------------- */
.biz-head { margin-bottom: 1.5rem; }
.biz-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem; }
.biz-address { color: var(--ink-soft); font-size: 1.05rem; }
.biz-rating { display: flex; align-items: center; gap: .5rem; }
.biz-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.biz-actions [aria-pressed="true"] { background: var(--wood-tint); border-color: var(--wood); color: var(--wood); }
.biz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
.biz-side { position: sticky; top: 84px; display: grid; gap: 1rem; }
@media (max-width: 900px) { .biz-layout { grid-template-columns: 1fr; } .biz-side { position: static; order: -1; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--paper); margin-bottom: 1rem; }
.panel-title { font-size: 1.05rem; margin-bottom: .75rem; }
.contact-list { margin: 0 0 1rem; display: grid; grid-template-columns: auto 1fr; gap: .45rem .9rem; }
.contact-list dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.map-detail { height: 240px; margin-bottom: .5rem; }
.small-link { font-size: .9rem; }
.views { margin: .75rem 0 0; color: var(--muted); font-size: .9rem; }
.gallery { margin-bottom: 1.5rem; }
.gallery button { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; }
.gallery-main img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 3px; background: var(--panel); }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.gallery-thumbs img { width: 88px; height: 66px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.lightbox { border: 0; padding: 0; max-width: min(96vw, 1100px); background: #0F141C; color: #fff; border-radius: var(--radius); }
.lightbox::backdrop { background: rgba(15, 20, 28, .85); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox-bar { display: flex; gap: .5rem; align-items: center; justify-content: center; padding: .6rem; }
.lightbox-bar button { font: inherit; font-weight: 700; background: #fff; color: var(--ink); border: 0; border-radius: 3px; padding: .4rem .8rem; cursor: pointer; }
.offer { background: var(--wood-tint); border-left: 4px solid var(--wood); padding: .8rem 1rem; margin-bottom: 1.5rem; border-radius: var(--radius); }
.offer-label { font-family: var(--display); font-weight: 800; color: var(--wood); margin-right: .4rem; }
.biz-description p { max-width: 70ch; }
.reviews { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.review { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.review header { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.review h3 { margin: 0; font-size: 1.05rem; }
.review footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.stars { color: var(--line-strong); letter-spacing: 1px; font-size: 1.05rem; }
.star.on { color: #C47F00; }
.star.half { color: #E0B35A; }
.write-review, .claim { margin-top: 1.5rem; padding: 1.25rem; background: var(--panel); border-radius: var(--radius); }
.claim { margin-top: 2rem; }
.rating-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.rating-input legend { font-weight: 700; margin-bottom: .25rem; width: 100%; float: left; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 2rem; line-height: 1; color: var(--line-strong); cursor: pointer; padding: 0 .1rem; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #C47F00; }
.rating-input input:focus-visible + label { outline: 3px solid var(--water); }

/* Forms -------------------------------------------------------------------------- */
.stack > * + * { margin-top: 1rem; }
.field { margin-bottom: 1rem; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: .3rem; }
.optional { font-weight: 400; color: var(--muted); font-size: .9em; }
.hint { color: var(--muted); font-size: .92rem; margin: 0 0 .4rem; }
input[type="text"], input:not([type]), input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"], input[type="date"], input[type="number"], select, textarea {
  font: inherit; width: 100%; padding: .65rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 6rem; }
input:focus, select:focus, textarea:focus { border-color: var(--water); outline: 2px solid var(--water); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--red) !important; background: #FFF8F7; }
.field-error { color: var(--red); font-weight: 700; font-size: .92rem; margin: .3rem 0 0; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.field-row .field { flex: 1 1 200px; }
.field-row .field-short { flex: 0 1 180px; }
.form-section { border: 0; border-top: 1px solid var(--line); padding: 1.5rem 0 .5rem; margin: 0; }
.form-section legend, .form-section > h2 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; padding: 0; margin-bottom: .75rem; }
.form-section legend { float: left; width: 100%; }
.form-section legend + * { clear: both; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--brand-strong); }
.check-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: .6rem; }
.check-card:has(input:checked) { border-color: var(--brand-strong); background: var(--brand-tint); }
.map-picker { height: 300px; margin-bottom: .75rem; cursor: crosshair; }
.photo-keep { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.photo-tile { position: relative; cursor: pointer; }
.photo-tile img { width: 110px; height: 82px; object-fit: cover; border-radius: 3px; border: 2px solid var(--wood); }
.photo-tile input { position: absolute; top: .35rem; left: .35rem; width: 1.15rem; height: 1.15rem; accent-color: var(--wood); }
.photo-tile:has(input:not(:checked)) img { opacity: .35; border-color: var(--line); }
.inline-field { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-field input { flex: 1 1 180px; width: auto; }
.danger-zone { margin-top: 2.5rem; padding: 1.25rem; border: 1px solid var(--red); border-radius: var(--radius); background: var(--red-tint); }
.danger-zone h2 { font-size: 1.15rem; color: var(--red); }
.auth-box { max-width: 460px; }
.cf-turnstile { min-height: 65px; }
.char-count { display: block; text-align: right; font-size: .85rem; color: var(--muted); margin-top: .2rem; }

/* Account ---------------------------------------------------------------------------- */
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.account-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.group-title { font-size: 1.05rem; margin: 1.5rem 0 .5rem; padding-left: .6rem; border-left: 4px solid var(--line-strong); }
.group-title span { color: var(--muted); font-weight: 400; }
.group-title.status-active { border-color: var(--wood); }
.group-title.status-pending { border-color: #C47F00; }
.group-title.status-rejected { border-color: var(--red); }
.owner-list { border-top: 1px solid var(--line); }
.owner-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.owner-item h4 { margin: 0 0 .2rem; font-size: 1.1rem; }
.owner-item h4 a { color: var(--ink); }
.owner-stats { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-soft); margin: .3rem 0; }
.owner-actions { display: grid; gap: .6rem; justify-items: end; align-content: start; }
.upgrade-form { display: grid; gap: .4rem; justify-items: start; background: var(--panel); padding: .75rem .9rem; border-radius: var(--radius); font-size: .92rem; }
.upgrade-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .3rem; }
@media (max-width: 720px) { .owner-item { grid-template-columns: 1fr; } .owner-actions { justify-items: start; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain-list li { padding: .3rem 0; }
.plain-list.columns { columns: 2 180px; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }

/* Tables & status ------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--panel); font-family: var(--display); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table.small th, .table.small td { padding: .4rem .6rem; font-size: .88rem; }
.row-unread td { font-weight: 700; }
.row-warn td { background: var(--amber-tint); }
.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--panel); color: var(--ink-soft); white-space: nowrap; }
.status-active, .status-paid, .status-approved { background: var(--wood-tint); color: var(--wood); }
.status-pending, .status-unclaimed { background: var(--amber-tint); color: var(--amber); }
.status-rejected, .status-failed, .status-disabled, .status-refunded { background: var(--red-tint); color: var(--red); }
.status-cancelled, .status-expired { background: var(--panel); color: var(--muted); }
.score { font-weight: 700; color: var(--wood); }
.score-mid { color: var(--amber); }
.score-high { color: var(--red); }

/* Assistant ---------------------------------------------------------------------- */
.chat { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-height: 260px; max-height: 60vh; overflow-y: auto; background: var(--panel); display: grid; gap: .75rem; align-content: start; }
.msg { max-width: 90%; padding: .7rem .95rem; border-radius: 10px; }
.msg p { margin: 0; }
.msg-bot { background: var(--paper); border: 1px solid var(--line); justify-self: start; border-bottom-left-radius: 2px; }
.msg-user { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 2px; }
.msg ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .5rem; }
.msg li a { font-weight: 700; }
.msg li span { display: block; color: var(--muted); font-size: .88rem; }
.msg .more { display: inline-block; margin-top: .6rem; font-weight: 700; }
.chat-form { display: flex; gap: .5rem; margin-top: .75rem; }
.chat-form input { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0; }
.chips button { font: inherit; font-size: .9rem; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; padding: .3rem .8rem; cursor: pointer; color: var(--ink-soft); }
.chips button:hover { border-color: var(--brand-strong); color: var(--brand-dark); }
.typing { color: var(--muted); font-style: italic; }

/* Error page ---------------------------------------------------------------------- */
.error-code { font-family: var(--display); font-weight: 800; font-size: 4rem; color: var(--brand-strong); margin: 0; line-height: 1; }

/* Footer ---------------------------------------------------------------------------- */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.6fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
.site-footer h2 { font-size: .95rem; margin-bottom: .6rem; }
.site-footer nav a { display: block; color: var(--ink-soft); text-decoration: none; padding: .2rem 0; }
.site-footer nav a:hover { color: var(--brand-dark); text-decoration: underline; }
.footer-about p { color: var(--muted); font-size: .95rem; margin-top: .5rem; }
.newsletter p { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.newsletter .btn-light { border-color: var(--brand-strong); }
.footer-base { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 1.5rem; }
.footer-base p { margin: 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about, .newsletter { grid-column: 1 / -1; } }

/* Leaflet tweaks --------------------------------------------------------------------- */
.leaflet-container { font-family: var(--body); }
.pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--water); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pin.pin-featured { background: var(--brand-strong); }
.pin.pin-active { background: var(--ink); width: 28px; height: 28px; }
.leaflet-popup-content a { font-weight: 700; }

/* Admin ------------------------------------------------------------------------------ */
body.admin { background: var(--panel); font-size: 1rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1.25rem; background: var(--ink); color: #fff; }
.admin-header .brand { color: #fff; }
.admin-header-links { display: flex; gap: 1rem; align-items: center; }
.admin-header-links a, .admin-header .linklike { color: #fff; }
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 52px); }
.admin-nav { background: var(--paper); border-right: 1px solid var(--line); padding: 1rem .5rem; display: flex; flex-direction: column; gap: .1rem; }
.admin-nav a { padding: .55rem .8rem; border-radius: var(--radius); text-decoration: none; color: var(--ink-soft); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.admin-nav a:hover { background: var(--panel); }
.admin-nav a[aria-current] { background: var(--brand-tint); color: var(--brand-dark); }
.badge { background: var(--brand-strong); color: #fff; border-radius: 999px; font-size: .75rem; padding: .05rem .5rem; }
.admin-main { padding: 1.5rem 2rem 3rem; min-width: 0; }
.admin-main h1 { font-size: 1.8rem; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-nav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); } .admin-main { padding: 1rem; } }
.admin-title { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-title h1 { margin: 0; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .admin-cols { grid-template-columns: 1fr; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.stat { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--ink-soft); }
.stat strong { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--ink); }
.stat-alert { border-left: 4px solid var(--brand-strong); }
.stat:hover { border-color: var(--line-strong); }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs a { padding: .5rem .8rem; text-decoration: none; color: var(--ink-soft); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--brand-dark); border-color: var(--brand-strong); }
.admin-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-filter input { flex: 1 1 260px; width: auto; }
.admin-filter select { width: auto; }
.bulk-bar { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; }
.bulk-bar select { width: auto; }
.decision-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.details { display: grid; grid-template-columns: 180px 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.details dt { font-weight: 700; color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.message-body { background: var(--panel); padding: 1rem; border-radius: var(--radius); margin: 1rem 0; white-space: normal; }
.admin-thumb { max-width: 240px; margin-bottom: .5rem; border-radius: 3px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.check-list li::before { display: inline-block; width: 1.4rem; font-weight: 800; }
.check-list li.on::before { content: "✓"; color: var(--wood); }
.check-list li.off::before { content: "–"; color: var(--muted); }
.check-list li.off { color: var(--muted); }
blockquote { margin: .75rem 0; padding-left: 1rem; border-left: 3px solid var(--line-strong); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .biz-actions, .write-review, .claim, .map { display: none !important; } }

/* Data migration ------------------------------------------------------------------- */
.migration { background: var(--panel); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.5rem; }
.migration-progress { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.migration-progress progress { flex: 1 1 260px; height: 14px; accent-color: var(--brand-strong); }
.migration-progress p { margin: 0; }
.mig-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: .75rem 0; }
.mig-stats div { min-width: 70px; }
.mig-stats dt { font-size: .82rem; color: var(--muted); }
.mig-stats dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.mig-status { font-weight: 700; margin: .25rem 0 .5rem; }
.mig-log { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; font-size: .88rem; }
.mig-log li { padding: .3rem .5rem; border-left: 3px solid var(--line-strong); background: var(--paper); margin-bottom: 2px; overflow-wrap: anywhere; }
.mig-log li.ok { border-color: var(--wood); }
.mig-log li.bad { border-color: var(--red); }
.mig-log li.wait { border-color: #C47F00; }
.mig-img { display: flex; gap: .5rem; align-items: center; }
.mig-img img { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.mig-url { overflow-wrap: anywhere; }

/* Business marker picker ----------------------------------------------------------- */
.pin-finder { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.pin-finder input { flex: 1 1 180px; width: auto; max-width: 260px; }
.pin-status { font-weight: 700; font-size: .95rem; margin: .4rem 0 0; color: var(--wood); }
.pin-status.is-bad { color: var(--red); }
.has-error .map-picker { border: 2px solid var(--red); }
input.from-marker { background: var(--panel); color: var(--ink-soft); border-style: dashed; cursor: not-allowed; }
.cleanup-table { max-width: 560px; } .cleanup-table td:last-child { text-align: right; font-weight: 800; font-family: var(--display); font-size: 1.1rem; }

/* ==========================================================================
   Map explorer front end
   ========================================================================== */

/* Search strip ------------------------------------------------------------------ */
.finder { position: relative; background: var(--brand); color: #fff; overflow: hidden; }
.finder .contours { color: rgba(255,255,255,.13); }
.finder-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem 2.5rem; align-items: end; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.finder h1 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.08; margin: 0; letter-spacing: -0.02em; max-width: 16ch; }
.finder .sheet-number { margin-bottom: .8rem; font-size: .95rem; padding: .2rem .6rem; }
.finder .sheet-number strong { font-size: 1.2rem; }
.finder-intro { color: rgba(255,255,255,.92); margin: .6rem 0 0; max-width: 60ch; font-size: 1rem; }
.finder-kicker { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-family: var(--display); font-weight: 700; font-size: .95rem; color: rgba(255,255,255,.9); }
.finder-kicker .legend-symbol { width: 26px; height: 26px; outline: 2px solid #fff; }
.finder-search { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: .5rem; background: rgba(255,255,255,.12); padding: .5rem; border-radius: var(--radius); }
.finder-field { position: relative; min-width: 0; }
.finder-field label { position: absolute; top: .35rem; left: .8rem; font-size: .72rem; font-weight: 700; color: var(--muted); pointer-events: none; }
.finder-field input { width: 100%; border: 0; border-radius: 3px; padding: 1.25rem .8rem .45rem; font-size: 1rem; color: var(--ink); background: #fff; }
.finder-actions { display: flex; gap: .5rem; }
.finder-actions .btn { white-space: nowrap; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline-light svg, .finder-actions svg { width: 18px; height: 18px; fill: currentColor; }
.finder-compact .finder-inner { padding-top: 1.25rem; padding-bottom: 1.25rem; }
@media (max-width: 1000px) {
  .finder-inner { grid-template-columns: 1fr; align-items: start; }
  .finder h1 { max-width: none; }
}
@media (max-width: 640px) {
  .finder-search { grid-template-columns: 1fr 1fr; }
  .finder-actions { grid-column: 1 / -1; }
  .finder-intro { font-size: .92rem; }
  .finder-actions .btn { flex: 1; }
  .finder-inner { padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .finder .sheet-number { display: none; }
}

/* Chip bar ---------------------------------------------------------------------- */
.chip-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.chip-scroll { display: flex; gap: .4rem; align-items: center; overflow-x: auto; padding-top: .6rem; padding-bottom: .6rem; scrollbar-width: thin; }
.chip-label { font-size: .85rem; font-weight: 700; color: var(--muted); margin-right: .25rem; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; padding: .32rem .7rem .32rem .45rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; background: var(--paper); }
.chip:not(:has(.chip-dot)) { padding-left: .75rem; }
.chip:hover { border-color: var(--line-strong); background: var(--panel); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-dot { width: 18px; height: 18px; display: inline-grid; place-items: center; background: var(--cat); color: #fff; font: 800 .68rem/1 var(--display); border-radius: 3px; }
.chip-count { font-weight: 400; color: var(--muted); font-size: .85rem; }
.chip.is-active .chip-count { color: rgba(255,255,255,.75); }

/* Results with List / Map switch ----------------------------------------------- */
.results-bar { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 64px; z-index: 400; }
.results-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.results-summary h2 { font-size: 1.2rem; margin: 0; }
.results-summary p { color: var(--muted); font-size: .9rem; margin: .1rem 0 0; }
.view-switch { display: inline-flex; flex: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--panel); }
.view-switch a { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem 1rem; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-family: var(--display); font-weight: 700; font-size: .95rem; border: 0; }
.view-switch a svg { width: 18px; height: 18px; fill: currentColor; }
.view-switch a[aria-pressed="true"] { background: var(--ink); color: #fff; }
.view-switch a:hover:not([aria-pressed="true"]) { color: var(--ink); background: var(--paper); }
.results-list { padding-top: .5rem; padding-bottom: 3rem; }
.results-foot { margin-top: 1.5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.explorer-empty { padding: 2rem 0; color: var(--ink-soft); }
.results-map { position: relative; height: calc(100svh - 64px - 64px); min-height: 460px; border-bottom: 1px solid var(--line); background: var(--panel); }
.results-map .map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.map-area-btn { position: absolute; top: .8rem; left: 50%; transform: translateX(-50%); z-index: 500; box-shadow: 0 4px 14px rgba(28,37,51,.3); }
.map-count { position: absolute; left: .75rem; bottom: .75rem; z-index: 450; margin: 0; max-width: min(440px, calc(100% - 1.5rem)); background: rgba(255,255,255,.95); padding: .35rem .65rem; border-radius: var(--radius); font-size: .82rem; color: var(--ink-soft); box-shadow: 0 1px 4px rgba(28,37,51,.2); }

.cards { list-style: none; margin: 0; padding: 0; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); column-gap: 2rem; border-top: 1px solid var(--line); }
.card { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: .9rem; padding: 1rem .35rem; border-bottom: 1px solid var(--line); }
.card.is-featured { box-shadow: inset 4px 0 0 var(--brand-strong); padding-left: .9rem; background: linear-gradient(90deg, var(--brand-tint), transparent 70%); }
.card-thumb { width: 88px; height: 88px; border-radius: 3px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-meta { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-bottom: .15rem; }
.card-title { font-size: 1.1rem; margin: 0 0 .15rem; line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand-dark); text-decoration: underline; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-place { margin: 0 0 .2rem; color: var(--ink-soft); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .25rem .45rem; align-items: center; }
.card-desc { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-pin { position: relative; z-index: 2; align-self: start; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink-soft); cursor: pointer; }
.card-pin svg { width: 18px; height: 18px; fill: currentColor; }
.card-pin:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
.home-listings .cards-grid { margin-bottom: .5rem; }
@media (max-width: 640px) {
  .results-bar-inner { flex-wrap: wrap; }
  .results-summary { flex: 1 1 60%; }
  .view-switch a { padding: .4rem .8rem; }
  .card { grid-template-columns: 64px minmax(0, 1fr) auto; gap: .75rem; }
  .card-thumb { width: 64px; height: 64px; }
  .results-map { height: calc(100svh - 64px - 96px); }
  .map-count { display: none; }
}

/* Map markers --------------------------------------------------------------------- */
.mk { display: grid; place-items: center; width: 100%; height: 100%; background: var(--c); color: #fff; font: 800 12px/1 var(--display); border: 2px solid #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.45); transition: transform .12s ease; }
.mk-f { box-shadow: 0 0 0 2px var(--brand-strong), 0 2px 6px rgba(0,0,0,.4); font-size: 13px; }
.mk-on { background: var(--ink); transform: scale(1.25); box-shadow: 0 0 0 3px var(--c), 0 3px 8px rgba(0,0,0,.45); }
.cluster span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--ink); color: #fff; font: 800 13px/1 var(--display); border: 3px solid rgba(255,255,255,.9); box-shadow: 0 0 0 2px rgba(28,37,51,.25), 0 2px 6px rgba(0,0,0,.3); }
.pop { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .65rem; align-items: start; font-family: var(--body); }
.pop img, .pop-blank { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; background: var(--panel); display: grid; place-items: center; font: 800 1.4rem var(--display); color: var(--line-strong); }
.pop-name { display: block; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink) !important; text-decoration: none; line-height: 1.2; margin-bottom: .15rem; }
.pop-meta { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .25rem; }
.pop-link { display: block; margin-top: .35rem; font-weight: 700; }
.leaflet-popup-content { margin: .75rem .85rem; }
.leaflet-popup-content-wrapper { border-radius: var(--radius); }

/* How it works ------------------------------------------------------------------------ */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.how-col h2 { margin-bottom: 1rem; }
.how-owner { background: var(--panel); border-left: 4px solid var(--brand-strong); padding: 1.4rem 1.5rem; border-radius: var(--radius); }
.steps-plain { margin: 0 0 1.2rem; padding-left: 1.3rem; display: grid; gap: .7rem; }
.steps-plain li::marker { font-family: var(--display); font-weight: 800; color: var(--brand-strong); }
@media (max-width: 800px) { .how { grid-template-columns: 1fr; gap: 1.5rem; } }
.related h2 { font-size: 1.3rem; }

[hidden] { display: none !important; }
.chip-bar { position: relative; }
.chip-bar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); pointer-events: none; }
.chip-scroll { padding-right: 2.5rem; }

.premium-item .thumb-blank { height: auto; aspect-ratio: 4 / 3; font-size: 2.4rem; }
.card-thumb, .result-thumb, .premium-item { text-decoration: none; }
[data-view="map"] .list-note { display: none; }
.tag-premium { border-color: var(--brand-strong); background: var(--brand-strong); color: #fff; }
.card.is-premium { background: linear-gradient(90deg, #FBD9D5, transparent 75%); }
.upgrade-form legend { font-family: var(--display); font-weight: 700; font-size: 1rem; margin-bottom: .1rem; }
.upgrade-form fieldset + fieldset { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.upgrade-what { font-size: .85rem; color: var(--muted); margin: 0 0 .3rem; max-width: 34ch; }
.plan-option { font-size: .92rem; }
.save { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--wood); background: var(--wood-tint); border-radius: 3px; padding: 0 .35rem; margin-left: .2rem; }
.upgrade-form .hint { font-size: .8rem; margin: .2rem 0 0; max-width: 34ch; }
.report { font-size: .92rem; }
.report summary { cursor: pointer; color: var(--muted); font-weight: 700; padding: .4rem 0; }
.report summary:hover { color: var(--red); }
.report[open] { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem 1rem; background: var(--paper); }
.report-reasons { border: 0; padding: 0; margin: .5rem 0 0; display: grid; gap: .25rem; }
.report-reasons legend { font-weight: 700; margin-bottom: .3rem; }

/* Statistics ---------------------------------------------------------------------- */
.owner-kpis { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: .5rem 0 .1rem; }
.owner-kpis dt { font-size: .78rem; color: var(--muted); }
.owner-kpis dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.chart-wrap { overflow-x: auto; }
.chart { width: 100%; min-width: 520px; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 11px var(--body); }
.chart .bar-views { fill: #F6B8B2; }
.chart .bar-visitors { fill: var(--brand-strong); }
.chart-key { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; margin: .5rem 0 0; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.key-visitors { background: var(--brand-strong); }
.key-views { background: #F6B8B2; margin-left: .8rem; }
.bar-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.bar-list li { display: grid; grid-template-columns: 130px 1fr 52px; gap: .6rem; align-items: center; font-size: .9rem; }
.bar-list li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bar-track { height: 10px; background: var(--panel); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--brand-strong); }
.bar-fill-alt { background: var(--water); }

/* Cookie consent (only when Google Analytics is switched on) ------------------------------ */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 900; max-width: 560px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(28,37,51,.25); padding: 1rem 1.1rem; }
.consent p { margin: 0 0 .75rem; font-size: .95rem; }
.consent-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-link { display: block; padding: .2rem 0; color: var(--ink-soft); text-decoration: none; font-size: inherit; text-align: left; }
.footer-link:hover { color: var(--brand-dark); text-decoration: underline; }
