/* Look "C" (owner's pick, 2026-10): white, black headings, one typeface with character, and the
   colour of the bank wherever a page or a point belongs to one bank (--bank). Green only for the
   site's own main action when no bank is in play. */
:root {
  --bg: #ffffff;
  --fg: #111317;
  --muted: #5f6670;
  --line: #e4e6ea;
  --panel: #f4f5f7;
  --accent: #111317;          /* controls that are on: the segmented switch, the chosen map style */
  --brand: #0d8a4f;           /* the site's own main action, "cash green" */
  --link: #111317;
  --ok: #0b7a43; --ok-bg: #dff3e7;
  --warn: #8a4708; --warn-bg: #fdebd3;
  --bad: #b3261e;
  --radius: 10px;
  --topbar: 56px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --fg: #eceef2;
    --muted: #9aa2ad;
    --line: #2a2e36;
    --panel: #1b1e24;
    --accent: #eceef2;
    --brand: #34c27d;
    --link: #eceef2;
    --ok: #5fe0a0; --ok-bg: #123824;
    --warn: #f3b26b; --warn-bg: #3a2814;
    --bad: #ff8a80;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 var(--font);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* One scale: 28 / 20 / 16, headings heavy and tight. */
h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; margin: 28px 0 10px; }
@media (max-width: 760px) { h1 { font-size: 24px; } h2 { font-size: 18px; } }
.muted { color: var(--muted); font-size: 13px; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---- header ---- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  height: var(--topbar); flex: none; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.brand { font-weight: 700; color: var(--fg); font-size: 17px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.search { position: relative; flex: 1; max-width: 460px; }
.menu-toggle { position: relative; margin-left: 4px; font-size: 20px; line-height: 1; padding: 6px 11px; border-radius: 10px; }
.menu-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.search input {
  width: 100%; padding: 8px 12px; font: inherit; color: var(--fg);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.search-results {
  position: absolute; z-index: 1000; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px;
  list-style: none; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 60vh; overflow-y: auto;
}
.search-results li a {
  display: flex; gap: 8px; align-items: baseline; padding: 6px 8px;
  border-radius: 6px; color: var(--fg);
}
.search-results li.active a, .search-results li a:hover { background: var(--panel); text-decoration: none; }
.search-results .t { font-weight: 600; }
.search-results .s { color: var(--muted); font-size: 13px; flex: 1; }
.search-results .c { color: var(--muted); font-size: 12px; }
.search-results .empty { padding: 8px; color: var(--muted); }
.search-results li.city .t::before { content: "◉ "; color: var(--accent); }
.langs { display: flex; gap: 6px; margin-left: auto; }
.langs a {
  padding: 4px 8px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 600;
}
.langs a[aria-current] { background: var(--panel); color: var(--fg); }

main { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---- map ---- */
.map-wrap { display: flex; flex: 1; min-height: 0; border-bottom: 1px solid var(--line); }
.map-wrap.short { flex: none; height: 380px; }
.map { flex: 1; min-height: 320px; background: var(--panel); }
.panel {
  width: 320px; flex: none; order: -1; overflow-y: auto; padding: 14px;
  border-right: 1px solid var(--line); background: var(--bg);
}
.lead { margin: 0 0 12px; }
.panel-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
button {
  font: inherit; cursor: pointer; color: var(--fg); background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px;
}
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; padding: 9px 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.legend-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 6px; }
.legend-head button { font-size: 12px; padding: 2px 8px; }
.legend { list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; }
.legend .bank { display: flex; align-items: center; gap: 8px; flex: 1; padding: 3px 0; cursor: pointer; }
.legend .name { flex: 1; }
.legend .count, .chips .count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.legend .more { color: var(--muted); padding: 0 4px; font-size: 18px; line-height: 1; }
.legend-note { margin-top: 10px; }
.swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none;
  border: 2px solid var(--bg); box-shadow: 0 0 0 1px rgba(0,0,0,.35); vertical-align: -1px;
}
.swatch.big { width: 16px; height: 16px; }

/* markers */
.pin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff;
       box-shadow: 0 0 2px rgba(0,0,0,.6); box-sizing: border-box; }
.pin.branch { border-radius: 3px; }
.pin.branch-only { border-radius: 3px; opacity: .55; }
.bank-pin { position: relative; width: 34px; height: 42px; --bank-color: #607d8b;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .38)); }
.bank-pin__tail { position: absolute; z-index: 0; left: 12px; top: 29px; width: 10px; height: 10px;
  transform: rotate(45deg); background: var(--bank-color); border-right: 2px solid #fff;
  border-bottom: 2px solid #fff; border-radius: 0 0 2px 0; }
.bank-pin__head { position: absolute; z-index: 1; left: 0; top: 0; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
  border-radius: 50%; background: var(--bank-color); box-sizing: border-box; }
.bank-pin__logo, .bank-pin__initials { width: 25px; height: 25px; border-radius: 50%; background: #fff; }
.bank-pin__logo { display: block; object-fit: contain; padding: 2px; }
.bank-pin__initials { display: flex; align-items: center; justify-content: center; color: var(--bank-color);
  font-size: 10px; font-weight: 800; line-height: 1; }
.bank-pin--ubb .bank-pin__logo { background: #0071bc; }
.bank-pin--office .bank-pin__tail { display: none; }
.bank-pin--office .bank-pin__head { height: 42px; border-radius: 17px 17px 4px 4px; }
.bank-pin--office.focus .bank-pin__head { height: 52px; border-radius: 21px 21px 5px 5px; }
.bank-pin.osm .bank-pin__head { border-style: dotted; }
.bank-pin.suspect .bank-pin__head { border-color: #d32f2f; border-style: dashed; }
.bank-pin.st-ok .bank-pin__head { box-shadow: 0 0 0 3px #2e9e4f; }
.bank-pin.st-down .bank-pin__head { box-shadow: 0 0 0 3px #d32f2f; }
.bank-pin__status { position: absolute; z-index: 2; top: -5px; right: -5px; width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center; border: 1px solid #fff; border-radius: 50%;
  background: #d32f2f; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }
.bank-pin.focus { width: 42px; height: 52px; }
.bank-pin.focus .bank-pin__head { width: 42px; height: 42px; box-shadow: 0 0 0 4px rgba(31, 111, 235, .3); }
.bank-pin.focus .bank-pin__tail { left: 15px; top: 36px; width: 12px; height: 12px; }
.bank-pin.focus .bank-pin__logo, .bank-pin.focus .bank-pin__initials { width: 31px; height: 31px; }
.bank-pin--office.focus { width: 34px; height: 42px; }
.bank-pin--office.focus .bank-pin__head { width: 34px; height: 42px; border-radius: 17px 17px 4px 4px;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, .3); }
.bank-pin--office.focus .bank-pin__logo, .bank-pin--office.focus .bank-pin__initials { width: 25px; height: 25px; }
.branch-pin { position: relative; width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; box-sizing: border-box; border: 2px solid #fff; border-radius: 6px;
  outline: 2px solid var(--bank-color); outline-offset: 1px; background: #fff;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .38)); }
.branch-pin::after { content: ''; position: absolute; left: 8px; bottom: -12px;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 10px solid var(--bank-color); }
.branch-pin__logo, .branch-pin__initials { width: 25px; height: 25px; }
.branch-pin__logo { display: block; object-fit: contain; padding: 2px; border-radius: 3px; }
.branch-pin__initials { display: flex; align-items: center; justify-content: center;
  color: var(--bank-color); font-size: 10px; font-weight: 800; line-height: 1; }
.branch-pin--ubb .branch-pin__logo { background: #0071bc; }
.branch-pin.suspect, .branch-pin.st-down { outline-color: #d32f2f; }
.branch-pin.st-ok { outline-color: #2e9e4f; }
.branch-pin__status { position: absolute; z-index: 2; top: -7px; right: -7px; width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center; border: 1px solid #fff; border-radius: 50%;
  background: #d32f2f; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }
.branch-pin.focus { width: 40px; height: 40px; outline-width: 3px; }
.branch-pin.focus::after { left: 12px; }
.branch-pin.focus .branch-pin__logo, .branch-pin.focus .branch-pin__initials { width: 32px; height: 32px; }
.me { width: 16px; height: 16px; background: var(--accent); border: 3px solid #fff;
      border-radius: 50%; box-shadow: 0 0 0 2px var(--accent); box-sizing: border-box; }
.leaflet-popup-content { margin: 10px 12px; }
.popup h3 { margin: 0 0 4px; font-size: 14px; }
.popup .b { font-weight: 700; margin-bottom: 2px; }
.popup table { border-collapse: collapse; }
.popup td { padding: 1px 0; }
.popup .details { display: inline-block; margin-top: 6px; font-weight: 600; }

/* ---- content ---- */
.content { padding: 20px 16px 28px; }
.content.narrow, .content > * { max-width: 960px; }
.content.narrow { margin: 0 auto; width: 100%; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.table th, .table td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table.facts th { width: 150px; }
.links a { margin-right: 14px; font-size: 14px; }
.source { margin-top: 18px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0; }
.chips a {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--fg);
}
.chips a:hover { border-color: var(--accent); text-decoration: none; }

.footer {
  flex: none; padding: 14px 16px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}

@media (max-width: 760px) {
  .map-wrap { flex-direction: column; }
  .map-wrap.short { height: 300px; }
  .panel { width: 100%; max-height: 44vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .map { min-height: 300px; }
  /* One low bar: the brand, the search, ☰. The languages are in the menu. */
  :root { --topbar: 52px; }
  .topbar { position: relative; z-index: 1500; padding: 0 10px; gap: 8px; }
  .brand span { display: none; }
  .brand { font-size: 22px; }
  .topbar .langs { display: none; }
  .search { max-width: none; }
  .search input { padding: 8px 10px; }
  .table.facts th { width: auto; }
}

.photo img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.flags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flags .flag {
  padding: 2px 9px; border-radius: 999px; font-size: 13px;
  background: var(--panel); border: 1px solid var(--line);
}
.flags .flag-h24, .flags .flag-deposit, .flags .flag-deposit_bundle { border-color: var(--accent); }

/* Точка, която банката е сложила далеч от собствения си адрес: личи, но не изчезва. */
.pin.suspect { border-color: #d32f2f; border-style: dashed; border-width: 3px; }
.warn { color: #b3261e; font-size: 13px; }
@media (prefers-color-scheme: dark) { .warn { color: #ff8a80; } }

/* Банка, която не публикува банкомати: показва се, но не заблуждава с нула. */
.legend li.no-atms { opacity: .7; }
.legend li.no-atms .count { font-size: 11px; font-style: italic; }

/* Обект, който идва от OpenStreetMap, а не от сайта на банка. */
.pin.osm { border-style: dotted; opacity: .9; }

/* ======================================================================
   Страница на банкомат: всичко важно в един екран, картата до него.
   ====================================================================== */
.page-atm main { display: block; }
/* Computer: the text on the left; on the right, kept in view, Street View over the street map.
   Phone: the heading, then Street View, then the map, then the rest. */
.atm-page {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 46%);
  grid-template-areas: "top media" "rest media"; grid-template-rows: auto 1fr;
  min-height: calc(100vh - var(--topbar));
}
.atm-page.no-map { grid-template-columns: minmax(0, 760px); grid-template-areas: "top" "rest"; justify-content: center; }
.atm-top { grid-area: top; padding: 18px 28px 0; max-width: 760px; width: 100%; justify-self: end; }
.atm-rest { grid-area: rest; padding: 4px 28px 28px; max-width: 760px; width: 100%; justify-self: end; }
.atm-media {
  grid-area: media; position: sticky; top: 0; align-self: start; height: calc(100vh - var(--topbar));
  display: flex; flex-direction: column; border-left: 1px solid var(--line);
}
.atm-media .atm-sv { flex: 55 1 0; width: 100%; min-height: 0; border: 0; display: block; }
.atm-media .atm-map { flex: 45 1 0; min-height: 0; height: auto; border-top: 1px solid var(--line); }
.atm-page:not(.has-pano) .atm-media .atm-map { flex: 1 1 0; border-top: 0; }
.atm-status { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.atm-status.st-ok { color: #2e7d32; }
.atm-status.st-down { color: #d32f2f; font-weight: 600; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.crumbs span { color: var(--muted); }

.atm-head { margin-bottom: 14px; }
.bank-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--fg); padding: 3px 10px 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--bank) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--bank) 35%, transparent);
}
.bank-chip:hover { text-decoration: none; border-color: var(--bank); }
.bank-chip .dot, .nearby .dot, .popup .dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--bank);
}
.atm-head h1 { font-size: 26px; line-height: 1.2; margin: 10px 0 4px; letter-spacing: -.01em; }
.atm-where { margin: 0; color: var(--fg); font-size: 16px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.atm-where .place { color: var(--muted); }

.atm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--fg); cursor: pointer; line-height: 1.2;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }

.note { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; }
.note.warn { background: color-mix(in srgb, #d32f2f 8%, transparent); }

.atm-rest .flags { margin: 4px 0 16px; }
.atm-rest .flags .flag { font-size: 13px; padding: 4px 10px; }

.facts {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 18px; margin: 0;
  border-top: 1px solid var(--line);
}
.facts dt, .facts dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { font-size: 14px; }
.facts .mono { font-variant-numeric: tabular-nums; }
.facts .links { display: inline-flex; flex-wrap: wrap; gap: 10px; margin-left: 10px; font-size: 13px; }

.raw { margin-top: 12px; font-size: 13px; color: var(--muted); }
.raw summary { cursor: pointer; }
.raw p { margin: 6px 0 0; }

.nearby { margin-top: 22px; }
.nearby h2 { font-size: 15px; margin: 0 0 6px; }
.nearby ol { list-style: none; margin: 0; padding: 0; }
.nearby a {
  display: grid; grid-template-columns: 10px auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: var(--fg); font-size: 14px;
}
.nearby a:hover { background: var(--panel); text-decoration: none; }
.nearby .who { font-weight: 600; white-space: nowrap; }
.nearby .where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.nearby .dist { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.atm-rest .source { margin-top: 20px; }

/* Попъп на картата: банка, адрес, услугите като етикети. */
.popup { min-width: 220px; }
.popup .b { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; }
.popup .w { margin-top: 3px; font-size: 13px; }
.popup .h { margin-top: 5px; font-size: 12px; color: var(--muted); }
.popup .pf { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 7px 0 0; padding: 0; }
.popup .pf li { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: #eef2f7; color: #25303d; }
.popup .details { margin-top: 8px; }

@media (max-width: 900px) {
  .atm-page, .atm-page.no-map { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "media" "rest"; min-height: 0; }
  .atm-top { padding: 14px 16px 14px; justify-self: stretch; }
  .atm-rest { padding: 14px 16px 24px; justify-self: stretch; }
  .atm-media { position: static; height: auto; border-left: 0; }
  .atm-media .atm-sv { flex: none; height: 56vw; max-height: 340px; }
  .atm-media .atm-map { flex: none; height: 240px; }
  .atm-page:not(.has-pano) .atm-media .atm-map { height: 280px; }
  .atm-head h1 { font-size: 22px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts .links { margin-left: 0; display: flex; margin-top: 4px; }
}
.pin.focus { width: 24px; height: 24px; border-width: 3px; box-shadow: 0 0 0 4px rgba(31,111,235,.25), 0 2px 6px rgba(0,0,0,.35); }

/* Рекламни места: височината е запазена отнапред, за да не подскача страницата. */
.ad-slot { margin: 16px 0; width: 100%; overflow: hidden; }
.ad-placeholder {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line); border-radius: 8px; color: var(--muted);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--panel);
}
.panel .ad-slot { margin: 14px 0 6px; }
.ad-row td { padding: 0 !important; border-bottom: 0 !important; }

/* Най-близките банкомати след „Покажи около мен“. */
.near-list { list-style: none; margin: 2px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.near-list a {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 9px; align-items: center;
  padding: 7px 10px; color: var(--fg); font-size: 13px; border-top: 1px solid var(--line);
}
.near-list li:first-child a { border-top: 0; }
.near-list a:hover { background: var(--panel); text-decoration: none; }
.near-list .dot { width: 10px; height: 10px; border-radius: 50%; }
.near-list .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-list .dist { color: var(--muted); font-variant-numeric: tabular-nums; }
button:disabled { opacity: .6; cursor: progress; }
.near-list .who small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.near-list .who small.pl { color: var(--fg); font-weight: 600; }


/* ======================================================================
   The home page: the map on the whole screen. The areas: title, big map, lists.
   The filters are in the menu ☰ (.drawer).
   ====================================================================== */
.page-map main, .page-area main { display: block; }
.home-full { position: relative; height: calc(100vh - var(--topbar)); height: calc(100dvh - var(--topbar)); }
.home-full .map-card { position: absolute; inset: 0; height: auto; border: 0; border-radius: 0; }
.home-directory { max-width: 1200px; margin: 0 auto; padding: 24px 16px 40px; }
.home-directory > p { margin: 0 0 20px; font-weight: 600; }
.area-directory h2 { margin: 0 0 10px; }
.directory-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; list-style: none; margin: 0 0 24px; padding: 0; }
.directory-links a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.directory-links .branch-count { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.directory-links small { color: var(--muted); white-space: nowrap; font-size: 12px; }
/* Between the map-style button (left) and the locate button (right), never under them. */
.map-title { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 500; margin: 0;
  max-width: calc(100% - 132px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.area-head { max-width: 1400px; margin: 0 auto; padding: 12px 16px 0; }
.area-head .crumbs { margin-bottom: 6px; }
.area-head h1 { margin: 0; font-size: 22px; }
.area-head p { margin: 2px 0 0; }
.area-body { max-width: 1400px; margin: 0 auto; padding: 12px 16px 24px; }
.home-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.home-main .source { margin: 0; font-size: 12px; }
.map-card {
  position: relative; height: clamp(380px, 64vh, 680px);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel);
}
.map-card .map { height: 100%; min-height: 0; }

/* The menu ☰: a panel from the right, over a shade. */
/* The menu ☰: a small window under the button, as tall as what is in it. */
.drawer-shade { position: fixed; inset: 0; z-index: 1990; background: rgba(0,0,0,.12); }
.drawer {
  position: fixed; top: calc(var(--topbar) + 6px); right: 8px; z-index: 2000; width: min(320px, calc(100vw - 16px));
  max-height: calc(100vh - var(--topbar) - 16px); max-height: calc(100dvh - var(--topbar) - 16px); overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.22);
  padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 10px;
}
.drawer-top { display: flex; align-items: center; justify-content: space-between; font-size: 15px; margin-bottom: -4px; }
.drawer-close { border: 0; background: none; font-size: 20px; padding: 6px 10px; color: var(--muted); }
.drawer-h { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.drawer-h h2 { margin: 0; font-size: 15px; }
.link-btn { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 4px 0; }
.drawer .panel { display: flex; flex-direction: column; gap: 10px; width: auto; max-height: none; padding: 0; border: 0; overflow: visible; order: 0; background: none; }
.drawer .check { font-size: 14px; min-height: 36px; }
.drawer .status { margin: 0; }
.drawer .status:empty { display: none; }
.drawer .legend { margin-top: 6px; }
.drawer .legend .bank { padding: 5px 0; font-size: 14px; gap: 9px; min-height: 36px; }
.drawer .legend .name { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer .legend .count { margin-right: auto; }
.drawer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; }
.drawer-links .drawer-langs { margin-left: auto; }
.drawer-langs { display: flex; gap: 6px; }
.drawer-langs a { padding: 4px 10px; border-radius: 6px; color: var(--muted); font-weight: 600; border: 1px solid var(--line); }
.drawer-langs a[aria-current] { color: var(--fg); background: var(--panel); }
body.drawer-open { overflow: hidden; }

.banks { border-top: 1px solid var(--line); padding-top: 8px; }
.banks summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; min-height: 34px; }
.banks summary::-webkit-details-marker { display: none; }
.banks summary::before { content: "\25B8"; color: var(--muted); transition: transform .15s; }
.banks[open] summary::before { transform: rotate(90deg); }
.banks-title { flex: 1; }
.banks-tools button { font-size: 12px; padding: 3px 8px; }

/* On the map: the round "near me" button, the nearest in a sheet, the filter chip, a short note. */
.locate-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: var(--bg); color: var(--fg); border: 0; box-shadow: 0 1px 5px rgba(0,0,0,.35); margin-bottom: 6px !important; }
.locate-btn.on { color: var(--accent); }
.locate-btn:disabled { color: var(--accent); animation: bm-pulse 1s ease-in-out infinite alternate; }
@keyframes bm-pulse { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .locate-btn:disabled { animation: none; } }
/* The map style: a round button over a short list (map, Esri map, satellite). */
.base-switch { position: relative; }
.base-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: var(--bg); color: var(--fg); border: 0; box-shadow: 0 1px 5px rgba(0,0,0,.35); }
.base-btn[aria-expanded="true"] { color: var(--accent); }
.base-menu { position: absolute; left: 0; bottom: 52px; display: flex; flex-direction: column; gap: 2px; padding: 4px;
  background: var(--bg); border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.3); min-width: 130px; }
.base-menu button { border: 0; background: none; text-align: left; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--fg); white-space: nowrap; }
.base-menu button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.near-sheet { position: absolute; z-index: 800; left: 12px; bottom: 12px; width: min(380px, calc(100% - 24px)); max-height: 55%;
  display: flex; flex-direction: column; background: var(--bg); border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.3); overflow: hidden; }
.near-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 4px 14px; }
.near-close { border: 0; background: none; font-size: 18px; color: var(--muted); padding: 4px 8px; }
.near-sheet .near-list { overflow-y: auto; border: 0; border-radius: 0; margin: 0; }
.filter-chip { position: absolute; z-index: 700; top: 56px; left: 10px; display: flex; border-radius: 999px; overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,.3); }
.filter-chip button { border: 0; border-radius: 0; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; }
.filter-chip .fc-clear { padding: 6px 10px; border-left: 1px solid rgba(255,255,255,.35); }
.map-toast { position: absolute; z-index: 750; left: 50%; bottom: 56px; transform: translateX(-50%); max-width: calc(100% - 32px);
  background: #1e2a36; color: #fff; font-size: 13px; padding: 7px 14px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.3); text-align: center; }

@media (max-width: 760px) {
  .area-body { padding: 10px 0 20px; }
  .area-body .map-card { border-radius: 0; border-left: 0; border-right: 0; height: 62vh; }
  .area-body .home-main > :not(.map-card) { padding: 0 16px; }
  .near-sheet { left: 0; right: 0; bottom: 0; width: auto; border-radius: 14px 14px 0 0; }
  /* The breadcrumb on one line that scrolls, not two. */
  .crumbs { flex-wrap: nowrap !important; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  .crumbs::-webkit-scrollbar { display: none; }
}

/* Областите: вход към страниците по области, общини и места. */
/* Превключвателят „Банкомати | Области“ върху картата на началната страница. */
.view-switch { display: flex; background: var(--bg); border-radius: 10px; padding: 3px; gap: 2px;
               box-shadow: 0 1px 5px rgba(0,0,0,.25); }
.view-switch button { border: 0; background: none; padding: 5px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.view-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
/* Chrome слага фокус на кликнатия полигон и огражда кутията му с черна рамка. */
.leaflet-interactive:focus { outline: none; }

/* Броят банкомати в една област или община, върху нея. */
/* The marker is a point of no size (a label box offset from its point would take the clicks
   meant for the land beside it); only the number is clickable, the name lets the click through
   to the area under it. */
.area-count {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; white-space: nowrap; pointer-events: none;
}
.area-count b {
  pointer-events: auto; cursor: pointer;
  min-width: 30px; padding: 3px 8px; border-radius: 999px; text-align: center; font-size: 13px;
  background: #1f2937; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.area-count span {
  margin-top: 2px; font-size: 11px; font-weight: 700; color: #1f2937;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
.area-count.zero b { background: #9aa2ad; }
.area-count:hover b { background: var(--accent); }

/* ======================================================================
   Снимките на обекта и админът.
   ====================================================================== */
.atm-photos { display: flex; gap: 8px; overflow-x: auto; margin: 4px 0 12px; }
.atm-photos img { height: 120px; width: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }

.page-admin main { display: block; }
.admin { max-width: 1200px; margin: 0 auto; padding: 16px; }
.narrow-admin { max-width: 420px; }
.admin h1 { margin: 0; }
.admin h2 { font-size: 16px; margin: 22px 0 8px; }
.admin-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.admin-bar form, .admin-bar .btn { margin-left: auto; }
.admin-msg { padding: 8px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.admin-msg.bad { border-color: #d32f2f; color: #b3261e; }
.admin-search { display: flex; gap: 8px; max-width: 640px; }
.admin-search input { flex: 1; }
.admin input:not([type=checkbox]):not([type=file]), .admin select, .admin textarea {
  font: inherit; color: var(--fg); background: var(--bg); padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; width: 100%;
}
.admin-form { display: flex; flex-direction: column; gap: 12px; }
.admin-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.admin-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.admin-list li + li { border-top: 1px solid var(--line); }
.admin-list a { display: grid; grid-template-columns: 170px 1fr auto; gap: 10px; padding: 8px 12px; color: var(--fg); }
.admin-list a:hover { background: var(--panel); text-decoration: none; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; align-items: start; }
.admin .field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.admin .field > label, .admin .field legend { font-size: 13px; font-weight: 600; }
.admin .field .row { display: flex; gap: 6px; }
.admin .field.own input, .admin .field.own select { border-color: var(--accent); }
.admin .tag { font-size: 11px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 6px; padding: 1px 6px; }
.admin .reset { flex: none; }
.flag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; font-size: 13px; }
.flag-grid label { display: flex; flex-direction: row; justify-content: flex-start; gap: 6px; align-items: center; font-weight: 400; }
.service-group-title { margin-top: 12px; font-size: 13px; }
.service-group h2 { font-size: 14px; margin: 14px 0 5px; }
.deposit-place { margin: 12px 0; }
.admin-map { height: 280px; border-radius: 10px; border: 1px solid var(--line); margin-top: 6px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.photo-grid figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.photo-grid figcaption { font-size: 12px; color: var(--muted); }
.q-photo { display: block; max-width: min(100%, 480px); max-height: 360px; border-radius: 10px; object-fit: contain; }
.admin .danger { color: #b3261e; font-size: 12px; padding: 2px 8px; }
.admin-log { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.admin-log li { padding: 3px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .admin-cols { grid-template-columns: 1fr; }
  .admin-list a { grid-template-columns: 1fr; gap: 2px; }
}
.admin .field > label { flex-direction: row; align-items: center; gap: 6px; }
.admin .field .row > input, .admin .field .row > select { flex: 1; min-width: 0; }
/* Админът на телефона: карта, бързи бутони, запис винаги под ръка. */
.adm-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.adm-quick .btn, .adm-quick button { padding: 10px 14px; font-size: 15px; }
.adm-quick label.btn { cursor: pointer; display: inline-flex; align-items: center; }
.adm-quick #caption { flex: 1 1 220px; }
.adm-quick .admin-search { flex: 1 1 260px; }
.adm-map { height: 62vh; min-height: 320px; border-radius: 12px; border: 1px solid var(--line); }
.adm-near { margin: 10px 0; max-width: 640px; }
.adm-addr { margin: 0 0 6px; font-size: 16px; }
.adm-pop { display: flex; flex-direction: column; gap: 4px; }
.adm-pop .btn { margin-top: 6px; text-align: center; color: #fff; }
.pin.edited { box-shadow: 0 0 0 3px #1f6feb; }
.pin.has-photo::after { content: ""; position: absolute; right: -4px; top: -4px; width: 7px; height: 7px;
                        border-radius: 50%; background: #ffb300; border: 1px solid #fff; }
.pin { position: relative; }
.bank-pin.admin-edited .bank-pin__head { box-shadow: 0 0 0 3px #1f6feb; }
.branch-pin.admin-edited { outline: 3px solid #1f6feb; }
.bank-pin.admin-has-photo::after, .branch-pin.admin-has-photo::before {
  content: ""; position: absolute; z-index: 3; right: -5px; top: -5px;
  width: 9px; height: 9px; border-radius: 50%; background: #ffb300; border: 1px solid #fff;
}
.save-bar { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 10px 0;
            background: var(--bg); border-top: 1px solid var(--line); z-index: 500; }
.save-bar button { padding: 10px 22px; font-size: 16px; }
.save-bar.dirty button { box-shadow: 0 0 0 3px rgba(31, 111, 235, .35); }
@media (max-width: 760px) {
  .admin { padding: 10px; }
  .adm-map { height: 55vh; }
  .admin-map { height: 45vh; }
  .adm-quick .btn, .adm-quick button { flex: 1 1 auto; justify-content: center; }
}

/* Филтърът по услуги: отметнатото трябва да го има банкоматът. */
.services .svc-note { margin: 6px 0 2px; font-size: 12px; }
.services .legend .bank { padding: 2px 0; font-size: 13px; gap: 7px; }
.adm-services { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.adm-services label { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; padding: 4px 9px;
                      border: 1px solid var(--line); border-radius: 999px; background: var(--panel); cursor: pointer; }
.adm-services label:has(input:checked) { border-color: var(--accent); background: rgba(31, 111, 235, .1); }
.adm-filter summary { cursor: pointer; font-size: 14px; font-weight: 600; margin: 4px 0; }

/* Работното време в админа: сбито, седем реда само когато дните се различават. */
.hours-toggle { align-self: flex-start; margin-top: 4px; font-size: 13px; }
.hours-toggle.on { border-color: var(--accent); }
.hours-editor { display: flex; flex-direction: column; gap: 6px; padding: 10px; margin-top: 6px;
                border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.hours-perday { font-size: 13px; font-weight: 400 !important; flex-direction: row !important; gap: 6px; align-items: center; }
.hrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.hrow .hday { width: 92px; font-weight: 600; }
.hrow select { width: auto !important; }
.hrow input[type=time] { width: auto !important; padding: 4px 6px !important; }
.hrow .hbrk { font-size: 12px; padding: 2px 8px; }
.hrow .brk { color: var(--muted); font-size: 13px; }

/* Street View: Google's own embed, turned to the machine. */
.streetview { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; margin: 4px 0 12px; }
.streetview iframe, .pano-view iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 10px; }
.streetview iframe { max-width: 720px; }
.pano-view { margin: 4px 0 6px; }

/* Street View in the popup of the map. */
.popup .pop-pano { display: block; width: 100%; height: 300px; border: 0; border-radius: 8px; margin-top: 8px; }
.popup .pop-by { font-size: 11px; color: var(--muted); margin-top: 2px; }


/* ---- Reports: status, the sheet, the gone page, the owner's queue ---- */
.foot { padding: 10px 16px; font-size: 13px; text-align: center; border-top: 1px solid var(--line); }
body:not(.page-gone):not(.page-privacy):not(.page-404) .foot { display: none; }

.pin.st-ok { box-shadow: 0 0 0 3px #2e9e4f; }
.pin.st-down { box-shadow: 0 0 0 3px #d32f2f; opacity: .75; }
.pin.st-down::before { content: "✕"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }

.popup .pop-st { margin-top: 5px; font-size: 12px; color: var(--muted); }
.popup .pop-st.st-down { color: #d32f2f; }
.popup .pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.popup .pop-foot { flex-wrap: wrap; }
.popup .pop-report { margin-top: 8px; font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; }


.rep-wrap { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.35); display: flex;
  align-items: flex-end; justify-content: center; }
.rep-sheet { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: var(--bg); color: var(--fg);
  border-radius: 16px 16px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,.25); }
@media (min-width: 700px) { .rep-wrap { align-items: center; } .rep-sheet { border-radius: 16px; } }
.rep-top { display: flex; align-items: center; justify-content: space-between; font-size: 17px; }
.rep-x { border: 0; background: none; color: var(--muted); font-size: 20px; padding: 4px 8px; cursor: pointer; }
.rep-what { margin: 2px 0 10px; color: var(--muted); font-size: 13px; }
.rep-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rep-choices button { min-height: 64px; font: inherit; font-size: 16px; font-weight: 600; border: 1px solid var(--line);
  border-radius: 12px; background: var(--panel); color: var(--fg); cursor: pointer; }
.rep-choices button:active { border-color: var(--accent); }
.rep-choices [data-k="photo"] { grid-column: 1 / -1; }
.rep-choices [data-k="suggest"] { grid-column: 1 / -1; }
.rep-suggest-label { display: block; margin-bottom: 8px; }
.rep-form textarea[name="text"] { box-sizing: border-box; width: 100%; padding: 10px; font: inherit; border: 1px solid var(--line); border-radius: 6px; resize: vertical; }
.rep-form p { margin: 4px 0 10px; }
.rep-photo-pick { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.rep-photo-pick input { display: block; width: 100%; margin-top: 10px; }
.rep-photo-name { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.rep-why { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.rep-why label, .rep-gps { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; }
.rep-gps { font-size: 13px; border-style: dashed; }
.rep-map { height: 260px; border-radius: 10px; margin-bottom: 10px; }
.rep-location-status { color: var(--muted); font-size: 13px; margin-top: 6px; }
.rep-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rep-row { display: flex; gap: 8px; margin-top: 12px; }
.rep-row .btn { flex: 1; justify-content: center; min-height: 44px; font-size: 15px; }
.rep-row .btn[disabled] { opacity: .6; }
.rep-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.rep-done { text-align: center; padding: 10px 0; }
.rep-done p { font-size: 16px; }
.rep-done.bad p { color: #d32f2f; }

.gone-page, .text-page { max-width: 760px; margin: 0 auto; padding: 16px; width: 100%; }
.gone-note { padding: 10px 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid #d32f2f; }

.dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
@media (max-width: 600px) { .dash { grid-template-columns: 1fr 1fr; } }
.dash-tile { display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--fg); }
.dash-tile b { font-size: 22px; }
.dash-tile span { font-size: 12px; color: var(--muted); }
.dash-tile.hot { border-color: #e8a317; background: rgba(232,163,23,.12); }
.dash-load { margin: 0 0 12px; font-size: 13px; }
.dash-load summary { cursor: pointer; }

.queue { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.q-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.q-item.waiting { border-color: #e8a317; border-width: 2px; }
.q-head { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.q-atm { margin: 4px 0; font-size: 14px; }
.q-item .tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.q-item .warn { margin: 4px 0; font-size: 13px; }
.q-who { font-size: 12px; margin: 4px 0; }
.q-who p { margin: 4px 0; word-break: break-all; }
.q-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.q-actions form { flex: 1; }
.q-actions .btn { width: 100%; justify-content: center; min-height: 42px; }
label.check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }

/* The nearest machines on a phone: the bank and the distance on one line, where it is under them. */
@media (max-width: 600px) {
  .nearby a { grid-template-columns: 10px minmax(0, 1fr) auto; row-gap: 1px; }
  .nearby .where { grid-column: 2 / 4; white-space: normal; font-size: 13px; }
  .nearby .dist { grid-column: 3; grid-row: 1; }
}

/* A phone shows the whole country small: the numbers of the oblasts get smaller, their names go. */
@media (max-width: 600px) {
  .area-count b { min-width: 24px; padding: 2px 5px; font-size: 11px; }
  .area-count span { font-size: 10px; }
}
@media (max-width: 600px) { .z-far .area-count span { display: none; } }
.drawer .legend .bank { min-width: 0; } .drawer .legend .name { min-width: 0; }

/* A machine on a phone: a sheet over the bottom of the map, above every control. */
.pop-sheet { position: absolute; z-index: 1200; left: 0; right: 0; bottom: 0; max-height: 72%; overflow-y: auto;
  background: var(--bg); border-radius: 16px 16px 0 0; box-shadow: 0 -4px 18px rgba(0,0,0,.28);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
.pop-sheet .pop-close { position: absolute; top: 6px; right: 6px; border: 0; background: none; font-size: 20px; color: var(--muted); padding: 6px 10px; }
.pop-sheet .popup { min-width: 0; padding-right: 28px; }
.pop-sheet .pop-pano { margin-right: -28px; width: calc(100% + 28px); }

/* The pages of the areas: the map takes the screen, the list under it only peeks in. */
.area-body .map-card { height: calc(100vh - var(--topbar) - 170px); height: calc(100dvh - var(--topbar) - 170px); min-height: 340px; max-height: none; }
@media (max-width: 760px) {
  .area-body .map-card { height: calc(100vh - var(--topbar) - 150px); height: calc(100dvh - var(--topbar) - 150px); }
}

/* The search results on a phone: the name on one line, where it is under it, full width. */
@media (max-width: 760px) {
  .search-results { position: fixed; top: var(--topbar); left: 8px; right: 8px; max-height: calc(100dvh - var(--topbar) - 16px); }
  .search-results li a { flex-wrap: wrap; gap: 2px 8px; padding: 9px 10px; }
  .search-results .t { flex: 1 1 auto; }
  .search-results .s { flex: 1 0 100%; order: 3; }
}

.popup .kind { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.popup .h b { color: var(--fg); font-weight: 600; }

/* ======================================================================
   Поправки от прегледа 2026-10: групи, бутони за пръст, подсказка за картата в страница.
   ====================================================================== */
/* A group of points: one look on every page; the bank's colour on the pages of one bank. */
.bm-cluster div { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: var(--c, #1f2937); color: #fff; font: 700 13px/1 system-ui, sans-serif;
  border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.35); box-sizing: border-box; }
.bm-cluster:hover div { filter: brightness(1.15); }
/* Big enough for a finger: 44 px. */
/* leaflet.css comes after this file and sets 30 px with .leaflet-touch .leaflet-bar a */
.leaflet-container .leaflet-control-zoom.leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
.view-switch button { min-height: 38px; padding: 8px 13px; font-size: 14px; }
.map-hint { position: absolute; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none;
  background: rgba(15, 20, 28, .45); color: #fff; font-size: 16px; font-weight: 600; text-align: center; padding: 16px;
  opacity: 0; transition: opacity .2s; }
.map-hint.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .map-hint { transition: none; } }
.nearby .units { font-size: 12px; font-weight: 700; color: var(--fg); background: var(--line, #e5e7eb); border-radius: 999px; padding: 0 6px; }
/* A bank with offices only shows up in the filter when the offices are on the map. */
.panel:not(.with-branches) .legend li.no-atms { display: none; }
/* Street View without Google's address card: it names the house the camera stands at, often
   another number than the machine's, and readers took it for a wrong address. */
.sv-crop { position: relative; overflow: hidden; background: #3b4048; }
/* The owner wants Google's card back (the address, "View on Google Maps", full screen): nothing is cropped now. */
.sv-crop > iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ======================================================================
   Облик C: бяло, черни заглавия, цветът на банката.
   ====================================================================== */
.topbar { border-bottom: 2px solid var(--fg); }
/* A page of one bank (its page, its machine, its region) carries its colour under the bar. */
body.has-bank .topbar { border-bottom-color: var(--bank); box-shadow: inset 0 -2px 0 var(--bank); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 17px; font-weight: 800; line-height: 1; }
.search input { height: 40px; border-radius: 12px; border-color: transparent; background: var(--panel); font-size: 15px; }
.search input:focus { outline: none; border-color: var(--fg); background: var(--bg); }
.menu-toggle { width: 42px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line); }
.langs a { font-size: 13px; }

/* Buttons: the main one in the bank's colour, or green; the others quiet, 44 px for a finger. */
.btn { min-height: 44px; padding: 10px 16px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--bank, var(--brand)); border-color: var(--bank, var(--brand)); color: #fff; }
button.primary { background: var(--bank, var(--brand)); border-color: var(--bank, var(--brand)); }
.locate-btn.on, .locate-btn:disabled { color: #1f6feb; }
.me { background: #1f6feb; box-shadow: 0 0 0 2px #1f6feb; }

/* Status as a chip, with words, never colour alone. */
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px;
  font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.am { background: var(--warn-bg); color: var(--warn); }
.chip.gr { background: var(--panel); color: var(--muted); }
.chip.ln { border: 1px solid var(--line); color: var(--fg); font-weight: 600; }
.chip.ok::before, .chip.am::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Lists of places and machines: rows, not blue links. */
.directory-links a { color: var(--fg); padding: 10px 0; }
.directory-links a:hover { text-decoration: none; background: var(--panel); }
.directory-links small { font-variant-numeric: tabular-nums; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.area-head h1 { font-size: 28px; }
@media (max-width: 760px) { .area-head h1 { font-size: 24px; } }
.view-switch button[aria-pressed="true"], .base-menu button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.drawer { border-radius: 16px; }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: 14px; }

/* Начален екран A: най-близкият банкомат като картичка долу; преди това – голям бутон. */
/* The heading stays for search engines and screen readers; the card says it better. */
.home-full .map-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.near-card { position: absolute; z-index: 900; left: 50%; transform: translateX(-50%); bottom: 16px;
  width: min(420px, calc(100% - 132px)); }
.near-cta { width: 100%; min-height: 48px; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(0,0,0,.28); padding: 10px 18px; }
.near-cta:hover { filter: brightness(1.08); }
.near-card.has-one { width: min(420px, calc(100% - 24px)); bottom: 12px; background: var(--bg); border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,.28); padding: 10px 12px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.near-card.has-one > * { min-width: 0; }
.nc-btns .btn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-top { display: flex; align-items: center; justify-content: space-between; }
.nc-label { font-size: 13px; color: var(--muted); }
.nc-label b { color: var(--fg); font-variant-numeric: tabular-nums; }
.nc-x { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 2px 6px; }
.nc-main { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.nc-main:hover { text-decoration: none; }
.nc-logo { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 2px var(--c); }
.nc-logo img { width: 32px; height: 32px; object-fit: contain; }
.nc-logo b { color: var(--c); font-size: 13px; }
.nc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nc-text b { font-size: 17px; font-weight: 800; line-height: 1.2; }
.nc-text small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-chips { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.nc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nc-btns .btn { justify-content: center; }
.nc-btns .btn:only-child { grid-column: 1 / -1; }
/* When the card is up, the two round buttons step above it on a phone. */
@media (max-width: 600px) {
  .near-card { width: calc(100% - 124px); }
  .near-cta { font-size: 15px; padding: 10px 12px; }
  .brand span:not(.brand-mark) { display: none; }
  .brand span.brand-mark { display: grid; }
  .near-card.has-one { width: calc(100% - 16px); bottom: 8px; }
  .home-full:has(.near-card.has-one:not([hidden])) .leaflet-bottom { bottom: 176px; }
}
/* The counts of the areas: a white disc ringed in the colour of the bank with the most machines. */
.area-count b { background: #fff; color: #111317; box-shadow: 0 0 0 3px var(--c, #111317), 0 2px 6px rgba(0,0,0,.3); }
.area-count.zero b { background: #fff; color: #8b9099; box-shadow: 0 0 0 2px #c3c7cd; }
.area-count:hover b { background: var(--c, #111317); color: #fff; }

/* Балон B: първо банката, видът, къде и колко далеч, дали работи; три бутона; Street View под тях. */
.pp { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pp-head { display: flex; align-items: center; gap: 10px; }
.pp-logo { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 2px var(--c); }
.pp-logo img { width: 32px; height: 32px; object-fit: contain; }
.pp-logo b { color: var(--c); font-size: 13px; }
.pp-t { display: flex; flex-direction: column; min-width: 0; }
.pp-t b { font-size: 17px; font-weight: 800; line-height: 1.2; }
.pp-t span { font-size: 13px; color: var(--muted); font-weight: 600; }
.pp-where { font-size: 14px; line-height: 1.35; }
.pp-where b { font-variant-numeric: tabular-nums; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pp-chips .chip { font-size: 12px; padding: 2px 8px; }
.pp-hours { font-size: 13px; color: var(--muted); }
.pp-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.pp-btns .btn { justify-content: center; min-height: 42px; padding: 8px 10px; font-size: 14px; white-space: nowrap; }
.leaflet-popup-content .pp-btns .btn.primary { color: #fff; }
.leaflet-popup-content .pp-btns a.btn:not(.primary) { color: var(--fg); }
.pp .pop-pano { margin-top: 0; border-radius: 10px; }
.pp .pop-st { margin-top: 0; }
.pp .pop-foot { justify-content: flex-start; }
.pp .pop-report { margin-top: 0; border: 0; padding: 2px 0; color: var(--muted); background: none; font-size: 13px; }
.pp .pop-report:hover { color: var(--fg); text-decoration: underline; }
/* On a computer the panorama is already big under the buttons: no "Street View ↑". */
.leaflet-popup-content .pp-sv { display: none; }
.leaflet-popup-content .pp-btns { grid-template-columns: 1fr 1fr; }
/* The phone sheet: a handle to pull, low at first with the panorama peeking in, tall on a pull. */
.pop-sheet { padding-top: 4px; transition: max-height .2s; }
.pop-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 8px; }
.pop-sheet .pop-close { top: 4px; }
.pop-sheet .popup.pp { padding-right: 0; }
.pop-sheet .pp-head { padding-right: 34px; }
.pop-sheet .pop-pano { margin-right: 0; width: 100%; transition: height .2s; }
.pop-sheet:not(.tall) .pop-pano { cursor: pointer; }
.pop-sheet.tall .pp-sv { border-color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .pop-sheet, .pop-sheet .pop-pano { transition: none; } }
.pop-sheet:not(.tall) .pop-pano::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* Страница на банкомата A: картичка за действие; един прозорец с раздели; „Данни“ най-долу. */
.atm-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg); box-shadow: 0 1px 0 var(--line), inset 0 4px 0 var(--bank, var(--fg)); }
.ac-head { display: flex; gap: 14px; align-items: flex-start; }
.ac-logo { width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 2px var(--bank, var(--line)); }
.ac-logo img { width: 44px; height: 44px; object-fit: contain; }
.ac-logo b { color: var(--bank); font-size: 15px; font-weight: 800; }
.ac-logo:hover { text-decoration: none; }
.ac-title { min-width: 0; }
.ac-title h1 { margin: 0 0 4px; font-size: 26px; }
.ac-where { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 16px; }
.ac-where .place { color: var(--muted); }
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chips:empty { display: none; }
.ac-hours { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 15px; }
.ac-hours dt { color: var(--muted); font-weight: 600; }
.ac-hours dd { margin: 0; }
/* The ATMs of an office, one row each: where it stands, what it does, when it can be reached. */
.machines h2 { font-size: 15px; margin: 0 0 6px; }
.machines ol { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.machines li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 9px 12px; font-size: 15px; }
.machines li + li { border-top: 1px solid var(--line); }
.machines li span { color: var(--muted); }
.ac-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.ac-btns .btn { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.ac-btns .btn { justify-content: center; }
.atm-card .atm-status { margin: 0; }
.ac-more { margin: 0; display: flex; gap: 16px; font-size: 14px; }
.ac-more .link-btn { color: var(--muted); font-weight: 600; }
.ac-more a { color: var(--muted); }
.atm-top { padding-bottom: 18px; }

/* the window: tabs over one panel at a time */
.atm-media { display: flex; flex-direction: column; }
.am-tabs { display: flex; gap: 4px; padding: 8px; flex: none; background: var(--bg); border-bottom: 1px solid var(--line); }
.am-tabs button { border: 0; border-radius: 999px; padding: 8px 14px; min-height: 38px; font-size: 14px; font-weight: 700;
  background: var(--panel); color: var(--muted); }
.am-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.atm-media .am-panel { flex: 1 1 0; min-height: 0; position: relative; }
.atm-media[data-tab="sv"] .am-panel:not([data-p="sv"]),
.atm-media[data-tab="map"] .am-panel:not([data-p="map"]),
.atm-media[data-tab="photos"] .am-panel:not([data-p="photos"]) { display: none; }
.atm-media .am-panel .atm-map { position: absolute; inset: 0; height: auto; min-height: 0; border: 0; }
.atm-media .atm-sv { flex: 1 1 0; height: auto; }
.am-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; padding: 10px; overflow-y: auto; align-content: start; }
.am-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 900px) {
  .atm-media { height: auto; }
  .atm-media .am-panel { flex: none; height: 62vw; max-height: 380px; min-height: 240px; }
  .atm-card { padding: 14px; border-radius: 16px; }
  .ac-title h1 { font-size: 22px; }
  .ac-logo { width: 48px; height: 48px; }
  .ac-logo img { width: 38px; height: 38px; }
}

/* "Данни": closed by default */
.atm-data { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 10px; }
.atm-data summary { cursor: pointer; font-weight: 700; font-size: 15px; min-height: 36px; display: flex; align-items: center; }
.atm-data .facts { margin-top: 8px; }

/* "Операции": the services in a window over the page */
dialog.ops { width: min(460px, calc(100vw - 24px)); max-height: 80vh; border: 0; border-radius: 18px; padding: 16px 18px 20px;
  background: var(--bg); color: var(--fg); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
dialog.ops::backdrop { background: rgba(0,0,0,.35); }
.ops-top { display: flex; align-items: center; justify-content: space-between; }
.ops-top h2 { margin: 0; }
.ops-x { border: 0; background: none; font-size: 20px; color: var(--muted); padding: 6px 10px; }
dialog.ops .service-group h3 { font-size: 14px; margin: 16px 0 6px; color: var(--muted); }
.ops-x:focus:not(:focus-visible) { outline: none; }

/* Области и места B: списък и карта; на компютър един до друг, на телефон „Списък | Карта“. */
.area-head { padding-top: 14px; }
.area-head p.muted { font-size: 15px; }
.area-split { max-width: 1400px; margin: 0 auto; padding: 12px 16px 24px; display: grid;
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); grid-template-areas: "list map"; gap: 20px; align-items: start; }
.area-toggle { display: none; }
.area-list { grid-area: list; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.area-split .area-map { grid-area: map; position: sticky; top: 12px; height: calc(100vh - var(--topbar) - 24px);
  height: calc(100dvh - var(--topbar) - 24px); min-height: 380px; }
.area-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.area-chips .chip { text-decoration: none; padding: 6px 12px; font-size: 14px; }
.area-chips .chip b { font-variant-numeric: tabular-nums; }
.area-chips .chip:hover { border-color: var(--c, var(--fg)); }
.cdot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; display: inline-block; }
/* ATMs | Branches: a bank's two pages here (links), or the two chip rows of an area (radios). */
.kind-switch { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); max-width: 420px; }
.kind-switch a, .kind-switch label, .kind-switch .off { flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; min-height: 44px; border-radius: 9px; font-size: 15px; font-weight: 700; color: var(--muted);
  text-decoration: none; cursor: pointer; }
.kind-switch b { font-variant-numeric: tabular-nums; font-weight: 600; }
.kind-switch a:hover, .kind-switch label:hover { color: var(--fg); text-decoration: none; }
.kind-switch a[aria-current="page"], #by-kind-atm:checked ~ .kind-switch [for="by-kind-atm"],
#by-kind-branch:checked ~ .kind-switch [for="by-kind-branch"] {
  background: var(--c, var(--fg)); color: #fff; }
.kind-switch .off, #by-kind-atm:disabled ~ .kind-switch [for="by-kind-atm"],
#by-kind-branch:disabled ~ .kind-switch [for="by-kind-branch"] { opacity: .45; cursor: default; }
#by-kind-atm:checked ~ .kind-switch [for="by-kind-atm"],
#by-kind-branch:checked ~ .kind-switch [for="by-kind-branch"] { color: var(--bg); }   /* no bank colour: the text colour inverted, also in dark mode */
.area-head .kind-switch { margin-top: 10px; }
.by-kind { display: flex; flex-direction: column; gap: 10px; }
.by-kind > input { position: absolute; opacity: 0; pointer-events: none; }
.by-kind > input:focus-visible ~ .kind-switch { outline: 2px solid var(--fg); outline-offset: 2px; }
#by-kind-atm:checked ~ .kind-branch, #by-kind-branch:checked ~ .kind-atm { display: none; }
.ag-h { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 6px 0 4px; }
.ag-h .muted { font-size: 14px; font-weight: 600; }
.ag-list { list-style: none; margin: 0 0 8px; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ag-list li + li { border-top: 1px solid var(--line); }
.ag-list a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: var(--fg); min-height: 52px; }
.ag-list a:hover { background: var(--panel); text-decoration: none; }
.ag-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ag-t b { font-weight: 700; font-size: 15px; }
.ag-t small { color: var(--muted); font-size: 13px; }
.area-list .area-directory h2 { font-size: 16px; }
.area-list .directory-links { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.area-list .source { margin: 0; font-size: 12px; }
@media (max-width: 899px) {
  .area-split { display: block; padding: 0 0 20px; }
  .area-toggle { display: flex; gap: 4px; margin: 8px 16px 12px; padding: 4px; border-radius: 12px; background: var(--panel); }
  .area-toggle button { flex: 1; border: 0; border-radius: 9px; min-height: 40px; font-size: 15px; font-weight: 700; background: none; color: var(--muted); }
  .area-toggle button[aria-selected="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
  .area-split[data-view="map"] .area-list, .area-split[data-view="list"] .area-map { display: none; }
  .area-list { padding: 0 16px; }
  .area-split .area-map { position: relative; top: 0; border-radius: 0; border-left: 0; border-right: 0;
    height: calc(100vh - var(--topbar) - 150px); height: calc(100dvh - var(--topbar) - 150px); min-height: 320px; }
}

/* Търсене A: по групи, с логото на банката. */
.search-results li.grp { padding: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.search-results li a { align-items: center; gap: 10px; padding: 8px 10px; }
.search-results .sr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.search-results .sr-txt .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results .sr-txt .s { flex: none; }
.search-results li.city .t::before { content: none; }
.sr-logo { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 2px var(--c, var(--line)); }
.sr-logo img { width: 24px; height: 24px; object-fit: contain; }
.sr-logo.sr-place { background: var(--panel); box-shadow: none; color: var(--brand); font-size: 14px; }
.search-results li.bank a { background: var(--panel); }
.search-results li.bank .t { font-weight: 800; }
@media (max-width: 760px) {
  .search-results li a { flex-wrap: nowrap; }
  .search-results .sr-txt .s { order: 0; flex: none; }
}

/* Филтри A: четири големи бутона за услугите, банките като плочки с логата. */
.drawer { width: min(360px, calc(100vw - 16px)); }
.fl-h { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.fl-row .fl-h { margin: 0; }
.fl-row .banks-tools { display: flex; gap: 12px; }
.fl-row .banks-tools .link-btn { font-size: 13px; padding: 2px 0; }
.svc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.svc-tile { position: relative; display: flex; }
.svc-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.svc-tile span { flex: 1; display: grid; place-items: center; min-height: 46px; border-radius: 12px; border: 1px solid var(--line);
  font-size: 15px; font-weight: 700; background: var(--bg); color: var(--fg); text-align: center; padding: 6px; }
.svc-tile input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.svc-tile input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.svc-more { margin-top: 8px; }
.svc-more summary { cursor: pointer; font-size: 14px; font-weight: 600; min-height: 36px; display: flex; align-items: center; color: var(--muted); }
.svc-more .legend .bank { font-size: 14px; padding: 4px 0; min-height: 34px; }
.bank-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.bank-tiles li { display: block; }
.bank-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px;
  border-radius: 12px; cursor: pointer; }
.bank-tile:hover { background: var(--panel); }
.bank-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bt-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: #fff;
  box-shadow: inset 0 0 0 2px var(--c); transition: opacity .15s, filter .15s; }
.bt-logo img { width: 34px; height: 34px; object-fit: contain; }
.bt-logo b { color: var(--c); font-size: 12px; }
.bt-name { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.bank-tile:has(input:not(:checked)) .bt-logo { opacity: .3; filter: grayscale(1); }
.bank-tile:has(input:not(:checked)) .bt-name { color: var(--muted); text-decoration: line-through; }
.bank-tile input:focus-visible ~ .bt-logo { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bt-logo { transition: none; } }

/* Страница на банка B: шапка в цвета на банката, карта на областите по брой, списъци под нея. */
.page-bank main { display: block; }
.bank-head { background: var(--bank); color: #fff; }
.bank-head > * { max-width: 1400px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.bh-in { display: flex; align-items: center; gap: 14px; padding-top: 18px; }
.bh-logo { width: 56px; height: 56px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.bh-logo img { width: 44px; height: 44px; object-fit: contain; }
.bh-logo b { color: var(--bank); font-weight: 800; }
.bh-t h1 { margin: 0; color: #fff; }
.bh-t a { color: #fff; opacity: .9; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bh-nums { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding-top: 14px; padding-bottom: 18px; }
.bh-nums div { display: flex; flex-direction: column-reverse; }
.bh-nums dd { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bh-nums dt { font-size: 13px; opacity: .85; font-weight: 600; }
.bank-body { max-width: 1400px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px; align-items: start; }
.bank-map { height: calc(100vh - var(--topbar) - 40px); height: calc(100dvh - var(--topbar) - 40px); min-height: 420px;
  position: sticky; top: 12px; }
.bank-lists { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bank-lists h2 { font-size: 16px; margin: 6px 0 8px; }
.bank-obl a { gap: 14px; }
.bo-bar { width: 90px; height: 8px; border-radius: 4px; background: var(--panel); overflow: hidden; flex: none; }
.bo-bar span { display: block; height: 100%; background: var(--bank); border-radius: 4px; }
@media (max-width: 899px) {
  .bank-body { grid-template-columns: minmax(0, 1fr); padding: 0 0 20px; }
  .bank-map { position: relative; top: 0; height: 62vh; min-height: 320px; border-radius: 0; border-left: 0; border-right: 0; }
  .bank-lists { padding: 0 16px; }
  .bh-nums dd { font-size: 24px; }
}

/* The big button while the browser looks, and the reason when it gives up - over the button, not behind it. */
.near-cta.busy { opacity: .85; cursor: progress; }
.near-cta.busy svg { animation: bm-pulse 1s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .near-cta.busy svg { animation: none; } }
.near-msg { margin: 0 0 8px; padding: 9px 12px; border-radius: 12px; background: var(--bg); color: var(--fg);
  font-size: 14px; line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,0,.22); text-align: center; }
.map-toast { z-index: 950; bottom: 76px; }

/* Админ: Street View по линк от Google Maps; останалото е под „Избор от намерените панорами“. */
#pano-link { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
#pano-preview { margin: 8px 0 4px; }
#pano-preview iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 10px; display: block; }

/* Админ лента (като в WordPress): вижда се само при вход в админа, над горната лента на сайта. */
body.is-admin { --adminbar: 34px; --topbar: calc(56px + var(--adminbar)); }
@media (max-width: 760px) { body.is-admin { --topbar: calc(52px + var(--adminbar)); } }
body.is-admin .topbar { height: calc(var(--topbar) - var(--adminbar)); }
.admin-strip { height: var(--adminbar); flex: none; display: flex; align-items: center; gap: 4px; padding: 0 10px;
  background: #1d2327; color: #f0f0f1; font-size: 13px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.admin-strip a, .admin-strip button { color: #f0f0f1; padding: 6px 10px; border-radius: 6px; font: inherit; font-weight: 600;
  background: none; border: 0; cursor: pointer; }
.admin-strip a:hover, .admin-strip button:hover { background: #2c3338; color: #72aee6; text-decoration: none; }
.admin-strip .as-edit { background: #2271b1; color: #fff; }
.admin-strip .as-edit:hover { background: #135e96; color: #fff; }
.admin-strip b { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: #d63638;
  color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.admin-strip .as-user { margin-left: auto; color: #a7aaad; padding: 0 6px; }
.admin-strip form { margin: 0; }
.pp .pop-foot { gap: 14px; }
.pop-edit { font-size: 13px; font-weight: 700; color: #2271b1; }

/* ---- the bank directory (bankomap.net, 2026-11-17): plain reading pages, ads between sections ---- */
.dir-nav { display: flex; gap: 18px; margin-left: auto; font-weight: 600; font-size: 15px; }
body.dir { height: auto; }
.dir-main { display: block; flex: 1 0 auto; min-height: auto; }
.dir-page { max-width: 860px; margin: 0 auto; padding: 18px 16px 32px; width: 100%; }
.dir-page p { margin: 0 0 14px; }
.dir-lead { font-size: 18px; line-height: 1.55; color: var(--fg); }
.dir-sub { color: var(--muted); margin: -4px 0 12px; }
.dir-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.dir-crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dir-page h3 { font-size: 17px; margin: 22px 0 8px; }
.dir-page a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.dir-page a:hover { text-decoration-color: currentColor; }
.dir-countries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.dir-countries a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; }
.dir-countries a:hover { border-color: var(--fg); text-decoration: none; }
.dir-flag { font-size: 20px; line-height: 1; }
.dir-cname { font-weight: 600; flex: 1; }
.dir-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.dir-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; margin: 0 0 18px;
  border-top: 1px solid var(--line); }
.dir-facts > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.dir-facts dt { font-size: 13px; color: var(--muted); }
.dir-facts dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.dir-banks { list-style: none; padding: 0; margin: 0; columns: 2 300px; column-gap: 28px; }
.dir-banks li { break-inside: avoid; padding: 5px 0; }
.dir-banks .muted { display: block; }
.dir-largest { padding-left: 22px; }
.dir-largest li { padding: 3px 0; }
.dir-filter input { width: 100%; max-width: 420px; font: inherit; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: var(--fg); }
.dir-sources { font-size: 14px; color: var(--muted); padding-left: 18px; }
.dir-sources a { color: var(--muted); }
.dir-page .ad-slot { margin: 22px 0; }
.dir-foot { border-top: 1px solid var(--line); padding: 18px 16px 26px; font-size: 14px; color: var(--muted); text-align: center; }
.dir-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 8px; }
.dir-foot a { color: var(--fg); }
@media (max-width: 520px) {
  .dir-nav { gap: 12px; font-size: 14px; }
  .dir-lead { font-size: 17px; }
}
.dir-form { display: grid; gap: 14px; max-width: 560px; margin-top: 18px; }
.dir-form label { display: grid; gap: 5px; font-weight: 600; font-size: 15px; }
.dir-form input, .dir-form select, .dir-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: var(--fg); width: 100%; }
.dir-form textarea { resize: vertical; }
.dir-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dir-btn { justify-self: start; font: inherit; font-weight: 700; padding: 11px 26px; border: 0; border-radius: var(--radius);
  background: var(--brand); color: #fff; cursor: pointer; }
.dir-ok { padding: 14px 16px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.dir-err { padding: 12px 16px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn); font-weight: 600; }

/* The kinds of banks: a colour each (the icons are drawn in site/app/directory.php). */
:root { --k-com: #2f5fd0; --k-sav: #d2502f; --k-coop: #1f9a62; --k-spec: #8b55c8; --k-br: #c98a0b; }
@media (prefers-color-scheme: dark) { :root { --k-com: #7aa0ff; --k-sav: #ff8a66; --k-coop: #4fd39a; --k-spec: #c49bff; --k-br: #f1bf4a; } }
.k-com { --k: var(--k-com); } .k-sav { --k: var(--k-sav); } .k-coop { --k: var(--k-coop); }
.k-spec { --k: var(--k-spec); } .k-br { --k: var(--k-br); }
.dir-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 10px; }
.dir-page a.dir-kind-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px;
  align-items: center; padding: 12px; border-radius: var(--radius); text-decoration: none; color: var(--fg);
  background: color-mix(in srgb, var(--k) 9%, var(--bg)); border: 1px solid color-mix(in srgb, var(--k) 30%, var(--bg)); }
.dir-page a.dir-kind-tile:hover { border-color: var(--k); }
.dir-kind-tile .dir-ico { grid-row: 1 / 3; color: var(--k); width: 34px; height: 34px; }
.dir-kind-tile b { font-size: 24px; line-height: 1.1; font-weight: 800; }
.dir-kind-tile span { font-size: 13px; color: var(--muted); line-height: 1.25; }
.dir-kind-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin: 0 0 18px; }
.dir-kind-bar i { display: block; background: var(--k); min-width: 3px; }
.dir-kind h3 { display: flex; align-items: center; gap: 8px; }
.dir-kind h3 .dir-ico { color: var(--k); flex: none; }
.dir-facts-ico > div { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; }
.dir-facts-ico > div .dir-ico { grid-row: 1 / 3; margin-top: 2px; color: var(--muted); }
.dir-facts-ico dt, .dir-facts-ico dd { grid-column: 2; }
.dir-bank-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.dir-bank-head h1 { margin: 0; }
.dir-bank-head .dir-sub { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; }
.dir-bank-head .dir-sub .dir-ico { color: var(--k); flex: none; }
.dir-logo { width: 64px; height: 64px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: #fff; object-fit: contain; padding: 6px; }
.dir-logo-ico { display: grid; place-items: center; color: var(--k); background: color-mix(in srgb, var(--k) 10%, var(--bg));
  border-color: color-mix(in srgb, var(--k) 30%, var(--bg)); padding: 0; }
.dir-banks li { position: relative; }
.dir-mini-logo { width: 24px; height: 24px; border-radius: 6px; vertical-align: -6px; margin-right: 6px; background: #fff; border: 1px solid var(--line); object-fit: contain; }
.dir-countries a { flex-wrap: wrap; }
.dir-kind-bar-mini { flex-basis: 100%; height: 5px; margin: 6px 0 0; border-radius: 3px; gap: 1px; }
.dir-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.dir-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dir-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.dir-country-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 4px; }
.dir-country-head h1 { margin-bottom: 10px; }
.dir-flag-img { display: block; width: 72px; height: 54px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); object-fit: cover; }
.dir-shape { width: 150px; height: 120px; flex: none; }
.dir-shape path { fill: color-mix(in srgb, var(--k-com) 18%, var(--bg)); stroke: var(--k-com); stroke-width: .8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@media (max-width: 520px) { .dir-shape { width: 110px; height: 96px; } .dir-flag-img { width: 54px; height: 40px; } }
img.dir-flag { width: 28px; height: 21px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); object-fit: cover; flex: none; }
.dir-map { margin: 6px 0 22px; }
.dir-map svg { width: 100%; max-height: 420px; display: block; }
.dir-lmap.on { width: 100%; height: 440px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.dir-lmap.on svg { display: none; }
@media (max-width: 600px) { .dir-lmap.on { height: 360px; } }
.dm-pop { font-size: 14px; line-height: 1.4; }
.dm-pop b { display: block; margin-bottom: 2px; }
.dm-pop .muted { font-size: 13px; }
.dm-cl { display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px;
         background: var(--k-com); border: 3px solid color-mix(in srgb, var(--k-com) 35%, #fff); box-sizing: border-box; }
.dir-map-land { fill: color-mix(in srgb, var(--k-com) 7%, var(--bg)); stroke: color-mix(in srgb, var(--k-com) 45%, var(--bg)); stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dir-map circle.dm-b { fill: var(--k-com); fill-opacity: .85; }
.dir-map circle.dm-a { fill: var(--k-br); fill-opacity: .7; }
.dir-map figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; margin-top: 8px; }
.dm-key { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.dm-key i { width: 10px; height: 10px; border-radius: 50%; }
.dm-key i.dm-b { background: var(--k-com); } .dm-key i.dm-a { background: var(--k-br); }
.dir-map figcaption .muted { flex-basis: 100%; }
.dir-chips { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.dir-chips li { padding: 6px 12px; border-radius: 999px; background: var(--panel); font-size: 14px; font-weight: 500; }
.dir-timeline { list-style: none; padding: 0 0 0 16px; margin: 0 0 8px; border-left: 2px solid var(--line); }
.dir-timeline li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 6px 0; }
.dir-timeline li::before { content: ""; position: absolute; left: -22px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--k-com); box-shadow: 0 0 0 3px var(--bg); }
.dir-timeline b { font-variant-numeric: tabular-nums; }
.dir-page a.dir-src { font-size: 12px; color: var(--muted); }
.dir-initiatives { padding-left: 20px; }
.dir-initiatives li { padding: 4px 0; }
.dir-fin { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.dir-fin figure { margin: 0; }
.dir-fin figcaption { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.dir-bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.dir-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.dir-bar i { display: block; width: 100%; background: var(--k-coop); border-radius: 3px 3px 0 0; }
.dir-bar.neg i { background: var(--bad); }
.dir-bar .v { font-size: 10px; color: var(--muted); white-space: nowrap; margin-bottom: 2px; }
.dir-bar .y { font-size: 10px; color: var(--muted); margin-top: 3px; }
@media (max-width: 520px) { .dir-bar .v { display: none; } }
.dir-social { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 600; }
.dir-timeline .dir-src { margin-left: 4px; }
