/* Road colors are scoped above legacy card/span and generic SVG rules. */
:root{--motorway-sign:#07864f;--motorway-sign-hover:#05683e;--expressway-sign:#006ca8;--expressway-sign-hover:#005581}
.route-card .route-code .road-code-a,.route-card .route-code .road-code-h{color:#fff;-webkit-text-fill-color:#fff;font-size:inherit}
.route-card .route-code .road-code-a{background:var(--motorway-sign)}
.route-card .route-code .road-code-h{background:var(--expressway-sign)}
.corridor-chip[data-corridor^="A"],.camera-road-chip[data-camera-road^="A"]{background:var(--motorway-sign);border-color:var(--motorway-sign);color:#fff;-webkit-text-fill-color:#fff}
.corridor-chip[data-corridor^="H"],.camera-road-chip[data-camera-road^="H"]{background:var(--expressway-sign);border-color:var(--expressway-sign);color:#fff;-webkit-text-fill-color:#fff}
.corridor-chip[data-corridor^="A"]:is(:hover,:focus-visible,[aria-pressed="true"]),.camera-road-chip[data-camera-road^="A"]:is(:hover,:focus-visible,[aria-pressed="true"]){background:var(--motorway-sign-hover);color:#fff}
.corridor-chip[data-corridor^="H"]:is(:hover,:focus-visible,[aria-pressed="true"]),.camera-road-chip[data-camera-road^="H"]:is(:hover,:focus-visible,[aria-pressed="true"]){background:var(--expressway-sign-hover);color:#fff}
.road-filter-groups,.camera-road-groups{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 24px}
.road-filter-groups .road-chips{margin-bottom:0}
.road-filter-groups .road-filter-label,.camera-road-groups .road-filter-label{font-size:14px}
.road-filter-groups .chip,.camera-road-groups .chip{min-width:42px;min-height:42px}
.road-classification-note{font-size:14px;line-height:1.5;margin:6px 0 14px;color:#40515b}
#avtoceste.pd-geography .motorway-link[data-road-family="A"],#avtoceste.pd-geography .map-road[data-road-family="A"]{--road:var(--motorway-sign)}
#avtoceste.pd-geography .motorway-link[data-road-family="H"],#avtoceste.pd-geography .map-road[data-road-family="H"]{--road:var(--expressway-sign)}
#avtoceste .motorway-code{background:var(--road);color:#fff;-webkit-text-fill-color:#fff;min-width:44px;font-size:15px}
#avtoceste .motorway-endpoints strong{font-size:14px;line-height:1.35}
#avtoceste .motorway-endpoints small{font-size:14px;line-height:1.4;margin-top:3px}
#avtoceste .motorway-current{grid-column:1/-1;justify-self:start;font-size:12px;white-space:normal}
#avtoceste .motorway-arrow{grid-column:1/-1;justify-self:end}
#avtoceste .road-network-group>h3{font-size:17px}
#avtoceste .expressway-list{grid-template-columns:repeat(3,minmax(0,1fr))}
#avtoceste .coastal-list{grid-template-columns:repeat(2,minmax(0,1fr))}
#avtoceste .coastal-group{margin-bottom:24px}
#avtoceste .former-road{font-weight:750;color:#334d5e}
#avtoceste .slovenia-map-card{margin:0;border:1px solid #c7d8dc;border-radius:18px;padding:20px;background:#fff;overflow:hidden;scroll-margin-top:85px}
#avtoceste .slovenia-map-head{display:block}
#avtoceste .slovenia-map-head strong{display:block;font-size:18px;line-height:1.4;color:#172128}
#avtoceste .map-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:10px}
#avtoceste .map-legend>span{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:650;color:#334d5e}
#avtoceste .map-legend i{display:inline-block;width:27px;height:6px;border-radius:4px;background:var(--motorway-sign)}
#avtoceste .map-legend .legend-h{background:var(--expressway-sign)}
#avtoceste .map-legend .legend-old{height:0;background:none;border-top:4px dashed var(--expressway-sign);border-radius:0}
#avtoceste .map-scroll{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:4px 0}
#avtoceste .map-scroll:focus-visible{outline:3px solid #006ca8;outline-offset:2px}
#avtoceste .slovenia-sketch{display:block;width:100%;height:auto;max-height:none;min-width:680px}
#avtoceste .country-shape{fill:#edf5f2;stroke:#9bb6ad;stroke-width:2;stroke-linejoin:round}
#avtoceste .map-road .map-route{fill:none;stroke:var(--road);stroke-width:6;stroke-linecap:round;stroke-linejoin:round}
#avtoceste .map-road .map-halo{fill:none;stroke:#fff;stroke-width:10;stroke-linejoin:round;stroke-linecap:round;pointer-events:none}
#avtoceste .map-road .map-hit{fill:none;stroke:transparent;stroke-width:18;stroke-linecap:round}
#avtoceste .map-road .map-leader{fill:none;stroke:var(--road);stroke-width:1.5;opacity:.8;pointer-events:none}
#avtoceste .map-road .map-road-label rect{fill:var(--road);stroke:white;stroke-width:2}
#avtoceste .map-road .map-road-label text{fill:#fff;stroke:none;text-anchor:middle;font-family:inherit;font-size:20px;font-weight:850}
#avtoceste .map-road:is(:hover,:focus-visible,.is-current) .map-route{stroke-width:9;filter:drop-shadow(0 2px 2px #102c3a40)}
#avtoceste .map-road:is(:hover,:focus-visible,.is-current) .map-road-label rect{stroke:#102c3a;stroke-width:2}
#avtoceste .map-road[data-legacy="true"] .map-route{stroke-dasharray:5 4}
#avtoceste .city{pointer-events:none}
#avtoceste .city circle{fill:#163c49;stroke:white;stroke-width:2}
#avtoceste .city text{fill:#183d49;font-size:20px;font-weight:850;stroke:#fff;stroke-width:4;paint-order:stroke;stroke-linejoin:round}
#avtoceste figcaption p{font-size:14px;line-height:1.6;color:#40515b;margin:8px 0 0}
#avtoceste .map-cities{display:flex;flex-wrap:wrap;gap:6px 16px;border-top:1px solid #d8e1e6;padding-top:12px;font-size:14px;color:#334d5e}
#avtoceste .map-cities b{color:#163c49}
#avtoceste .map-coast-note{padding:12px;border-radius:10px;background:#f0f6fa}
#avtoceste figcaption a{text-decoration:underline;color:#005581}
#avtoceste .map-scroll-help{display:none;font-size:14px;color:#40515b}
@media(max-width:980px){#avtoceste .motorway-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.road-filter-groups,.camera-road-groups{grid-template-columns:minmax(0,1fr)}#avtoceste .map-scroll-help{display:block}}
@media(max-width:560px){#avtoceste .motorway-list{grid-template-columns:1fr}#avtoceste .slovenia-map-card{padding:13px}.camera-tools{position:static}.road-filter-groups .road-filter-row,.camera-road-groups .road-filter-row{grid-template-columns:80px minmax(0,1fr);align-items:center}.road-filter-groups .road-filter-label,.camera-road-groups .road-filter-label{padding:0;font-size:14px}.road-filter-groups .chips,.camera-road-groups .camera-road-scroll{gap:5px;flex-wrap:wrap;overflow:visible}.road-filter-groups .chip,.camera-road-groups .chip{min-width:40px;padding:7px 9px}}
@media(prefers-reduced-motion:reduce){#avtoceste .motorway-link,#avtoceste .map-route{transition:none}}
.current-road-chip[data-road-family="H"]{background:var(--expressway-sign);color:#fff;-webkit-text-fill-color:#fff}
