/* Route result presentation. Colours always have a corresponding text label. */
.selection-banner {padding:12px 14px;border:1px solid #476052;border-radius:10px;font-weight:650;overflow-wrap:anywhere}
.selected-selection {border:2px solid #82edaa;background:#183e2a;color:#b8ffd1}
select.network-picked {border:2px solid #82edaa;background:#183e2a}
.battery-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.route-battery {grid-template-columns:repeat(3,minmax(0,1fr))}
.battery-metric {display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid #3d6953;border-radius:12px;background:#0a1c14;min-width:0}
.battery-label {font-size:12px;color:#c4d9cc;font-weight:650}
.battery-percent {font-size:25px;line-height:1.2;color:#b8ffd1;overflow-wrap:anywhere}
#energy-summary {border-block:1px solid #355947;margin:18px 0;padding:16px 0}
#energy-summary h3 {margin:0;font-size:17px}
.stop-card {border:1px solid #52705f;border-radius:14px;padding:18px;margin:16px 0 24px;background:#0d2017;overflow-wrap:anywhere;min-width:0}
.stop-card h3 {font-size:20px;line-height:1.3;margin:0 0 10px}
.stop-card h4 {font-size:15px;margin:12px 0 8px}
.station-selected {border:2px solid #82edaa;background:#123322}
.station-badges {display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}
.badge {display:inline-block;padding:4px 9px;border:1px solid #607566;border-radius:20px;font-size:11px;font-weight:700;color:#d8e9df;background:#172a20}
.badge-planned {border-color:#8acbff;color:#c0e6ff;background:#122d3c}
.badge-selected {border-color:#82edaa;color:#c9ffdc;background:#19492e}
.badge-unselected {border-color:#8e9ba9;color:#d6dce3;background:#263039}
.station-identity {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.station-identity div {min-width:0}
.station-identity dt {font-size:11px;color:#b0c9ba}
.station-identity dd {margin:2px 0 0;font-size:14px;font-weight:650}
.stop-progress,.station-distance {font-size:13px;color:#d6ecdf;margin:10px 0}
.station-section {border-top:1px solid #3a614b;margin-top:20px;padding-top:4px}
.nearby-station {border:1px solid #4a6655;border-radius:10px;background:#0b1a12;padding:12px;margin:10px 0}
.nearby-station.station-selected {border:2px solid #82edaa;background:#123322}
.nearby-station h4 {margin-top:0}
.nearby-station .station-identity {margin:8px 0}
.empty-note {padding:10px 12px;border-left:3px solid #b6c9be;color:#c6d9ce;background:#162c20;font-size:13px}
.map-legend {display:flex;flex-wrap:wrap;gap:8px 16px;margin:8px 0}
.map-legend span {display:inline-flex;align-items:center;gap:6px}
.map-legend-symbol {display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border:2px solid white;color:white;font-size:12px;font-style:normal;font-weight:850;flex:none}
.legend-planned {border-radius:6px;background:#045bce}
.legend-alternative {border-radius:3px;background:#7928ca;color:#fff}
.legend-nearby {border-radius:50%;background:#7928ca;color:#fff}
.legend-selected {border-color:#fff;background:#006b35;color:#fff;border-radius:50%}
.map-controls {display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:10px 0}
.map-controls p {flex:1;min-width:180px;margin:0}
.map-controls .map-view-active {background:#82edaa;color:#082114;border:2px solid white;box-shadow:0 0 0 2px #071410}
#map.station-map-canvas {height:560px}
.station-map-action {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}
.map-reference {font-size:12px;font-weight:750;color:#c9e6d4}
.station-map-icon {background:transparent;border:0}
#map .station-map-icon[hidden] {display:none!important}
.map-marker-stack {display:flex;position:relative;flex-direction:column;align-items:center;width:56px;transform-origin:28px 28px}
.map-pin {display:flex;flex:none;width:48px;height:48px;margin:4px;align-items:center;justify-content:center;border:4px solid #fff;box-shadow:0 0 0 2px #101828,0 4px 8px #0009;font:900 18px/1 system-ui;color:#fff;background:#045bce}
.map-pin-planned {width:56px;height:56px;margin:0;border-radius:12px}
.map-pin-nearby {border-radius:50%;background:#7928ca}
.map-pin-alternative {width:44px;height:44px;margin:6px;transform:rotate(45deg);border-radius:5px;background:#7928ca}
.map-pin-alternative>.map-pin-code {transform:rotate(-45deg)}
.map-pin-selected {background:#006b35;color:#fff}
.map-pin-cluster {width:56px;height:56px;margin:0;border-radius:50%;background:#111827;font-size:23px;border-style:double;border-width:6px}
.map-marker-name {display:block;flex:none;max-width:154px;width:max-content;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:6px;padding:4px 7px;border:2px solid #101828;border-radius:6px;background:#fff;color:#101828;font:750 12px/1.25 system-ui;text-align:center;box-shadow:0 2px 5px #0006}
.map-net-indicator {position:absolute;top:-7px;right:-7px;z-index:1;display:flex;align-items:center;justify-content:center;width:23px;height:23px;border:2px solid #101828;border-radius:50%;background:#fff;color:#006b35;font:900 16px/1 system-ui}
.station-map-icon:hover,.station-map-icon:focus-visible {z-index:2200!important}
.station-map-icon:hover .map-marker-stack,.station-map-icon:focus-visible .map-marker-stack {transform:scale(1.08)}
.station-map-icon:focus-visible .map-pin {outline:4px solid #ffea00;outline-offset:5px}
.map-marker-focused .map-pin {outline:4px solid #ffea00;outline-offset:5px}
.cluster-station {padding:9px 0;border-bottom:1px solid #ccd4dc}
.leaflet-popup-content .cluster-station-button {width:100%;padding:10px;border:2px solid #101828;background:#fff;color:#101828;font-size:13px;text-align:left;white-space:normal}
.cluster-station-button:focus-visible {outline:3px solid #7928ca;outline-offset:2px}
.station-map-popup {max-height:330px;overflow:auto}
.map-popup-category {display:block;font-size:13px;margin-bottom:7px;color:#152d20}
.station-map-popup h4 {margin:6px 0;font-size:15px}
#map:focus-visible {outline:3px solid #82edaa;outline-offset:3px}
.legend-dot {display:inline-block;width:11px;height:11px;border:2px solid #d2d9e4;border-radius:50%;flex:none}
.planned-dot {background:#8acbff;border-color:white}
.selected-dot {border-color:#82edaa;background:#245737}
.nearby-dot {width:9px;height:9px;background:transparent}
.leaflet-popup-content .station-identity {display:block}
.leaflet-popup-content .station-identity dt,.leaflet-popup-content .station-distance,.leaflet-popup-content .note {color:#40574a}
.leaflet-popup-content .station-identity dd {color:#152d20}
.leaflet-popup-content .nearby-station {background:#eef8f0;color:#152d20;max-width:270px}
.leaflet-popup-content .station-identity div {margin:5px 0}
.amenity-list {list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.amenity-list li {padding:10px;border:1px solid #3a614b;border-radius:8px;min-width:0}
.amenity-source {font-size:11px;margin-top:5px}
.station-amenities a {color:#b8ffd1;text-decoration:underline;overflow-wrap:anywhere}
.amenity-description {white-space:pre-line}
.station-photo-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.station-photo {margin:0;min-width:0;border:1px solid #3a614b;border-radius:8px;overflow:hidden}
.station-photo-visual {min-height:90px;background:#0a1c14}
.station-photo img {display:block;width:100%;height:auto;max-height:280px;object-fit:contain}
.station-photo figcaption {padding:9px;font-size:11px;line-height:1.5}
@media(max-width:600px) {
  #map.station-map-canvas {height:420px}
  #map .leaflet-popup-content {max-width:calc(100vw - 120px)}
  .station-map-popup {max-height:220px}
  .amenity-list,.station-photo-gallery {grid-template-columns:1fr}
  .route-battery {grid-template-columns:1fr}
  .battery-grid {gap:8px}
  .battery-metric {padding:11px}
  .battery-percent {font-size:22px}
  .station-identity {grid-template-columns:1fr}
  .stop-card {padding:12px}
  .stop-card h3 {font-size:18px}
  .stop-card button {width:100%;white-space:normal}
}
