.route-section{background:#fff}
.route-section .section-heading{align-items:flex-end}
.route-card{border:1px solid #e6e5e0;border-radius:18px;overflow:hidden;box-shadow:0 9px 0 #19191905}
.route-toolbar,.route-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;background:#fff}
.route-course{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.route-course strong{font-size:17px}
.route-swatch{height:4px;width:27px;border-radius:4px;background:var(--orange)}
.route-distance{font-size:13px;background:#fff0dc;border-radius:20px;padding:6px 12px;font-weight:700;white-space:nowrap}
.route-fit{display:flex;gap:9px;align-items:center;border:1px solid #dbd9d0;border-radius:30px;background:#fff;padding:10px 16px;color:#191919;font-size:12px;font-weight:700}
.route-fit:hover{background:#f5f3ed}
.route-map-wrap{position:relative;background:#fff}
.route-map{height:650px;width:100%;background:#fff;z-index:0;font-family:'DM Sans',Arial,sans-serif}
/* Fade the map into white while retaining usable controls above the fade. */
.route-map::after{content:'';position:absolute;inset:0;z-index:500;pointer-events:none;background:linear-gradient(90deg,#fff 0%,#ffffff00 12%,#ffffff00 88%,#fff 100%),linear-gradient(180deg,#fff 0%,#ffffff00 12%,#ffffff00 88%,#fff 100%)}
.route-map:focus-visible{outline:3px solid #096f9c;outline-offset:-3px}
.route-message{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);max-width:85%;width:max-content;z-index:5;background:#fff;padding:12px 18px;border-radius:10px;box-shadow:0 2px 12px #0002;font-size:12px}
.route-message[hidden]{display:none}
.route-footer{border-top:1px solid #efeee9;font-size:12px;flex-wrap:wrap}
.route-legend{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.route-legend>span{display:inline-flex;align-items:center;gap:7px}
.route-dot{display:inline-block;width:10px;height:10px;border-radius:50% 50% 50% 0;background:#ffdc45;border:1px solid #e3c33c}
.route-hint{color:#6b6a65;font-size:11px}
.route-download{font-weight:700;border-bottom:1px solid #191919;padding:5px 0;white-space:nowrap}
.route-download:hover{color:#b54d00}
.route-map .route-km{width:27px!important;height:27px!important;border:0;background:#ffdc45;border-radius:50% 50% 50% 0;box-shadow:1px 2px 4px #0002;display:flex;align-items:center;justify-content:center}
.route-map .route-km span{font-family:'DM Sans',Arial,sans-serif;font-size:12px;font-weight:700;color:#333}
.route-map .route-endpoint span{font-weight:900}
.route-map .leaflet-control-zoom{border:1px solid #ddd;border-radius:10px;overflow:hidden;box-shadow:0 2px 9px #0001}
.route-map .leaflet-control-zoom a{color:#191919;width:36px;height:36px;line-height:36px}
.route-map .leaflet-popup-content{font-family:'DM Sans',Arial,sans-serif;line-height:1.7}
.route-map .leaflet-control-attribution{font-size:10px;background:#ffffffcf;color:#777}
.route-map .leaflet-control-attribution a{color:#666}
.route-mode{position:absolute;top:18px;left:18px;z-index:5;display:flex;gap:3px;padding:4px;background:#fff;border:1px solid #e6e5e0;border-radius:30px;box-shadow:0 3px 12px #0000000c}
.route-mode button{border:0;border-radius:24px;padding:9px 15px;background:transparent;color:#555;font-size:12px;font-weight:700}
.route-mode button[aria-pressed="true"]{background:#191919;color:#fff}
.route-mode button:hover{background:#f1f0eb;color:#191919}
.route-mode button[aria-pressed="true"]:hover{background:#333;color:#fff}
.route-map-wrap .leaflet-top{top:9px}
.route-map-wrap .leaflet-right{right:9px}
.route-map-wrap[data-map-mode="illustration"] .leaflet-tile-pane{filter:none}
.route-map-wrap[data-map-mode="real"] .leaflet-tile-pane{filter:none}
.route-map .leaflet-tile-pane svg{shape-rendering:geometricPrecision}
.route-map .leaflet-tile-pane svg path,.route-map .route-trace,.route-map .route-casing{vector-effect:non-scaling-stroke}
/* Stroke widths are in screen pixels, including during animated zoom transitions. */
.route-map .route-trace{stroke:var(--orange);stroke-width:4px}
.route-map .route-casing{stroke-width:7px}
@container site (max-width:700px){
 .route-toolbar{align-items:flex-start;flex-direction:column;padding:18px;gap:14px}
 .route-course{gap:10px}.route-course strong{font-size:15px}
 .route-map{height:310px}
 .route-footer{padding:18px;gap:15px}.route-legend{gap:14px}.route-hint{width:100%}
 .route-section .section-heading{align-items:flex-start}
 .route-mode{top:12px;left:12px}.route-mode button{font-size:10px;padding:8px 10px}
 .route-map-wrap .leaflet-right{right:2px}.route-map-wrap .leaflet-top{top:3px}
 .route-map .leaflet-control-zoom a{width:30px;height:30px;line-height:30px}
 .route-map .route-km{width:20px!important;height:20px!important;margin-left:-10px!important;margin-top:-25px!important}
 .route-map .route-km span{font-size:10px}
 .route-map::after{background:linear-gradient(90deg,#fff 0%,#ffffff00 7%,#ffffff00 93%,#fff 100%),linear-gradient(180deg,#fff 0%,#ffffff00 12%,#ffffff00 88%,#fff 100%)}
}
/* Perspective map: fade the geography, keep the controls legible and pins upright. */
.route-map .maplibregl-ctrl-top-right,.route-map .maplibregl-ctrl-bottom-right{z-index:600}
.route-map .maplibregl-ctrl-top-right{top:9px;right:9px}
.route-map .maplibregl-ctrl-group{border:1px solid #ddd;border-radius:10px;overflow:hidden;box-shadow:0 2px 9px #0001}
.route-map .maplibregl-ctrl-group button{width:36px;height:36px}
.route-map .maplibregl-ctrl-attrib{font-size:10px;background:#ffffffcf;color:#777}
.route-map .maplibregl-ctrl-attrib a{color:#666}
.route-map .maplibregl-popup{z-index:700}
.route-map .maplibregl-popup-content{font-family:'DM Sans',Arial,sans-serif;line-height:1.7;padding:14px 20px 14px 14px;border-radius:10px}
.route-map .maplibregl-marker{cursor:pointer;padding:0}
.route-camera-state{position:absolute;bottom:9px;left:12px;z-index:600;background:#ffffffda;border:1px solid #eeede7;border-radius:14px;padding:4px 9px;font-size:10px;color:#666;pointer-events:none}
@container site (max-width:700px){
 .route-map .maplibregl-ctrl-top-right{top:3px;right:2px}
 .route-map .maplibregl-ctrl-group button{width:30px;height:30px}
 .route-map .maplibregl-marker.route-km{margin:0!important}
 .route-camera-state{font-size:9px;padding:3px 6px;bottom:8px;left:8px}
}

button.route-camera-state{pointer-events:auto;cursor:pointer;font:inherit;font-size:10px}
button.route-camera-state:hover{color:#191919;border-color:#ccc}
@container site (max-width:700px){button.route-camera-state{font-size:9px}}
/* A crisp, comic-style speech bubble, anchored by the tip of its tail. */
.route-map .route-poi{width:56px!important;height:50px!important;display:block;padding:0;border:0;border-radius:0;background:transparent!important;box-shadow:none;cursor:pointer;z-index:2;overflow:visible;appearance:none;color:#111}
.route-map .route-poi-marker{background:none;border:0}
.route-map .route-poi>svg{display:block;width:56px;height:50px;overflow:visible;filter:drop-shadow(2px 2px 0 #0002)}
.route-map .route-poi-outline{fill:#fff;stroke:#111;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;transition:fill .15s}
.route-map .route-poi .route-poi-symbol{position:absolute;left:0;top:4px;width:56px;height:34px;display:flex;align-items:center;justify-content:center;font:800 16px/1 'DM Sans',Arial,sans-serif;color:#111!important;pointer-events:none}
.route-map .route-poi:hover .route-poi-outline,.route-map .route-poi:focus-visible .route-poi-outline{fill:#fff0dc}
.route-map .route-poi:focus-visible{outline:2px solid var(--orange);outline-offset:5px}
.route-poi-popup strong,.route-poi-popup small{display:block}
.route-poi-popup small{font-size:10px;color:#777;margin:4px 0}
.route-poi-popup p{white-space:pre-wrap;font-size:12px;line-height:1.6;margin-top:7px}
.route-map.placing-poi,.route-map.placing-poi .maplibregl-canvas-container,.route-map.placing-poi .leaflet-grab{cursor:crosshair!important}

.route-map .route-poi-symbol .poi-icon{width:23px;height:23px;display:block;overflow:visible;filter:none}
