/* Halal Food Guy Map — brand tokens taken from the HFG map campaign artwork */
:root {
  --cream: #F4F6F7;      /* page: neutral off-white with a faint navy-cool bias */
  --paper: #FFFFFF;
  --ink: #0F2638;
  --ink-2: #2E3F4F;
  --muted: #5B6877;
  --line: #E1E5E8;
  --chip: #E9EDF0;
  --lime: #D8DE00;
  --lime-soft: #F1F4CF;
  --lime-ink: #7C8000;       /* lime dark enough to read as text on cream */
  --good: #2F9E5B;
  --warn: #C9861A;
  --shadow: 0 10px 30px -12px rgba(15, 38, 56, .35);
  --solid: #0F2638;          /* navy fills: score circles, active tabs, buttons */
  --on-solid: #FFFFFF;
  --bar: #0F2638;
  --mark-from: 58%;
  --mark-to: 92%;
  --on-lime: #0F2638;
  --pin-edge: none;
  --map-bg: #EDF0F1;
  --warn-bg: #FBE9D0;
  --warn-ink: #8A4B00;
  --handle: #C7CED3;
  --price-dim: #BFC7CD;
  --pro-pin: #8A97A2;
  --pro-edge: #FFFFFF;
  --attr-bg: rgba(255, 255, 255, .8);
  --radius: 18px;
  --display: "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --top: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 20px 10px;
  min-height: var(--top);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 1000;
}
.brand .logo-light { display: block; } .brand img { height: 24px; width: auto; }
.count-chip {
  background: var(--chip); border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap;
}
.tabs { margin-left: auto; display: flex; gap: 4px; background: var(--chip); border-radius: 999px; padding: 4px; }
.tab {
  border: 0; background: transparent; border-radius: 999px; padding: 7px 16px;
  font-weight: 800; font-size: 14px; color: var(--ink-2);
}
.tab.is-active { background: var(--solid); color: var(--on-solid); }

/* ---------- Layout ---------- */
.app { position: relative; min-height: 0; display: grid; grid-template-columns: 420px 1fr; }
.panel {
  background: var(--cream); border-right: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 20px 40px; display: flex; flex-direction: column; gap: 14px;
  min-height: 0;
}
.map-wrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: var(--map-bg); }
.table-view { display: none; }
.app[data-view="table"] { grid-template-columns: 1fr; }
.app[data-view="table"] .panel,
.app[data-view="table"] .map-wrap { display: none; }
.app[data-view="table"] .table-view { display: flex; }

/* ---------- Headline ---------- */
.title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 30px; line-height: .98; letter-spacing: -.01em; margin: 0;
  text-wrap: balance;
}
.title em { font-style: normal; color: var(--ink); background: linear-gradient(transparent var(--mark-from), var(--lime) var(--mark-from) var(--mark-to), transparent var(--mark-to)); padding-inline: 2px; }
.script {
  font-family: var(--script); font-size: 26px; line-height: 1; margin: 4px 0 0;
  display: flex; align-items: center; gap: 10px;
}
.script::after { content: ""; width: 90px; height: 5px; border-radius: 5px; background: var(--lime); color: var(--on-lime); transform: rotate(-2deg); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

/* ---------- Search + filters ---------- */
.search-row { display: flex; gap: 8px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px;
}
.search:focus-within { border-color: var(--ink); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; padding: 11px 0; width: 100%; min-width: 0; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px;
  background: var(--solid); color: var(--on-solid); padding: 0 16px; font-weight: 800; font-size: 14px;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn b { background: var(--lime); color: var(--on-lime); border-radius: 999px; min-width: 20px; height: 20px; font-size: 12px; display: grid; place-items: center; padding-inline: 5px; }

.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; }
.f-group h3 {
  margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; align-items: baseline;
}
.f-group h3 output { letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--ink); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-scroll { max-height: 118px; overflow-y: auto; }
.chip {
  border: 1.5px solid transparent; background: var(--chip); color: var(--ink-2);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; line-height: 1.3;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); }
.chip[aria-pressed="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); color: var(--on-lime); margin-right: 6px; vertical-align: 1px; }
.chip small { opacity: .6; font-weight: 600; margin-left: 3px; }
input[type="range"] { width: 100%; accent-color: var(--ink); }
select {
  appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230F2638' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 32px 7px 14px; font-weight: 700; font-size: 14px; width: 100%;
}
.f-actions { display: flex; justify-content: space-between; align-items: center; }
.link-btn { border: 0; background: none; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.pill-btn { border: 0; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-weight: 900; padding: 10px 18px; }

.sort-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.result-count { margin: 0; font-weight: 800; font-size: 14px; }
.result-count span { color: var(--muted); font-weight: 600; }
.sort { display: flex; gap: 6px; align-items: center; }
.sort select { width: auto; }
.near-btn {
  display: inline-flex; gap: 6px; align-items: center; border: 1.5px solid var(--ink); background: transparent;
  border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; white-space: nowrap;
}
.near-btn svg { width: 16px; height: 16px; }
.near-btn.is-on { background: var(--solid); color: var(--on-solid); }
.near-btn.is-on svg { color: var(--lime); }

/* ---------- Result list ---------- */
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  background: var(--paper); border: 1.5px solid transparent; border-radius: 16px; padding: 10px 14px 10px 10px;
  cursor: pointer; text-align: left; width: 100%;
}
.result:hover { border-color: var(--line); }
.result.is-active { background: var(--lime-soft); border-color: var(--lime); }
.result h4 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.2; }
.result p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.result .dist { font-weight: 800; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.score-badge {
  width: 44px; height: 44px; border-radius: 50%; background: var(--solid); color: var(--lime);
  display: grid; place-items: center; font-weight: 900; font-size: 15px; font-variant-numeric: tabular-nums;
}
.score-badge { position: relative; }
/* Instant score: lime disc with a lightning bolt */
.score-badge.is-instant, .big-score.is-instant { background: var(--lime); color: var(--on-lime); }
.bolt { fill: currentColor; stroke: none; }
.score-badge .bolt {
  position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; padding: 3px;
  border-radius: 50%; background: var(--solid); color: var(--lime); box-shadow: 0 0 0 2px var(--paper);
}
.score-badge.is-none { background: var(--chip); color: var(--muted); font-size: 12px; }
.empty { padding: 30px 10px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* ---------- Map pins ---------- */
.pin { width: 30px; height: 38px; transition: transform .15s ease; transform-origin: 50% 100%; }
.pin svg { width: 100%; height: 100%; stroke: none; filter: drop-shadow(0 3px 3px rgba(15,38,56,.3)); }
.pin .body { fill: var(--solid); stroke: var(--pin-edge); stroke-width: 1.5; }
.pin .dot { fill: var(--lime); }
.pin.is-active { transform: scale(1.35); z-index: 1000 !important; }
.pin.is-active .body { fill: var(--lime); stroke: none; }
.pin.is-active .dot { fill: var(--on-lime); }
.pin.is-instant .dot { fill: none; stroke: var(--lime); stroke-width: 2.5; }
.pin.is-active.is-instant .dot { stroke: var(--on-lime); }
.cluster {
  background: var(--solid); color: var(--lime); border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 14px; box-shadow: 0 0 0 5px rgba(216, 222, 0, .45), 0 6px 14px -4px rgba(15,38,56,.5);
}
.you-dot { width: 18px; height: 18px; border-radius: 50%; background: #2F80ED; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,128,237,.25); }
.leaflet-container { font-family: var(--body); }
.leaflet-control-zoom a { color: var(--ink) !important; font-weight: 900; }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; }
.leaflet-bar a { background: var(--paper); border-bottom-color: var(--line) !important; }
.leaflet-bar a:hover { background: var(--chip); }
.leaflet-control-attribution { background: var(--attr-bg) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--ink-2); }
.leaflet-tooltip.hfg-tip {
  background: var(--solid); color: var(--on-solid); border: 0; border-radius: 10px; padding: 5px 10px;
  font-weight: 800; font-size: 13px; box-shadow: var(--shadow);
}
.leaflet-tooltip.hfg-tip::before { border-top-color: var(--solid); }
.hfg-tip b { color: var(--lime); margin-left: 6px; }

/* ---------- Detail card ---------- */
.detail {
  position: absolute; left: 20px; bottom: 20px; z-index: 900;
  width: min(400px, calc(100% - 40px)); max-height: calc(100% - 40px); overflow-y: auto;
  background: var(--paper); border-radius: 22px; box-shadow: var(--shadow);
  padding: 20px; display: grid; gap: 14px;
}
.d-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--chip); display: grid; place-items: center;
}
.d-close svg { width: 16px; height: 16px; }
.d-head { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding-right: 30px; }
.d-head h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1.05; text-wrap: balance; }
.d-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.big-score {
  width: 74px; height: 74px; border-radius: 50%; background: var(--solid); color: var(--lime);
  display: grid; place-items: center; text-align: center; line-height: 1;
  margin-top: 26px;
}
.big-score strong { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; display: block; }
.big-score { position: relative; }
.big-scores { display: flex; gap: 8px; }
.big-score .bolt { display: block; width: 13px; height: 13px; margin: -4px auto 1px; }
.big-score span { font-size: 9px; font-weight: 900; line-height: 1.15; display: block; margin-top: 3px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-solid); }
.big-score.is-instant span { color: var(--on-lime); }
.bars { display: grid; gap: 7px; margin: 0; }
.bar { display: grid; grid-template-columns: 92px 1fr 32px; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.bar dd { margin: 0; height: 8px; background: var(--chip); border-radius: 8px; overflow: hidden; }
.bar dd i { display: block; height: 100%; background: var(--bar); border-radius: 8px; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--muted); margin: 0; background: var(--cream); padding: 8px 12px; border-radius: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--ink-2); }
.tag.is-good { background: var(--lime-soft); color: var(--ink); }
.tag.is-good::before { content: "✓ "; }
.tag.is-warn { background: var(--warn-bg); color: var(--warn-ink); }
.result p .warn { color: var(--warn-ink); font-weight: 800; }
.addr { font-size: 14px; margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.addr svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 999px; padding: 10px 12px; font-weight: 900; font-size: 13px; text-decoration: none;
  background: var(--chip); color: var(--ink);
}
.act svg { width: 16px; height: 16px; }
.act.primary { background: var(--solid); color: var(--on-solid); }
.act.primary svg { color: var(--lime); }
.act.ig { background: var(--lime); color: var(--on-lime); }
.visited { font-size: 12px; color: var(--muted); margin: 0; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Table view ---------- */
.table-view { flex-direction: column; gap: 18px; overflow-y: auto; padding: 28px 24px 60px; min-height: 0; }
.table-head { max-width: 1200px; width: 100%; margin: 0 auto; }
.table-view .title { font-size: 40px; }
.lede { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }
.table-scroll { max-width: 1200px; width: 100%; margin: 0 auto; overflow-x: auto; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.db { width: 100%; border-collapse: collapse; font-size: 14px; }
.db th {
  position: sticky; top: 0; background: var(--solid); color: var(--on-solid); text-align: left;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 12px 10px; white-space: nowrap;
}
.db th[data-sort] { cursor: pointer; user-select: none; }
.db th[data-sort]:hover { color: var(--lime); }
.db th.is-sorted { color: var(--lime); }
.db th.is-sorted::after { content: " ↓"; }
.db th.is-sorted.asc::after { content: " ↑"; }
.db td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.db tbody tr { cursor: pointer; }
.db tbody tr:hover { background: var(--lime-soft); }
.db .num { text-align: right; font-variant-numeric: tabular-nums; }
.db td.c-name strong { display: block; font-weight: 800; font-size: 15px; }
.db td.c-name span { color: var(--muted); font-size: 12px; }
.db td.muted { color: var(--muted); }
.cell-score { display: inline-grid; place-items: center; min-width: 40px; padding: 4px 8px; border-radius: 999px; background: var(--solid); color: var(--lime); font-weight: 900; }
.cell-score { gap: 2px; grid-auto-flow: column; }
.cell-score.is-instant { background: var(--lime); color: var(--on-lime); }
.cell-score .bolt { width: 11px; height: 11px; }
.score-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.score-key > span { display: inline-flex; align-items: center; gap: 6px; }
.score-key b { color: var(--ink); }
.sub-score { font-weight: 700; }
.sub-score.hi { font-weight: 900; }
.db .links { display: flex; gap: 6px; justify-content: flex-end; }
.db .links a { width: 30px; height: 30px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; color: var(--ink); }
.db .links a:hover { background: var(--lime); color: var(--on-lime); }
.db .links svg { width: 15px; height: 15px; }

/* ---------- Mobile: map + bottom sheet ---------- */
@media (max-width: 899px) {
  :root { --top: 56px; }
  .topbar { padding-inline: 16px; gap: 10px; flex-wrap: nowrap; }
  .brand img { height: 20px; }
  .count-chip { display: none; }
  .tab { padding: 6px 12px; font-size: 13px; }
  .app { grid-template-columns: 1fr; }
  .map-wrap { grid-area: 1 / 1; }
  .panel {
    grid-area: 1 / 1; align-self: end; z-index: 950;
    border-right: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px -12px rgba(15,38,56,.35);
    height: 42%; padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px)); gap: 12px;
    transition: height .38s cubic-bezier(.22, 1.2, .36, 1);
  }
  .panel.is-full { height: 100%; border-radius: 0; }
  .panel.is-dragging { transition: none; }
  .panel.is-min { height: 132px; overflow: hidden; }
  .sheet-handle { position: sticky; top: 0; background: var(--cream); padding: 12px 0 10px; display: grid; place-items: center; cursor: grab; z-index: 2; margin-inline: -16px; touch-action: none; }
  .sheet-handle span { width: 44px; height: 5px; border-radius: 5px; background: var(--handle); }
  .panel-head { display: none; }
  .detail { left: 10px; right: 10px; bottom: 10px; width: auto; z-index: 960; max-height: 80%; }
  .f-row { grid-template-columns: 1fr; }
  .table-view { padding: 20px 16px 40px; }
  .table-view .title { font-size: 30px; }
  /* database becomes cards */
  .table-scroll { background: transparent; border: 0; overflow: visible; }
  .db thead { display: none; }
  .db, .db tbody { display: block; }
  .db tbody { display: grid; gap: 10px; }
  .db tr { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 4px 8px; background: var(--paper); border-radius: 16px; padding: 12px 14px; }
  .db td { border: 0; padding: 0; }
  .db td.c-name { grid-column: 1 / 5; }
  .db td.c-score { grid-column: 5; grid-row: 1; text-align: right; }
  .db td.c-cuisine, .db td.c-area, .db td.c-date { display: none; }
  .db td.c-halal { grid-column: 1 / 3; }
  .db td.c-alcohol { grid-column: 3 / 5; }
  .db td.c-sub { text-align: left; font-size: 12px; color: var(--muted); }
  .db td.c-sub::before { content: attr(data-label); display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
  .db td.c-sub .sub-score { color: var(--ink); font-size: 15px; }
  .db td.c-links { grid-column: 5; grid-row: 2; }
}
@media (max-width: 899px) { .sheet-handle { display: grid; } }
@media (min-width: 900px) { .sheet-handle { display: none; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- How I score ---------- */
.method-view { display: none; overflow-y: auto; min-height: 0; padding: 36px 24px 72px; }
.app[data-view="method"] { grid-template-columns: 1fr; }
.app[data-view="method"] .panel,
.app[data-view="method"] .map-wrap { display: none; }
.app[data-view="method"] .method-view { display: block; }
.method { max-width: 980px; margin: 0 auto; display: grid; gap: 28px; }
.method .title { font-size: 40px; }
.method h3 { font-family: var(--display); font-weight: 900; font-size: 20px; margin: 0 0 8px; }
.method p { margin: 0 0 10px; line-height: 1.6; max-width: 68ch; }
.method p:last-child { margin-bottom: 0; }
.method-link, .vote-link { color: var(--ink); font-weight: 800; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; white-space: nowrap; }
.m-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.m-cat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.m-cat h3 { display: flex; align-items: baseline; gap: 10px; font-size: 24px; text-transform: uppercase; }
.m-cat h3 span { font-size: 13px; letter-spacing: .12em; color: var(--lime-ink); }
.m-cat .m-lead { font-weight: 800; color: var(--ink-2); }
.m-cat p:not(.m-lead) { color: var(--ink-2); font-size: 15px; }
.m-block { border-top: 1px solid var(--line); padding-top: 22px; }
.m-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.m-kinds .cell-score { font-size: 18px; min-width: 52px; padding: 6px 12px; margin-bottom: 10px; }
.m-scale { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.m-scale li { display: grid; grid-template-columns: 92px 140px 1fr; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.m-scale b { font-variant-numeric: tabular-nums; font-weight: 900; }
.m-scale span { font-weight: 800; }
.m-scale em { font-style: normal; color: var(--muted); }
.m-scale li:first-child { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.m-scale li:first-child b { color: var(--lime); }
.m-scale li:first-child em { color: rgba(255,255,255,.75); }
.m-tags { margin: 0; display: grid; gap: 10px; }
.m-tags > div { display: grid; grid-template-columns: 250px 1fr; gap: 14px; align-items: center; }
.m-tags dt { display: flex; flex-wrap: wrap; gap: 6px; }
.m-tags dd { margin: 0; color: var(--ink-2); }
.m-note p { color: var(--muted); }
@media (max-width: 899px) {
  .method-view { padding: 24px 16px 48px; }
  .method .title { font-size: 30px; }
  .m-cats, .m-kinds { grid-template-columns: 1fr; }
  .m-scale li { grid-template-columns: 70px 1fr; }
  .m-scale em { grid-column: 1 / -1; }
  .m-tags > div { grid-template-columns: 1fr; gap: 4px; }
  .tabs .tab { padding: 6px 10px; font-size: 12px; }
}
.m-intro .lede { margin-top: 14px; max-width: 68ch; }
.panel-head .script { flex-direction: column; align-items: flex-start; gap: 6px; line-height: .95; }
.t-short { display: none; }
@media (max-width: 899px) {
  .t-long { display: none; }
  .t-short { display: inline; }
}

.verdict {
  margin: 0; padding: 10px 14px; border-left: 4px solid var(--lime); background: var(--cream); border-radius: 0 12px 12px 0;
  font-weight: 700; font-size: 14px; line-height: 1.45; color: var(--ink);
}
.m-strict { background: var(--lime-soft); border: 0; border-radius: var(--radius); padding: 22px; }

/* restaurant name beside the pin, shown by placeLabels() when there is room */
.pin { position: relative; }
.pin-label {
  display: none; position: absolute; top: 3px; left: 27px; max-width: 170px; box-sizing: border-box;
  padding: 3px 8px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font: 800 12px/16px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(15,38,56,.25); pointer-events: none;
}
.pin.show-label .pin-label { display: block; }
.pin.label-left .pin-label { left: auto; right: 27px; }
.pin.is-active .pin-label { background: var(--solid); color: var(--lime); }

/* ---------- Visit stats + closed restaurants ---------- */
.stats-line { margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.stats-line b { font-weight: 900; color: var(--ink); }
.panel-head .stats-line { max-width: 30ch; }
.closed-wrap { max-width: 1200px; width: 100%; margin: 8px auto 0; display: grid; gap: 18px; }
.closed-toggle {
  justify-self: center; font: 800 14px var(--body); color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px; padding: 10px 20px; cursor: pointer;
}
.closed-toggle:hover { background: var(--solid); color: var(--lime); }
.closed-section { display: grid; gap: 18px; }
.closed-section[hidden] { display: none; }
.db-closed tbody tr { cursor: default; }
.db-closed .c-name strong { color: var(--ink-2); }
.stats-line.mobile-only { display: none; }
@media (max-width: 899px) { .stats-line.mobile-only:not([hidden]) { display: block; margin: 0; } }

/* price band: £££ with the unused £ greyed out */
.price { font-weight: 800; letter-spacing: .02em; color: var(--price-dim); white-space: nowrap; }
.price b { color: var(--ink); font-weight: 900; }
.f-note { font-weight: 600; color: var(--muted); font-size: 11px; letter-spacing: 0; text-transform: none; }

/* ---------- Sharing ---------- */
.share-map {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto; border: 0; cursor: pointer;
  background: var(--lime); color: var(--on-lime); font: 900 13px var(--body); padding: 8px 14px; border-radius: 999px;
}
.share-map svg, .act.share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.share-map + .tabs { margin-left: 0; }
.act.share { border: 0; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; }
.actions .act { flex: 1 1 110px; }
.actions .act.share { flex: 0 0 44px; padding-inline: 0; }
.share-sheet { position: fixed; inset: 0; z-index: 3000; background: rgba(15,38,56,.45); display: grid; place-items: center; padding: 16px; }
.share-sheet[hidden] { display: none; }
.share-card { background: var(--paper); border-radius: var(--radius); padding: 22px; width: min(380px, 100%); box-shadow: var(--shadow); display: grid; gap: 12px; }
.share-card h3 { margin: 0; font: 900 18px/1.2 var(--display); }
.share-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-opts a, .share-opts button {
  display: grid; place-items: center; padding: 11px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--chip); color: var(--ink); font: 800 14px var(--body); text-decoration: none;
}
.share-opts a:first-child { background: #25D366; color: #fff; }
.share-note { margin: 0; font-size: 12px; color: var(--muted); }
.share-close { justify-self: end; border: 0; background: none; font: 800 13px var(--body); color: var(--muted); cursor: pointer; }
@media (max-width: 899px) {
  .share-map { padding: 8px; }
  .share-map span { display: none; }
}

/* ---------- Quick row: picker + my list ---------- */
.quick-row { display: flex; gap: 8px; }
.pick-btn, .mylist-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer; border-radius: 999px;
  font: 900 13px var(--body); padding: 9px 14px;
}
.pick-btn { flex: 1; justify-content: center; background: var(--solid); color: var(--lime); }
.pick-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mylist-btn { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.mylist-btn svg, .act.save svg, .saved-dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.mylist-btn b { font-variant-numeric: tabular-nums; background: var(--chip); border-radius: 999px; padding: 1px 7px; font-size: 12px; }
.mylist-btn[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); box-shadow: none; }
.mylist-btn[aria-pressed="true"] svg { fill: var(--ink); }
.list-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--lime-soft); font-size: 13px; }
.list-banner[hidden] { display: none; }
.list-banner span { flex: 1 1 100%; }
.list-banner button { border: 0; cursor: pointer; border-radius: 999px; padding: 6px 12px; font: 800 12px var(--body); background: var(--solid); color: var(--on-solid); }
.list-banner button + button { background: var(--paper); color: var(--ink); }
.act.save { border: 0; cursor: pointer; flex: 0 0 44px; padding-inline: 0; }
.act.save.is-on { background: var(--solid); color: var(--lime); }
.act.save.is-on svg { fill: currentColor; }
.saved-dot { display: inline-flex; margin-left: 6px; color: var(--ink); vertical-align: -2px; }
.saved-dot svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- If you like this, try ---------- */
.similar { border-top: 1px solid var(--line); padding-top: 12px; }
.similar h4 { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.similar ul, .pk-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sim, .pk-pick {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  border: 0; border-radius: 12px; padding: 8px 10px; background: var(--cream); color: var(--ink); font: inherit;
}
.sim:hover, .pk-pick:hover { background: var(--lime-soft); }
.sim .score-badge, .pk-pick .score-badge { width: 36px; height: 36px; font-size: 13px; flex: none; }
.sim .score-badge .bolt, .pk-pick .score-badge .bolt { width: 15px; height: 15px; }
.sim > span:last-child, .pk-pick > span:last-child { display: grid; gap: 2px; min-width: 0; }
.sim b, .pk-pick b { font-weight: 900; font-size: 14px; }
.sim small, .pk-pick small { color: var(--muted); font-size: 12px; }

/* ---------- Picker ---------- */
.picker { position: fixed; inset: 0; z-index: 3000; background: rgba(15,38,56,.45); display: grid; place-items: center; padding: 16px; }
.picker[hidden] { display: none; }
.picker-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 22px; width: min(460px, 100%); max-height: calc(100% - 20px); overflow-y: auto; box-shadow: var(--shadow); display: grid; gap: 14px; }
.picker-card h3 { margin: 0; font: 900 24px/1.1 var(--display); text-transform: uppercase; }
.pk-q h4 { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pk-go { border: 0; cursor: pointer; border-radius: 999px; padding: 12px; background: var(--lime); color: var(--on-lime); font: 900 15px var(--body); }
.pk-n { font: 900 18px var(--display); color: var(--lime-ink); width: 16px; flex: none; }
.pk-pick em { font-style: normal; font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.pk-none { font-size: 13px; color: var(--muted); padding: 6px 2px; }

/* ---------- Followers' ratings ---------- */
.community { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--cream); }
.cm-summary { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); }
.cm-summary b { font: 900 22px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.cm-rate > span { font-size: 13px; font-weight: 800; }
.rate-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 6px; }
.rate-row button {
  border: 0; cursor: pointer; border-radius: 8px; padding: 7px 0; font: 800 13px var(--body);
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums;
}
.rate-row button:hover { background: var(--lime-soft); }
.rate-row button[aria-pressed="true"] { background: var(--solid); color: var(--lime); box-shadow: none; }
.cm-msg { margin: 4px 0 0; font-size: 12px; color: var(--muted); min-height: 0; }
.cm-msg:empty { display: none; }

/* ---------- Vote for my next review ---------- */
.vote-view { display: none; overflow-y: auto; min-height: 0; padding: 36px 24px 72px; }
.app[data-view="vote"] { grid-template-columns: 1fr; }
.app[data-view="vote"] .panel,
.app[data-view="vote"] .map-wrap { display: none; }
.app[data-view="vote"] .vote-view { display: block; }
.vote { max-width: 720px; margin: 0 auto; display: grid; gap: 20px; }
.vote .title { font-size: 40px; }
.vote .lede { margin-top: 12px; }
.suggest { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; }
.suggest input, .suggest select {
  font: 700 15px var(--body); padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); min-width: 0;
}
.suggest button { border: 0; cursor: pointer; border-radius: 12px; padding: 0 20px; background: var(--solid); color: var(--lime); font: 900 15px var(--body); }
.sg-msg { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-2); }
.sg-msg:empty { display: none; }
.sg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sg { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.sg-rank { font: 900 20px var(--display); color: var(--lime-ink); text-align: center; }
.sg-name { display: grid; min-width: 0; }
.sg-name b { font-weight: 900; }
.sg-name small { color: var(--muted); font-size: 12px; }
.sg-vote { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; border-radius: 999px; padding: 8px 14px; background: var(--chip); color: var(--ink); font: 900 14px var(--body); font-variant-numeric: tabular-nums; }
.sg-vote svg { width: 14px; height: 14px; fill: currentColor; }
.sg-vote[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }
.sg-vote:disabled { cursor: default; opacity: .6; }
.sg-report { border: 0; background: none; cursor: pointer; color: var(--muted); font: 700 11px var(--body); padding: 4px; }
.sg.is-visited { opacity: .7; }
.sg-empty { color: var(--muted); font-size: 14px; padding: 8px 2px; }
.sg-note { margin: 0; font-size: 12px; color: var(--muted); }
.vote-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; border-radius: 999px;
  font: 900 13px var(--body); padding: 9px 12px; background: var(--lime); color: var(--on-lime);
}
.vote-btn svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 899px) {
  .vote-view { padding: 24px 16px 48px; }
  .vote .title { font-size: 30px; }
  .suggest { grid-template-columns: 1fr 1fr; }
  .suggest input { grid-column: 1 / -1; }
  .quick-row { flex-wrap: wrap; }
  .quick-row .pick-btn { flex-basis: 100%; }
  .quick-row .vote-btn, .quick-row .mylist-btn { flex: 1; justify-content: center; }
}

/* ---------- Dark mode: follows the phone/computer setting, or the moon button in the top bar ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --cream: #101315;
  --paper: #181C1F;
  --ink: #ECEEEF;
  --ink-2: #BAC2C8;
  --muted: #89939B;
  --line: #272D32;
  --chip: #21262A;
  --lime-soft: #272C14;
  --lime-ink: #D8DE00;
  --good: #4CC27E;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
  --solid: #233A50;
  --bar: #D8DE00;
  --mark-from: 84%;
  --mark-to: 97%;
  --pin-edge: #101315;
  --map-bg: #121518;
  --warn-bg: #33281A;
  --warn-ink: #F0B35E;
  --handle: #3A4249;
  --price-dim: #3C444B;
  --pro-pin: #66717B;
  --pro-edge: #101315;
  --attr-bg: rgba(16, 19, 21, .82);
  color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] {
  --cream: #101315;
  --paper: #181C1F;
  --ink: #ECEEEF;
  --ink-2: #BAC2C8;
  --muted: #89939B;
  --line: #272D32;
  --chip: #21262A;
  --lime-soft: #272C14;
  --lime-ink: #D8DE00;
  --good: #4CC27E;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
  --solid: #233A50;
  --bar: #D8DE00;
  --mark-from: 84%;
  --mark-to: 97%;
  --pin-edge: #101315;
  --map-bg: #121518;
  --warn-bg: #33281A;
  --warn-ink: #F0B35E;
  --handle: #3A4249;
  --price-dim: #3C444B;
  --pro-pin: #66717B;
  --pro-edge: #101315;
  --attr-bg: rgba(16, 19, 21, .82);
  color-scheme: dark;
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.brand .logo-dark { display: none; }
.theme-btn {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%;
  background: var(--chip); color: var(--ink);
}
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
.is-dark .theme-btn .sun { display: block; }
.is-dark .theme-btn .moon { display: none; }
/* small phones: squeeze the top bar so logo, share, theme and tabs fit in one row */
@media (max-width: 420px) {
  .topbar { gap: 6px; }
  .brand img { height: 17px; }
  .theme-btn { width: 32px; height: 32px; }
  .share-map { padding: 7px; }
  .tabs { padding: 3px; gap: 2px; }
  .tab { padding: 6px 9px; }
}

/* full editorial review behind the mini review */
.review-toggle {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; background: none; padding: 0;
  font: 900 13px var(--body); color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime);
  text-decoration-thickness: 3px; text-underline-offset: 4px;
}
.full-review { display: grid; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.full-review p { margin: 0; }

/* ---------- Photos ---------- */
.photos { display: grid; gap: 6px; }
.photos-label { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumb { position: relative; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--chip); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.thumb:hover img { transform: scale(1.06); }
.thumb span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 38, 56, .6); color: #fff; font: 900 15px var(--body); }
.lightbox { position: fixed; inset: 0; z-index: 4000; background: rgba(8, 18, 27, .94); display: grid; grid-template-rows: auto 1fr; color: #fff; }
.lb-bar { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; font-weight: 800; font-size: 14px; }
.lb-bar #lbCount { color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.lb-bar .lb-btn { margin-left: auto; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 8px; }
.lb-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn:hover { background: var(--lime); color: #0F2638; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
#lbPrev { left: 16px; }
#lbNext { right: 16px; }
@media (max-width: 600px) { .lb-nav { display: none; } }   /* swipe on phones */

/* ---------- Ad space ---------- */
.ad-slot { list-style: none; }
.ad { position: relative; display: grid; gap: 3px; width: 100%; text-align: left; text-decoration: none; color: var(--ink);
  border: 1.5px dashed var(--line); border-radius: 14px; padding: 12px 14px; background: transparent; cursor: pointer; font: inherit; }
.ad:hover { border-color: var(--lime); background: var(--lime-soft); }
.ad b { font-weight: 900; font-size: 14px; }
.ad > span:not(.ad-label) { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.ad-label { justify-self: start; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad-text { border-style: solid; background: var(--paper); }
.ad-banner { padding: 8px; border-style: solid; background: var(--paper); }
.ad-banner img { display: block; width: 100%; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 8px; }
.ad-house b { color: var(--ink); }
.ad-line { margin: 0; text-align: center; }
.ad-line button { border: 0; background: none; cursor: pointer; font: 700 12.5px var(--body); color: var(--muted); padding: 4px; }
.ad-line button b { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ad-panel .ad { margin: 0; }
.ad-card { gap: 12px; }
.ad-intro, .ad-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ad-note { font-size: 12.5px; color: var(--muted); }
.ad-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ad-options li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--chip); }
.ad-options b { font-weight: 900; font-size: 14px; }
.ad-options span { font-size: 13px; color: var(--ink-2); }
.ad-contact { display: grid; gap: 8px; }
.ad-contact .pk-go { text-align: center; text-decoration: none; }
.ad-alt { text-align: center; padding: 10px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); font: 800 14px var(--body); text-decoration: none; }
.ad-email { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ad-email span { user-select: all; }
.ad-email button { border: 0; border-radius: 999px; padding: 5px 10px; background: var(--chip); color: var(--ink); font: 800 12px var(--body); cursor: pointer; }

/* ---------- Pro: places on the halal list that aren't reviewed yet ---------- */
.pro-switch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--chip); cursor: pointer; user-select: none; }
.pro-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pro-track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--handle); transition: background .2s; }
.pro-track i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.pro-switch input:checked + .pro-track { background: var(--lime); }
.pro-switch input:checked + .pro-track i { transform: translateX(16px); background: #0F2638; }
.pro-switch input:focus-visible + .pro-track { outline: 3px solid var(--lime); outline-offset: 2px; }
.pro-text { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.pro-text b { font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-right: 4px; }
.score-badge.is-pro { background: transparent; color: var(--muted); border: 2px dashed var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.pin.is-pro .body { fill: var(--pro-pin); stroke: var(--pro-edge); stroke-width: 1.5; }
.pin.is-pro .dot { fill: none; stroke: var(--paper); stroke-width: 2; }
.pin.is-pro.is-active .body { fill: var(--lime); stroke: none; }
.pin.is-pro.is-active .dot { stroke: #0F2638; }
.pro-note { display: grid; gap: 6px; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--line); }
.pro-note b { font-weight: 900; font-size: 14px; }
.pro-note span { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.pro-note .vote-link { justify-self: start; border: 0; background: none; padding: 0; cursor: pointer; font: 800 13px var(--body); }

/* Google rating on Pro places */
.g-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.g-rating b { font-size: 18px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.g-stars { position: relative; font-size: 17px; letter-spacing: 1px; color: var(--line); line-height: 1; }
.g-stars::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--r); overflow: hidden; color: #F4B400; white-space: nowrap; }
.act.g-link { flex-basis: 100%; justify-content: center; }

/* locate-me button on the map, bottom right (sits above the bottom sheet on phones) */
.locate-btn { position: absolute; right: 12px; bottom: 30px; z-index: 900; width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; transition: bottom .38s cubic-bezier(.22, 1.2, .36, 1); }
.locate-btn svg { width: 22px; height: 22px; }
.locate-btn:hover, .locate-btn.is-on { background: var(--solid); color: var(--lime); }
@media (max-width: 899px) {
  .locate-btn { bottom: calc(42% + 14px); }
  .panel.is-min ~ .map-wrap .locate-btn { bottom: 146px; }
  .panel.is-full ~ .map-wrap .locate-btn { display: none; }
}
.pro-gate input { font: 700 16px var(--body); padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); }
.pro-gate input:focus { outline: none; border-color: var(--ink); }

/* category score columns are Pro */
body:not(.pro-unlocked) .c-cat, body:not(.pro-unlocked) .c-sub { display: none; }
.legal { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }

/* score circles: instant leads (bigger, lime); total is secondary (smaller, quiet outline) */
button.big-score { border: 0; padding: 0; font: inherit; cursor: help; }
.big-scores { position: relative; align-items: center; }
.big-scores .big-score { margin-top: 26px; }
.big-score.is-instant { box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 28%, transparent); }
.is-pair .big-score.is-instant { width: 80px; height: 80px; }
.is-pair .big-score.is-instant strong { font-size: 28px; }
.is-pair .big-score.is-total { width: 56px; height: 56px; background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line); }
.is-pair .big-score.is-total strong { font-size: 19px; }
.is-pair .big-score.is-total span { font-size: 7.5px; color: var(--muted); margin-top: 2px; }
.d-head { position: relative; }
.score-info { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); width: min(290px, 100%); display: grid; gap: 10px;
  padding: 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.score-info p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.score-info b { display: flex; align-items: center; gap: 4px; font-weight: 900; color: var(--ink); margin-bottom: 2px; }
.score-info b .bolt { width: 13px; height: 13px; color: var(--lime-ink); }
.score-info .method-link { font-size: 13px; }

/* Pro filters section */
.f-pro { display: grid; gap: 14px; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--line); }
.f-pro-head { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14px; color: var(--ink); }
.pro-pill { display: inline-block; padding: 2px 7px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
body:not(.pro-unlocked) .f-pro .chip { opacity: .6; }

/* halal / alcohol columns in the full list */
.db td.c-halal .tag, .db td.c-alcohol .tag { white-space: nowrap; font-size: 11px; padding: 3px 9px; }

/* Pro licence unlock */
.pro-gate #proPass { font-variant-numeric: tabular-nums; letter-spacing: .06em; text-transform: uppercase; }
.pro-gate .pro-buy { display: block; text-align: center; margin-top: 10px; }
.pro-fine { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
