/* v39: one responsive layout contract; controls occupy their own map row. */
html{scroll-behavior:smooth;scroll-padding-top:12px}body{background:#f5f7f8;color:#172d31}*{box-sizing:border-box}button,input,select{font:inherit}button,a,input{touch-action:manipulation}button{min-height:44px}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #176eab;outline-offset:3px}[hidden]{display:none!important}
header{position:relative;gap:12px;flex-wrap:wrap;padding:16px 24px}.brand h1{font-size:24px}.header-actions{display:flex;flex-wrap:wrap;gap:8px}.top-nav{overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start;gap:8px}.top-nav a{flex-shrink:0;min-height:44px;display:flex;align-items:center}.layout{max-width:1200px;margin:auto;flex-wrap:wrap}.layout>#mobileFilterHost{display:none}.layout>.map-wrap{order:0!important}.layout>.sidebar{order:1!important}.layout>.event-teaser{order:2!important;flex-basis:100%}.sidebar{height:560px}.panel,.map-wrap{border:1px solid #ccd9dd;border-radius:14px}.map-wrap{display:grid!important;grid-template-rows:auto minmax(0,1fr);height:560px!important;min-height:360px!important;overflow:hidden}#map{grid-row:2;min-height:0;height:100%!important}.map-toolbar{position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px;background:#fff;max-width:none!important;z-index:850}.map-toolbar button,.map-toolbar button:not(#mapRouteQuick),#mapRouteQuick,#mapFiltersQuick{width:auto!important;order:initial!important;padding:10px 6px!important;font-size:12px!important;min-width:0;white-space:normal;line-height:1.3;box-shadow:none;border:1px solid #d1dcdf;border-radius:10px}.map-hint,.map-collapse-btn{display:none!important}.map-filter-dropdown{top:116px!important;left:8px!important;right:8px!important;width:auto!important;max-width:430px;max-height:calc(100% - 130px)!important;overflow:auto;z-index:900!important;background:#fff;border-radius:12px}.map-filter-dropdown #filterPanel{border:0;padding:4px}.map-filter-dropdown .filter-help,.map-filter-dropdown .panel-title-row{display:none}#mapFilterMount #filters{grid-template-columns:1fr!important}.filter-row{min-height:48px}.filter-label{white-space:normal!important}.filter-count{margin-left:auto}.route-panel{max-width:1152px;margin:12px auto 0;padding:14px;border-radius:14px;scroll-margin-top:12px}.route-panel h2{font-size:19px}.route-discover{display:none}.route-panel>p{font-size:13px;margin:6px 0 10px}.route-fields{grid-template-columns:1fr 1fr auto}.route-fields input{min-width:0;font-size:16px}.route-panel .route-preferences{margin:10px 0}.route-preferences summary,.route-caution summary{cursor:pointer;min-height:36px;font-weight:600}.travel-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.route-panel .smart-route-card{color:#173b32}.route-panel .route-caution{margin-top:8px}.route-panel .route-actions{gap:6px}.map-wrap.map-expanded{display:grid!important;grid-template-rows:auto minmax(0,1fr)}.map-wrap.map-expanded #map{grid-row:2;height:100%!important}
@media(max-width:900px){.layout{padding:10px 12px;gap:10px}.layout>.map-wrap{width:100%;height:58dvh!important;min-height:360px!important}.sidebar{width:100%;height:auto;flex:auto}.list-panel #pumpList{max-height:230px}.route-panel{margin:10px 12px 0}.header-actions #locateBtn{display:none}}
@media(max-width:650px){header{padding:12px;gap:10px}.brand h1{font-size:20px}.tagline{font-size:9px}.header-actions{width:100%}.header-actions button{flex:1}.map-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.route-fields{grid-template-columns:1fr 1fr}.route-fields>button{grid-column:1/-1}.route-fields label{min-width:0}.travel-modes{grid-template-columns:repeat(4,minmax(0,1fr))}.travel-mode{font-size:12px!important;padding:8px 2px!important}.smart-choice{grid-template-columns:repeat(2,minmax(0,1fr))}.map-filter-dropdown{max-width:none}.map-wrap.map-expanded{height:100dvh!important}.top-nav{padding:0 12px}.route-panel>p{line-height:1.4}}
@media(min-width:651px){.map-filter-dropdown{top:66px!important;max-height:calc(100% - 80px)!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.map-filter-dropdown{z-index:1200!important}.top-nav{position:relative!important;top:auto!important}
dialog#routeDialog{position:fixed;inset:10px 10px auto;margin:0 auto;width:min(620px,calc(100% - 20px));max-height:72dvh;overflow:auto;padding:12px;border:1px solid #bacdd1;border-radius:18px;box-shadow:0 12px 50px #0004}#routeDialog::backdrop{background:#10272833}#routeDialog .route-panel{margin:0;border:0;padding:8px 0}#closeRouteDialog{position:sticky;top:0;z-index:2;background:white;border:1px solid #c3d5d8;border-radius:9px;padding:8px 12px;margin-left:auto;display:block}.address-suggestions:empty{display:none}.address-suggestions{background:white;border:1px solid #c6d4d8;border-radius:8px;max-height:180px;overflow:auto}.route-panel .address-suggestions button{display:block;width:100%;text-align:left;border-radius:0;background:white;color:#173c3c;border-bottom:1px solid #e1e8e8;font-size:14px}.address-suggestions button[aria-selected=true]{background:#e0f2ec}
.route-fields label{position:relative}.address-suggestions{position:absolute;z-index:10;left:0;right:0;box-shadow:0 8px 18px #0002}@media(max-width:650px){#routeDialog .route-fields{grid-template-columns:1fr}#routeDialog .route-fields>button{grid-column:auto}.route-panel .address-suggestions button{font-size:15px;min-height:48px}}
