/* Yalla Maps public web — design tokens shared with the mobile app and the
   yalla-maps-web mockups. Light theme is the default; dark follows the system
   unless <html data-theme> overrides it. */
:root {
  --lime: #C6F24E; --lime-ink: #0E1110; --lime-deep: #5B7A00;
  --bg: #F3F5F1; --surface: #FFFFFF; --surface-2: #F1F2EE; --surface-3: #E4E6E0;
  --line: #DEE0D8; --line-strong: #C9CDC5; --line-hover: #8F968E;
  /* Lime on a light surface always carries the dark-lime ring (brand rule:
     no lime on light without a dark backing); the dark theme has no ring. */
  --lime-ring: inset 0 0 0 1.5px #5B7A00; --lime-hover: #D3F76A; --lime-active: #A9D42F;
  --ink: #131513; --ink-2: #555C55; --ink-3: #697069;
  --ok: #15803D; --ok-bg: #E6F4EA; --warn: #B45309; --warn-bg: #FFF4E5; --danger: #B91C1C; --danger-bg: #FEE2E2;
  --pin-bg: #CDE2C0; --focus: #2F6B00; --shadow: 0 1px 2px rgba(19, 21, 19, .10), 0 4px 12px rgba(19, 21, 19, .06); --star: #5B7A00; --accent-text: #5B7A00;
  --map-bg: #F1F2EE; --map-block: #E8EAE4; --map-green: #D5E8C4; --map-road: #FFFFFF;
  --radius: 12px; --radius-lg: 20px; --header-h: 56px; --panel-w: 440px;
  --font: Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: Unbounded, Onest, system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
:root[data-theme="dark"], :root:not([data-theme="light"]).is-dark-system {
  --bg: #0E1110; --surface: #141715; --surface-2: #1F2320; --surface-3: #2A302C;
  --line: #1E2522; --line-strong: #394039; --line-hover: #5E6661; --lime-ring: none;
  --ink: #F3F5F1; --ink-2: #AEB5B0; --ink-3: #8A928C;
  --ok: #45D98F; --ok-bg: #0F2519; --warn: #FFA826; --warn-bg: #2A1F0B; --danger: #F87171; --danger-bg: #2A1414;
  --pin-bg: #24301F; --focus: #C6F24E; --shadow: none; --star: #C6F24E; --accent-text: #C6F24E;
  --map-bg: #141715; --map-block: #1F2320; --map-green: #1B2A1B; --map-road: #2A302C;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1110; --surface: #141715; --surface-2: #1F2320; --surface-3: #2A302C;
    --line: #1E2522; --line-strong: #394039; --line-hover: #5E6661; --lime-ring: none;
    --ink: #F3F5F1; --ink-2: #AEB5B0; --ink-3: #8A928C;
    --ok: #45D98F; --ok-bg: #0F2519; --warn: #FFA826; --warn-bg: #2A1F0B; --danger: #F87171; --danger-bg: #2A1414;
    --pin-bg: #24301F; --focus: #C6F24E; --shadow: none; --star: #C6F24E; --accent-text: #C6F24E;
    --map-bg: #141715; --map-block: #1F2320; --map-green: #1B2A1B; --map-road: #2A302C;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); min-height: 100dvh; display: flex; flex-direction: column; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h1 { font: 700 32px/1.15 var(--font-display); letter-spacing: -.02em; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.25; }
h3 { font-size: 16px; font-weight: 600; }
@media (max-width: 599px) { h1 { font-size: 24px; } }
p { margin: 0 0 12px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--lime-deep); }
:root[data-theme="dark"] a:hover { color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a:hover { color: var(--lime); } }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; display: inline-flex; align-items: center; height: 40px; background: var(--lime); color: var(--lime-ink); padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: var(--lime-ring); }
.skip:focus { top: 8px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

/* Header ------------------------------------------------------------------ */
.header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.header .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 22px/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.header .brand svg { width: 28px; height: 28px; color: var(--lime-deep); }
:root[data-theme="dark"] .header .brand svg { color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .header .brand svg { color: var(--lime); } }
.header .brand span { font-weight: 500; }
.header-search { flex: 1; max-width: 560px; position: relative; display: none; }
.header-search input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); padding: 0 16px 0 42px; font-size: 15px; }
.header-search input:focus { border-color: var(--lime-deep); background: var(--surface); }
.header-search svg { position: absolute; left: 14px; top: 11px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; cursor: pointer; white-space: nowrap; }
.pill:hover { background: var(--surface-2); color: var(--ink); }
.pill svg { width: 16px; height: 16px; }
.pill.primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); font-weight: 600; box-shadow: var(--lime-ring); }
.pill.primary:hover { background: var(--lime-hover); color: var(--lime-ink); }
.pill.primary:active { background: var(--lime-active); }
.pill.icon { width: 40px; padding: 0; justify-content: center; }
.menu-details { position: relative; }
.menu-details summary { list-style: none; cursor: pointer; }
.menu-details summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 48px; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; z-index: 50; }
.menu-panel .group { padding: 6px 8px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.menu-panel a, .menu-panel button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px; border: 0; background: none; border-radius: 8px; text-decoration: none; text-align: left; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); }
.menu-panel [aria-current="true"], .menu-panel [aria-pressed="true"] { font-weight: 600; color: var(--accent-text); }
.menu-details summary:focus-visible, .menu-panel a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
/* City switcher: 14 entries scroll inside the panel; long region names are
   cut in the pill (the full name is in aria-label and in the list). */
.city-menu .city-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.city-panel { min-width: 260px; max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 719px) { .city-menu .city-name { max-width: 96px; } .city-panel { position: fixed; top: calc(var(--header-h) + 4px); left: 16px; right: 16px; min-width: 0; } }
@media (max-width: 1023px) { .only-desktop { display: none !important; } }
@media (min-width: 1024px) { .header-search { display: block; } .only-mobile { display: none !important; } }

/* App banner (non-modal, dismissible, never covers content) --------------- */
.app-banner { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 14px; }
.app-banner .logo { width: 28px; height: 28px; color: var(--lime-deep); flex: none; }
.app-banner .text { flex: 1; font-weight: 600; }
.app-banner .close { border: 0; background: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.app-banner .close:hover { background: var(--surface-3); }
.app-banner[hidden] { display: none; }
@media (min-width: 1024px) { .app-banner { display: none; } }
/* Analytics consent notice (client/analytics.js un-hides it). */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 560px; margin: 0 auto; padding: 14px 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px; }
.consent[hidden] { display: none; }
.consent .consent-text { margin: 0 0 10px; }
.consent .consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Layout: left panel + map ------------------------------------------------- */
.shell { flex: 1; display: grid; grid-template-columns: 1fr; }
.panel { padding: 16px; min-width: 0; }
.map-column { display: none; }
@media (min-width: 1024px) {
  .shell { grid-template-columns: var(--panel-w) minmax(0, 1fr); }
  .shell.wide { --panel-w: 440px; }
  .panel { padding: 24px 24px 40px; }
  .map-column { display: block; position: sticky; top: var(--header-h); height: calc(100dvh - var(--header-h)); }
}
.page { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px; }
@media (min-width: 1024px) { .page { padding: 32px 24px 56px; } }

/* Map surfaces ------------------------------------------------------------- */
.map-surface { position: relative; width: 100%; height: 100%; background: var(--surface-2); overflow: hidden; }
.map-surface .map-canvas { position: absolute; inset: 0; }
.map-surface .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; padding: 16px; text-align: center; }
.map-surface .placeholder > svg { width: 100%; height: 100%; position: absolute; inset: 0; opacity: .55; }
.map-surface .placeholder .cta { position: relative; z-index: 1; }
.map-static { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--surface-2); }
.map-static .map-canvas { position: absolute; inset: 0; }
.map-static .placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.map-static .placeholder > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-static .placeholder button { position: relative; z-index: 1; }
.map-static .attribution, .map-surface .attribution { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: var(--ink-3); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 2px 6px; border-radius: 4px; z-index: 2; }
.map-controls { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.map-controls button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.map-controls button svg { width: 18px; height: 18px; }
.map-controls .gap { height: 8px; }
.map-controls button[aria-pressed="true"], .map-controls button[aria-expanded="true"] { background: var(--ink); color: var(--surface); }
.layers-panel { position: absolute; right: 60px; top: 12px; z-index: 4; width: 232px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: grid; gap: 12px; }
.layers-panel[hidden] { display: none; }
.layers-panel fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 4px; }
.layers-panel legend { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.layers-panel label { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.layers-panel label:hover { background: var(--surface-2); }
.layers-panel label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
.layers-panel label:has(input:disabled) { color: var(--ink-3); cursor: not-allowed; }
.layers-panel input { accent-color: var(--accent-text); width: 18px; height: 18px; margin: 0; flex: none; }
.layers-panel input:focus-visible { outline: none; }
.layers-panel [data-cameras-status]:empty { display: none; }
.layers-panel [data-cameras-status] { padding: 0 8px; color: var(--ink-2); }
/* WebStates2 «Карта не загрузилась»: a neutral dashed card, never a warning. */
.map-error { position: absolute; left: 12px; right: 12px; bottom: 32px; padding: 12px 14px; background: var(--surface-2); color: var(--ink-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); font-size: 14px; text-align: center; z-index: 3; }
.map-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow); z-index: 3; white-space: nowrap; }
.pin { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 2px solid var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.pin svg { width: 16px; height: 16px; }
.pin.active { background: var(--lime); color: var(--lime-ink); width: 44px; height: 44px; }
.pin-label { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); background: var(--surface); padding: 4px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); }
.maplibregl-ctrl-attrib { font-size: 11px !important; }
.maplibregl-ctrl-group .map-perspective { width: 36px; height: 36px; font: 600 12px/1 var(--font); color: var(--ink); background: var(--surface); }
.maplibregl-ctrl-group .map-perspective[aria-pressed="true"] { color: var(--surface); background: var(--ink); }
.maplibregl-popup-content { background: var(--surface) !important; color: var(--ink) !important; border-radius: 10px !important; font: 14px/1.4 var(--font) !important; box-shadow: var(--shadow) !important; }
.maplibregl-popup-tip { border-top-color: var(--surface) !important; }
.context-menu { position: absolute; z-index: 5; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.context-menu button { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: none; padding: 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.context-menu button:hover { background: var(--surface-2); }
.context-menu svg { width: 18px; height: 18px; color: var(--ink-3); }

/* Breadcrumbs, headings ---------------------------------------------------- */
.crumbs { font-size: 14px; line-height: 18px; color: var(--ink-3); margin: 0 0 16px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 7px; }
.crumbs li + li::before { content: "/"; margin-right: 7px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-underline-offset: 2px; }
.crumbs [aria-current="page"] { color: var(--ink-2); }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 4px; }
.lead { color: var(--ink-2); font-size: 16px; line-height: 1.55; margin: 8px 0 16px; }
.subline { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; color: var(--ink-2); margin: 8px 0 12px; font-size: 16px; }
.subline .small { font-size: 14px; }
.subline .sep { color: var(--ink-3); }
.section { margin: 24px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head a { font-size: 14px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.section-head a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons and chips (WebOrg/WebCat: 44 px main, 38 px small, 48 px in the
   mobile action bar; hover +8 % lightness, press −12 %; focus ring 2 px) --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-3); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); box-shadow: var(--lime-ring); }
.btn.primary:hover { background: var(--lime-hover); color: var(--lime-ink); }
.btn.primary:active { background: var(--lime-active); }
.btn.ghost { background: transparent; border-color: var(--line-hover); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.icon { width: 44px; padding: 0; background: transparent; border-color: var(--line-hover); }
.btn.icon:hover { background: var(--surface-2); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.small svg { width: 16px; height: 16px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; }
.actions.grow { flex-wrap: nowrap; }
.actions.grow > .btn:not(.icon) { flex: 1; min-width: 0; padding: 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--surface-2); color: var(--ink); }
.chip svg { width: 16px; height: 16px; }
.chip.filter { background: var(--surface-2); font-weight: 600; }
.chip[aria-current="page"], .chip.active { background: var(--lime); border-color: transparent; color: var(--lime-ink); font-weight: 600; box-shadow: var(--lime-ring); }
.chip[aria-current="page"]:hover, .chip.active:hover { background: var(--lime-hover); color: var(--lime-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.kicker.mt-12 { margin-top: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-strong); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag.ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.tag.warn { background: var(--warn-bg); color: var(--warn); font-weight: 600; }

/* Cards ------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 16px; }
.card + .card { margin-top: 12px; }
.card.soft { background: var(--surface-2); border-style: dashed; }
/* Hint card (WebStates1 «Знаете часы работы?», WebStates2 «Пока ничего не
   нашли»): icon + 16/600 title row, 14 px text, optional small buttons. */
.hint { display: flex; flex-direction: column; gap: 10px; }
.hint-head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.hint-head h3 { font-size: inherit; }
.hint-head svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.hint-head.accent svg { color: var(--accent-text); }
.hint p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.hint .actions { margin: 0; gap: 8px; }
/* Notice (WebStates1 «Больше не работает»): a card whose border carries the
   state colour; the text stays in the neutral palette. Warn/danger are
   reserved for closed places and blocked requests; plain notices are
   informational (brand: orange/red belong to cameras and threats). */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); margin: 0 0 16px; }
.notice.warn { border-color: var(--warn); }
.notice.danger { border-color: var(--danger); }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); margin-top: 2px; }
.notice.warn svg { color: var(--warn); }
.notice.danger svg { color: var(--danger); }
.notice.info svg { color: var(--accent-text); }
.notice > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.notice b { display: block; font-size: 16px; font-weight: 600; }
.notice p, .notice span { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.notice .actions { margin: 6px 0 0; gap: 8px; }
/* List card (WebCatDL): 26 px number, 16/600 title, «категория · район ·
   адрес» line, 14/600 status line; hover = surface-2 + stronger border, the
   active one carries the dark-lime double border. */
.place-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.place-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); position: relative; transition: border-color .15s, background-color .15s; min-width: 0; }
.place-card:hover { background: var(--surface-2); border-color: var(--line-hover); }
.place-card:focus-within { border-color: var(--line-hover); }
.place-card.active, .place-card.active:hover { border-color: var(--lime-deep); box-shadow: 0 0 0 1px var(--lime-deep); }
.place-card .index { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; flex: none; }
.place-card .index svg { width: 14px; height: 14px; }
.place-card.active .index { background: var(--lime); color: var(--lime-ink); box-shadow: var(--lime-ring); }
.place-card .body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.place-card .title { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-card .title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.place-card .title:focus-visible { outline: none; }
.place-card:has(.title:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.place-card .meta { font-size: 14px; color: var(--ink-3); }
.place-card .status { font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.place-card .ok { color: var(--ok); }
.place-card .closed { color: var(--ink-3); }
.grid-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); text-decoration: none; min-width: 0; }
.cat-card:hover { background: var(--surface-2); border-color: var(--line-hover); color: var(--ink); }
.cat-card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent-text); flex: none; }
.cat-card .ico svg { width: 20px; height: 20px; }
.cat-card > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cat-card b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-card > span:last-child > span { font-size: 14px; color: var(--ink-3); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-strong); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list li:last-child { padding-bottom: 0; }
.contact-list svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.contact-list .value { flex: 1; min-width: 0; }
.contact-list .value a { font-weight: 600; word-break: break-word; }
.contact-list .value small { display: block; color: var(--ink-3); font-size: 13px; }
.copy-btn { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.copy-btn:hover { background: var(--surface-2); }
.copy-btn svg { width: 16px; height: 16px; }
.qr-block { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.qr-block svg { width: 120px; height: 120px; border-radius: 8px; background: #fff; padding: 6px; }
.qr-block b { display: block; margin-bottom: 4px; }
.qr-block p { margin: 0; font-size: 14px; color: var(--ink-2); }
details.faq { border-top: 1px solid var(--line-strong); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 8px 0 0; color: var(--ink-2); }
/* Pagination (WebCatDL): 40 px squares, radius 12, the current page in lime. */
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.pagination .page-num { min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.pagination .page-num svg { width: 18px; height: 18px; }
.pagination .page-num:hover { background: var(--surface-2); color: var(--ink); }
.pagination .page-num[aria-disabled="true"] { color: var(--ink-3); pointer-events: none; }
.pagination .page-num.current { background: var(--lime); color: var(--lime-ink); border-color: transparent; box-shadow: var(--lime-ring); }
.pagination .ellipsis { color: var(--ink-3); padding: 0 4px; }
.attribution-line { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.data-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--ink-3); background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 10px 12px; margin: 24px 0 0; }
.data-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* Sticky action bar on mobile ------------------------------------------------ */
.action-bar { position: sticky; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line-strong); margin: 16px -16px 0; }
.action-bar .btn { flex: 1; min-height: 48px; min-width: 0; padding: 0 12px; }
.action-bar .btn.icon { flex: none; width: 48px; border-color: var(--line-strong); }
@media (min-width: 1024px) { .action-bar { display: none; } }

/* Hero on city home (WebCityDL: h1 40 px, 32 px at 360) ---------------------- */
.hero { position: relative; padding: 24px 0 8px; }
.hero h1 { font-size: 40px; line-height: 1.1; }
@media (max-width: 599px) { .hero h1 { font-size: 32px; } }
.hero .search-row { display: flex; gap: 8px; max-width: 720px; margin: 16px 0 0; position: relative; }
.hero .search-row input { flex: 1; height: 52px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 0 20px; font-size: 16px; min-width: 0; }
.hero .search-row input:focus { border-color: var(--lime-deep); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 45; max-height: 360px; overflow: auto; }
.suggest[hidden] { display: none; }
.suggest ul { list-style: none; margin: 0; padding: 6px; }
.suggest li a, .suggest li button { display: block; width: 100%; padding: 10px 12px; border-radius: 8px; text-decoration: none; border: 0; background: none; text-align: left; cursor: pointer; }
.suggest li a:hover, .suggest li button:hover, .suggest li [aria-selected="true"] { background: var(--surface-2); }
.suggest .name { font-weight: 600; display: block; }
.suggest .addr { font-size: 13px; color: var(--ink-3); display: block; }
.suggest .empty { padding: 12px; color: var(--ink-3); font-size: 14px; }
.app-block { display: grid; gap: 16px; align-items: center; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-top: 32px; }
@media (min-width: 720px) { .app-block { grid-template-columns: 1fr auto; } }
.app-block .qr svg { width: 140px; height: 140px; background: #fff; border-radius: 12px; padding: 8px; }

/* Map page & route page ------------------------------------------------------ */
.map-page { flex: 1; position: relative; min-height: calc(100dvh - var(--header-h)); }
.map-page .map-surface { position: absolute; inset: 0; height: auto; }
.float-panel { position: relative; z-index: 4; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow); padding: 12px 16px 16px; max-height: 55dvh; overflow: auto; margin-top: 45dvh; }
.float-panel .grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 10px; }
@media (min-width: 600px) { .float-panel { position: absolute; left: 16px; top: 16px; bottom: 16px; width: 360px; margin: 0; max-height: none; border-radius: var(--radius-lg); } .float-panel .grip { display: none; } }
@media (min-width: 1024px) { .float-panel { width: 420px; } }
.float-panel .search-row { position: relative; margin-bottom: 12px; }
.float-panel .search-row input { width: 100%; height: 48px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--ink); padding: 0 44px 0 44px; font-size: 16px; }
.float-panel .search-row input:focus { border-color: var(--lime-deep); background: var(--surface); }
.float-panel .search-row > svg { position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.float-panel .search-row .clear { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.float-panel .status { font-size: 14px; color: var(--ink-3); margin: 8px 0; }
.result-detail h2 { font-size: 20px; }
.route-form { display: grid; gap: 8px; }
.route-form .field { display: flex; align-items: center; gap: 10px; position: relative; }
.route-form .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: none; }
.route-form .dot.to { background: var(--lime); border-radius: 2px; }
.route-form input { flex: 1; height: 46px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--ink); padding: 0 16px; font-size: 15px; min-width: 0; }
.route-form input:focus { border-color: var(--lime-deep); background: var(--surface); }
.route-form .suggest { left: 20px; top: 100%; }
.route-toolbar { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.seg button:disabled { color: var(--ink-3); cursor: not-allowed; }
.route-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.route-option { display: grid; grid-template-columns: 6px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.route-option .bar { border-radius: 3px; background: var(--line-strong); }
.route-option[aria-pressed="true"] { border-color: var(--lime); }
.route-option[aria-pressed="true"] .bar { background: var(--lime); }
.route-option .time { font: 700 24px/1.1 var(--font-display); }
.route-option .time small { font: 500 15px/1 var(--font); color: var(--ink-3); margin-left: 8px; }
.route-option .desc { display: block; font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.route-option .time { display: block; }
.route-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.qr-inline { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 12px; }
.qr-inline svg { width: 96px; height: 96px; background: #fff; padding: 4px; border-radius: 8px; flex: none; }
.qr-inline[hidden] { display: none; }

/* Footer --------------------------------------------------------------------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 16px 24px; margin-top: auto; }
.footer .inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 24px; }
@media (min-width: 720px) { .footer .inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 20px/1 var(--font-display); }
.footer .brand svg { width: 26px; height: 26px; color: var(--lime-deep); }
.footer .tagline { color: var(--ink-3); font-size: 14px; margin-top: 10px; max-width: 320px; }
.footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.footer a { text-decoration: none; }
.footer .bottom { max-width: 1200px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; font-size: 13px; color: var(--ink-3); }

/* Embed ---------------------------------------------------------------------- */
body.embed { min-height: 100vh; background: var(--surface); }
.embed-frame { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.embed-frame .map-surface { position: absolute; inset: 0; }
.embed-frame .info { position: absolute; left: 8px; right: 8px; bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); z-index: 3; }
.embed-frame .info .text { flex: 1; min-width: 0; }
.embed-frame .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-frame .info small { color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-frame .logo { position: absolute; left: 8px; top: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); padding: 4px 10px 4px 6px; border-radius: 999px; text-decoration: none; font: 700 14px var(--font-display); box-shadow: var(--shadow); }
.embed-frame .logo svg { width: 18px; height: 18px; color: var(--lime-deep); }
.embed-frame.compact .info small { display: none; }

/* Error/empty pages (WebStates2 «Такой страницы нет»): status code in
   Unbounded 56 px, 20/600 title, text, search field, popular categories. */
.state-page { max-width: 560px; margin: 0 auto; padding: 24px 0 40px; display: flex; flex-direction: column; gap: 12px; }
.state-page .code { font: 700 56px/1 var(--font-display); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.state-page h1 { font: 600 20px/1.25 var(--font); letter-spacing: -.01em; }
.state-page .lead { margin: 0; font-size: 14px; }
.state-page .search-row { display: flex; gap: 8px; position: relative; margin: 4px 0; }
.state-page .search-row input { flex: 1; height: 48px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--ink); padding: 0 16px 0 44px; font-size: 16px; min-width: 0; }
.state-page .search-row input:focus { border-color: var(--lime-deep); background: var(--surface); }
.state-page .search-row > svg { position: absolute; left: 16px; top: 14px; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.state-page .search-row .btn { flex: none; }
.state-page .kicker { margin: 8px 0 0; }
.offline-page { padding-top: 48px; }
.offline-page .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; margin-bottom: 12px; }
.offline-page .brand svg { width: 28px; height: 28px; }
.state-page .grid-cards { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.state-page .actions { margin: 4px 0 0; }
@media (max-width: 599px) { .state-page .code { font-size: 44px; } .state-page .search-row .btn span { display: none; } .state-page .search-row .btn { width: 48px; padding: 0; } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; height: 16px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
[aria-busy="true"] .busy-hide { visibility: hidden; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 60; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.toast[hidden] { display: none; }
@media print { .header, .footer, .app-banner, .action-bar, .map-column, .map-static, .btn, .qr-block { display: none !important; } }

/* Utilities (strict CSP: no inline style attributes) ------------------------ */
.mt-6 { margin-top: 6px; } .mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; }
.m-0 { margin: 0; } .m-0-b { margin-bottom: 0; } .my-8-14 { margin: 8px 0 14px; } .ml-auto { margin-left: auto; }
.h-72 { height: 72px; } .h-panel { font-size: 22px; margin-bottom: 12px; } .h-coords { font-size: 28px; }
.plain { text-decoration: none; } .bold { font-weight: 600; } .centered { justify-content: center; } .centered-560 { max-width: 560px; margin: 0 auto; }
.pill.mini { height: 32px; font-size: 14px; }
.address-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 16px; color: var(--ink-2); margin: 0 0 8px; }
.address-line .muted { white-space: nowrap; }
.address-line svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--ink-3); }

@media (min-width: 1024px) { .shell .map-static { display: none; } }

/* Place card (wave 2.5 P-3): rating, status, hours, about, reviews ---------- */
.rating-row { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--ink-3); }
.rating-row .avg { font-size: 16px; font-weight: 700; color: var(--ink); }
.rating-row a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
.stars { display: inline-flex; gap: 2px; }
.star { width: 15px; height: 15px; display: block; fill: var(--star); }
.star.star-empty { fill: var(--line-strong); }
.star.star-half { fill: var(--star); opacity: .5; }
.score .star { width: 13px; height: 13px; }
.verified { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ok); }
.verified svg { width: 16px; height: 16px; }
.open-status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.open-status.closed { color: var(--ink-3); }
.open-status svg { width: 16px; height: 16px; flex: none; }
.card.hours { padding: 20px; }
.rule { border: 0; border-top: 1px solid var(--line-strong); margin: 10px 0; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--ink-2); }
.hours-table th { text-align: left; font-weight: 400; padding: 7px 0; }
.hours-table td { text-align: right; padding: 7px 0 7px 16px; white-space: nowrap; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--ink); font-weight: 600; }
.hours-table td.muted { color: var(--ink-3); }
.raw-hours { font-size: 14px; color: var(--ink-2); margin-top: 4px; word-break: break-word; }
.about p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.attributes { margin: 0; display: grid; gap: 8px; }
.attributes div { display: flex; gap: 12px; align-items: baseline; font-size: 14px; }
.attributes dt { flex: 1; color: var(--ink-2); margin: 0; }
.attributes dd { margin: 0; font-weight: 600; text-align: right; }
.review { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line-strong); }
.review:first-child { border-top: 0; padding-top: 0; }
.review:last-child { padding-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 10px; }
.review-head .avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--surface-3); display: grid; place-items: center; flex: none; color: var(--ink-3); }
.review-head .avatar svg { width: 18px; height: 18px; }
.review-head .who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.review-head .author { font-size: 14px; font-weight: 600; }
.review-head .when { font-size: 12px; color: var(--ink-3); }
.review-head .score { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.review-head .score .tnum { font-size: 16px; font-weight: 700; }
.review-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.reply { margin: 8px 0 0 44px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); display: flex; flex-direction: column; gap: 5px; }
.reply-label { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.reply p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 599px) { .reply { margin-left: 0; } }

/* Reviews page (P-4): WebOrg head (h1 + subline, rating row), WebCat filter
   chips and square pagination, the WebOrg review card, WebStates2 hint card. */
.page.narrow { max-width: 640px; }
/* Legal pages: long-form reading text in the narrow column. */
.legal-page .page-head { margin-bottom: 8px; }
.legal-page p, .legal-page li { line-height: 1.6; }
.legal-page ul { padding-left: 20px; display: grid; gap: 8px; }
.legal-page h2 { margin-bottom: 8px; }
.legal-operator { display: grid; gap: 8px; margin: 0; }
.legal-operator div { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 12px; }
.legal-operator dt { color: var(--ink-3); }
.legal-operator dd { margin: 0; overflow-wrap: anywhere; }
.page-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.page-head .subline { margin: 0; font-size: 16px; }
.subline a { color: var(--ink-2); text-decoration: none; }
.subline a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.card.summary { padding: 20px; }
.card.summary .rating-row { margin: 0; }
.card.summary .rule { margin: 12px 0; }
.histogram { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.histogram li { display: grid; grid-template-columns: 14px auto 1fr 32px; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.histogram .bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.histogram .fill { display: block; height: 100%; background: var(--star); border-radius: inherit; }
.histogram .count { text-align: right; color: var(--ink-3); }
.w-0 { width: 0; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; } .w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; }
.w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }
.chips.sort { margin: 16px 0 14px; }
.reviews-page .review { padding: 14px 0; }
.reviews-page .review:first-child { padding-top: 0; }
.reviews-page .review:last-child { padding-bottom: 0; }
.reviews-page .lead.small { font-size: 14px; color: var(--ink-3); }
.reviews-page > .actions { margin: 12px 0 0; }

/* Report form (P-5): WebOrg card, 44 px radio rows and the textarea in the
   WebCat field tokens (surface-2, #C9CDC5, radius 12), 44 px buttons; the
   outcome is a hint card, the failures are neutral notices. ---------------- */
.report-page .lead { margin: 0 0 16px; font-size: 14px; color: var(--ink-3); }
.report-form { padding: 20px; }
.report-form .field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.report-form legend, .report-form label[for] { display: block; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.report-form label[for] .muted { font-weight: 400; }
.radio-list { display: grid; gap: 8px; }
.radio-list label { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; font-size: 15px; }
.radio-list label:hover { border-color: var(--line-hover); }
.radio-list label:has(input:checked) { border-color: var(--accent-text); background: var(--surface); font-weight: 600; }
.radio-list label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.radio-list input { accent-color: var(--accent-text); width: 18px; height: 18px; margin: 0; flex: none; }
.radio-list input:focus-visible { outline: none; }
.report-form textarea { width: 100%; min-height: 128px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; }
.report-form textarea:focus { border-color: var(--accent-text); background: var(--surface); outline: 2px solid var(--focus); outline-offset: 2px; }
.turnstile-slot { display: flex; flex-direction: column; gap: 8px; }
.turnstile-slot .cf-turnstile { min-height: 65px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); }
.report-form .actions { gap: 10px; }
.card.hint.done .hint-head svg { width: 22px; height: 22px; }
.card.hint.done .hint-head { font-size: 18px; }
@media (max-width: 599px) { .report-form { padding: 16px; } .report-form .actions .btn { flex: 1; } }

/* Place photos: cover + horizontal strip; width/height attributes keep the
   box (no layout shift), links open the full-size file without JS. */
.gallery-cover { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gallery-cover img { width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.gallery-strip { list-style: none; margin: 10px 0 0; padding: 0 0 4px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.gallery-strip li { flex: none; scroll-snap-align: start; }
.gallery-strip a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gallery-strip img { width: auto; height: 96px; max-width: 180px; object-fit: cover; }
.gallery a:hover { border-color: var(--line-hover); }
.gallery a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 10, 9, .92); color: #F3F5F1; }
.lightbox::backdrop { background: rgba(8, 10, 9, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.lightbox-image { max-width: min(100vw - 32px, 1600px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox-caption { font-size: 14px; text-align: center; color: #D7DBD6; }
.lightbox-btn { position: fixed; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(243, 245, 241, .35); background: rgba(20, 23, 21, .8); color: #F3F5F1; display: grid; place-items: center; cursor: pointer; }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-btn:hover { background: #2A302C; }
.lightbox-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.lightbox-btn[hidden] { display: none; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
:root.lightbox-open { overflow: hidden; }
@media (max-width: 599px) { .gallery-strip img { height: 76px; } .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; } }

/* Home page (/{locale}/) ----------------------------------------------------- */
.home-top { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 1024px) { .home-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.home-where { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 4px; font-size: 16px; }
.home-where svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }
.home-where a { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.home-hero .actions { margin-top: 16px; }
.home-map { min-height: 360px; }
.home-map .map-static { height: 100%; aspect-ratio: auto; min-height: 360px; }
.home-near .place-list { margin-top: 12px; }
.home-near .place-card .distance { font-size: 14px; font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.home-other-city { margin: 8px 0 0; }
.home-other-city[hidden], .home-near [data-near-list][hidden] { display: none; }
.home-route { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.home-route h2, .home-seo h2 { margin: 0 0 6px; }
.home-route p { margin: 0; }
.home-seo p { color: var(--ink-2); max-width: 72ch; line-height: 1.6; }
