.map-section {
    --map-main: #075985;
    --map-branch: #d97706;
}

.geo-map-wrap {
    overflow: auto;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pan-y;
    scrollbar-gutter: stable;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #eceeef;
    box-shadow: var(--shadow);
}

.geo-map {
    display: block;
    width: 100%;
    min-width: 720px;
    height: auto;
}

.map-ground { fill: #f1f2f3; }
.map-regions path { fill: #e2e4e5; opacity: .82; }
.map-roads path { fill: none; stroke: #c3c6c8; stroke-width: 4; }
.map-roads .minor { stroke: #d5d7d9; stroke-width: 1.5; stroke-dasharray: 8 7; }
.map-place-labels text { fill: #a3a7aa; font: 700 14px system-ui,sans-serif; letter-spacing: .08em; }
.route-halo { fill: none; stroke: #fff; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.route-main,.route-branch { fill: none; stroke: var(--map-main); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.route-branch { stroke: var(--map-branch); }
.map-station-position { pointer-events: bounding-box; }
.map-station { transform-box: fill-box; transform-origin: center; transition: transform .18s ease,filter .18s ease; }
.station-marker { fill: var(--map-main)!important; stroke: #fff!important; stroke-width: 3.5!important; filter: drop-shadow(0 2px 3px rgba(49,56,61,.25)); }
.map-station.is-branch .station-marker { fill: var(--map-branch)!important; }
.map-station.is-junction .station-marker { fill: url(#map-junction-gradient)!important; }
.station-core { fill: #fff!important; stroke: none!important; }
.station-symbol { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.is-airport .station-symbol { fill: #fff; stroke: #fff; stroke-width: 1; }
.station-label rect { fill: rgba(255,255,255,.94); stroke: #e4e7e9; stroke-width: 1; filter: drop-shadow(0 1px 2px rgba(40,48,54,.12)); }
.station-label text { fill: #17212b!important; font: 800 16px system-ui,-apple-system,"Segoe UI",sans-serif!important; letter-spacing: .01em; }
.map-station-link:hover .map-station,.map-station-link:focus .map-station { transform: scale(1.12); filter: brightness(1.04); }
.map-station-link:hover .station-label rect,.map-station-link:focus .station-label rect { stroke: var(--map-main); stroke-width: 2; }
.map-station-link.is-branch-link:hover .station-label rect,.map-station-link.is-branch-link:focus .station-label rect { stroke: var(--map-branch); }
.map-station-link:focus { outline: none; }
.map-legend { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.route-swatch { display: inline-block; width: 32px; height: 6px; margin-right: .45rem; border-radius: 4px; background: var(--map-main,#075985); }
.route-swatch.branch { background: var(--map-branch,#d97706); }
.map-note { margin-top: 1.5rem; }
@media (max-width: 700px) {
    .geo-map-wrap:before { content: "Desliza horizontalmente para explorar el mapa"; display: block; position: sticky; left: 0; width: max-content; padding: .6rem .8rem; color: var(--muted); font-size: .78rem; }
    .geo-map { min-width: 620px; }
    .map-place-labels,.map-roads .minor { opacity: .55; }
    .station-label text { font-size: 17px!important; }
}
@media (max-width: 420px) {
    .geo-map { min-width: 570px; }
    .map-place-labels { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .map-station { transition: none; }
}
