/* UA: «Мапа захисних споруд» (модуль 107) — лише те, чого немає в портальному наборі.
 * UA: Каркас сторінки (контейнер, крихти, шапка, фільтри-пігулки, дві колонки, бічні блоки,
 * UA: пагінація, кнопки, порожній стан) бере nt-news.css — той самий, що в новинах, тому
 * UA: сторінка читається як частина сайту. Тут лишилися мапа, легенда, рядок переліку
 * UA: та сторінка однієї споруди.
 * EN: The shelters map (module 107) — only what the portal's own set does not provide.
 * EN: The page chrome comes from nt-news.css, the same file the news pages use.
 * 2026-12-01 */

/* UA: кружечок кольору типу — у пігулці фільтра й у легенді */
.sh-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; align-self: center; margin-right: 1px; }
.nt-sorts a .sh-dot { margin-right: 5px; }
.nt-sorts a b { font-weight: 600; color: var(--nt-dim); margin-left: 2px; }
.nt-sorts a.is-on b { color: inherit; }

/* UA: пошук за вулицею живе в тому самому рядку, що й пігулки фільтра */
.sh-find { display: flex; gap: 6px; margin-left: auto; }
.sh-find input {
  padding: 5px 12px; font: inherit; font-size: 13.5px; color: var(--nt-ink);
  background: var(--nt-surface); border: 1px solid var(--nt-line); border-radius: 999px; min-width: 190px;
}
.sh-find input:focus-visible { outline: 2px solid var(--nt-accent); outline-offset: 1px; }
@media (max-width: 640px) {
  .sh-find { margin-left: 0; width: 100%; }
  .sh-find input { min-width: 0; flex: 1 1 auto; }
}

/* UA: мапа: та сама рамка й радіус, що в портальних блоків (.nt-box) */
.sh-map { width: 100%; height: 460px; border: 1px solid var(--nt-line); border-radius: 6px; overflow: hidden; background: var(--nt-surface-2); }
.sh-maphint { color: var(--nt-ink-3); font-size: 13px; margin: 8px 0 18px; }

.sh-legend {
  display: grid; gap: 6px; margin: 0 0 6px; padding: 14px 16px; font-size: 13.5px; color: var(--nt-ink-2);
  background: var(--nt-surface); border: 1px solid var(--nt-line); border-radius: 6px;
}
.sh-legend__t { font-family: var(--nt-serif); font-size: 15px; color: var(--nt-ink); }
.sh-legend__i { display: flex; gap: 8px; align-items: baseline; line-height: 1.45; }
.sh-legend__i i { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; align-self: center; }
.sh-legend__i b { color: var(--nt-ink); font-weight: 600; }

/* UA: ---- рядок переліку ----
   UA: Побудований на портальних .nt-h і .nt-meta, з тією самою лінією-розділювачем, що в
   UA: стрічці новин (.nt-row), тільки без обкладинки: у споруди її немає й не буде.
   EN: ---- a list row ----
   EN: Built on the portal's .nt-h and .nt-meta with the news feed's own divider, minus the cover. */
.sh-list { list-style: none; margin: 0; padding: 0; }
.sh-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kick route" "title route" "meta route";
  column-gap: 18px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--nt-line-2);
}
.sh-item:last-child { border-bottom: 0; }
.sh-item__k {
  grid-area: kick; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; margin-bottom: 3px;
}
.sh-item__k:hover { text-decoration: underline; }
.sh-item .nt-h { grid-area: title; font-size: 18px; line-height: 1.25; margin: 0; }
.sh-item .nt-h a { text-decoration: none; }
.sh-item .nt-h a:hover { text-decoration: underline; }
.sh-item .nt-meta { grid-area: meta; margin: 5px 0 0; }
.sh-item__r { grid-area: route; align-self: center; white-space: nowrap; }
.sh-fi--cap { font-weight: 600; color: var(--nt-ink) !important; }
.sh-fi--acc { color: #1f6f58 !important; }
.sh-fi--dist { font-weight: 600; color: var(--nt-accent) !important; }
@media (max-width: 620px) {
  .sh-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kick" "title" "meta" "route"; }
  .sh-item__r { justify-self: start; margin-top: 10px; }
}

/* UA: застереження й джерело даних */
.sh-note {
  margin: 26px 0 12px; padding: 14px 16px; font-size: 14px; line-height: 1.55; color: var(--nt-ink-2);
  background: var(--nt-surface-2); border: 1px solid var(--nt-line); border-left: 3px solid var(--nt-accent); border-radius: 6px;
}
.sh-note b { color: var(--nt-ink); }
.sh-src { font-size: 13px; color: var(--nt-ink-3); margin: 0 0 8px; }
.sh-src a { color: inherit; }

/* UA: ---- сторінка однієї споруди ---- */
.sh-one__top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.sh-one__map { height: 360px; border: 1px solid var(--nt-line); border-radius: 6px; overflow: hidden; background: var(--nt-surface-2); }
.sh-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; margin: 0 0 16px; font-size: 14.5px; }
.sh-dl dt { color: var(--nt-ink-2); }
.sh-dl dd { margin: 0; color: var(--nt-ink); }
.sh-one__acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
@media (max-width: 900px) {
  .sh-one__top { grid-template-columns: 1fr; }
  .sh-one__map { height: 290px; }
}

/* UA: спливна підказка позначки: Leaflet завжди малює її на білому, тож кольори тут власні */
.sh-pop { display: grid; gap: 3px; font-size: 13.5px; min-width: 190px; }
.sh-pop b { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.sh-pop a { color: #16191c; font-weight: 600; text-decoration: none; }
.sh-pop a:hover { text-decoration: underline; }
.sh-pop span { color: #5a636b; }
.sh-pop__ac { color: #1f6f58 !important; }
.sh-pop__r { margin-top: 5px; font-weight: 400 !important; font-size: 13px; color: #2b9578 !important; }
.sh-pin { background: none; border: 0; }

/* UA: темна тема: зелений «доступно для маломобільних» на темному тлі тонув — світлішаємо.
   UA: Решта кольорів тут — токени теми, тож перемикаються самі.
   EN: the dark theme: the green "step-free access" note drowned on the dark background. */
:root[data-am-theme="dark"] .sh-fi--acc { color: #7fd0b4 !important; }
