/* Standalone Distance & Route Planner. Kept separate from the District Locator styles. */
[hidden]{display:none!important}

/* Header tools dropdown */
.tools-menu-wrap{position:relative;z-index:5000}
.tools-menu-toggle{height:39px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--border);border-radius:10px;background:var(--panel);color:var(--text);font-size:11px;font-weight:800;transition:.15s}
.tools-menu-toggle:hover,.tools-menu-toggle[aria-expanded="true"]{border-color:var(--blue);color:var(--blue)}
.tools-menu-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tools-menu-toggle .menu-chevron{width:12px;height:12px;opacity:.7}
.tools-menu{position:absolute;right:0;top:calc(100% + 9px);width:min(330px,calc(100vw - 30px));padding:8px;background:var(--panel);border:1px solid var(--border);border-radius:13px;box-shadow:0 18px 48px rgba(0,0,0,.28);z-index:6000}
.tools-menu-label{padding:8px 10px 7px;color:var(--muted2);font-size:8px;font-weight:800;letter-spacing:.14em}
.tools-menu-item{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:11px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--text)}
.tools-menu-item:hover,.tools-menu-item.active{background:var(--panel2);border-color:var(--border)}
.tools-menu-item.active{box-shadow:inset 3px 0 0 var(--blue)}
.tools-menu-item>svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:var(--blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tools-menu-item span{display:grid;gap:3px;min-width:0}
.tools-menu-item strong{font-size:11px;font-weight:800}
.tools-menu-item small{font-size:9px;color:var(--muted);line-height:1.4}

/* New route-planning view */
.route-planner-view{padding-bottom:2px}
.route-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}
.route-intro h1{font-family:Manrope,sans-serif;font-size:clamp(26px,3.1vw,37px);letter-spacing:-.045em;line-height:1.14;margin:0;font-weight:800}
.route-intro h1 span{color:var(--blue)}
.route-intro-copy{font-size:13px;color:var(--muted);margin:10px 0 0;max-width:760px;line-height:1.6}
.route-intro-mark{width:72px;height:72px;flex:0 0 72px;color:var(--blue);margin-right:4%}
.route-intro-mark svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.route-search-panel{padding:20px 22px 17px;margin-bottom:15px}
.route-search-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.route-search-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:rgba(67,143,232,.12);color:var(--blue);flex:0 0 40px}
.route-search-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.route-search-heading h2{font-family:Manrope,sans-serif;font-size:16px;margin:0;font-weight:800}
.route-search-heading p{font-size:10px;color:var(--muted);margin:3px 0 0}
.route-fields{display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr) auto;gap:11px;align-items:end}
.route-field{position:relative;min-width:0}
.route-field label{display:block;font-size:9px;font-weight:800;letter-spacing:.1em;color:var(--muted);margin-bottom:8px}
.route-input-shell{height:48px;display:flex;align-items:center;gap:9px;padding:0 10px 0 12px;background:var(--panel2);border:1px solid var(--border);border-radius:9px;transition:border-color .15s,box-shadow .15s}
.route-input-shell:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(67,143,232,.12)}
.route-input-icon{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.route-input-shell input{width:100%;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;color:var(--text);font-size:12px}
.route-input-shell input::placeholder{color:var(--muted2)}
.route-clear{width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:18px;line-height:1}
.route-clear:hover{background:var(--panel3);color:var(--text)}
.route-swap-button{width:40px;height:48px;display:grid;place-items:center;border:1px solid var(--border);border-radius:9px;background:var(--panel2);color:var(--muted);margin-bottom:0}
.route-swap-button:hover{border-color:var(--blue);color:var(--blue)}
.route-swap-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.route-calculate-button{height:48px;min-width:142px;white-space:nowrap}
.route-calculate-button:disabled{opacity:.6;cursor:wait}
.route-suggestions{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:260px;overflow:auto;z-index:4000;background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:0 14px 34px rgba(0,0,0,.25);padding:5px}
.route-suggestion{width:100%;display:flex;align-items:flex-start;gap:9px;padding:10px 9px;text-align:left;background:transparent;border:0;border-radius:7px;color:var(--text)}
.route-suggestion:hover,.route-suggestion[aria-selected="true"]{background:var(--panel2)}
.route-suggestion-pin{width:25px;height:25px;display:grid;place-items:center;flex:0 0 25px;border-radius:7px;background:rgba(67,143,232,.12);color:var(--blue)}
.route-suggestion-pin svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.route-suggestion-copy{min-width:0;display:grid;gap:3px}
.route-suggestion-main{font-size:10px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.route-suggestion-detail{font-size:9px;color:var(--muted)}
.route-suggestion-message{padding:12px 10px;font-size:10px;color:var(--muted);line-height:1.5}
.route-search-footer{display:flex;align-items:center;gap:8px;margin-top:13px;color:var(--muted);font-size:10px;line-height:1.5}
.route-status-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--green)}
.route-status.is-loading .route-status-dot{background:var(--blue);box-shadow:0 0 0 3px rgba(67,143,232,.13)}
.route-status.is-error{color:#e18b80}
.route-status.is-error .route-status-dot{background:#d96c5f}
.route-status.is-success{color:var(--green)}
.route-results-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.9fr);gap:14px;align-items:start}
.route-map-panel,.route-summary-panel{padding:17px}
.route-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.route-panel-heading h2{font-family:Manrope,sans-serif;font-size:14px;font-weight:800;margin:0}
.route-panel-heading p{font-size:9px;color:var(--muted);margin:4px 0 0}
.route-map-tools{display:flex;align-items:center;gap:9px}.route-map-live{display:flex;align-items:center;gap:7px;font-size:8px;font-weight:800;letter-spacing:.1em;color:var(--muted)}
.route-map-live .live-dot{width:6px;height:6px}
#route-map{width:100%;height:530px;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--panel2);z-index:1}
.route-map-attribution{font-size:8px;color:var(--muted2);padding:8px 2px 0;line-height:1.4}
.route-map-attribution a{color:var(--muted)}
.route-map-placeholder{height:100%;display:grid;place-items:center;text-align:center;padding:24px;color:var(--muted);font-size:11px;line-height:1.6}
.route-map-placeholder strong{display:block;color:var(--text);font-size:13px;margin-bottom:5px}
.route-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:15px}
.route-stat{padding:13px 12px;background:var(--panel2);border:1px solid var(--border);border-radius:9px;min-width:0}
.route-stat-label{font-size:8px;font-weight:800;letter-spacing:.1em;color:var(--muted)}
.route-stat-value{font-family:Manrope,sans-serif;font-size:23px;font-weight:800;letter-spacing:-.03em;margin-top:5px;color:var(--text);overflow-wrap:anywhere}
.route-address-summary{padding:11px 12px;border:1px solid var(--border);border-radius:9px;background:var(--panel2);margin-bottom:15px}
.route-address-line{display:flex;align-items:flex-start;gap:9px;font-size:10px;line-height:1.5;color:var(--text);overflow-wrap:anywhere}
.route-address-line+.route-address-line{margin-top:9px}
.route-address-badge{width:19px;height:19px;display:grid;place-items:center;flex:0 0 19px;border-radius:6px;background:rgba(67,143,232,.15);color:var(--blue);font-size:9px;font-weight:900}
.route-address-badge.end{background:rgba(230,185,79,.17);color:var(--gold)}
.route-directions-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
.route-directions-heading h3{font-family:Manrope,sans-serif;font-size:12px;font-weight:800;margin:0}
.route-directions-heading span{font-size:8px;color:var(--muted)}
.route-directions{list-style:none;margin:0;padding:0;max-height:420px;overflow:auto}
.route-directions li{display:flex;align-items:flex-start;gap:10px;padding:10px 3px;border-bottom:1px solid var(--border)}
.route-directions li:last-child{border-bottom:0}
.route-step-icon{width:25px;height:25px;display:grid;place-items:center;flex:0 0 25px;border-radius:8px;background:var(--panel2);color:var(--blue);font-size:15px;font-weight:700}
.route-step-copy{min-width:0;flex:1}
.route-step-instruction{font-size:10px;line-height:1.5;color:var(--text);font-weight:700}
.route-step-meta{font-size:9px;color:var(--muted);margin-top:3px}
.route-directions-empty{display:block!important;padding:14px 4px!important;color:var(--muted);font-size:10px;line-height:1.5}
.route-disclaimer{font-size:8px;line-height:1.55;color:var(--muted2);margin:13px 0 0;padding-top:10px;border-top:1px solid var(--border)}
.route-marker-wrap{background:transparent!important;border:0!important}
.route-marker{width:29px;height:29px;display:grid;place-items:center;border:3px solid #fff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 2px 9px rgba(0,0,0,.35);font-size:10px;font-weight:900;color:#fff}
.route-marker span{transform:rotate(45deg)}
.route-marker-start{background:#2678d1}
.route-marker-end{background:#bd8b22}
.route-app-footer{display:flex;justify-content:space-between;gap:10px;color:var(--muted2);font-size:9px;letter-spacing:.08em;padding:20px 2px 26px}
.route-app-footer b{color:var(--gold);padding:0 4px}

@media(max-width:1120px){.route-results-grid{grid-template-columns:1fr}#route-map{height:460px}.route-summary-panel{min-height:250px}}
@media(max-width:820px){.route-fields{grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr)}.route-calculate-button{grid-column:1/-1;width:100%}.route-intro-mark{margin-right:0}}
@media(max-width:700px){.tools-menu-toggle{height:36px;padding:0 9px;font-size:10px}.tools-menu-toggle>svg:first-child{width:15px}.route-intro{margin-bottom:18px}.route-intro-mark{width:52px;height:52px;flex-basis:52px}.route-intro-copy{font-size:11px}.route-search-panel{padding:16px 14px}.route-fields{grid-template-columns:minmax(0,1fr)}.route-swap-button{width:100%;height:34px;transform:none}.route-swap-button svg{transform:rotate(90deg)}.route-calculate-button{grid-column:auto}.route-input-shell{height:46px}.route-results-grid{gap:10px}.route-map-panel,.route-summary-panel{padding:13px}.route-panel-heading h2{font-size:13px}#route-map{height:360px}.route-stat-value{font-size:20px}.route-app-footer{font-size:8px}}
