/* Air-quality layer UI (claude/next-steps-air-quality.md §9). Kept in its own file, own
   `.air-*` class prefix — deliberately not touching map-search.css — so this additive feature
   can't collide with or accidentally override the existing search/route panel styles.

   2026-09-17 live-report revision, point 1 ("панель блокируется панелью результатов поиска"):
   the old standalone `.air-panel` (position:absolute, top-left) is gone — this section is now
   appended INSIDE the existing `.map-search-control` aside (see air-layer.js's buildPanel()), so
   it lays out in normal document flow and expands the same way `.map-search-more` already does
   there ([hidden] toggle, not a custom collapse animation) rather than floating over anything.
   Colors/spacing below intentionally echo map-search.css's own palette (#3B3FA6 accent, Golos
   Text) so the embedded section reads as part of that panel, without importing/editing that
   file. */
.air-embed { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; font: 13px/1.4 "Golos Text", system-ui, sans-serif; color: #1a1a1a; }
.air-embed__toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; color: #171923; }
.air-embed__toggle input { margin: 0; accent-color: #3B3FA6; width: 15px; height: 15px; }
.air-embed__body { margin-top: 10px; }
.air-embed__body[hidden] { display: none; }
.air-embed__note { margin-top: 10px; padding: 6px 8px; background: #f6f6f6; border-radius: 6px; font-size: 11px; color: #666; }
.air-field { margin-bottom: 10px; }
.air-field__label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 12px; color: #555; }
.air-select {
  width: 100%; padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font: inherit; background: #fff;
}
.air-radio-row { display: flex; gap: 6px; flex-wrap: wrap; }
.air-radio-row label {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid #ccc;
  border-radius: 999px; cursor: pointer; font-size: 12px;
}
.air-radio-row input { margin: 0; }
.air-checkbox-list label { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12px; }
.air-checkbox-list .air-swatch { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; display: inline-block; }
.air-legend { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; }
.air-legend__bar { height: 10px; border-radius: 5px; background: linear-gradient(to right, var(--air-stops)); margin-bottom: 4px; }
.air-legend__ticks { display: flex; justify-content: space-between; font-size: 10px; color: #666; }
.air-legend__title { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.air-legend__note { font-size: 10.5px; color: #888; margin-top: 4px; }
.air-uncertainty-swatch {
  display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 2px;
  background: repeating-linear-gradient(45deg, #ccc, #ccc 2px, #fff 2px, #fff 4px);
}
.air-sources-link { font-size: 12px; margin-top: 8px; display: inline-block; color: #1257b0; cursor: pointer; text-decoration: underline; background: none; border: none; padding: 0; }

.air-sources-modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 20;
  display: flex; align-items: center; justify-content: center;
}
.air-sources-modal__box {
  background: #fff; border-radius: 10px; padding: 18px 20px; max-width: 560px; width: calc(100% - 32px);
  max-height: 80vh; overflow-y: auto; font: 13px/1.5 "Golos Text", system-ui, sans-serif;
}
.air-sources-modal__box h2 { margin: 0 0 10px; font-size: 16px; }
.air-sources-modal__row { padding: 8px 0; border-bottom: 1px solid #eee; }
.air-sources-modal__row:last-child { border-bottom: none; }
.air-sources-modal__badge {
  display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; margin-left: 6px; font-weight: 600;
}
.air-sources-modal__close { float: right; border: none; background: none; font-size: 18px; cursor: pointer; line-height: 1; }

/* Station icons — a shape+outline shorthand distinguishing source class (spec §9.4 asks for a
   true circle/square/diamond/dot iconography; this MVP distinguishes with stroke color/width
   instead of custom sprite icons — see claude/next-steps-air-quality.md for the follow-up). */
.air-popup { font: 13px/1.5 "Golos Text", system-ui, sans-serif; max-width: 260px; }
.air-popup h3 { margin: 0 0 4px; font-size: 14px; }
.air-popup .air-popup__meta { color: #666; font-size: 11.5px; margin-bottom: 6px; }
.air-popup .air-popup__value { font-size: 20px; font-weight: 700; margin: 4px 0; }
.air-popup .air-popup__disclaimer { font-size: 11px; color: #a15c00; background: #fff6e5; padding: 5px 7px; border-radius: 6px; margin-top: 6px; }
.air-popup .air-sparkline { margin-top: 6px; }
.air-popup table { border-collapse: collapse; margin-top: 4px; font-size: 12px; }
.air-popup td { padding: 1px 6px 1px 0; }
