/* 2026-09-09: unified visual style (see claude/design-decisions.md) — the
   map used to carry its own separate red accent (#dc5040/#b13b30/#9f2f24);
   every one of those is now the same #3B3FA6 accent the rest of the site
   uses (see server/src/lib/htmlPage.js's STYLE), and body copy switches
   from the system font stack to Golos Text (loaded via index.html's
   Google Fonts <link>) to match. Panel layout/structure is unchanged —
   decision D16 was "сохранить панели, обновить стиль". */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: 'Golos Text', -apple-system, Segoe UI, Arial, sans-serif; color: #171923; }
#map { position: absolute; inset: 0; }

.map-search-workspace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none; }
.map-search-results, .map-search-control {
  position: absolute; top: 18px; background: #fff; border-radius: 12px;
  box-shadow: 0 6px 24px rgba(20, 20, 30, .18); pointer-events: auto; overflow: hidden;
}
.map-search-results { left: 18px; width: 380px; max-height: calc(100% - 36px); display: flex; flex-direction: column; }
.map-search-control { right: 18px; width: 340px; padding: 14px; }
.map-search-results__head { padding: 16px 18px 12px; border-bottom: 1px solid #eee; }
.map-search-results__head h1 { margin: 0 0 4px; font-size: 19px; }
.map-search-results__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.map-search-results__meta span { color: #6a737d; font-size: 12.5px; }
/* 2026-09-25 (live report — «Выведи в карточки всех объектов соответствующие
   иконки», screenshot circling the empty space to the left of the type line
   e.g. "Автовокзал / аэропорт"): the per-type glyph map-search.js's
   typeIconHtml() prepends to that line. Sized/aligned to sit on the same
   baseline as the 12.5px text next to it. */
.map-selected-type-icon { display: inline-flex; width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; color: inherit; }
.map-selected-type-icon svg { width: 100%; height: 100%; fill: currentColor; }
.map-search-share { padding: 6px 10px; border: 1px solid #3B3FA6; border-radius: 6px; background: #fff; color: #2E3389; font-size: 11px; font-weight: 600; cursor: pointer; }
.map-search-share:hover { background: #EFEFFB; }
.map-search-share-status { color: #2f7a44 !important; }
.map-search-results__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

.map-search-empty, .map-search-loading, .map-search-error { padding: 24px 18px; color: #6a737d; line-height: 1.5; }
.map-search-error { color: #2E3389; }

.map-search-result { display: flex; gap: 10px; width: 100%; padding: 12px 18px; border: 0; border-bottom: 1px solid #f0f0f0; background: #fff; text-align: left; cursor: pointer; }
.map-search-result:hover, .map-search-result.is-active { background: #EFEFFB; box-shadow: inset 4px 0 #3B3FA6; }
.map-search-result__icon { flex: 0 0 22px; color: #2E3389; }
.map-search-result__icon svg { width: 20px; height: 20px; fill: currentColor; }
.map-search-result__text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.map-search-result__text span { color: #777; font-size: 12px; }
.map-search-result--rubric { background: #EFEFFB; border-left: 4px solid #3B3FA6; }

.map-search-section { padding: 10px 18px 6px; background: #f6f6f6; color: #555; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* "Открыть страницу" (2026-09-09, claude/search-results-plan.md) — a real
   link to the object's own page, alongside (not instead of) the row's own
   click-to-select-on-map behaviour, so it needs its own stopped-propagation
   handling in map-search.js rather than just more CSS. */
.map-search-result__open { display: inline-block; margin-top: 4px; color: #2E3389; font-size: 11.5px; font-weight: 600; text-decoration: none; }
.map-search-result__open:hover { text-decoration: underline; }

/* "Связанные объекты" — a street result's first few real houses, nested
   right under its row (search.js's `related`). Indented under the icon
   column so it visually reads as belonging to the row above it. */
.map-search-related { padding: 8px 18px 10px 46px; background: #fafafa; border-bottom: 1px solid #f0f0f0; }
.map-search-related__title { margin-bottom: 6px; color: #888; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.map-search-related__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 0; font-size: 12.5px; }
.map-search-related__row a { color: #2E3389; font-size: 11.5px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.map-search-related__row a:hover { text-decoration: underline; }
.map-search-related__more { display: inline-block; margin-top: 4px; padding: 0; border: 0; background: none; color: #2E3389; font-size: 12px; font-weight: 600; cursor: pointer; }
.map-search-related__more:hover { text-decoration: underline; }

/* 2026-09-15 (stop-cluster entity page) — explanatory note in place of the
   per-row links a stop's grouped platforms no longer carry (see
   map-search.js's relatedBlock()). Same tone/sizing as
   .map-search-namesakes__note's own explanatory line. */
.map-search-related__note { margin: 0 0 6px; font-size: 12px; color: #666; line-height: 1.5; }

/* 2026-09-14 (claude/next-steps-rubric-grouping.md, second wave) — the same
   block reused for a rubric's "Организации" preview adds a second action
   ("Показать все на карте") next to "Показать все N", so both buttons sit
   in their own row instead of the plain single margin-top the street
   version used. */
.map-search-related__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.map-search-related__actions .map-search-related__more { margin-top: 0; }
.map-search-related__onmap { display: inline-block; padding: 0; border: 0; background: none; color: #2E3389; font-size: 12px; font-weight: 600; cursor: pointer; }
.map-search-related__onmap:hover { text-decoration: underline; }

/* "Ещё N улиц с таким названием" (2026-09-14, fourth wave, decision B1 —
   search-results-plan.md §8.2/§9). Same indent as .map-search-related so it
   reads as belonging to the row above it; collapsed list is hidden until
   the note's own toggle is clicked. */
.map-search-namesakes { padding: 6px 18px 10px 46px; background: #fafafa; border-bottom: 1px solid #f0f0f0; font-size: 12px; color: #666; line-height: 1.5; }
.map-search-namesakes__note { margin: 0; }
.map-search-namesakes__toggle { display: inline; margin-left: 4px; padding: 0; border: 0; background: none; color: #2E3389; font-size: 12px; font-weight: 600; cursor: pointer; }
.map-search-namesakes__toggle:hover { text-decoration: underline; }
.map-search-namesakes__list { margin-top: 8px; }
.map-search-namesake { padding: 8px 0; border-top: 1px solid #eee; }
.map-search-namesake:first-child { border-top: 0; }
.map-search-namesake__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.map-search-namesake__head strong { font-size: 13px; }
.map-search-namesake__head span { color: #777; font-size: 11.5px; }
.map-search-namesake__open { color: #2E3389; font-size: 11px; font-weight: 600; text-decoration: none; }
.map-search-namesake__open:hover { text-decoration: underline; }
.map-search-namesake__houses { margin-top: 4px; padding-left: 4px; }
.map-search-namesake__more-note { display: block; color: #999; font-size: 11px; margin-top: 2px; }

.map-selected-card { padding: 16px 18px 22px; }
.map-selected-back { margin-bottom: 16px; padding: 0; border: 0; background: none; color: #2E3389; font-size: 13px; cursor: pointer; }
.map-selected-back:hover { text-decoration: underline; }
.map-selected-card h2 { margin: 0 0 8px; font-size: 18px; }
.map-selected-card p { margin: 0 0 6px; color: #555; font-size: 13px; line-height: 1.5; }
.map-selected-card a.map-selected-link { color: #2E3389; font-size: 13px; }
/* 2026-09-22 (map object card wave, points 2/3/4): the raw coordinates line
   that used to sit here (map-search.js's coordsHtml) is gone from every
   card shape now — replaced for point objects by the rating/passport/
   nearest-transport fields below, and simply dropped (with nothing standing
   in for it) for street and area cards. See map-selected-ad below for what
   now occupies this same "right under the title" spot on every card. */
/* 2026-09-15 live report point 3, reworked 2026-09-22: compact transport
   preview inside the object card — originally a raw metro/stop distance
   list (directionsHtml), now the honest-walk-time per-route list
   (map-search.js's nearestTransportHtml, "Ближайший транспорт") for point
   objects. Same box, boxed off from the plain name/subtitle text above it
   so it reads as its own short block, not more running prose. Full detail
   stays on the object's own page. */
.map-selected-transport { margin: 4px 0 12px; padding: 10px 12px; background: #F7F7FB; border-radius: 8px; }
.map-selected-transport__title { margin: 0 0 5px; color: #777; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.map-selected-transport__row { font-size: 12.5px; color: #333; line-height: 1.6; }
/* Волна 75: номера линий и объекты в карточке — ссылки на их страницы. Номер — маленькая плашка
   (как на страницах сайта), подчёркивание только при наведении; «показать на карте» — значок. */
.map-selected-transport__row .map-route-mode { color: #555; }
/* Волна 97 (live report — "добавь для пересадок остановки, а маршруты должны быть сгруппированы
   под ними"): "Пересадки" теперь группа на каждую соседнюю остановку (имя, расстояние), а не одна
   общая строка маршрутов на все сразу — чипы её маршрутов идут отдельной, слегка отступленной
   строкой сразу под именем, тем же приёмом, что и строки "Проходящий транспорт"/"Ближайший
   транспорт" выше, просто вложенные в свою остановку. */
.map-selected-transport__stop { margin: 0 0 6px; }
.map-selected-transport__stop:last-child { margin-bottom: 0; }
.map-selected-transport__row--sub { padding-left: 10px; color: #555; }
.map-route-ref { display: inline-block; min-width: 1.9em; margin: 1px 1px 1px 0; padding: 0 5px; border: 1px solid #d9dae6; border-radius: 5px; background: #fff; color: #2E3389; font-weight: 700; font-size: 12px; line-height: 1.55; text-align: center; text-decoration: none; }
a.map-route-ref:hover { border-color: #3B3FA6; background: #EFEFFB; text-decoration: underline; }
.map-route-ref--text { color: #555; }
.map-selected-card a.map-selected-objlink { color: #2E3389; text-decoration: none; }
.map-selected-card a.map-selected-objlink:hover { text-decoration: underline; }
.map-onmap-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 2px; vertical-align: -4px; border-radius: 50%; color: #3B3FA6; }
.map-onmap-btn:hover { background: #EFEFFB; }
.map-selected-card p.map-selected-dir { margin: -4px 0 8px; color: #6a737d; font-size: 13px; }
.map-selected-card p.map-selected-street { color: #555; font-size: 13px; }
/* Wave 94b: monument card — legal basis and protection zone lines */
.map-selected-card p.map-selected-meta { color: #666; font-size: 12.5px; }
.map-route-stops { margin-top: 14px; }
.map-route-stop { display: flex; gap: 9px; padding: 7px 0; border-top: 1px solid #eee; font-size: 12.5px; }
/* Волна 64 (live report, скриншот «Автобус 184»): правило было на ОБОИХ span — название остановки
   тоже получало ширину 22 px, серый цвет и выравнивание вправо и переносилось по слову в узкий столбик.
   Номер — первый span, название — второй: занимает всю оставшуюся ширину. */
.map-route-stop span:first-child { flex: 0 0 22px; color: #888; text-align: right; font-variant-numeric: tabular-nums; }
.map-route-stop span + span { flex: 1 1 auto; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.map-route-stop.is-edge { font-weight: 700; color: #2E3389; }
.map-selected-directions { margin: 10px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.map-selected-directions button { padding: 6px 10px; border: 1px solid #ddd; border-radius: 14px; background: #fff; font-size: 12px; cursor: pointer; }
.map-selected-directions button.is-active { border-color: #3B3FA6; background: #EFEFFB; color: #2E3389; }
.map-selected-directions button:hover { border-color: #3B3FA6; background: #EFEFFB; color: #2E3389; }
.map-selected-directions button:disabled { opacity: .6; cursor: default; background: #fff; border-color: #ddd; color: inherit; }
/* 2026-09-16 (claude/next-steps-walkability-isochrone.md): "Зона
   доступности" toggle button reuses .map-selected-directions' pill look
   (own row, directly under the route buttons) — its own class only exists
   for the margin tweak below (two directions rows back-to-back would
   otherwise double up the 10px top margin). */
.map-selected-isochrone { margin-top: 0; }
.map-isochrone-status { margin: 4px 0 10px; font-size: 12.5px; color: #6a737d; }
.map-isochrone-status.is-error { color: #b3261e; }
.map-isochrone-legend { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; font-size: 12px; color: #555; }
.map-isochrone-legend__item { display: inline-flex; align-items: center; gap: 5px; }
.map-isochrone-legend__item i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }

.map-rubric-head { padding: 16px 18px 12px; border-bottom: 1px solid #eee; }
.map-rubric-head strong { display: block; color: #2E3389; font-size: 11px; text-transform: uppercase; margin-bottom: 4px; }

/* «В зоне пешей доступности» (zone-panel.js, claude/next-steps-walkability-zone-data.md часть A) —
   mounted after .map-isochrone-legend inside .js-isochrone-panel. Same module/markup as the house
   page's .js-walk-zone (see server/src/lib/htmlPage.js's STYLE for the equivalent rules there, kept
   in sync by hand since the house page's CSS is inlined per-page rather than linked from here). */
.zone-panel { margin: 4px 0 6px; border-top: 1px solid #eee; padding-top: 10px; }
.zone-panel__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.zone-panel__chip { padding: 5px 12px; border: 1px solid #ddd; border-radius: 14px; background: #fff; font-size: 12.5px; cursor: pointer; }
.zone-panel__chip:hover { border-color: #3B3FA6; background: #EFEFFB; color: #2E3389; }
.zone-panel__chip.is-active { border-color: #3B3FA6; background: #3B3FA6; color: #fff; font-weight: 600; }
.zone-panel__chip:disabled { opacity: .6; cursor: default; }
.zone-panel__status { min-height: 1.1em; font-size: 12.5px; color: #6a737d; margin: 0 0 8px; }
.zone-panel__status.is-error { color: #b3261e; }
.zone-panel__group { margin: 0 0 10px; }
.zone-panel__group-title { margin: 0 0 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #6a737d; }
.zone-panel__layer { border: 1px solid #eee; border-radius: 8px; margin: 0 0 6px; padding: 8px 10px; }
.zone-panel__layer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; }
button.zone-panel__layer-head { border: 0; background: none; padding: 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
button.zone-panel__layer-head:hover .zone-panel__layer-title { color: #2E3389; }
button.zone-panel__layer-head[aria-expanded="true"] .zone-panel__layer-title { color: #2E3389; }
.zone-panel__layer-title { font-size: 13.5px; font-weight: 600; }
.zone-panel__layer-count { font-size: 12.5px; color: #6a737d; white-space: nowrap; }
.zone-panel__lines { margin: 6px 0 0; }
.zone-panel__line { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #444; padding: 1px 0; }
.zone-panel__line dt { color: #6a737d; font-weight: 400; }
.zone-panel__line dd { margin: 0; text-align: right; }
.zone-panel__note { margin: 6px 0 0; font-size: 11.5px; color: #6a737d; line-height: 1.4; }
.zone-panel__demo { margin: 6px 0 0; }
.zone-panel__demo-row { font-size: 12px; color: #444; margin: 2px 0; }
.zone-panel__method-link { display: inline-block; margin-top: 6px; font-size: 11.5px; color: #3B3FA6; }
.zone-panel__layer-detail { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #eee; }
.zone-panel__filter { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: #6a737d; margin: 0 0 8px; }
.zone-panel__filter select { font: inherit; font-size: 12.5px; padding: 4px 6px; border: 1px solid #ddd; border-radius: 6px; }
.zone-panel__show-map-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin: 0 0 6px; cursor: pointer; }
.zone-panel__map-status { min-height: 1.1em; font-size: 11.5px; color: #6a737d; margin: 0 0 6px; }
.zone-panel__items { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.zone-panel__item { padding: 6px 0; border-bottom: 1px solid #f2f2f2; display: flex; flex-direction: column; gap: 1px; }
.zone-panel__item:last-child { border-bottom: 0; }
.zone-panel__item-title { font-size: 12.5px; font-weight: 600; }
.zone-panel__item-title a { color: #2E3389; text-decoration: none; }
.zone-panel__item-title a:hover { text-decoration: underline; }
.zone-panel__item-subtitle { font-size: 11.5px; color: #6a737d; }
.zone-panel__item-loading { font-size: 12px; color: #6a737d; padding: 6px 0; }
.zone-panel__item-loading.is-error { color: #b3261e; }
.zone-panel__more { margin: 6px 0 0; padding: 5px 10px; border: 1px solid #ddd; border-radius: 12px; background: #fff; font-size: 12px; cursor: pointer; }
.zone-panel__more:hover { border-color: #3B3FA6; background: #EFEFFB; color: #2E3389; }
.zone-panel__export { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; }
.zone-panel__export a { color: #3B3FA6; }
.zone-panel__footer-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 11.5px; }
.zone-panel__polygon-link, .zone-panel__copy-link { color: #3B3FA6; }
.zone-panel__copy-link { border: 0; background: none; padding: 0; font: inherit; font-size: 11.5px; cursor: pointer; }
.zone-panel__copy-link:hover { text-decoration: underline; }
.zone-panel__timing { color: #aaa; margin-left: auto; }
@media (max-width: 900px) {
  .zone-panel__items { max-height: 200px; }
}
.map-rubric-head h2 { margin: 4px 0; font-size: 17px; }
.map-rubric-head p { margin: 0; color: #666; font-size: 12.5px; }
.map-rubric-company { display: block; width: 100%; padding: 11px 18px; border: 0; border-bottom: 1px solid #f0f0f0; background: #fff; text-align: left; cursor: pointer; }
.map-rubric-company:hover, .map-rubric-company.is-active { background: #EFEFFB; box-shadow: inset 4px 0 #3B3FA6; }
.map-rubric-company strong { display: block; font-size: 13.5px; }
.map-rubric-company span { color: #777; font-size: 12px; }

.map-search-field { display: flex; height: 42px; border: 1px solid #ccc; border-radius: 8px; background: #fff; }
.map-search-field:focus-within { border-color: #3B3FA6; box-shadow: 0 0 0 2px rgba(59,63,166,.18); }
.map-search-field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; font-size: 14.5px; border-radius: 8px; }
.map-search-submit { flex: 0 0 auto; margin: 4px; padding: 0 14px; border: 0; border-radius: 6px; background: #3B3FA6; color: #fff; font-weight: 600; cursor: pointer; }
.map-search-submit:disabled { background: #d8d8d8; color: #888; cursor: not-allowed; }

.map-search-filters { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.map-search-filters button { padding: 7px 11px; border: 1px solid #ddd; border-radius: 16px; background: #fff; font-size: 12px; cursor: pointer; }
.map-search-filters button.is-active { border-color: #3B3FA6; background: #3B3FA6; color: #fff; }
.map-search-more { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; padding: 8px; border: 1px solid #eee; border-radius: 8px; background: #fafafa; }
.map-search-more button { padding: 7px 8px; border: 1px solid transparent; border-radius: 6px; background: #fff; font-size: 11px; text-align: left; cursor: pointer; }
.map-search-more button.is-active { border-color: #3B3FA6; background: #EFEFFB; color: #2E3389; font-weight: 600; }
.map-search-more[hidden] { display: none; }
.map-search-bounds { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12px; color: #555; }
.map-search-route-open { display: block; width: 100%; margin-top: 12px; padding: 9px 12px; border: 1px solid #3B3FA6; border-radius: 7px; background: #fff; color: #2E3389; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.map-search-route-open:hover { background: #EFEFFB; }

/* "Как доехать/как дойти" route panel (2026-09-16) — replaces the earlier
   "Скоро" stub (see claude/next-steps-routing.md). Two point slots (А/Б,
   filled either by search-by-name against Motis' own geocoder or by
   clicking the map), an itinerary summary/switcher, and the legend (points
   + per-leg minutes) the original request asked for. */
.map-route-panel { padding: 16px 18px 22px; }
.map-route-panel h2 { margin: 0 0 12px; font-size: 16px; }
/* 2026-09-22 (live report, round 3 — "поля от и до можно расширить почти
   на всю ширину окна"): a 2-column grid with the swap button
   `grid-row: 1/3`-spanning a WHOLE column across both uneven-height rows
   left От/До narrower than the panel allows and put the button in a
   visually confusing spot. Fixed then with a plain vertical stack (От,
   swap as its own full row, До) — but round 4's reference screenshot
   (a compact "A/Б" route-planner layout, swap button small and off to the
   side) asked to group them back up for space, done properly this time:
   explicit grid placement per child (nth-child, not auto-flow) so it can't
   silently reshuffle again — column 1 (1fr) stacks both point rows full
   width, column 2 (auto, just the button's own size) holds only the swap
   button, spanning both rows so it sits vertically between them. */
.map-route-points-input {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  gap: 6px 10px; margin-bottom: 14px;
}
.map-route-points-input > :first-child { grid-column: 1; grid-row: 1; }
.map-route-points-input > :last-child { grid-column: 1; grid-row: 2; }
.map-route-swap {
  grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: center; flex: none;
  width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 50%;
  background: #fff; color: #2E3389; font-size: 13px; cursor: pointer; line-height: 1;
}
.map-route-swap:hover:not(:disabled) { border-color: #3B3FA6; background: #EFEFFB; }
.map-route-swap:disabled { opacity: .35; cursor: not-allowed; }
.map-route-point-slot { padding: 8px 10px; border: 1px solid #eee; border-radius: 8px; background: #fafafa; }
.map-route-point-slot.is-filled { display: flex; align-items: center; gap: 8px; background: #F7F7FB; border-color: #e2e2f2; }
.map-route-point-slot.is-picking { border-color: #3B3FA6; background: #EFEFFB; }
.map-route-point-slot__label { flex: 0 0 auto; color: #888; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.map-route-point-slot__name { flex: 1 1 auto; font-size: 13px; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-route-point-slot__clear { flex: 0 0 auto; border: 0; background: none; color: #999; font-size: 13px; cursor: pointer; padding: 2px 4px; }
.map-route-point-slot__clear:hover { color: #a8631a; }
.map-route-point-slot:not(.is-filled) .map-route-point-slot__label { display: block; margin-bottom: 6px; }
.map-route-search { margin-bottom: 6px; }
.map-route-search__input { width: 100%; height: 32px; border: 1px solid #ddd; border-radius: 6px; padding: 0 9px; font-size: 12.5px; }
.map-route-search__input:focus { outline: 0; border-color: #3B3FA6; }
.map-route-search-list:not(:empty) { margin-top: 4px; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.map-route-search-item { display: block; width: 100%; padding: 6px 9px; border: 0; border-bottom: 1px solid #f0f0f0; background: #fff; text-align: left; cursor: pointer; }
.map-route-search-item:last-child { border-bottom: 0; }
.map-route-search-item:hover { background: #EFEFFB; }
.map-route-search-item__name { display: block; font-size: 12.5px; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-route-search-item__sub { display: block; font-size: 11px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-route-search-empty { padding: 7px 9px; color: #999; font-size: 12px; }
/* Follows the raw cursor position while a route point is being picked on
   the map (map.on("mousemove") in map-search.js) -- names which slot
   ("от"/"до") the next click will fill. Fixed positioning + pointer-events:
   none so it tracks the real viewport, not a map coordinate, and never
   itself becomes a click target. */
.map-route-pick-label {
  position: fixed; z-index: 1000; display: none; pointer-events: none;
  background: #3B3FA6; color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; padding: 3px 8px;
  border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* 2026-09-23 (live report — "номера рейсов должны сразу быть перечислены в
   заголовке маршрута, раньше минут и времени"): route-number chips, one per
   transit leg, printed above .map-route-summary — see map-search.js's
   routeLinesHtml for why (the actual "what do I ride" answer used to be
   buried at the bottom of the panel). Each chip's background is that leg's
   own routeColor (inline style, set per-chip in JS — arbitrary GTFS/
   disambiguation colors can't be enumerated as CSS classes ahead of time),
   so the same color a person sees here is what they'll see on the map. */
.map-route-lines { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 8px; }
.map-route-lines__chip { padding: 3px 9px; border-radius: 11px; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.4; text-shadow: 0 1px 1px rgba(0,0,0,.2); }
.map-route-lines__arrow { color: #999; font-size: 12px; }

.map-route-summary { padding: 10px 12px; background: #F7F7FB; border-radius: 8px; font-size: 13px; color: #333; margin-bottom: 8px; }
.map-route-summary strong { color: #2E3389; font-size: 15px; }
/* 2026-09-23 (live report — "красным извещать", see routeResultHtml's own
   comment on why): deliberately not just a color on the existing time —
   its own line, bold, so it can't be skimmed past the way a color alone
   sometimes is. */
.map-route-wait-warning { margin-top: 6px; color: #c0392b; font-weight: 700; font-size: 12.5px; }
.map-route-itin-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.map-route-itin-switch button { padding: 5px 10px; border: 1px solid #ddd; border-radius: 12px; background: #fff; font-size: 12px; cursor: pointer; }
.map-route-itin-switch button.is-active { border-color: #3B3FA6; background: #3B3FA6; color: #fff; }
.map-route-itin-switch button small { display: block; font-size: 10.5px; line-height: 1.2; color: #888; }
.map-route-itin-switch button.is-active small { color: rgba(255,255,255,.8); }
.map-route-itin-switch button small.is-far { color: #c0392b; font-weight: 700; }
.map-route-itin-switch button.is-active small.is-far { color: #ffb3ab; }

.map-route-block-title { margin: 14px 0 6px; color: #888; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.map-route-point { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 12.5px; color: #333; }
.map-route-point__dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.08); }
.map-route-point--start .map-route-point__dot { background: #2f7a44; }
.map-route-point--board .map-route-point__dot { background: #1874b0; }
.map-route-point--transfer .map-route-point__dot { background: #a8631a; }
.map-route-point--alight .map-route-point__dot { background: #3B3FA6; }
.map-route-point--end .map-route-point__dot { background: #2E3389; }
.map-route-point__text strong { color: #555; }

.map-route-leg { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #f0f0f0; font-size: 12.5px; }
.map-route-leg:first-child { border-top: 0; }
.map-route-leg__swatch { flex: 0 0 auto; width: 14px; height: 5px; border-radius: 3px; }
.map-route-leg__text { flex: 1 1 auto; color: #333; }
.map-route-leg__time { flex: 0 0 auto; color: #888; font-size: 12px; }

.map-click-popup { min-width: 220px; padding: 14px 16px; font-size: 13px; }
.map-click-popup h3 { margin: 0 0 6px; font-size: 15px; }
.map-click-popup p { margin: 0; color: #666; }
.maplibregl-popup-content { border-radius: 10px !important; box-shadow: 0 6px 20px rgba(0,0,0,.25) !important; }

/* Hover popup (2026-09-05) — deliberately smaller/lighter than the click
   popup above. It only appears after a several-second hold on one object
   (map-search.js — avoids flashing a popup for everything the pointer
   merely passes over while navigating), so the appearance itself fades in
   rather than snapping into place: `opacity` starts at 0 here and
   map-search.js adds `.is-visible` one frame after the popup is added to
   the map, letting this transition run. Hiding/replacing it (dwell on a
   different object, or a click) is instant — only the reveal is soft. */
.map-hover-popup-wrap { opacity: 0; transition: opacity 0.35s ease; }
.map-hover-popup-wrap.is-visible { opacity: 1; }
.map-hover-popup-wrap .maplibregl-popup-content { padding: 0; box-shadow: 0 4px 14px rgba(0,0,0,.2) !important; }
.map-hover-popup-wrap .maplibregl-popup-tip { display: none; }
.map-hover-popup { min-width: 170px; max-width: 240px; padding: 10px 12px; font-size: 12.5px; pointer-events: auto; }
.map-hover-popup strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.map-hover-popup span { color: #666; }
.map-hover-popup__link { display: inline-block; margin-top: 7px; padding: 0; border: 0; background: none; color: #a8631a; font-size: 12px; font-weight: 600; cursor: pointer; }
.map-hover-popup__link:hover { text-decoration: underline; }
.map-hover-popup__soon { display: inline-block; margin-top: 7px; padding: 2px 7px; border-radius: 9px; background: #fff7df; color: #77641e; font-size: 10.5px; font-weight: 600; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; }

@media (max-width: 900px) {
  .map-search-results { left: 10px; right: 10px; width: auto; top: 96px; max-height: calc(100% - 110px); }
  .map-search-control { left: 10px; right: 10px; width: auto; }
}
.map-selected-passport { margin: 4px 0 10px; font-size: 13px; color: #333; }

/* 2026-09-22 — map object card wave (claude/next-steps-map-object-card.md) */

/* Point 5: ad placeholder — one low row, always right under the card's
   title (both the point/area shapes of renderSelected and the street-houses
   list). Same spirit as design-decisions.md section B's "виджет-заглушка",
   sized for this panel's own ~380px width rather than that section's 300px
   sidebar — a different placement, not a copy of that CSS. Not real ad
   markup yet, just a labelled box so the layout has a stable slot once one
   is wired up. */
.map-selected-ad {
  margin: 0 0 12px; padding: 14px; border: 1px dashed #ddd; border-radius: 8px;
  background: #fafafa; text-align: center;
}
.map-selected-ad span { color: #999; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
/* 2026-09-22 (live report): tall variant for the idle/no-search panel
   (map-search.js's showSearchIdle, web/index.html's matching initial
   markup) — the one screen with nothing else on it at all, so a low strip
   alone would look broken rather than deliberate. ~250px is a common
   "medium rectangle" ad height; width just follows the panel (380px minus
   its own 18px side margins here, same gutter .map-search-empty already
   uses via its own padding). */
.map-selected-ad--tall { margin: 0 18px 18px; min-height: 250px; display: flex; align-items: center; justify-content: center; }

/* Point 2: "Транспортный рейтинг" badge — same score/tier/wording as the
   object's own page (server/src/lib/htmlPage.js's .transport-rating, kept
   in sync by hand the same way that stylesheet's own comment already notes
   for .zone-panel — inlined per-page there, linked here, so one shared rule
   isn't possible). Colors match this file's own existing accent (#3B3FA6/
   #2E3389), not new ones. */
.map-selected-rating { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.map-selected-rating__score {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 2.4em; height: 2.4em; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.map-selected-rating--high .map-selected-rating__score { background: #3B3FA6; color: #fff; }
.map-selected-rating--medium .map-selected-rating__score { background: #EFEFFB; color: #3B3FA6; border: 1px solid #E2E2F6; }
.map-selected-rating--low .map-selected-rating__score { background: #FFF4E5; color: #7A4E00; border: 1px solid #F0BE7D; }
.map-selected-rating__text { margin: 0; font-size: 12.5px; font-weight: 600; color: #555; line-height: 1.4; }
/* Волна 74: «Шум» — тот же бейдж, свои ярусы (тихо — спокойный акцент, умеренно — нейтральный,
   шумно — предупреждение; чем больше балл, тем шумнее — поэтому не цвета транспортного бейджа). */
.map-selected-noise { align-items: flex-start; }
.map-selected-noise--quiet .map-selected-rating__score { background: #EFEFFB; color: #3B3FA6; border: 1px solid #E2E2F6; }
.map-selected-noise--moderate .map-selected-rating__score { background: #F4F4F8; color: #4A4E5C; border: 1px solid #E3E4EC; }
.map-selected-noise--loud .map-selected-rating__score { background: #FFF4E5; color: #7A4E00; border: 1px solid #F0BE7D; }
.map-selected-noise .map-selected-rating__text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.map-selected-noise__level { font-weight: 700; color: #333; }
.map-selected-noise__detail { font-weight: 400; color: #666; }
.map-selected-noise__more { color: #3B3FA6; }

/* Point 1: route-to-here fields mounted INSIDE the object card
   (map-search.js's inlineRouteBodyHtml/renderObjectRouteBlock) — reuses the
   full route panel's own .map-route-* classes verbatim (already sized for
   this exact ~380px panel), just needs a bit of visual separation from the
   rest of the card and a smaller title than the full panel's <h2>. */
.js-inline-route { margin-top: 4px; padding-top: 12px; border-top: 1px solid #eee; }
.map-selected-route-title { margin: 0 0 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #777; }
.map-route-points-input--inline { margin-bottom: 10px; }
/* Wave 85: the same block on a street card opened by a map click — under the street head. */
.map-street-route { margin-top: 0; padding: 12px 18px 14px; border-top: 0; border-bottom: 1px solid #eee; }

/* Wave 38 (claude/design-map-interactivity.md, п.2): a click on the route on
   the map briefly highlights the matching legend row (map-search.js,
   flashRouteLegendRow). */
.map-route-point, .map-route-leg { transition: background-color .25s ease, box-shadow .25s ease; border-radius: 6px; }
.map-route-point.is-map-hit, .map-route-leg.is-map-hit { background: #EFEFFB; box-shadow: 0 0 0 4px #EFEFFB; }

/* Wave 39: note above a route restored from history / a shared link
   (map-search.js, routeNote) — "Маршрут рассчитан на 10:03…" + «Пересчитать». */
.map-route-note { margin: 0 0 8px; padding: 6px 8px; border-radius: 6px; background: #FFF6E0; color: #6b4e00; font-size: 12.5px; line-height: 1.35; }
.map-route-note__recalc { margin-left: 4px; padding: 0; border: 0; background: none; color: #3B3FA6; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Wave 40 (claude/design-map-interactivity.md, п.2): legend ↔ map linking. A hovered/pinned
   leg, point or line chip (map-search.js, updateLegendHighlight), and the popup a click on
   the route opens (showRoutePopup). */
.map-route-point[data-point], .map-route-leg[data-leg], .map-route-lines__chip[data-leg] { cursor: pointer; }
.map-route-point.is-hover, .map-route-leg.is-hover { background: #EFEFFB; box-shadow: 0 0 0 4px #EFEFFB; }
.map-route-lines__chip.is-hover { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3B3FA6; }
.map-route-popup .maplibregl-popup-content { padding: 10px 26px 10px 12px; border-radius: 10px; font: 13px/1.35 "Golos Text", system-ui, sans-serif; color: #222; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.map-route-popup .maplibregl-popup-close-button { font-size: 18px; padding: 0 6px; }
.map-route-popup__meta { margin-top: 2px; color: #666; font-size: 12px; }
.map-route-popup__open { display: block; margin-top: 8px; padding: 6px 10px; border: 0; border-radius: 6px; background: #3B3FA6; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.map-route-popup__open:hover { background: #2E3389; }
.map-route-popup__open:disabled { background: #999; cursor: default; }

/* Wave 41 (claude/design-map-interactivity.md, п.6): «Слои карты» — map layer switches, separate
   from the search-type tabs above them. */
.map-layers { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eee; }
.map-layers__title { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #555; }
.map-layers__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.map-layers__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid #ddd; border-radius: 16px; background: #fff; color: #555; font-size: 12px; cursor: pointer; }
.map-layers__chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #bbb; background: #fff; }
.map-layers__chip.is-on { border-color: #3B3FA6; color: #2E3389; background: #EFEFFB; }
.map-layers__chip.is-on::before { border-color: #3B3FA6; background: #3B3FA6; }
.map-layers__chip:hover { border-color: #3B3FA6; }

/* Wave 42: «Ночные» legend (N1-N4 colors, see pipeline/build_night_lines.py). */
.map-layers__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; font-size: 12px; color: #333; }
.map-layers__legend[hidden] { display: none; }
.map-layers__legend-item { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.map-layers__legend-item i { display: inline-block; width: 16px; height: 4px; border-radius: 2px; }
.map-layers__legend-note { color: #777; font-weight: 400; }

/* Wave 43: stop count in a leg row; night-line popup (map-search.js, showNightPopup). */
.map-route-leg__stops { color: #888; }
.map-night-popup__title { margin-bottom: 4px; color: #777; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
.map-night-popup__line { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.map-night-popup__line i { flex: 0 0 auto; display: inline-block; width: 16px; height: 4px; border-radius: 2px; transform: translateY(-2px); }
.map-night-popup__btn { margin-top: 5px; padding: 4px 9px; font-size: 12px; }

/* Wave 46: metro entrance popup — a small dot in the line colour before the title. */
.map-underground-popup__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  vertical-align: -1px;
}

/* Wave 48: «Выходы» in a metro station card (map-search.js, fillMetroExits). Rows light up
   while the matching entrances are highlighted on the map (hover/pin) and flash on a map click. */
.map-metro-exits__pair { text-transform: none; letter-spacing: 0; font-weight: 400; color: #999; }
.map-metro-exits__list { list-style: none; margin: 0; padding: 0; }
.map-metro-exit { display: flex; align-items: flex-start; gap: 8px; padding: 3px 4px; margin: 0 -4px; border-radius: 6px; cursor: pointer; transition: background-color .15s; }
.map-metro-exit__dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(0,0,0,.12); }
.map-metro-exit__body { display: flex; flex-direction: column; min-width: 0; }
.map-metro-exit__name { font-size: 12.5px; color: #333; line-height: 1.5; }
.map-metro-exit__meta { font-size: 11.5px; color: #888; line-height: 1.35; }
.map-metro-exit.is-hover, .map-metro-exit.is-pinned, .map-metro-exit.is-map-hit { background: #EFEFFB; }
.map-metro-exit.is-pinned .map-metro-exit__name { font-weight: 600; }
.map-metro-exits__more { margin-top: 4px; padding: 0; border: 0; background: none; color: #3B3FA6; font-size: 12.5px; cursor: pointer; }
.map-metro-exits__more:hover { text-decoration: underline; }
/* Wave 48: coordinates in the «Точка на карте» card (click copies). */
.map-selected-coords { font-size: 12.5px; color: #777; }
.map-selected-coords__val { padding: 0; border: 0; background: none; font: inherit; color: #333; font-variant-numeric: tabular-nums; cursor: copy; user-select: all; }
.map-selected-coords__val:hover { color: #3B3FA6; }
.map-selected-coords__val.is-copied::after { content: " — скопировано"; color: #2f7a44; }

/* Wave 50: area hierarchy in the card — breadcrumbs, group line, «Входит» list (map-search.js,
   areaNavHtml). Rows and links light up their polygon on the map on hover. */
.map-area-crumbs { margin: -4px 0 8px; font-size: 12px; color: #777; line-height: 1.5; }
.map-area-link { padding: 0; border: 0; background: none; font: inherit; color: #3B3FA6; cursor: pointer; }
.map-area-link:hover { text-decoration: underline; }
.map-area-note { margin: 0 0 8px; font-size: 12.5px; color: #555; }
.map-area-children ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 12px; }
.map-area-child { padding: 2px 4px; margin: 0 -4px; border-radius: 5px; font-size: 12.5px; color: #333; line-height: 1.5; cursor: pointer; break-inside: avoid; }
.map-area-child:hover { background: #EFEFFB; color: #3B3FA6; }

/* Wave 53: every line of the selected group with its boarding time */
.map-route-lines { gap: 6px 8px; }
.map-route-lines__option { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border: 1px solid transparent; border-radius: 14px; background: none; font: inherit; cursor: pointer; }
.map-route-lines__option:hover { border-color: #ddd; }
.map-route-lines__option.is-active { border-color: #3B3FA6; background: #eef0fb; cursor: default; }
.map-route-lines__time { font-size: 12.5px; font-weight: 400; color: #333; }
.map-route-lines__time.is-far { color: #c0392b; }
.map-route-lines__walk { font-size: 12.5px; color: #555; padding-left: 4px; }
.map-route-wait-warning { margin: -2px 0 10px; }

/* Волна 58: междугородние рейсы — блок в карточке станции и подсказка в результатах поиска */
.map-intercity__row { font-size: 12.5px; color: #333; line-height: 1.7; }
.map-intercity__mode { display: inline-block; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 5px; background: #e6f0ff; color: #1d4ea8; }
.map-intercity__mode--bus { background: #e9f7ec; color: #1f7a3a; }
.map-intercity__warn { font-size: 11px; color: #8a5a00; }
.map-intercity__all { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #3B3FA6; text-decoration: none; }
.map-intercity-hits { margin: 0 0 8px; }
.map-intercity-hit { display: block; padding: 10px 12px; margin-bottom: 6px; border-radius: 8px; background: #EEF0FB; color: #2E3389; text-decoration: none; }
.map-intercity-hit:hover { background: #E2E5F8; }
.map-intercity-hit__title { display: block; font-weight: 700; font-size: 13px; }
.map-intercity-hit__sub { display: block; font-size: 12px; color: #555; margin-top: 2px; }

/* Волна 59: «Расписание →» у вокзалов в выдаче, блок городских остановок рядом */
.map-search-result__links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.map-search-result__schedule { font-weight: 600; }
.map-search-related--citystops small { color: var(--muted, #6b7280); font-size: 11px; }
.map-intercity__note { margin: 6px 0 4px; font-size: 12px; color: #8a5a00; line-height: 1.35; }

/* Wave 76: stop rows of a transit-line card are buttons (open the stop), hover pairs with the map marker */
button.map-route-stop { width: 100%; border: 0; border-top: 1px solid #eee; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
button.map-route-stop:hover, .map-route-stop.is-hover { background: #fdf0ee; }
button.map-route-stop.is-edge { color: #2E3389; }

/* Wave 77: live vehicles status line on a transit-line card */
.map-line-live { margin: 6px 0 0; font-size: 12px; color: #2E3389; }
.map-line-live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2f7a44; vertical-align: 1px; }

/* Wave 78: stop selected inside a transit-line card */
.map-route-stop.is-selected { background: #eef0fb; font-weight: 700; color: #2E3389; }
.map-line-stop-detail { padding: 6px 8px 10px 31px; background: #f7f8fd; border-top: 1px solid #eef0fb; font-size: 12.5px; }
.map-line-stop-detail .map-selected-transport { margin: 0 0 8px; }
.map-line-stop-detail__open { padding: 0; border: 0; background: none; color: #2E3389; font: inherit; text-decoration: underline; cursor: pointer; }

/* Wave 79: switch to the line's other direction(s) */
.map-line-dirs { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; }
.map-line-dirs__btn { align-self: flex-start; padding: 6px 11px; border: 1px solid #c9cdea; border-radius: 14px; background: #fff; color: #2E3389; font: inherit; font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; }
.map-line-dirs__btn span { font-weight: 400; color: #333; }
.map-line-dirs__btn:hover { background: #eef0fb; border-color: #3B3FA6; }

/* Wave 80: live vehicle popup — link styled like the popup's action button */
a.map-route-popup__open.map-vehicle-popup__link { text-align: center; text-decoration: none; }

/* Wave 86: «Только пешком» — always the last alternative, visually apart */
.map-route-itin-switch__walk { border-style: dashed !important; }
.map-route-itin-switch__label { display: block; font-size: 10.5px; font-weight: 700; line-height: 1.2; color: #555; }
.map-route-itin-switch__walk.is-active .map-route-itin-switch__label { color: #fff; }

/* Волна 90: второе название объекта (латинское под кириллическим) — в строке выдачи и в карточке. */
.map-search-result__text span.map-search-result__alt { display: block; color: #444; font-size: 12.5px; margin: -1px 0 2px; }
.map-search-result__text span.map-search-result__alt.is-match { color: #3B3FA6; font-weight: 600; }
.map-selected-card p.map-selected-alt { margin: -6px 0 8px; color: #444; font-size: 13.5px; font-weight: 600; }

/* Wave 93: organizations block inside «Слои карты» (map-search.js renderOrgPanel). The group color
   (--org-color, data/org_taxonomy.json) is the chip's indicator dot — the same color as its icons. */
.map-orgs { margin-top: 10px; }
.map-orgs__groups { gap: 5px; }
.map-orgs__chip { padding: 5px 9px; }
.map-orgs__chip::before { border-color: var(--org-color, #bbb); }
.map-orgs__chip.is-on { border-color: var(--org-color, #3B3FA6); color: #222; background: #fff; box-shadow: inset 0 0 0 1px var(--org-color, #3B3FA6); }
.map-orgs__chip.is-on::before { border-color: var(--org-color, #3B3FA6); background: var(--org-color, #3B3FA6); }
.map-orgs__chip:hover { border-color: var(--org-color, #3B3FA6); }
.map-orgs__status { margin-top: 6px; font-size: 12px; color: #777; }
.map-orgs__status[hidden], .map-orgs__subs[hidden] { display: none; }
.map-orgs__subs { margin-top: 8px; max-height: 38vh; overflow-y: auto; padding-right: 2px; }
.map-orgs__group { margin-bottom: 8px; padding-left: 8px; border-left: 3px solid var(--org-color, #ccc); }
.map-orgs__group-title { font-size: 12px; font-weight: 700; color: #333; margin-bottom: 3px; }
.map-orgs__rubric { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 3px 0 5px; }
.map-orgs__rubric-name { width: 100%; font-size: 11px; color: #777; }
.map-orgs__sub { padding: 3px 8px; border: 1px solid #ddd; border-radius: 12px; background: #fff; color: #444; font-size: 11.5px; cursor: pointer; }
.map-orgs__sub:hover { border-color: var(--org-color, #3B3FA6); }
.map-orgs__sub.is-on { border-color: var(--org-color, #3B3FA6); background: var(--org-color, #3B3FA6); color: #fff; }
.map-orgs__reset { margin-top: 2px; padding: 0; border: 0; background: none; color: #3B3FA6; font-size: 12px; text-decoration: underline; cursor: pointer; }
.map-orgs__zoom { margin-top: 6px; padding: 6px 8px; border-radius: 6px; background: #fff6e8; font-size: 12px; color: #6b4a12; }
.map-orgs__zoom[hidden] { display: none; }
.map-orgs__zoom-btn { margin-left: 4px; padding: 2px 8px; border: 1px solid #c9781f; border-radius: 10px; background: #fff; color: #8a5210; font-size: 12px; cursor: pointer; }

/* Wave 94: walking zone × filters. Counts «в зоне» on the chips, «Только в зоне», «Город». */
.map-orgs__zone-title { font-weight: 400; color: #777; }
.map-orgs__zone-only { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12px; color: #444; cursor: pointer; }
.map-orgs__zone-only[hidden] { display: none; }
.map-orgs__n { margin-left: 3px; font-weight: 600; color: #333; font-variant-numeric: tabular-nums; }
.map-orgs__sub.is-on .map-orgs__n { color: #fff; }
.map-orgs__chip.is-zero, .map-orgs__sub.is-zero { opacity: 0.55; }
.map-orgs__city-title { margin-top: 10px; }
/* zone panel, map mode (zone-panel.js createMap) */
.zone-panel--map .zone-panel__chip { display: inline-flex; align-items: center; gap: 5px; }
.zone-panel__ring { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.zone-panel__brief { margin: 8px 0 10px; padding: 8px 10px; border-radius: 8px; background: #f5f6f8; font-size: 13px; color: #333; }
.zone-panel__brief:empty { display: none; }
.zone-panel__brief-title, .zone-panel__filters-title { font-size: 12px; font-weight: 700; color: #333; margin-bottom: 4px; }
.zone-panel__brief-row { margin: 2px 0; line-height: 1.4; }
.zone-panel__brief-row .zone-panel__method-link { font-size: 12px; margin-left: 4px; }
.zone-panel__hint { padding: 8px 10px; border-radius: 8px; background: #fff6e8; color: #6b4a12; font-size: 13px; line-height: 1.4; }
.zone-panel__quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.zone-panel__quick-btn { padding: 4px 10px; border: 1px solid var(--zp-color, #999); border-radius: 14px; background: #fff; color: #333; font-size: 12px; cursor: pointer; }
.zone-panel__sec { margin: 8px 0 12px; padding-left: 9px; border-left: 3px solid var(--zp-color, #999); }
.zone-panel__sec-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: #222; }
.zone-panel__sec-count { font-variant-numeric: tabular-nums; }
.zone-panel__subs { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0; }
.zone-panel__sub { padding: 2px 8px; border: 1px solid #ddd; border-radius: 12px; background: #fff; color: #444; font-size: 11.5px; cursor: pointer; }
.zone-panel__sub.is-on { border-color: var(--zp-color, #3B3FA6); background: var(--zp-color, #3B3FA6); color: #fff; }
.zone-panel__near { list-style: none; margin: 4px 0 0; padding: 0; }
.zone-panel__near-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 3px 0; font-size: 13px; border-top: 1px solid #f0f0f0; }
.zone-panel__near-item:first-child { border-top: 0; }
.zone-panel__near-item.is-error { color: #b3261e; }
.zone-panel__mins { flex: 0 0 auto; min-width: 42px; font-size: 12px; font-weight: 600; color: #555; font-variant-numeric: tabular-nums; }
.zone-panel__near-link { padding: 0; border: 0; background: none; color: #2E3389; font-size: 13px; text-align: left; cursor: pointer; }
.zone-panel__near-link:hover { text-decoration: underline; }
.zone-panel__near-sub { width: 100%; padding-left: 48px; font-size: 11.5px; color: #777; }
.zone-panel__all { margin-top: 3px; padding: 0; border: 0; background: none; color: #2E3389; font-size: 12px; cursor: pointer; }
.zone-panel__all[hidden] { display: none; }
.zone-panel__more-box { margin-top: 10px; border-top: 1px solid #eee; padding-top: 6px; }
.zone-panel__more-box summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #444; }
.zone-panel__more-item { margin: 8px 0; font-size: 12.5px; }
.zone-panel__more-head { font-weight: 700; color: #333; }
.zone-panel__more-head span { font-weight: 400; color: #666; }
.zone-panel__more-bd { color: #555; margin-top: 2px; }
.zone-panel__downloads a { color: #2E3389; }
