/* =====================================================================
   Dostupni Beograd - public site styles (mobile first)
   Font: Atkinson Hyperlegible. Contrast: text >= 4.5:1 everywhere.
   ===================================================================== */

/* Atkinson Hyperlegible, self-hosted (public/fonts, SIL Open Font License): no visitor IP goes to Google.
   Latin + Latin Extended (č ć š ž đ); the browser loads a file only when the page uses those letters.
   The font has no Cyrillic: Cyrillic letters come from Noto Sans (also self-hosted, OFL), which has the Serbian
   letter shapes (б, and д п т in italic) for lang="sr-Cyrl". It is a separate family second in the stack, with a
   Cyrillic unicode-range, so Latin pages never download it. */
@font-face { font-family: 'Noto Sans Cyrillic'; font-style: normal; font-weight: 100 900; font-display: swap;
             src: url('../fonts/noto-sans-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Noto Sans Cyrillic'; font-style: italic; font-weight: 100 900; font-display: swap;
             src: url('../fonts/noto-sans-italic-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap;
             src: url(../fonts/atkinson-400-latin.woff2) format('woff2');
             unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap;
             src: url(../fonts/atkinson-400-latin-ext.woff2) format('woff2');
             unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap;
             src: url(../fonts/atkinson-700-latin.woff2) format('woff2');
             unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap;
             src: url(../fonts/atkinson-700-latin-ext.woff2) format('woff2');
             unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap;
             src: url(../fonts/atkinson-400i-latin.woff2) format('woff2');
             unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap;
             src: url(../fonts/atkinson-400i-latin-ext.woff2) format('woff2');
             unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --ink:        #0B1726;
    --ink-2:      #3A4555;
    --muted:      #4A5668;
    --bg:         #F1F3F6;
    --surface:    #FFFFFF;
    --line:       #D9DEE6;
    --line-2:     #E8EBF0;

    --primary:    #2257E6;   /* lighter than the first proposal (#1747D1); white text still 5.6:1 */
    --primary-d:  #173FAE;
    --primary-ink:#0F318F;   /* text on primary-soft */
    --primary-soft:#E7EEFD;
    --signal:     #FFB21A;   /* amber: facilities, mid scores - always with dark text */
    --signal-soft:#FFF4DB;
    --signal-ink: #5C3800;
    --no-soft:    #EEF0F3;
    --error:      #B3261E;
    --ok:         #0B6E4F;

    --radius:     16px;
    --radius-sm:  12px;
    --gutter:     16px;
    --tap:        44px;
    --nav-h:      72px;
    --shadow:     0 2px 10px rgba(11, 23, 38, .12);

    --fs-base:    17px;
    font-size: var(--fs-base);
}
:root[data-text="lg"] { --fs-base: 19px; }
:root[data-text="xl"] { --fs-base: 22px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Atkinson Hyperlegible', 'Noto Sans Cyrillic', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--ink);
    background: var(--bg);
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: var(--primary-d); text-underline-offset: 2px; }
a:hover { color: var(--primary-ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; }

/* ---------- Type ---------- */
.h1 { font-size: 1.75rem; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.h2 { font-size: 1.2rem; margin: 0; }
.h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.label { font-size: .9rem; font-weight: 700; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { font-size: .85rem; font-weight: 700; color: var(--primary-d); text-decoration: none; }

/* ---------- Layout ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 20px var(--gutter) 32px; display: flex; flex-direction: column; gap: 28px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }

/* ---------- Header / footer / nav ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
          padding: 10px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.brand-mark .icon { stroke-width: 2.4; width: 28px; height: 28px; }   /* the logo symbol sets its own bolder strokes */
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand-tag { font-size: .8rem; color: var(--muted); }
.topbar-actions { display: flex; gap: 6px; }
.icon-btn { min-width: var(--tap); height: var(--tap); padding: 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--line);
            background: var(--surface); color: var(--ink); font-family: inherit; font-weight: 700; font-size: .9rem;
            display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
              background: var(--surface); border-top: 1px solid var(--line); padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; min-height: 56px;
                color: var(--muted); text-decoration: none; font-size: .8rem; font-weight: 700; border-radius: var(--radius-sm); }
.bottom-nav a[aria-current="page"] { color: var(--primary-d); background: var(--primary-soft); }
@media (min-width: 760px) {
    .bottom-nav { left: 50%; right: auto; width: 720px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; }
}
.site-footer { max-width: 720px; margin: 0 auto; padding: 8px var(--gutter) 24px; color: var(--muted); font-size: .85rem; }
.site-footer p { margin: 4px 0; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px;
       border-radius: 14px; border: 2px solid transparent; font-family: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--bg); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 14px; background: var(--ink); color: #fff; border-radius: 10px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-grow { flex: 1 1 auto; }
.btn-tile { flex-direction: column; gap: 2px; min-width: 76px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .8rem; }

.field { display: flex; flex-direction: column; gap: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select, textarea {
    font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm);
    min-height: 52px; padding: 10px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
.auth-form { max-width: 420px; width: 100%; margin: 0 auto; }

.notice { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.notice--warn  { background: var(--signal-soft); color: var(--signal-ink); }
.notice--error { background: #FBE9E7; color: var(--error); }
.notice--ok    { background: #E3F4EC; color: var(--ok); }

/* ---------- Home ---------- */
/* label, the row of icons, then "Izmeni" on its own line (all eight icons fit one row on a phone) */
.needs-chip { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line);
              border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.needs-chip__text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.needs-chip__icons, .needs-chip__one { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
/* phones: eight equal columns across the card, so the icons use the full width (fewer needs stay left-aligned) */
.needs-chip__icons { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.needs-chip__icons .needs-chip__ico { width: 100%; height: auto; aspect-ratio: 1; max-width: 42px; }
.needs-chip__icons .needs-chip__ico .icon { width: 55%; height: 55%; }
.needs-chip__one { gap: 8px; }
.needs-chip__one strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.needs-chip__ico { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-d); display: grid; place-items: center; flex-shrink: 0; }
/* tooltip: data-tip="text" on any element. Decorative only, the same text must also be available to screen readers */
/* The bubble exists only while hovered: an invisible one still takes room and pushed the page 8px wider on phones */
[data-tip] { position: relative; }
@media (hover: hover) {
    [data-tip]:hover::after, [data-tip]:hover::before { position: absolute; left: 50%; pointer-events: none; z-index: 30; transform: translateX(-50%); animation: tip-in .12s ease-out; }
    [data-tip]:hover::after { content: attr(data-tip); bottom: calc(100% + 10px); white-space: nowrap;
                              background: var(--ink); color: #fff; font-size: .85rem; font-weight: 700; line-height: 1.2; padding: 7px 11px; border-radius: 8px;
                              box-shadow: 0 4px 14px rgba(11,23,38,.25); }
    [data-tip]:hover::before { content: ""; bottom: calc(100% + 4px); border: 6px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
}
@keyframes tip-in { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { [data-tip]:hover::after, [data-tip]:hover::before { animation: none; } }
/* a quiet hint at the bottom: the whole card is the link */
.needs-chip__action { align-self: flex-start; font-size: .82rem; color: var(--muted); }
.needs-chip:hover .needs-chip__action, .needs-chip:focus-visible .needs-chip__action { color: var(--primary-d); text-decoration: underline; }

.search__box { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 8px 0 14px; background: var(--surface);
               border: 2px solid var(--ink); border-radius: var(--radius); }
.search__box input { border: 0; min-height: 52px; padding: 0; flex: 1; min-width: 0; }
.search__box input:focus { outline: none; }
.search__box:focus-within { outline: 3px solid var(--signal); outline-offset: 2px; }

.cta-near { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 18px; border-radius: 18px;
            background: var(--primary); color: #fff; text-decoration: none; }
.cta-near:hover { background: var(--primary-d); color: #fff; }
.cta-near__icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex-shrink: 0; }
.cta-near__text { display: flex; flex-direction: column; flex: 1; }
.cta-near__text strong { font-size: 1.1rem; }
.cta-near__text span { font-size: .85rem; opacity: .92; }

.quick-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px;
              background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
              text-decoration: none; font-weight: 700; font-size: .9rem; text-align: center; padding: 8px; }
.quick-tile__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--signal-soft); color: var(--signal-ink); display: grid; place-items: center; }
.cat-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 96px; padding: 14px 12px;
            background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.cat-tile .icon { color: var(--primary-d); }
.cat-tile__name { font-weight: 700; font-size: .9rem; line-height: 1.2; hyphens: auto; overflow-wrap: anywhere; }
.cat-tile__count { position: absolute; top: 12px; right: 12px; font-size: .75rem; color: var(--muted); }
.quick-tile:hover, .cat-tile:hover, .place-card:hover, .needs-chip:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Place card & score ---------- */
.place-card { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--line);
              border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.place-card__media { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--primary-soft); display: grid; place-items: center; }
.place-card__media img { width: 100%; height: 100%; object-fit: cover; }
.place-card__icon { color: var(--primary-d); }
.place-card__body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.place-card__cat { font-size: .8rem; color: var(--muted); }
.place-card__name { font-weight: 700; }
.place-card__addr { font-size: .85rem; color: var(--muted); }

.score { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 52px; flex-shrink: 0;
         border-radius: 14px; line-height: 1; }
.score__value { font-weight: 700; font-size: 1.1rem; }
.score__max { font-size: .7rem; font-weight: 700; }
.score--sm { width: 44px; height: 32px; border-radius: 10px; }
.score--high { background: var(--primary); color: #fff; }
.score--mid  { background: var(--signal); color: var(--ink); }
.score--low  { background: var(--no-soft); color: var(--ink); border: 2px solid #8D97A5; }
.score--none { background: var(--no-soft); color: var(--muted); }

/* ---------- Place detail ---------- */
.page-place .page { padding-top: 0; }
.place-hero { position: relative; height: 230px; margin: 0 calc(-1 * var(--gutter)); background: #CFD8E5; display: grid; place-items: center; overflow: hidden; }
.place-hero img { width: 100%; height: 100%; object-fit: cover; }
.place-hero__icon { color: var(--primary-d); }
.place-hero__count { position: absolute; right: 12px; bottom: 12px; background: rgba(11,23,38,.82); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 700; }
@media (min-width: 760px) { .place-hero { margin: 20px 0 0; border-radius: 20px; } }

.score-card { display: flex; align-items: center; gap: 16px; }
/* the ring fills up to the score when the page opens: --fill is registered as a number so it can be animated
   (browsers without @property just show the full ring) */
@property --fill { syntax: '<number>'; inherits: false; initial-value: 0; }
.ring { --c: var(--muted); --fill: var(--pct); position: relative; width: 80px; height: 80px; flex-shrink: 0; border-radius: 50%;
        background: conic-gradient(var(--c) calc(var(--fill) * 1%), var(--line-2) 0); display: flex; flex-direction: column; align-items: center; justify-content: center;
        animation: ring-fill 1.1s cubic-bezier(.25, .8, .3, 1) .15s both; }
@keyframes ring-fill { from { --fill: 0; } to { --fill: var(--pct); } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } }
.ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.ring > * { position: relative; }
.ring--high { --c: var(--primary); } .ring--mid { --c: var(--signal); } .ring--low { --c: #8D97A5; }
.ring__value { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.ring__max { font-size: .7rem; color: var(--muted); }
.verdict { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.verdict .icon { width: 26px; height: 26px; padding: 4px; border-radius: 50%; stroke-width: 3; }
.verdict--yes .icon { background: var(--primary); color: #fff; }
.verdict--partial .icon { background: var(--signal); color: var(--ink); }
.verdict--no .icon, .verdict--unknown .icon { background: var(--no-soft); color: var(--ink); }

.actions { display: flex; gap: 10px; }
.access-list { list-style: none; margin: 0; padding: 0; }
.access-list li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; }
.access-list li.is-mine { background: var(--primary-soft); font-weight: 700; }
.access-list__name { flex: 1; display: flex; flex-direction: column; }
.pill { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.pill .icon { stroke-width: 3.2; }
.pill--yes     { background: var(--primary-soft); color: var(--primary-ink); }
.pill--partial { background: var(--signal-soft); color: var(--signal-ink); }
.pill--no      { background: var(--no-soft); color: var(--muted); }
.pill--unknown { background: var(--surface); color: var(--muted); border: 1px dashed #8D97A5; }

.chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--bg); font-size: .9rem; font-weight: 700; }
.chip .icon { stroke-width: 3; }
.chip--plus    { background: var(--primary-soft); color: var(--primary-ink); }
.chip--barrier { background: var(--surface); color: var(--ink); border: 2px solid var(--signal); }
.chip--barrier .icon { color: var(--signal-ink); }
.chip--info    { background: var(--bg); color: var(--ink-2); }

.prose { line-height: 1.6; color: var(--ink-2); }
.prose .h1 { color: var(--ink); }   /* page title as dark as on every other page, only the body text is softer */
.prose p { margin: 0 0 .8em; }
.prose p:last-child { margin-bottom: 0; }

.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 400; } .hours dd { margin: 0; font-weight: 700; text-align: right; }
.hours .is-today { font-weight: 700; color: var(--primary-ink); }

.contact { display: flex; flex-direction: column; }
.contact a { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact a:last-child { border-bottom: 0; }
.contact .icon { color: var(--muted); }
.report-link { align-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); font-weight: 700; text-decoration: none; align-self: flex-start; }

.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: thin; }
.filter-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px; border-radius: 999px;
               background: var(--surface); border: 2px solid var(--line); color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; }
.filter-chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip__n { font-weight: 400; opacity: .8; }
.empty-state { text-align: center; padding: 32px 8px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-state .h1 { color: var(--ink); }
/* share menu (only where the phone's own share sheet is missing) */
.share-wrap { position: relative; }
.share-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; display: flex; flex-direction: column; padding: 6px;
              background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(11,23,38,.18); }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 12px; border: 0; border-radius: 10px;
                                    background: none; color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: left; }
.share-menu a:hover, .share-menu button:hover { background: var(--bg); }
@media (max-width: 1023.98px) { .share-menu { right: auto; left: 0; } }   /* phones: the button is on the left edge */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pager__info { color: var(--muted); font-size: .9rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }

/* ---------- Needs picker ---------- */
.needs-grid { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.need-option { position: relative; cursor: pointer; }
.need-option input { position: absolute; opacity: 0; inset: 0; }
.need-option__box { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 112px; height: 100%; padding: 14px;
                    border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.need-option__top { display: flex; justify-content: space-between; align-items: center; }
.need-option__check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #8D97A5; display: grid; place-items: center; color: transparent; }
.need-option__check .icon { stroke-width: 3.4; }
.need-option__label { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.need-option input:checked + .need-option__box { border-color: var(--primary); background: var(--primary-soft); }
.need-option input:checked + .need-option__box .icon { color: var(--primary-d); }
.need-option input:checked + .need-option__box .need-option__check { background: var(--primary); border-color: var(--primary); color: #fff; }
.need-option input:checked + .need-option__box .need-option__check .icon { color: #fff; }
.need-option input:focus-visible + .need-option__box { outline: 3px solid var(--signal); outline-offset: 2px; }

/* ---------- Map ---------- */
/* explore view (map, categories, search). Phones show the list or the map, desktop shows both */
.explore-map { display: none; }
.is-map-view .explore-map { display: block; position: fixed; top: 65px; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 20; }
.is-map-view .results__filters, .is-map-view .results__list, .is-map-view .site-footer { display: none; }
/* higher specificity than maplibre-gl.css, which sets .maplibregl-map { position: relative } */
.explore-map > .map { position: absolute; inset: 0; z-index: 0; }   /* own stacking context: markers never rise above the card and buttons */
.explore-search .search__box { margin: 0; }
.view-count { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .92rem; color: var(--muted); }
.view-count[hidden], [data-js-hide][hidden] { display: none; }
.link-btn { background: none; border: 0; padding: 0; min-height: 32px; color: var(--primary-d); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.link-btn[hidden] { display: none; }
.map-toggle { position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); transform: translateX(-50%); z-index: 25; display: inline-flex; align-items: center; gap: 8px;
              min-height: var(--tap); padding: 0 22px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 4px 16px rgba(11,23,38,.3); cursor: pointer; }
.map-toggle[hidden], .map-toggle span[hidden] { display: none; }
.map-toggle span { display: inline-flex; align-items: center; gap: 8px; }
.explore:has(.sheet:not([hidden])) .map-toggle { display: none; }
.layer-chip__n { font-size: .78rem; font-weight: 700; color: var(--muted); }
.layer-chip[aria-pressed="true"] .layer-chip__n { color: #C9D2DE; }
.layer-chip__n { min-width: 1.2em; text-align: center; font-variant-numeric: tabular-nums; }   /* the count changes while panning */
.layer-chip.is-empty:not([aria-pressed="true"]) { color: var(--muted); box-shadow: none; border-color: var(--line); }
/* layer points: round ink badge with the type icon, never confused with a score pin */
.map-point { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--ink); color: #fff;
             border: 2px solid #fff; box-shadow: 0 2px 6px rgba(11,23,38,.3); cursor: pointer; }
.map-point .icon { stroke: currentColor; }
.map-point--yes { background: var(--primary); }
.map-point--partial { background: var(--signal); color: var(--ink); }
.map-point--unknown { background: #fff; color: var(--ink); border-color: var(--ink); }
.point-level { margin: 0; }
.map-point-cluster { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 10px; background: var(--ink); color: #fff;
                     border: 2px solid #fff; box-shadow: 0 2px 6px rgba(11,23,38,.3); font: 700 13px 'Atkinson Hyperlegible', sans-serif; cursor: pointer; }
.map-point-cluster:hover { background: var(--primary-d); }
/* a layer is on: places step back so the stops / toilets the visitor asked for stand out */
/* (a filter, because MapLibre sets an inline opacity on every marker) */
.has-layers .map-pin:not(.is-active):not(:hover), .has-layers .map-cluster:not(:hover) { filter: opacity(.45); }
.has-layers .map-legend .map-pin, .has-layers .map-legend .map-cluster { filter: none; }
.map-point-cluster--sample { min-width: 28px; height: 24px; padding: 0 5px; font-size: 11px; box-shadow: none; cursor: default; }
.map-point:hover { transform: scale(1.12); }
.map-point--lg { width: 56px; height: 56px; flex: none; cursor: default; }
.map-point--lg:hover { transform: none; }
.map-point--sample { width: 24px; height: 24px; box-shadow: none; cursor: default; }
.map-point--sample:hover { transform: none; }
.map-layers { position: absolute; top: 12px; left: 0; right: 0; display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 6px; z-index: 2; }
.layer-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px; border-radius: 999px;
              background: var(--surface); color: var(--ink); border: 2px solid var(--surface); box-shadow: var(--shadow); font-family: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.layer-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.map-locate { position: absolute; right: var(--gutter); bottom: 120px; z-index: 2; width: 52px; height: 52px; box-shadow: var(--shadow); border: 0; color: var(--primary-d); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -4px 20px rgba(11,23,38,.16);
         padding: 10px var(--gutter) 16px; display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.sheet[hidden] { display: none; }
.sheet:focus { outline: none; }   /* focused by script when it opens, so screen readers land in it */
.sheet__handle { align-self: center; width: 44px; height: 5px; border-radius: 3px; background: #C4CBD5; }
.sheet__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); }
.sheet__close:hover { background: var(--bg); }
.sheet-place { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; margin-bottom: 12px; padding-right: 40px; }
.map-legend { position: absolute; left: var(--gutter); top: 66px; z-index: 2; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); font-size: .88rem; max-width: calc(100% - 2 * var(--gutter) - 70px); }
.map-legend summary { min-height: var(--tap); display: flex; align-items: center; padding: 0 14px; font-weight: 700; cursor: pointer; }
.map-legend summary::-webkit-details-marker { display: none; }
.map-legend summary::after { content: "▾"; margin-left: 8px; transition: transform .15s; }
.map-legend[open] summary::after { transform: rotate(180deg); }
.map-legend ul { list-style: none; margin: 0; padding: 0 14px 12px; display: grid; gap: 6px; }
.map-legend li { display: flex; align-items: center; gap: 8px; }
.map-legend li { display: grid; grid-template-columns: 36px 1fr; }
.map-legend li > :first-child { justify-self: center; }
.sheet-place .score { width: 56px; height: 56px; flex: none; margin-left: auto; }
.sheet-place__body { flex: 1; min-width: 0; }
.sheet-place__img { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-d); }
.sheet-place__img img { width: 100%; height: 100%; object-fit: cover; }
.sheet-place__img.is-logo { background: #fff; border: 1px solid var(--line); }
.sheet-place__img.is-logo img { object-fit: contain; padding: 4px; box-sizing: border-box; }
/* place card on the map: photo banner edge to edge, close button and score on it */
.sheet:has(.pcard) { padding-top: 0; overflow: hidden; }
.sheet:has(.pcard) .sheet__handle { display: none; }
.sheet:has(.pcard) .sheet__close { top: 10px; right: 10px; z-index: 2; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(11,23,38,.25); }
.sheet:has(.pcard) .sheet__close:hover { background: #fff; }
.pcard { display: flex; flex-direction: column; gap: 12px; }
.pcard__top { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.pcard__media { height: 120px; overflow: hidden; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-d); }
.pcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcard__media.is-logo { background: #fff; border-bottom: 1px solid var(--line); }
.pcard__media.is-logo img { width: auto; height: auto; max-width: calc(100% - 120px); max-height: calc(100% - 24px); object-fit: contain; }
.pcard__media.is-none { height: 100px; }   /* tall enough that the close button and the score never touch */
.pcard__score { position: absolute; right: var(--gutter); bottom: -26px; width: 60px; height: 60px; border-radius: 16px;
                box-shadow: 0 0 0 4px var(--surface), 0 4px 12px rgba(11,23,38,.18); }
.pcard__score .score__value { font-size: 1.25rem; }
.pcard__body { display: flex; flex-direction: column; gap: 2px; padding-right: 72px; }   /* room for the score */
.pcard__cat { margin: 0; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__name { color: var(--ink); font-size: 1.2rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.pcard__name:hover { text-decoration: underline; }
.pcard__addr { margin: 0; font-size: .92rem; color: var(--muted); }
.pcard__verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 8px 0 0; font-size: 1rem; font-weight: 700; }
.pcard__verdict .icon { width: 22px; height: 22px; padding: 3px; }
.pcard__for { font-weight: 400; color: var(--muted); }
/* with the answer above, the visitor's own profiles only need a tint, not an outline on each */
.pcard .acc-dot.is-mine { box-shadow: none; }
/* the marks hang 4 px below the icons: keep clear space before the buttons */
.pcard { margin-bottom: 16px; }
.pcard .acc-row { margin-bottom: 0; }
@media (min-width: 1024px) { .pcard__media { height: 140px; } }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-actions .btn { justify-content: center; padding-inline: 12px; white-space: nowrap; }
/* map card: the 8 profiles, icon + a level mark in the corner (shape and colour, never colour alone) */
/* 8 equal columns across the card: one row on every phone, room for the corner marks */
.acc-row { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; justify-items: center; }
.acc-dot { position: relative; display: grid; place-items: center; width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 10px; background: var(--bg); color: var(--ink); }
.acc-dot.is-mine { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-soft); }
.acc-dot--no > .icon, .acc-dot--unknown > .icon { opacity: .55; }
.acc-dot__mark { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface); }
.acc-dot__mark .icon { stroke-width: 3.5; }
.acc-dot--yes .acc-dot__mark { background: var(--primary); color: #fff; }
.acc-dot--partial .acc-dot__mark { background: var(--signal); color: var(--ink); }
.acc-dot--no .acc-dot__mark { background: #5B6675; color: #fff; }
.acc-dot--unknown .acc-dot__mark { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px #8D97A5; }
.sheet-place__body { display: flex; flex-direction: column; }
.map-status { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 2; margin: 0; }
.map-status:empty { display: none; }
.map-legend[open] { z-index: 3; max-width: calc(100% - 2 * var(--gutter)); }
.map-legend__ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; }
.map-legend__ico .icon { stroke: currentColor; }
.map-filters-btn { position: absolute; right: var(--gutter); top: 74px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px;
                   border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.map-filters-btn[hidden], .filters-close[hidden] { display: none; }
/* filters over the map (phones, "Filteri" on the map) */
.is-map-view.is-filters-open .results__filters { display: flex; position: fixed; top: 65px; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 30;
                                                 overflow-y: auto; background: var(--surface); padding: 16px var(--gutter) 24px; }
.is-filters-open .filters-box > summary { display: none; }
.filters-close { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; color: var(--ink); }
.filters-close:hover { background: var(--bg); }
.is-filters-open .results__filters .h1 { padding-right: 52px; }
.is-filters-open .filters-form__actions { position: sticky; bottom: -24px; z-index: 1; background: var(--surface); padding: 12px 0 16px; margin-bottom: -16px; box-shadow: 0 -8px 12px -8px rgba(11,23,38,.15); }

/* phones: icon + count layer chips, all in one row (names are in the legend and for screen readers) */
@media (max-width: 1023.98px) {
    .layer-chip { flex: 1 1 0; min-width: 0; max-width: 76px; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 2px; border-radius: 14px; }
    .layer-chip__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .map-legend { top: 74px; }
    .map-status { top: 130px; }
}
@media (min-width: 1024px) { .map-legend__type { display: none; } }
.map-status:not(:empty) { background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .9rem; }
.me-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); border: 4px solid #fff; box-shadow: 0 0 0 10px rgba(34,87,230,.2); }

/* ---------- Forms: choices, reviews, footer ---------- */
.field-error { margin: 0; color: var(--error); font-weight: 700; font-size: .9rem; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.choice-list { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.choice-list legend { margin-bottom: 8px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.choice input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.choice > span { display: flex; flex-direction: column; gap: 2px; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 2px; }
textarea { resize: vertical; line-height: 1.5; }
input[type="file"] { font: inherit; }
input[type="date"] { font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm); min-height: 52px; padding: 10px 14px; }

.btn-small-outline { min-height: var(--tap); padding: 0 14px; align-self: flex-start; }
.btn-small-outline[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }

.reviews { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.review { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.review:last-child { border-bottom: 0; }
.review p { margin: 6px 0 0; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stars { color: #B46B00; letter-spacing: 1px; font-size: 1.05rem; }
.stars__off { color: #C4CBD5; }
.review-form summary { list-style: none; cursor: pointer; }
.review-form summary::-webkit-details-marker { display: none; }
.review-form[open] summary { margin-bottom: 14px; }
.rating-input { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rating-input legend { margin-bottom: 6px; width: 100%; }
.rating-input label { position: relative; }
.rating-input input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rating-input label span { display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 2px solid var(--line); border-radius: 12px; font-weight: 700; background: var(--surface); }
.rating-input input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.rating-input input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }

.footer-links { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { display: inline-block; min-height: 36px; padding: 6px 0; font-weight: 700; }
.footer-links .link-btn { font-size: inherit; min-height: 36px; padding: 6px 0; text-decoration: underline; }   /* "Instaliraj aplikaciju" looks like the links around it */

/* =====================================================================
   Layout v2 - shared structure (mobile) + desktop from 1024px
   ===================================================================== */
:root { --hdr: 73px; }
.topbar-inner { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.top-nav, .account-btn, .show-desktop { display: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
/* tabs: a scrollable row of pills on phones; the panel heading is only for the no-JS view */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs[hidden] { display: none; }
.tab { flex-shrink: 0; min-height: var(--tap); padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
       color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs-on .tab-panel__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab-panel[hidden] { display: none; }
/* no connection: a thin bar above the bottom nav (desktop: at the bottom of the window) */
.offline-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 60; margin: 0;
               padding: 8px 16px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 700; text-align: center; }
.offline-bar[hidden] { display: none; }
@media (min-width: 1024px) { .offline-bar { bottom: 0; } }
.notice-soft { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--signal-soft); color: var(--signal-ink); }
.breadcrumb { font-size: .9rem; color: var(--muted); }

/* home */
.hero { display: flex; flex-direction: column; gap: 28px; }
.hero__sub { margin: 0; color: var(--ink-2); }
.quick-grid, .cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.card-grid { display: flex; flex-direction: column; gap: 10px; }
.btn-signal { background: var(--signal); color: var(--ink); align-self: flex-start; }
.btn-signal:hover { background: #E89E00; color: var(--ink); }
.method { background: var(--ink); color: #fff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.method p { margin: 0; color: #C9D2E0; }
.method a:not(.btn) { color: #fff; font-weight: 700; }
/* phones: a numbered timeline (badge + connecting line); desktop turns the steps into three boxes */
.method__steps { display: flex; flex-direction: column; counter-reset: step; }
.method__step { counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 0 24px 48px; }
.method__step:last-child { padding-bottom: 0; }
.method__step:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 6px; width: 2px; border-radius: 1px; background: rgba(255,255,255,.18); }
.method__step span:not(.method__n) { color: #C9D2E0; }
.method__n { font-size: .85rem; font-weight: 700; color: var(--signal); }
.method__n::before { content: counter(step); position: absolute; left: 0; top: -6px; width: 34px; height: 34px; border-radius: 50%;
                     display: grid; place-items: center; background: var(--signal); color: var(--ink); font-size: 1rem; }
.method__step .btn { align-self: flex-start; margin-top: 4px; }
/* the eight profiles in one row */
.method__icons { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 36px)); gap: 5px; }
.method__icons li { width: 100%; aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.method__icons .icon { width: 62%; height: 62%; }

/* footer */
/* its own white band (like desktop), so it never reads as part of the page above */
.site-footer { max-width: none; margin-top: 28px; padding: 28px var(--gutter) 24px; background: var(--surface); border-top: 1px solid var(--line); }
/* phones: the about text full width, the link groups two by two */
.site-footer__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__brand strong { color: var(--ink); font-size: 1.05rem; }
.site-footer__brand p { margin: 6px 0 0; }
.site-footer__h { font-size: .95rem; color: var(--ink); margin: 0 0 6px; }
.site-footer .footer-links { flex-direction: column; gap: 0; margin: 0; }
.partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.partner-list li { display: flex; align-items: center; min-height: 44px; }
.partner-list img { max-height: 44px; max-width: 140px; width: auto; }
.site-footer__legal { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* list + map results */
.results { display: flex; flex-direction: column; gap: 16px; }
.results__filters { display: flex; flex-direction: column; gap: 12px; }
.filters-box > summary { list-style: none; cursor: pointer; }
.filters-box > summary::-webkit-details-marker { display: none; }
.filters-box[open] > summary { margin-bottom: 12px; }
.filters-form { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filters-form legend { margin-bottom: 6px; }
.filters-form .check-row { align-items: center; min-height: 40px; }
.check-row__grow { flex: 1; }
/* short options (needs, extras) side by side: half the height, still real checkboxes */
/* auto tracks: each column is as wide as its longest word, so words never break in the middle */
.check-grid { display: grid; grid-template-columns: repeat(2, auto); column-gap: 12px; font-size: .95rem; }
.check-grid .check-row { gap: 6px; line-height: 1.2; }
.check-grid .check-row input, .check-grid .check-row .icon { flex-shrink: 0; }
.more-subs > summary { list-style: none; display: inline-flex; align-items: center; min-height: 40px; }
.more-subs > summary::-webkit-details-marker { display: none; }
.more-subs[open] > summary { display: none; }
[data-desktop-auto][hidden] { display: none; }
.filters-form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.seg-pub { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg-pub label { position: relative; }
.seg-pub input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-pub span { display: grid; place-items: center; min-height: 44px; font-weight: 700; font-size: .9rem; border-right: 1px solid var(--line); }
.seg-pub label:last-child span { border-right: 0; }
.seg-pub input:checked + span { background: var(--ink); color: #fff; }
.seg-pub input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: -3px; }
.results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.results__head p { margin: 0; }
.results__sort { display: flex; align-items: center; gap: 8px; }
.results__sort select { min-height: 40px; padding: 4px 10px; width: auto; }
[data-place-card].is-active .place-card { border-color: var(--ink); box-shadow: 0 4px 14px rgba(11,23,38,.14); }
.map-pin { display: flex; align-items: center; height: 32px; padding: 0 9px; border-radius: 16px 16px 16px 4px; font: 700 14px 'Atkinson Hyperlegible', sans-serif;
           border: 2px solid #fff; box-shadow: 0 2px 8px rgba(11,23,38,.25); text-decoration: none; cursor: pointer; transition: transform .12s; }
.map-pin--high { background: var(--primary); color: #fff; }
.map-pin--mid  { background: var(--signal); color: var(--ink); }
.map-pin--low  { background: #5B6575; color: #fff; }
.map-pin--none { background: #fff; color: var(--muted); border: 2px dashed #8D97A5; }
.map-pin.is-active, .map-pin:hover { transform: scale(1.18); border-color: var(--ink); z-index: 5; }
.map-pin--sample { display: inline-flex; height: 24px; padding: 0 7px; font-size: 12px; box-shadow: none; min-width: 34px; justify-content: center; }
.map-pin--sample:hover { transform: none; }
.map-cluster { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); color: var(--ink);
               border: 3px solid var(--ink); font: 700 14px 'Atkinson Hyperlegible', sans-serif; box-shadow: 0 2px 8px rgba(11,23,38,.25); cursor: pointer; padding: 0; }
.map-cluster--md { width: 46px; height: 46px; font-size: 15px; }
.map-cluster--lg { width: 56px; height: 56px; font-size: 16px; }
.map-cluster:hover { background: var(--ink); color: #fff; }
.map-cluster--sample { width: 30px; height: 30px; font-size: 12px; border-width: 2px; box-shadow: none; flex: none; }

/* place */
.gallery { position: relative; height: 230px; margin: 0 calc(-1 * var(--gutter)); background: #CFD8E5; overflow: hidden; display: grid; }
.gallery__item { display: block; }
.gallery__item:not(:first-child) { display: none; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__empty { display: grid; place-items: center; color: var(--primary-d); }
.gallery__all { position: absolute; right: 12px; bottom: 12px; background: rgba(11,23,38,.85); color: #fff; border-radius: 999px; padding: 8px 14px; font-size: .85rem; font-weight: 700; text-decoration: none; }
.gallery__all:hover { color: #fff; background: var(--ink); }
.place-title { display: flex; flex-direction: column; gap: 12px; }
.place-layout { display: flex; flex-direction: column; gap: 16px; }
.place-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { display: flex; flex-direction: column; gap: 14px; }
.side-card p { margin: 0; }
.feature-cols { display: flex; flex-direction: column; gap: 4px; }
.nearby-grid { display: flex; flex-direction: column; gap: 10px; }
/* photo viewer: full screen on a dark background, one photo at a time */
.viewer { border: 0; padding: 0; margin: 0; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: #0B1726; color: #fff; overflow: hidden; }
html:has(.viewer[open]) { overflow: hidden; }   /* the page behind does not scroll (or show its scrollbar) */
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: #0B1726; }
.viewer__bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); }
.viewer__count { font-weight: 700; font-variant-numeric: tabular-nums; }
.viewer__count[hidden] { display: none; }
.viewer__link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: #fff; font-weight: 700; }
.viewer__bar form { margin-left: auto; }
.viewer__close { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.viewer__close:hover { background: rgba(255,255,255,.22); }
.viewer__track { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; overflow-y: hidden;
                 scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.viewer__track::-webkit-scrollbar { display: none; }
.viewer__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 0 16px; box-sizing: border-box; min-width: 0; }
.viewer__slide img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; }
.viewer__slide.is-logo img { background: #fff; padding: 24px; box-sizing: border-box; border-radius: 12px; max-width: min(100% - 32px, 520px); }
.viewer__caption { margin: 0; padding: 0 16px; color: #C9D2DE; text-align: center; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%;
               background: rgba(11,23,38,.7); color: #fff; cursor: pointer; }
.viewer__nav--prev { left: 10px; }
.viewer__nav--next { right: 10px; }
.viewer__nav:disabled { opacity: 0; pointer-events: none; }
.viewer__nav:hover { background: var(--ink); }
.viewer :focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
/* phones swipe; the arrows stay small and low so they never cover the middle of the photo */
@media (max-width: 1023.98px) { .viewer__nav { top: auto; bottom: 18px; transform: none; width: 48px; height: 48px; } }
@media (min-width: 1024px) { .viewer__slide { padding: 0 80px 24px; } }   /* room for the side arrows */

/* ---------------------------------------------------------------------
   Desktop
   --------------------------------------------------------------------- */
@media (min-width: 1024px) {
    :root { --fs-base: 18px; }
    :root[data-text="lg"] { --fs-base: 20px; }
    :root[data-text="xl"] { --fs-base: 23px; }
    body { padding-bottom: 0; }
    .bottom-nav, .hide-desktop { display: none !important; }
    .show-desktop { display: block; }

    .topbar { padding: 0; }
    .topbar-inner { max-width: 1240px; margin: 0 auto; padding: 14px 32px; gap: 28px; }
    .brand-mark { width: 44px; height: 44px; }
    .brand-name { font-size: 1.15rem; }
    .top-nav { display: flex; gap: 4px; flex: 1; }
    .top-nav a { display: flex; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
    .top-nav a:hover { background: var(--bg); color: var(--ink); }
    .top-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
    .account-btn { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
                   color: var(--ink); text-decoration: none; font-weight: 700; max-width: 220px; }
    .account-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .account-btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
    .account-btn--dark:hover { color: #fff; background: #000; }

    .page { max-width: 1240px; padding: 32px 32px 64px; gap: 48px; }
    .page--narrow { max-width: 760px; }
    .h1 { font-size: 2.3rem; }
    .h2 { font-size: 1.6rem; }

    /* home */
    .hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px; }
    .hero__title { font-size: 3rem; line-height: 1.05; letter-spacing: -.02em; }
    .hero__sub { font-size: 1.1rem; max-width: 34em; }
    /* needs card: label, a row of large profile icons, then "Izmeni" on its own line */
    .hero .needs-chip { align-self: flex-start; max-width: 100%; gap: 12px;
                        border-radius: 22px; background: var(--primary-soft); border-color: transparent; padding: 16px 20px 14px; }
    .hero .needs-chip__text { gap: 10px; }
    .hero .needs-chip__icons, .hero .needs-chip__one { display: flex; gap: 8px; }
    .hero .needs-chip__one strong { font-size: 1.15rem; }
    .hero .needs-chip__ico, .hero .needs-chip__icons .needs-chip__ico { width: 52px; height: 52px; max-width: none; background: var(--surface); }
    .hero .needs-chip__ico .icon, .hero .needs-chip__icons .needs-chip__ico .icon { width: 28px; height: 28px; }
    .hero .search__box { min-height: 64px; }
    /* "Hitno mi treba": one row of six tiles under the hero card, same tile design as on phones */
    .urgent .quick-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
    .urgent .quick-tile { min-height: 112px; font-size: 1.02rem; }
    .urgent .quick-tile__icon { width: 52px; height: 52px; border-radius: 16px; }
    .urgent .quick-tile__icon .icon { width: 28px; height: 28px; }
    .hero-map { position: relative; min-height: 480px; border-radius: 22px; overflow: hidden; background: #E9EDF2; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
    .hero-map .hero-map__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; } /* beats maplibre's .maplibregl-map { position: relative } */
    /* home map slideshow: which scene is showing, and the marker fade */
    .hero-map__scene { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
                       border-radius: 999px; background: var(--surface); box-shadow: 0 2px 10px rgba(11,23,38,.15); font-weight: 700; font-size: .92rem; }
    .hero-map__scene:empty { display: none; }
    .hero-map__scene .icon { color: var(--primary-d); }
    .hero-map__scene-n { min-width: 26px; padding: 2px 7px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-size: .82rem; text-align: center; }
    .mini-fade { transition: opacity .35s ease, transform .35s ease; }
    .mini-fade.is-out { opacity: 0; transform: translateY(6px) scale(.9); }
    @media (prefers-reduced-motion: reduce) { .mini-fade { transition: none; } }
    .hero-map__card { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
                      background: var(--surface); border-radius: 16px; padding: 14px 18px; box-shadow: 0 4px 16px rgba(11,23,38,.16); }
    .cat-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
    .cat-tile { min-height: 112px; }
    .card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
    .place-card--tile { position: relative; flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; border-radius: 20px; gap: 0; }
    .place-card--tile .place-card__media { width: 100%; height: 170px; border-radius: 0; }
    .place-card--tile .place-card__body { padding: 14px 16px 18px; gap: 4px; }
    .place-card--tile .place-card__name { font-size: 1.05rem; line-height: 1.25; }
    .place-card--tile .score { position: absolute; top: 12px; right: 12px; }
    .method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding: 48px; border-radius: 28px; }
    .method__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .method__step { background: rgba(255,255,255,.07); border-radius: 18px; padding: 18px; gap: 8px; }
    .method__step:last-child { padding-bottom: 18px; }
    .method__step::after { display: none; }
    .method__n::before { content: counter(step) " · "; position: static; display: inline; width: auto; height: auto; background: none; color: inherit; font-size: inherit; }
    .method__icons { grid-template-columns: repeat(4, minmax(0, 40px)); gap: 8px; }   /* 8 profiles = 4 x 2 in the narrow box */
    .method__icons .icon { width: 22px; height: 22px; }

    /* footer */
    .site-footer { background: var(--surface); border-top: 1px solid var(--line); max-width: none; padding: 0; font-size: .95rem; }
    .site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 1240px; margin: 0 auto; padding: 48px 32px 24px; }
    .site-footer__brand { grid-column: auto; }
    .site-footer__legal { max-width: 1240px; margin: 0 auto; padding: 16px 32px 32px; }

    /* list + map: filters and map stay in view while the page (and the list) scrolls */
    .page-results .page { max-width: none; padding: 0; gap: 0; }
    .results { display: grid; grid-template-columns: 300px minmax(0, 460px) minmax(0, 1fr); gap: 0; align-items: start; }
    .results__filters { position: sticky; top: var(--hdr); max-height: calc(100vh - var(--hdr)); overflow-y: auto; padding: 22px; background: var(--surface); border-right: 1px solid var(--line); min-height: calc(100vh - var(--hdr)); }
    .filters-box > summary { display: none; }
    .filters-form { border: 0; padding: 0; }
    .results__list { padding: 22px 20px 40px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); min-height: calc(100vh - var(--hdr)); }
    .results__map { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); }
    .page-results .search { max-width: 760px; margin: 24px auto 0; padding: 0 32px; }

    /* place: content left, summary card right (sticky) */
    .page-place .page { padding-top: 24px; gap: 24px; }
    .gallery { margin: 0; border-radius: 24px; height: auto; gap: 10px; background: transparent; }
    .gallery--1 { height: 420px; }
    .gallery--2 { grid-template-columns: 2fr 1fr; height: 420px; }
    .gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 205px 205px; }
    .gallery--3 .gallery__item:first-child { grid-row: 1 / 3; }
    .gallery__item:not(:first-child) { display: block; }
    .gallery__item { overflow: hidden; background: #CFD8E5; }
    .gallery__item img { transition: transform .2s; }
    .gallery__item:hover img { transform: scale(1.02); }
    .gallery__empty { height: 260px; background: #CFD8E5; border-radius: 24px; }
    .gallery__all { right: 16px; bottom: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(11,23,38,.18); padding: 10px 16px; font-size: .95rem; }
    .gallery__all:hover { background: var(--surface); color: var(--ink); }
    .place-title { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
    .place-title > .stack-sm { flex: 1; min-width: 0; }
    .place-title .place-title__actions { flex: none; flex-wrap: nowrap; }   /* a long name wraps, the buttons stay side by side */
    .place-title .h1 { font-size: 2.8rem; line-height: 1.05; letter-spacing: -.02em; }
    .place-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "main side"; gap: 32px; align-items: start; }
    .place-side { grid-area: side; position: sticky; top: calc(var(--hdr) + 24px); }
    .place-main { grid-area: main; }
    .side-card { box-shadow: 0 6px 24px rgba(11,23,38,.08); border-radius: 22px; padding: 22px; }
    .side-card .ring { width: 92px; height: 92px; }
    .side-card .ring__value { font-size: 1.7rem; }
    .access-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
    .feature-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
    .prose { max-width: none; }
    .prose p { max-width: 68ch; }
    .nearby-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .report-link { align-self: flex-start; }

    /* explore: an app-like screen. Each column scrolls on its own, the map always fills the height */
    .page-explore .site-footer { display: none; }
    .page-explore .results { height: calc(100vh - var(--hdr)); align-items: stretch; grid-template-columns: 356px minmax(0, 440px) minmax(0, 1fr); }   /* 356: two columns of checkboxes without "Sa / bebom" breaks */
    /* thin but visible: thumb #7A8494 is 3.5:1 on --bg, 3.9:1 on --surface; gutter stops cards shifting when the list gets short */
    .page-explore .results__filters,
    .page-explore .results__list { scrollbar-width: thin; scrollbar-color: #7A8494 transparent; scrollbar-gutter: stable; }
    .page-explore .results__filters { position: static; max-height: none; min-height: 0; height: 100%; box-sizing: border-box; gap: 10px; padding: 18px 18px 22px; overflow-x: hidden; }
    .page-explore .results__filters .h1 { font-size: 1.85rem; line-height: 1.15; }
    .page-explore .filters-form { gap: 14px; }
    .page-explore .results__list { min-height: 0; height: 100%; overflow-y: auto; box-sizing: border-box; }
    .page-explore .results__map { position: relative; top: auto; height: 100%; }
    .explore-map { display: block; }
    .explore-map .map-legend { top: auto; bottom: 12px; }
    .explore-map .map-layers { flex-wrap: wrap; padding: 0 70px 0 20px; }
    .explore-map .sheet { left: 20px; right: auto; top: auto; bottom: 68px; width: 440px; max-width: calc(100% - 40px); border-radius: 20px; margin: 0; box-shadow: 0 8px 28px rgba(11,23,38,.2); }
    .explore-map .sheet__handle { display: none; }
    .explore-map .map-locate { bottom: 140px; }
}

/* small phones (390px): the full name "Dostupni Beograd" next to Aa / Ћир / EN, buttons still 44px targets */
@media (max-width: 420px) {
    .topbar-inner { gap: 8px; }
    .brand { gap: 8px; }
    .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
    .brand-mark .icon { width: 26px; height: 26px; }
    .brand-name { font-size: 1rem; }
    .topbar-actions { gap: 4px; }
    .topbar-actions .icon-btn { min-width: 44px; height: 44px; padding: 0 6px; }
    /* "Доступни Београд" runs a little wider than the Latin name */
    html:lang(sr-Cyrl) .brand-name { font-size: .93rem; letter-spacing: -.01em; }
}
/* 360px and less: the name on two lines, without the tagline */
@media (max-width: 374px) {
    .brand-name { white-space: normal; line-height: 1.1; }
    .brand-tag { display: none; }
}

/* categories on phones: 2 columns, icon beside the name, so long names ("Ugostiteljstvo") never break mid-word */
@media (max-width: 1023px) {
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* icon left, name with its count under it: "Ugostiteljstvo" + "109" in one line did not fit a 174px tile */
    .cat-grid .cat-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center;
                          column-gap: 10px; row-gap: 1px; min-height: 64px; padding: 10px 12px; }
    .cat-grid .cat-tile .icon { grid-row: 1 / 3; }
    .cat-grid .cat-tile__name { align-self: end; overflow-wrap: break-word; hyphens: manual; }
    .cat-grid .cat-tile__count { position: static; align-self: start; }
}

/* ---------- Place page, matching mock-up D3 ---------- */
.place-title__addr { margin: 0; color: var(--muted); font-size: 1.05rem; }
.place-title__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.place-title__actions form { margin: 0; }
.btn-toggle[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.btn-fav[aria-pressed="true"] .icon { fill: currentColor; }   /* a filled heart once the place is a favourite */
.place-title__actions .btn { min-height: 48px; border-width: 2px; border-color: var(--line); }
.place-title__actions .btn:hover { border-color: var(--ink); }
.btn-lg { min-height: 56px; font-size: 1.05rem; }
.side-card__note { color: var(--ink-2); }
.side-card__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.side-card__pair .btn { min-height: 48px; border-width: 2px; border-color: var(--line); }
.side-card__pair .btn:hover { border-color: var(--ink); }
.info-card { padding: 0; overflow: hidden; }
.info-card__map { position: relative; height: 170px; background: #E9EDF2; }
.info-card__map > span { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.info-list { margin: 0; padding: 6px 20px 10px; }
.info-list > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; overflow-wrap: anywhere; }
/* wheelchair route page */
.route-page { display: flex; flex-direction: column; gap: 14px; }
.route-head { display: flex; flex-direction: column; gap: 6px; }
.route-head p { margin: 0; }
.route-back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; width: fit-content; font-weight: 700; }
.route-start { display: flex; flex-direction: column; gap: 6px; }
.route-start p { margin: 0; text-align: center; }
.route-map { height: 58vh; min-height: 320px; border-radius: 18px; overflow: hidden; background: #E8ECF1; }
.route-info { display: flex; flex-direction: column; gap: 12px; }
.route-info > p { margin: 0; }
.route-status:empty { display: none; }
.route-status { font-weight: 700; }
.route-result { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.route-result[hidden] { display: none; }
.route-sum { margin: 0; font-size: 1.15rem; }
.route-warn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.route-warn:empty { display: none; }
.route-warn li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--signal-soft); color: var(--signal-ink); font-weight: 700; }
.route-steps-box summary { min-height: var(--tap); display: flex; align-items: center; font-weight: 700; cursor: pointer; color: var(--primary-d); }
.route-steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.route-steps li { padding-left: 4px; }
.route-steps li > span:first-child { display: block; }
.route-steps__name { font-weight: 700; }
.route-start-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--ink), 0 2px 8px rgba(11,23,38,.35); }
@media (min-width: 1024px) {
    .route-page { display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-areas: "head map" "start map" "info map"; grid-template-rows: auto auto 1fr; gap: 16px 28px; align-items: start; }
    .route-head { grid-area: head; } .route-start { grid-area: start; } .route-info { grid-area: info; }
    /* .route-page > beats maplibre-gl.css (.maplibregl-map { position: relative }), which would turn "top" into an offset */
    .route-page > .route-map { grid-area: map; position: sticky; top: calc(var(--hdr) + 16px); height: calc(100vh - var(--hdr) - 48px); }
}
.info-list__sub { display: flex; align-items: center; gap: 4px; width: fit-content; min-height: 32px; margin-top: 2px; white-space: nowrap; }
.info-list__links { display: flex; flex-direction: column; gap: 4px; }
.week-hours { margin-top: 6px; }
.week-hours summary { cursor: pointer; color: var(--primary-d); font-weight: 700; min-height: 32px; }
.week-hours .hours div { padding: 5px 0; }
.prose__body.is-clamped { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.link-btn { align-self: flex-start; min-height: var(--tap); padding: 0; border: 0; background: none; font-family: inherit; font-weight: 700; font-size: 1rem; color: var(--primary-d); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.review-empty { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.review-empty p { margin: 0; }
.mini-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 70px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.mini-card:hover { border-color: var(--ink); color: var(--ink); }
.mini-card__meta, .mini-card__addr { font-size: .85rem; color: var(--muted); }
.mini-card__name { font-weight: 700; line-height: 1.25; }
.mini-card__score { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 36px; border-radius: 10px; font-weight: 700; }
.site-footer .site-footer__legal { margin: 20px 0 0; }

@media (min-width: 1024px) {
    #iskustva > .h3 { margin-bottom: 0; }
    .review-empty { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
    .site-footer .site-footer__legal { max-width: 1240px; margin: 0 auto; padding: 16px 32px 32px; border-top: 1px solid var(--line-2); }
    .side-card { gap: 18px; padding: 24px; }
    .side-card .score-card { gap: 18px; }
}

.review-empty .btn { white-space: nowrap; flex-shrink: 0; }
.info-list > div { grid-template-columns: 110px minmax(0, 1fr); }
@media (min-width: 1024px) {
    /* © line: same width as the footer columns (1240 container minus its 2×32px padding) */
    .site-footer .site-footer__legal { max-width: 1176px; margin: 0 auto; padding: 16px 0 32px; }
}

/* logos and icons: shown whole on white, never cropped */
.place-card__media.is-logo, .gallery__item.is-logo { background: #fff; }
.place-card__media.is-logo img, .gallery__item.is-logo img { object-fit: contain; padding: 8%; box-sizing: border-box; }
.gallery__item.is-logo img { padding: 6%; }
@media (min-width: 1024px) {
    .place-card--tile .place-card__media.is-logo { border-bottom: 1px solid var(--line-2); }
    .gallery__item.is-logo:hover img { transform: none; }
}
