:root {
  --bg: #0f1115;
  --bg2: #161a21;
  --bg3: #1d222b;
  --line: #2a303b;
  --fg: #e6e9ef;
  --fg-dim: #98a1b0;
  --accent: #c9a227;
  --accent2: #4a90d9;
  --radius: 8px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --topbar-h: 62px;
  --bottomnav-h: 0px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 14px;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}
/* Na telefonu 100% visine meri prozor pre nego što se adresna traka skloni, pa
   dno strane ostane ispod ivice ekrana. dvh meri stvarno vidljivo. */
@supports (height: 100dvh) {
  html, body { height: 100dvh; }
}

/* ---------- TOPBAR ---------- */
#topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 18px;
  background: linear-gradient(180deg, #191d25, #12151b);
  border-bottom: 1px solid var(--line);
  height: var(--topbar-h);
  padding-top: max(10px, env(safe-area-inset-top));
}

/* Kvadratna dugmad za dodir (hamburger, zatvaranje). Na širokom ekranu ih
   nema — tamo je bočna traka stalno vidljiva. */
.iconbtn {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: 0 0 42px;
  background: var(--bg3); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--fg); font-size: 19px; line-height: 1; cursor: pointer;
  font-family: inherit; padding: 0;
}
.iconbtn:hover { border-color: var(--accent); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { color: var(--accent); font-size: 26px; line-height: 1; }
.brand h1 {
  margin: 0; font-size: 17px; letter-spacing: .16em; font-weight: 600;
  font-family: var(--serif);
}
.brand p {
  margin: 2px 0 0; font-size: 11.5px; color: var(--fg-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand em { color: var(--accent); font-style: normal; }

.viewswitch { display: flex; gap: 2px; background: var(--bg3); padding: 3px; border-radius: var(--radius); }
.viewswitch button {
  background: transparent; border: 0; color: var(--fg-dim);
  padding: 7px 16px; border-radius: 6px; cursor: pointer;
  font-family: inherit; font-size: 13px; white-space: nowrap;
}
.viewswitch button:hover { color: var(--fg); }
.viewswitch button.active { background: var(--accent); color: #12151b; font-weight: 600; }

.topright { display: flex; align-items: center; gap: 8px; }
.scriptswitch button { padding: 7px 11px; font-size: 12px; letter-spacing: .04em; }

/* ---------- LAYOUT ---------- */
#layout {
  display: flex; position: relative;
  height: calc(100% - var(--topbar-h) - var(--bottomnav-h));
}

#sidebar {
  width: 268px; flex: 0 0 268px; overflow-y: auto;
  background: var(--bg2); border-right: 1px solid var(--line);
  padding: 12px;
}
.drawer-head { display: none; }
#drawer-apply { display: none; }
#scrim { display: none; }
#stage { flex: 1; position: relative; min-width: 0; }

.view { position: absolute; inset: 0; display: none; }
.view.active { display: block; }
#view-table, #view-about { overflow-y: auto; }

/* ---------- SIDEBAR PANELS ---------- */
.panel { margin-bottom: 16px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; }
.fieldlabel {
  display: block; font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--fg-dim); margin-bottom: 7px;
}
.mini {
  background: none; border: 0; color: var(--accent2); cursor: pointer;
  font-size: 10.5px; padding: 0 0 7px; font-family: inherit;
}
.mini:hover { text-decoration: underline; }

#q, #basemap {
  width: 100%; padding: 8px 10px; background: var(--bg3);
  border: 1px solid var(--line); border-radius: 6px; color: var(--fg);
  font-family: inherit; font-size: 13px;
}
#q:focus, #basemap:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.resultcount { margin-top: 8px; font-size: 12px; color: var(--fg-dim); }
.resultcount b { color: var(--accent); font-family: var(--mono); }

.chips { display: flex; flex-wrap: wrap; gap: 5px; }
/* Spisak korena je posle paleobalkanskog sloja predugačak za nesputan panel. */
.chips.scrollbox {
  max-height: 168px; overflow-y: auto; align-content: flex-start;
  padding: 2px 4px 2px 0; scrollbar-width: thin;
}
.chips.scrollbox::-webkit-scrollbar { width: 7px; }
.chips.scrollbox::-webkit-scrollbar-thumb { background: #333c4b; border-radius: 4px; }
.chips.scrollbox::-webkit-scrollbar-track { background: transparent; }
.panel-note { margin: 7px 0 0; font-size: 10.5px; color: var(--fg-dim); line-height: 1.45; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 20px; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--line);
  color: var(--fg-dim); font-size: 11.5px; user-select: none;
  transition: .12s;
}
.chip:hover { border-color: #3d4657; color: var(--fg); }
.chip.on { background: #262c37; color: var(--fg); border-color: #444d5c; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.chip .n { font-family: var(--mono); font-size: 10px; opacity: .65; }

.btnrow { display: flex; gap: 6px; }
.btnrow button, .tablebtn {
  flex: 1; padding: 7px 8px; background: var(--bg3); color: var(--fg-dim);
  border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  font-family: inherit; font-size: 12px;
}
.btnrow button:hover, .tablebtn:hover { color: var(--fg); border-color: var(--accent); }

/* ---------- MAP ---------- */
#map { position: absolute; inset: 0; background: #0b0d11; }
.leaflet-container { font-family: var(--sans); background: #0b0d11; }

.pin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.82);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 1px 5px rgba(0,0,0,.7);
}
.pin.hidronim { border-radius: 3px; transform: rotate(45deg); }
.pin.oronim { border-radius: 2px; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-width: 0; box-shadow: none; outline: 1px solid rgba(255,255,255,.5); }
.pin.horonim { border-radius: 2px; }
.pin.etnonim { border-radius: 50%; border-style: dashed; }
/* Šupalj marker = ime samo zvuči slično, etimologija vodi drugom korenu. */
.pin.hollow { box-shadow: 0 0 0 1px rgba(0,0,0,.75), 0 1px 5px rgba(0,0,0,.7); }
.pin.hollow.oronim { outline-width: 2px; }

.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background: rgba(201,162,39,.20);
  border-radius: 50%;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background: rgba(201,162,39,.88); color: #12151b; font-weight: 700;
  font-family: var(--mono); font-size: 12px; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.marker-cluster span { line-height: 30px; }

.leaflet-tooltip.tip {
  background: rgba(16,19,25,.97); border: 1px solid var(--line);
  color: var(--fg); border-radius: 6px; padding: 10px 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.6);
  width: 300px; white-space: normal;
}
.leaflet-tooltip.tip::before { display: none; }
.tip .t-name { font-family: var(--serif); font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.tip .t-modern { color: var(--accent); font-size: 11.5px; margin-bottom: 5px; }
.tip .t-meta { font-size: 11.5px; color: var(--fg-dim); line-height: 1.55; }
.tip .t-coord { font-family: var(--mono); font-size: 11px; color: var(--accent2); margin-top: 5px; }
.tip .t-badge {
  display: inline-block; margin-top: 6px; padding: 2px 7px; border-radius: 3px;
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
}
.tip .t-cta { margin-top: 7px; font-size: 10.5px; color: #6d7686; font-style: italic; }

#legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 500;
  background: rgba(16,19,25,.93); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px; max-width: 250px;
  backdrop-filter: blur(4px);
}
#legend-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: 0; padding: 0; margin: 0;
  color: inherit; font: inherit; text-align: left; cursor: default;
}
#legend .chev { display: none; }
#legend strong { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
#legend ul { list-style: none; margin: 8px 0 0; padding: 0; }
#legend li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; margin-bottom: 4px; }
#legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.legend-note { display: block; margin-top: 8px; font-size: 10.5px; color: #6d7686; line-height: 1.5; }

/* ---------- DETAIL PANEL ---------- */
#detail {
  position: absolute; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw;
  background: var(--bg2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .22s ease;
  overflow-y: auto; padding: 22px 24px 40px;
  /* Leaflet svoje kontrole drži na 1000, pa je panel ispod toga propuštao
     potpis karte i dugmad za uvećanje kroz sebe. */
  z-index: 1100;
}
#detail.open { transform: none; }
#detail-close {
  position: absolute; top: 10px; right: 12px; background: none; border: 0;
  color: var(--fg-dim); font-size: 26px; cursor: pointer; line-height: 1;
}
#detail-close:hover { color: var(--fg); }

.d-root {
  display: inline-block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(201,162,39,.4); border-radius: 3px; padding: 2px 7px;
}
#detail h2 { font-family: var(--serif); font-size: 25px; margin: 10px 0 2px; line-height: 1.2; }
.d-local { color: var(--fg-dim); font-size: 14px; margin-bottom: 14px; }
.d-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.d-badge { padding: 3px 9px; border-radius: 4px; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }

.d-grid { display: grid; grid-template-columns: 108px 1fr; gap: 7px 12px; margin-bottom: 18px; font-size: 13px; }
.d-grid dt { color: var(--fg-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; padding-top: 2px; }
.d-grid dd { margin: 0; }
.d-coord { font-family: var(--mono); font-size: 12.5px; color: var(--accent2); }
.d-coord a { color: var(--accent2); text-decoration: none; border-bottom: 1px dotted; }
.d-coord a:hover { color: var(--accent); }

.d-section-title {
  font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--fg-dim); margin: 20px 0 8px; padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
.d-etym { font-size: 13.5px; line-height: 1.68; color: #d5dae3; }
.d-src { list-style: none; padding: 0; margin: 0; }
.d-src li {
  font-size: 12px; color: var(--fg-dim); padding: 4px 0 4px 14px;
  position: relative; line-height: 1.5;
}
.d-src li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.d-links { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.d-links a {
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px;
  color: var(--fg-dim); text-decoration: none; font-size: 12px; background: var(--bg3);
}
.d-links a:hover { color: var(--fg); border-color: var(--accent); }

/* ---------- TABLE VIEW ---------- */
#tablewrap { padding: 22px 26px 60px; }
.cat-block { margin-bottom: 42px; }
.cat-head {
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 4px;
}
.cat-head h2 { font-family: var(--serif); font-size: 21px; margin: 0; }
.cat-head .count { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.cat-head .bar { width: 4px; height: 22px; border-radius: 2px; }
.cat-intro { font-size: 12.5px; color: var(--fg-dim); margin: 10px 0 14px; line-height: 1.6; max-width: 90ch; }

.fam-head { border-left: 4px solid; padding: 4px 0 4px 14px; margin: 46px 0 22px; }
.fam-head:first-child { margin-top: 6px; }
.fam-head h1 { font-family: var(--serif); font-size: 27px; margin: 0 0 4px; letter-spacing: .2px; }
.fam-head .count { font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim); }
.fam-intro { font-size: 13px; color: var(--fg-dim); margin: 10px 0 0; line-height: 1.65; max-width: 92ch; }

.segmented { display: flex; gap: 4px; margin-top: 8px; }
.segmented button {
  flex: 1; padding: 6px 8px; font: inherit; font-size: 11.5px; cursor: pointer;
  background: #1a1f28; color: var(--fg-dim);
  border: 1px solid var(--line); border-radius: 5px;
}
.segmented button:hover { border-color: #3d4657; color: var(--fg); }
.segmented button.active { background: #262c37; color: var(--fg); border-color: #444d5c; }

table.db { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.db th {
  text-align: left; padding: 8px 9px; background: var(--bg3);
  border-bottom: 1px solid var(--line); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim);
  position: sticky; top: 0; z-index: 5; cursor: pointer; white-space: nowrap;
}
table.db th:hover { color: var(--fg); }
table.db td { padding: 8px 9px; border-bottom: 1px solid #21262f; vertical-align: top; line-height: 1.5; }
table.db tr:hover td { background: #191d25; }
table.db tr { cursor: pointer; }
td.nm { font-weight: 600; color: var(--fg); }
td.co { font-family: var(--mono); font-size: 11px; color: var(--accent2); white-space: nowrap; }
td.et { color: var(--fg-dim); max-width: 46ch; }
.tag { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 10px; white-space: nowrap; }

/* ---------- ABOUT ---------- */
#aboutwrap { padding: 28px 34px 70px; max-width: 92ch; line-height: 1.72; }
#aboutwrap h2 { font-family: var(--serif); font-size: 24px; margin: 34px 0 12px; }
#aboutwrap h2:first-child { margin-top: 0; }
#aboutwrap h3 { font-size: 15px; margin: 24px 0 8px; color: var(--accent); }
#aboutwrap p, #aboutwrap li { font-size: 13.5px; color: #cdd3dc; }
#aboutwrap ul, #aboutwrap ol { padding-left: 20px; }
#aboutwrap li { margin-bottom: 7px; }
#aboutwrap code {
  font-family: var(--mono); font-size: 12px; background: var(--bg3);
  padding: 1px 5px; border-radius: 3px; color: var(--accent);
}
#aboutwrap .callout {
  border-left: 3px solid var(--accent); background: rgba(201,162,39,.06);
  padding: 12px 16px; margin: 16px 0; border-radius: 0 6px 6px 0;
}
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat .v { font-family: var(--mono); font-size: 23px; color: var(--accent); }
.stat .k { font-size: 11px; color: var(--fg-dim); margin-top: 2px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #313846; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #414a5c; }

/* ==================== UŽI EKRANI ====================
 * Do 900px bočna traka prestaje da bude stalna kolona i postaje fioka koja
 * izlazi preko sadržaja, jer na toj širini oduzima previše mesta karti.
 * Ispod 700px karta, tabela i legenda menjaju oblik za telefon. */

@media (max-width: 900px) {
  .iconbtn { display: inline-flex; }
  .brand p { display: none; }
  .brand h1 { font-size: 15px; letter-spacing: .1em; }
  #topbar { gap: 10px; padding-left: 12px; padding-right: 12px; }

  /* Fioka se kači za prozor, ne za raspored, pa prekriva i zaglavlje —
     zato ima sopstveno zaglavlje sa dugmetom za zatvaranje. */
  #sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1200;
    width: min(330px, 88vw); flex-basis: auto;
    transform: translateX(-100%); transition: transform .24s ease;
    box-shadow: 0 0 44px rgba(0,0,0,.65);
    padding: max(12px, env(safe-area-inset-top)) 14px 14px;
    overscroll-behavior: contain;
  }
  #sidebar.open { transform: none; }
  .drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  }
  .drawer-head .fieldlabel { margin: 0; }
  #scrim {
    display: block; position: fixed; inset: 0; z-index: 1150;
    background: rgba(0,0,0,.55); backdrop-filter: blur(1px);
  }
  #scrim[hidden] { display: none; }

  /* Filteri se biraju u nizu, pa fioka ostaje otvorena; dno nudi izlaz sa
     brojem pogodaka, da se ne mora nazad na vrh radi provere. */
  #drawer-apply {
    display: block; position: sticky; bottom: 0; width: 100%;
    margin-top: 6px; padding: 13px 10px;
    background: var(--accent); color: #12151b; font-weight: 600;
    border: 0; border-radius: var(--radius); cursor: pointer;
    font-family: inherit; font-size: 14px;
    box-shadow: 0 -10px 14px var(--bg2);
  }

  #q, #basemap { font-size: 16px; }  /* ispod 16px iOS zumira polje pri fokusu */
  #detail { width: 100%; max-width: none; padding: 20px 18px 40px; }
  #detail h2 { font-size: 22px; }
}

@media (max-width: 700px) {
  :root { --topbar-h: 56px; --bottomnav-h: calc(54px + env(safe-area-inset-bottom)); }

  /* Prebacivanje prikaza je najčešća radnja, pa ide na dohvat palca. Visina
     donje trake se oduzima od rasporeda, tako da ništa ne prekriva. */
  .viewswitch {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 960;
    gap: 0; padding: 0; border-radius: 0;
    background: #12151b; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .viewswitch button { flex: 1; border-radius: 0; padding: 16px 4px; font-size: 12.5px; }
  .viewswitch button.active { background: transparent; color: var(--accent); box-shadow: inset 0 2px 0 var(--accent); }
  .scriptswitch {
    position: static; gap: 2px; padding: 3px; border-radius: var(--radius);
    background: var(--bg3); border-top: 0;
  }
  .scriptswitch button { padding: 9px 10px; box-shadow: none; }
  .scriptswitch button.active { background: var(--accent); color: #12151b; box-shadow: none; }

  .brand-mark { font-size: 21px; }
  .brand h1 { font-size: 13.5px; }

  /* Legenda bi sklopljena zauzela trećinu male karte, pa se skuplja na dodir.
     Podignuta je iznad potpisa karte, koji na uskom ekranu ide preko cele širine. */
  #legend { left: 8px; right: 8px; bottom: 24px; max-width: none; padding: 2px 11px 9px; }
  #legend-toggle { cursor: pointer; padding: 9px 0; }
  #legend-toggle[aria-expanded="false"] { padding-bottom: 9px; }
  #legend .chev {
    display: block; margin-left: auto; width: 7px; height: 7px;
    border-right: 2px solid var(--fg-dim); border-bottom: 2px solid var(--fg-dim);
    transform: rotate(45deg); transition: transform .18s;
  }
  #legend-toggle[aria-expanded="false"] .chev { transform: rotate(-135deg); margin-bottom: -4px; }
  #legend-toggle[aria-expanded="false"] + #legend-body { display: none; }
  #legend-body { max-height: 32vh; overflow-y: auto; }

  /* Sedam kolona na 390px nije tabela nego gužva. Svaki red postaje kartica,
     a nazivi kolona se sele u oznake polja. */
  table.db, table.db tbody, table.db tr, table.db td { display: block; width: 100%; }
  table.db thead { display: none; }
  table.db tr {
    background: var(--bg2); border: 1px solid var(--line);
    border-radius: var(--radius); margin-bottom: 10px; padding: 4px 0 8px;
  }
  table.db tr:hover td { background: transparent; }
  /* Oznaka ide u apsolutni položaj, a ne u kolonu mreže: ćelije sadrže i <br>
     i <span>, koje bi mreža razbila u zasebne stavke i razbacala po kolonama. */
  table.db td {
    border: 0; padding: 5px 12px 5px 104px; position: relative; min-height: 24px;
  }
  table.db td::before {
    content: attr(data-label); position: absolute; left: 12px; top: 8px; width: 84px;
    color: var(--fg-dim); font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase;
  }
  table.db td.nm {
    font-family: var(--serif); font-size: 16px; padding: 10px 12px 6px;
  }
  table.db td.nm::before { display: none; }
  td.et { max-width: none; }
  td.co { white-space: normal; }

  #tablewrap { padding: 14px 12px 30px; }
  .cat-head { flex-wrap: wrap; gap: 8px; }
  .cat-head h2 { font-size: 17px; }
  .fam-head { margin: 30px 0 16px; padding-left: 11px; }
  .fam-head h1 { font-size: 20px; }
  #aboutwrap { padding: 18px 16px 40px; }
  #aboutwrap h2 { font-size: 19px; }
  #aboutwrap h3 { font-size: 14px; }
  .statgrid { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
  .leaflet-tooltip.tip { width: min(300px, calc(100vw - 32px)); }
}

/* Veličina dodirnih meta vezana je za širinu, a ne samo za `hover: none`.
   Hibridni uređaji i tableti prijavljuju pokazivač iako se koriste prstom, pa
   bi se oslanjanjem samo na sposobnost pokazivača mete propustile. */
@media (max-width: 900px) {
  .chip { padding: 8px 12px; font-size: 12.5px; }
  .chip .n { font-size: 11px; }
  /* „sve" je uska reč; negativna margina zadržava poravnanje uz ivicu panela
     dok se meta širi na obe strane. */
  .mini { padding: 8px 10px; margin: -8px -10px 0 0; font-size: 11.5px; }
  .segmented button { padding: 11px 8px; }
  .btnrow button, .tablebtn { padding: 12px 8px; }
  .d-links a { padding: 11px 14px; }
  #detail-close { top: 6px; right: 8px; width: 44px; height: 44px; font-size: 30px; }
  table.db th { padding: 12px 9px; }
  .leaflet-touch .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; }
}

/* Ovo je jedino što stvarno zavisi od pokazivača: oblačić se otvara na prelaz
   miša, koji na dodir nikad ne stigne, a dodir ionako otvara pun panel. */
@media (hover: none) {
  .leaflet-tooltip.tip { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  #sidebar, #detail, #legend .chev, .chip { transition: none; }
}
