/* Walking actions belong on the map; the legend remains a compact key. */
:root{--caution-ink:#7c4604}
.walk-tool-icon{display:block;width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.map-walk-actions{display:flex;flex-wrap:wrap;gap:6px;justify-self:center;width:min(100%,460px)}
.map-walk-actions>button,.map-report-button{min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font:inherit;font-size:14px;line-height:1.35;font-weight:650;cursor:pointer}
.map-walk-actions>button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1 1 140px;min-width:0;box-shadow:0 3px 12px #10251d20}
.map-walk-actions #phone-start-walk{display:flex;width:auto;margin:0;min-height:44px;flex:1 1 140px;padding:9px 12px;background:var(--forest);color:#fff;border:1px solid var(--forest);font-size:14px;border-radius:9px}
.map-walk-actions #phone-start-walk[data-active=true]{background:var(--paper);color:var(--ink);border-color:var(--green)}
.map-report-button{display:block;width:100%;margin-top:12px;text-align:center}
.map-walk-actions>button:focus-visible,.map-report-button:focus-visible{outline:3px solid var(--green);outline-offset:3px}
body.picking .map-walk-actions,body.picking .map-lighting-notice,.map-walk-actions[hidden],.map-walk-actions>button[hidden]{display:none}

.walk-notices{display:grid;gap:8px;margin:0 0 14px;padding:0;background:none;border:0}
.walk-notices[hidden]{display:none}
.departure-route-notices{display:grid;gap:8px;margin:0 0 14px}
.departure-route-notices>p{margin:0}
.route-notice{--notice-ink:var(--caution-ink);--notice-bg:#fff5dc;--notice-edge:#dc920e;display:flex;align-items:flex-start;gap:10px;min-width:0;padding:11px 12px;border:1px solid color-mix(in srgb,var(--notice-edge) 35%,transparent);border-left:4px solid var(--notice-edge);border-radius:9px;background:var(--notice-bg);color:var(--notice-ink);font-size:14px;line-height:1.45}
.route-notice>svg{width:23px;height:23px;flex:0 0 23px;margin-top:1px}
.route-notice>div{min-width:0}
.route-notice strong{display:block;color:inherit;font-size:inherit;line-height:inherit;font-weight:700}
.route-notice p{margin:3px 0 0;color:inherit;font-size:inherit;line-height:inherit}
.route-notice>div{flex:1}
.notice-locations{margin-top:10px;border-top:1px solid color-mix(in srgb,currentColor 25%,transparent);padding-top:5px}
.notice-locations summary{cursor:pointer;min-height:36px;padding:6px 0;font-weight:650;line-height:1.45}
.notice-locations ul{margin:4px 0 0;padding-left:18px;display:grid;gap:9px}
.notice-locations li{overflow-wrap:anywhere}
.notice-locations small{display:block;font-size:.88em;line-height:1.5;color:inherit}
.notice-locations summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.route-notice.notice-danger{--notice-ink:#9c252d;--notice-bg:#fff0f1;--notice-edge:#d13c47}
.route-notice.notice-info{--notice-ink:#175479;--notice-bg:#ecf6fe;--notice-edge:#3082b4}
.route-notice button[data-feature]{appearance:none;-webkit-appearance:none;display:flex;align-items:center;width:100%;max-width:none;margin-top:7px;padding:10px 12px;min-height:44px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;font:inherit;font-weight:650;line-height:1.4;text-align:left;cursor:pointer}
.route-notice button[data-feature]:hover{box-shadow:inset 0 0 0 1px currentColor}
.route-notice button[data-feature]:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.map-lighting-notice{justify-self:center;width:min(100%,460px);margin:0;box-shadow:0 3px 12px #10251d15}
.map-lighting-notice[hidden]{display:none}
.notice-dismissible{position:relative;padding-right:46px}
.route-notice button.notice-dismiss,.map-bottom-controls button.notice-dismiss{position:absolute;top:0;right:0;display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer}
.notice-dismiss svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.notice-dismiss:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
/* Yellow weather and lighting notices share one readable text/icon colour. */
@media(forced-colors:none){
 .map-weather-card.safety-level-caution,.map-weather-card.safety-level-caution small,.map-weather-card.safety-level-caution .weather-symbol,.map-weather-card.safety-level-caution + .notice-dismiss{color:var(--caution-ink)}
}
.map-bottom-controls #phone-notice,.map-bottom-controls #map-error{position:relative;padding-right:46px}
.walk-notices>.walk-notices-toggle{display:grid;grid-template-columns:23px minmax(0,1fr) 18px;align-items:center;width:100%;max-width:none;min-height:52px;margin:0;padding:11px 12px;font:inherit;font-size:.94rem;text-align:left;cursor:pointer;background:var(--notice-bg);color:var(--notice-ink);border:1px solid color-mix(in srgb,var(--notice-edge) 35%,transparent);border-left:4px solid var(--notice-edge)}
.walk-notices-toggle .warning-chevron{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.walk-notices-toggle[aria-expanded=true] .warning-chevron{transform:rotate(180deg)}
.walk-notices-toggle:disabled{cursor:default;opacity:1}.walk-notices-toggle:disabled .warning-chevron{visibility:hidden}
.walk-notices-toggle:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.walk-notices-content{display:grid;gap:8px}.walk-notices-content[hidden]{display:none}
@media(max-width:700px),(max-width:1000px) and (pointer:coarse){
 .phone-route-card{padding:7px}
 .phone-route-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}
 .phone-route-top>div:first-child{min-width:0}
 .phone-route-label{font-size:13px;line-height:1.25}
 #phone-route-summary{font-size:14px;line-height:1.3;overflow-wrap:normal}
 .phone-route-buttons{display:flex;align-items:center;gap:5px;margin:0}
 .phone-route-toggle{padding:5px 7px;font-size:13px;inline-size:6.1em;flex:0 0 6.1em}
 #phone-route-swipe-track{display:grid;grid-template-columns:1fr;grid-template-rows:14px auto;place-items:center;gap:2px;flex:none;width:clamp(90px,26vw,110px);min-height:44px;height:auto;margin:0;padding:4px 6px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--green);cursor:pointer}
 #phone-route-swipe-track .phone-route-swipe-thumb{grid-column:1;grid-row:1;width:16px;height:14px;min-height:0;background:transparent;color:inherit;transform:none;transition:none}
 #phone-route-swipe-track .phone-route-swipe-thumb svg{width:16px;height:16px;stroke-width:1.8;transform:none}
 #phone-route-swipe-track #phone-route-swipe-text{grid-column:1;grid-row:2;padding:0;font-size:11.5px;line-height:1.2;font-weight:650;text-align:center;white-space:normal;text-wrap:balance}
 #phone-route-swipe-track:hover,#phone-route-swipe-track:active{background:color-mix(in srgb,var(--green) 9%,var(--paper));border-color:var(--green)}
 #phone-route-swipe-track:focus-visible{outline:2px solid var(--green);outline-offset:2px}
 .phone-route-card .maneuver-card{margin-top:5px;padding-top:6px;border-top:1px solid var(--line);gap:8px}
 .phone-route-card .maneuver-card strong{font-size:16px;line-height:1.25}
 .phone-route-card .maneuver-card small{margin-top:2px;font-size:12px;line-height:1.3}
 .phone-route-card .maneuver-icon{flex-basis:30px;width:30px;height:32px}
 .phone-route-card .maneuver-icon svg{width:28px;height:28px}
 .large-text .phone-route-top{display:flex;flex-wrap:wrap}
 .large-text .phone-route-top>div:first-child{flex:1 1 140px}
 .large-text .phone-route-buttons{margin-left:auto}
 .large-text #phone-route-swipe-track{width:140px}
 .large-text #phone-route-swipe-track #phone-route-swipe-text{font-size:16px}
 .large-text .phone-route-label,.large-text #phone-route-summary,.large-text .phone-route-toggle{font-size:16px}
 .large-text .phone-route-card .maneuver-card strong{font-size:20px}
 .large-text .phone-route-card .maneuver-card small{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.walk-notices-toggle .warning-chevron{transition:none}}
#map-legend{width:fit-content;max-width:100%;justify-self:center;gap:2px 12px;padding:4px 9px}
#map-legend .legend-routes,#map-legend .coverage-caption{display:contents}
#map-legend[hidden],#map-legend [hidden]{display:none}
.route-lighting-details p{font-size:14px;line-height:1.45}
.large-text .route-notice,.large-text .map-walk-actions>button,.large-text .map-walk-actions #phone-start-walk,.large-text .route-lighting-details p{font-size:18px}

.stop-pin,.stop-symbol{--stop-color:#266044;--stop-tint:#f0f8f1}
.stop-toilets{--stop-color:#7042ac;--stop-tint:#f5effe}
.stop-drinking-water{--stop-color:#126b9b;--stop-tint:#eaf7ff}
.stop-bench{--stop-color:#855523;--stop-tint:#fff6e9}
.stop-playground{--stop-color:#a33e65;--stop-tint:#fff0f5}
.stop-transit{--stop-color:#2359a6;--stop-tint:#eff5ff}
.stop-mixed{--stop-color:#38544b;--stop-tint:#f1f6f4}
.stop-pin{width:32px!important;height:32px!important;display:grid;place-items:center;border:2px solid var(--stop-color);border-radius:10px;background:var(--stop-tint);color:var(--stop-color);box-shadow:0 2px 5px #16382c40}
.stop-pin .walk-tool-icon{width:22px;height:22px;pointer-events:none}
.wc-icon{font:bold 12px/1 system-ui,sans-serif;letter-spacing:-.5px}
.stop-symbol{width:32px;height:32px;flex:0 0 32px;background:var(--stop-tint);color:var(--stop-color);border:1px solid color-mix(in srgb,var(--stop-color) 30%,transparent)}
.stop-symbol .walk-tool-icon{width:23px;height:23px}
.stop-count{position:absolute;top:-9px;right:-10px;display:grid!important;place-items:center;min-width:21px;height:21px;padding:0 4px;background:#fff;border:1px solid var(--stop-color);border-radius:11px;color:var(--stop-color);font:700 12px/1 system-ui,sans-serif}
.stop-popup>div{display:flex;align-items:center;gap:9px;padding:6px 0;font-size:14px;line-height:1.4}
.stop-popup small{display:block;font-size:13px}
.stop-filters button{display:inline-flex;align-items:center;justify-content:center;gap:5px}
.stop-filters .walk-tool-icon{width:18px;height:18px}
.stop-filters .wc-icon{font-size:11px}
.stop-row .stop-symbol{align-self:center}

:root[data-theme=dark]{--caution-ink:#ffdc94}
[data-theme=dark] .route-notice{--notice-ink:var(--caution-ink);--notice-bg:#372b17;--notice-edge:#e9b957}
[data-theme=dark] .route-notice.notice-danger{--notice-ink:#ffb6be;--notice-bg:#3b2228;--notice-edge:#f17985}
[data-theme=dark] .route-notice.notice-info{--notice-ink:#b2deff;--notice-bg:#1c3040;--notice-edge:#69b4ec}
[data-theme=dark] .map-walk-actions #phone-start-walk{background:var(--lime);color:var(--accent-ink);border-color:var(--lime)}
[data-theme=dark] .map-walk-actions #phone-start-walk[data-active=true]{background:var(--paper);color:var(--ink);border-color:var(--lime)}
[data-theme=dark] .stop-pin,[data-theme=dark] .stop-symbol{background:var(--stop-tint);color:var(--stop-color)}
@media(max-width:700px),(max-width:1000px) and (pointer:coarse){
 .map-walk-actions,.map-lighting-notice{justify-self:stretch;width:100%}
 .map-bottom-controls .map-walk-actions{gap:4px}
 .map-bottom-controls .map-walk-actions>button,.map-bottom-controls .map-walk-actions #phone-start-walk,.map-bottom-controls .map-walk-actions #end-walk-early{min-height:40px;padding:5px 8px;font-size:13px;line-height:1.3;border-radius:8px}
 .map-walk-actions>button,.map-walk-actions #phone-start-walk{flex-basis:135px;gap:6px}
 .map-walk-actions .walk-tool-icon{width:20px;height:20px}
 .map-bottom-controls{bottom:18px;gap:4px;max-height:55%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
 #map-legend{width:fit-content;max-width:min(100%,360px);justify-self:center;padding:3px 7px;gap:1px 9px;font-size:11.5px;line-height:1.25;border-radius:7px}
 #map-legend .legend-key,#map-legend .coverage-key{min-height:18px;gap:4px;font-size:inherit;line-height:inherit}
 #map-legend .legend-line,#map-legend .coverage-key>i{width:14px;flex:0 0 14px}
 #map-legend .coverage-outside-key{height:11px}
 #map-legend .official-gap-key{min-height:28px;padding:4px 0}
 .map-bottom-controls .map-weather-card{min-height:44px;gap:7px;padding:6px 44px 6px 8px;border-radius:8px}
 .map-bottom-controls .map-weather-card strong{font-size:12.5px;line-height:1.3}
 .map-bottom-controls .map-weather-card small{margin-top:2px;font-size:11.5px;line-height:1.3}
 .map-bottom-controls .weather-symbol{width:20px;height:20px}
 .map-bottom-controls .map-lighting-notice{min-height:44px;gap:7px;padding:6px 44px 6px 8px;font-size:12.5px;line-height:1.3}
 .map-bottom-controls .map-lighting-notice>svg{width:18px;height:18px;flex-basis:18px}
 .map-bottom-controls .map-lighting-notice p{margin-top:2px}
 .map-bottom-controls #phone-notice,.map-bottom-controls #map-error{min-height:44px;padding:6px 44px 6px 8px;font-size:12.5px;line-height:1.3}
 .large-text #map-legend{max-width:100%;font-size:14px}
 .large-text .map-bottom-controls .map-walk-actions>button,.large-text .map-bottom-controls .map-walk-actions #phone-start-walk,.large-text .map-bottom-controls .map-walk-actions #end-walk-early{min-height:44px;font-size:18px}
 .large-text .map-bottom-controls .map-weather-card strong,.large-text .map-bottom-controls .map-lighting-notice,.large-text .map-bottom-controls #phone-notice,.large-text .map-bottom-controls #map-error{font-size:16px}
 .large-text .map-bottom-controls .map-weather-card small{font-size:14px}
}
