.map-selected-route{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;padding:10px 16px;border-top:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:14px;flex-shrink:0}.map-selected-route[hidden]{display:none}.map-selected-route-caption{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.map-selected-route-caption:before{content:"";width:18px;height:4px;border-radius:3px;background:#1473bd}.map-selected-route strong{font-weight:650;overflow-wrap:anywhere;min-width:0}

.map-selection-summary{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px}.map-route-comparison{display:none}.map-card.expanded .map-selected-route{display:block;padding:6px 12px;background:var(--surface-alt,var(--surface));max-height:38vh;overflow:auto}.map-card.expanded .map-selected-route[hidden]{display:none}.map-card.expanded .map-selection-summary{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.map-card.expanded .map-route-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.map-route-summary{display:grid;gap:5px;min-width:0;text-align:left;padding:6px 12px;border:2px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);cursor:pointer;font:inherit;transition:border-color .15s,background .15s}.map-route-summary:hover{border-color:#858d99}.map-route-summary[aria-pressed=true]{border-color:#1473bd;background:color-mix(in srgb,#1473bd 7%,var(--surface));box-shadow:0 2px 8px #1473bd12}.map-route-summary:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}.map-route-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.map-route-summary-heading>strong{font-size:14px;line-height:1.25}.map-route-selection-badge{flex:none;padding:2px 7px;border-radius:20px;font-size:11px;font-weight:650;background:var(--surface-alt);color:var(--muted)}[aria-pressed=true]>.map-route-summary-heading>.map-route-selection-badge{background:#1473bd;color:#fff}.map-route-summary-details{display:flex;align-items:center;gap:4px 16px;flex-wrap:wrap}.map-route-metric{display:inline-flex;align-items:baseline;gap:5px;min-width:0}.map-route-metric small{font-size:11px;color:var(--muted)}.map-route-metric strong{font-size:15px;line-height:1.25}.map-route-total{margin-left:auto;text-align:right}.map-route-total strong{font-size:17px;color:var(--accent-text)}@media(max-width:800px){.map-route-summary{padding:6px 8px;gap:5px}.map-route-summary-details{gap:4px 10px}.map-route-summary-heading{align-items:center;flex-wrap:wrap;gap:4px}}@media(max-width:520px){.map-card.expanded .map-selected-route{padding:5px}.map-card.expanded .map-route-comparison{gap:6px}.map-route-summary-heading>strong{font-size:13px}.map-route-metric strong{font-size:13px}.map-route-total strong{font-size:17px}.map-route-total{margin-left:0;text-align:left}}

.map-card.expanded .map-key{margin:4px 16px;font-size:11px}

#fuel-map-status:empty,#map-browse-status:empty,#custom-route-status:empty,.map-key[hidden]{display:none}.map-card.expanded #fuel-map-status:not(:empty){margin:0;padding:4px 16px 6px;line-height:1.35}.map-card.expanded .map-key{flex-shrink:0;margin:4px 16px 6px}.map-card.expanded #route-map{min-height:0}

.map-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 16px;padding:9px 14px;border-top:1px solid var(--line);background:var(--surface);flex-shrink:0}.map-footer:has(>#map-selected-route[hidden]):has(>.map-key[hidden]){display:none}.map-card:not(.expanded) .map-selected-route{display:none}.map-card:not(.expanded) .map-selection-summary{gap:6px 10px}.map-card:not(.expanded) .map-selected-route-caption{font-size:10px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:#1473bd;background:color-mix(in srgb,#1473bd 8%,var(--surface));padding:4px 7px;border-radius:5px}.map-card:not(.expanded) #map-selected-route-name{font-size:13px;line-height:1.4}.map-card:not(.expanded) .map-key{margin:0;gap:12px;font-size:11px;line-height:1.4}.map-card:not(.expanded) .map-key span:first-child{display:inline}.map-card:not(.expanded) #custom-route-status:not(:empty){flex-basis:100%;padding:3px 0}.map-card.expanded .map-footer{display:block;padding:0;border:0}#fuel-map-status:not(:empty){margin:0;padding:4px 14px 7px;line-height:1.35}
