/* Real metro stations near a complex: пешее расстояние, если маршрут посчитан, иначе по прямой. */
.nearest-metro { margin: -4px 0 12px; font-size: 13px; line-height: 1.4; }
.nearest-metro-list { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 0; padding: 0; list-style: none; }
.nearest-metro-list > li { min-width: 0; max-width: 100%; }
.nearest-metro-station { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; max-width: 100%; padding-block: 2px; color: var(--ink); }
.nearest-metro-icon { display: inline-flex; flex: 0 0 18px; align-items: center; justify-content: center; width: 18px; height: 18px; color: #FF0013; font-size: 14px; font-weight: 750; line-height: 1; }
/* Значок метро как на карточках ЖК главной: красный квадрат с белой «М» — для кнопок карты. */
.metro-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 16px; height: 16px; border-radius: 4px; background: #ff0013; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }
.nearest-metro-name { min-width: 0; overflow-wrap: anywhere; }
.nearest-metro-distance { flex-shrink: 0; color: var(--muted); white-space: nowrap; }
.card-map-row { display: none; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.card-map-row.has-metro { display: flex; }
.card-map-row .card-map-action { display: none; margin: 0; flex-shrink: 0; }
.card-metro { display: inline-flex; min-width: 0; max-width: 100%; align-items: center; gap: 5px; color: var(--ink); font-size: 11px; line-height: 1.4; }
.card-metro-name { min-width: 0; overflow-wrap: anywhere; }
.card-metro .nearest-metro-icon { flex-basis: 14px; width: 14px; height: 14px; font-size: 12px; }
.card-context-link { color: inherit; text-decoration: underline; text-decoration-color: var(--surface-line); text-underline-offset: 3px; transition: color 160ms ease, text-decoration-color 160ms ease; }
.card-context-link:hover, .card-context-link:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
body.view-map .card-map-row { display: flex; }
body.view-map .card-map-row .card-map-action:not([hidden]) { display: inline-flex; }

@media (max-width: 700px) {
  .nearest-metro { margin: -2px 0 8px; font-size: 12px; }
  .nearest-metro-list { column-gap: 12px; }
}
