.map-search-row{display:flex;gap:10px;margin-bottom:14px;align-items:stretch}.address-search{position:relative;flex:1;min-width:0}.address-search>input{width:100%;min-height:52px;border:1px solid #ccd2dc;background:#fff;border-radius:10px;padding:12px 16px 12px 46px;font-size:1rem;box-shadow:0 2px 6px #21293504}.address-search>input::placeholder{color:#808692}.search-symbol{position:absolute;width:20px;height:20px;left:16px;top:16px;fill:none;stroke:#8c5963;stroke-width:1.8;pointer-events:none}.address-popover{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:1100;background:#fff;border:1px solid #dce0e6;border-radius:10px;box-shadow:0 10px 30px #25314a26;overflow:hidden}.address-popover>p{font-size:.875rem;color:#6c7481;padding:12px 16px}.address-popover>p:empty{display:none}.address-popover ul{list-style:none;padding:0;margin:0;max-height:280px;overflow-y:auto}.address-popover li{padding:13px 16px;font-size:.9375rem;line-height:1.5;cursor:pointer;border-top:1px solid #eef0f4}.address-popover li:hover,.address-popover li[aria-selected=true]{background:#fff0f3;color:#a11a2e}
.map-button,.map-icon-button{min-height:44px;padding:10px 14px;border-radius:8px;border:1px solid #d5dbe3;background:#fff;color:#525e6d;font-size:.875rem;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.map-button:hover,.map-icon-button:hover{background:#fff2f5;border-color:#cea3ac;color:#a41b2f}.map-icon-button{width:42px;min-height:42px;padding:10px}.map-button svg{width:20px;height:20px}.map-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin-bottom:14px}.map-basemaps,.road-filters{display:flex;padding:3px;gap:3px;border:1px solid #e1e4ea;background:#fff;border-radius:8px}.map-basemaps button,.road-filters button{border:0;min-height:38px;padding:8px 15px;border-radius:5px;background:transparent;color:#65707e;font-size:.875rem;white-space:nowrap}.map-basemaps button[aria-pressed=true],.road-filters button[aria-pressed=true]{background:#fae8ed;color:#a51c32;font-weight:650}.map-layer-choices{display:flex;gap:18px;align-items:center;margin-left:auto}.map-layer-choices label{display:flex;gap:8px;align-items:center;font-size:.875rem;cursor:pointer;min-height:40px}.map-layer-choices input{accent-color:#b91f35;width:18px;height:18px;margin:0}.map-message{font-size:.875rem;line-height:1.5;border:1px solid #e4c4ca;background:#fff5f6;color:#8f2940;border-radius:8px;padding:10px 14px;margin-bottom:12px}
.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;border:1px solid #dce0e6;border-radius:14px;overflow:hidden;background:#fff}.map-frame{position:relative;min-width:0;min-height:650px;height:calc(100dvh - 260px);max-height:900px;isolation:isolate}#ign-map{position:absolute;inset:0;background:#edf0f3;z-index:0;font-family:inherit}.map-instruction{position:absolute;bottom:30px;left:12px;z-index:500;max-width:calc(100% - 75px);padding:7px 10px;border-radius:6px;background:#ffffffed;box-shadow:0 2px 7px #25314a18;color:#52606e;font-size:.75rem;line-height:1.5;pointer-events:none}.map-load-error{position:absolute;z-index:600;left:12px;right:60px;top:12px;padding:10px 12px;border:1px solid #e6b4bf;background:#fff0f3;border-radius:8px;font-size:.875rem;color:#9d2137}.map-load-error button{border:0;background:none;font-weight:650;text-decoration:underline;padding:6px;color:#96172b}.map-sidebar{border-left:1px solid #dce0e6;max-height:min(900px,max(650px,calc(100dvh - 260px)));overflow:auto;scrollbar-width:thin}.map-hydrants,.map-roads{padding:20px}.map-roads{border-top:1px solid #e2e5eb}.map-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.map-section-heading h2{font-size:1rem;line-height:1.5;font-weight:700}.map-section-heading h2 small{display:block;font-size:.8125rem;font-weight:450;color:#7a828e}.map-count{font-size:.8125rem;padding:3px 8px;border-radius:6px;background:#fae8ed;color:#a82036;font-weight:650}.map-selected,.map-status{font-size:.875rem;color:#67727f;line-height:1.5;margin-bottom:12px;overflow-wrap:anywhere}.map-selected.has-selection{color:#495462;font-weight:550}.map-status:empty{display:none}.hydrants-list,.roads-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}.hydrant-row,.road-row{border:1px solid #e0e4eb;border-radius:9px;display:flex;width:100%;text-align:left;padding:11px;background:#fff;gap:10px;align-items:flex-start}.hydrant-row:hover,.road-row:hover{background:#fff7f8;border-color:#cb9aa6}.hydrant-rank{display:grid;place-items:center;width:27px;height:27px;flex:none;border-radius:7px;background:#b91f35;color:white;font-size:.875rem;font-weight:700}.hydrant-row.unavailable .hydrant-rank{background:#20242a}.hydrant-row-main{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.hydrant-row strong,.road-row strong{font-size:.875rem;line-height:1.4;color:#3e4854}.hydrant-row small,.road-row small{font-size:.8125rem;line-height:1.45;color:#717b88;overflow-wrap:anywhere}.hydrant-distance{font-size:.8125rem;white-space:nowrap;font-weight:600;color:#636e7a;padding-top:4px}.hydrant-private{display:inline-block;font-size:.75rem;margin-left:5px;padding:0 4px;border:1px solid #d0bac0;border-radius:3px;color:#992136}.map-legend{display:flex;gap:9px;flex-wrap:wrap;font-size:.75rem;color:#656e7a;margin-top:15px}.map-legend>span{display:flex;align-items:center;gap:5px}.legend-hydrant{display:inline-block;width:8px;height:8px;border-radius:50%;background:#b91f35}.legend-hydrant.unavailable{background:#20242a}.map-source{font-size:.75rem;line-height:1.55;color:#777f8b;margin-top:10px}.road-filters{margin-bottom:13px;background:#f5f6f8;border:0}.road-filters button{flex:1;padding:8px 10px}.road-filters span{margin-left:4px;font-variant-numeric:tabular-nums}.road-row{flex-direction:column;gap:4px;border-left:3px solid #b91f35}.road-row.upcoming{border-left-color:#ae6810}.road-tag{font-size:.75rem;color:#a51d32}.road-row.upcoming .road-tag{color:#996115}.map-coverage{margin-top:16px;font-size:.8125rem;color:#697381;line-height:1.6}.map-coverage summary{font-weight:600;color:#556371;cursor:pointer}.map-coverage p{margin-top:9px}.map-coverage a{color:#a51e33}
.leaflet-container .leaflet-control-attribution{font-size:11px;background:#ffffffe8;color:#586471}.leaflet-container .leaflet-control-attribution a{color:#646b78}.leaflet-bar{border:1px solid #d0d6de!important;box-shadow:0 2px 7px #303b4a1a!important}.leaflet-bar a{color:#8c2134;background:#fff;width:38px;height:38px;line-height:38px}.leaflet-popup-content-wrapper{border-radius:12px;border:1px solid #dce0e6;box-shadow:0 4px 24px #29334b30}.leaflet-popup-content{margin:18px;min-width:205px;max-width:270px}.leaflet-popup-content h3{font-size:1rem;margin-bottom:10px;color:#3c4653}.leaflet-popup-content p{font-size:.875rem;line-height:1.5;margin:7px 0;color:#596472}.leaflet-popup-content small{display:block;font-size:.75rem;color:#798390;line-height:1.5;margin-top:9px}.leaflet-popup-content .map-badge{padding:5px 8px;border-radius:5px;background:#fff0f3;color:#a31831;font-weight:600}.leaflet-popup-content .map-badge.unavailable{background:#252930;color:#fff}.leaflet-popup-content a{color:#a71930;display:block;margin-top:8px;font-size:.875rem}.leaflet-container a.leaflet-popup-close-button{width:32px;height:32px;padding-top:4px;font-size:23px;color:#7a8591}
.hydrant-pin{position:relative;width:36px;height:49px;filter:drop-shadow(0 2px 2px #24324750)}.hydrant-pin img{width:29px;height:35px;position:absolute;top:0;left:3px}.hydrant-pin .pin-rank{position:absolute;bottom:0;left:9px;display:grid;place-items:center;width:19px;height:19px;background:#fff;border:1px solid #bb243a;border-radius:50%;font-size:12px;font-weight:700;color:#a1172f}.hydrant-pin.unavailable .pin-rank{border-color:#20242a;color:#20242a}.hydrant-pin .private-pin{position:absolute;right:-5px;top:-3px;background:#fff;color:#96182d;font-size:12px;font-weight:800;border-radius:4px;border:1px solid #a81d35;padding:0 3px;line-height:18px}.closure-marker{width:28px;height:28px;border:3px solid white;box-shadow:0 1px 5px #0005;border-radius:50%;background:#bb1631;display:grid;place-items:center}.closure-marker:after{content:'';width:15px;height:4px;background:#fff;border-radius:1px}.closure-marker.upcoming{background:#aa6510}
@media(max-width:1050px){.map-layout{grid-template-columns:minmax(0,1fr) 300px}.map-hydrants,.map-roads{padding:16px}.map-toolbar{gap:8px 12px}.map-layer-choices{gap:10px}.map-basemaps button{padding:8px 10px}}
@media(max-width:800px){.map-search-row{gap:7px;margin-bottom:10px}.map-search-row>.map-button{padding:10px 12px}.map-search-row>.map-button span{display:none}.address-search>input{font-size:1rem;min-height:48px;padding-left:39px;padding-right:8px}.search-symbol{left:12px;top:14px;width:18px}.map-toolbar{gap:7px;margin-bottom:11px}.map-layer-choices{order:3;width:100%;justify-content:flex-start;gap:24px;border-top:1px solid #e0e4ea;margin:4px 0 0;padding-top:6px}.map-layer-choices label{min-height:35px}.map-toolbar>#map-department{margin-left:auto}.map-layout{display:flex;flex-direction:column}.map-frame{height:58dvh;min-height:360px;max-height:620px}.map-sidebar{max-height:none;overflow:visible;border-left:0;border-top:1px solid #dce0e6}.map-instruction{max-width:calc(100% - 24px);font-size:.75rem;bottom:37px}.map-hydrants,.map-roads{padding:17px}.map-search-row button{min-width:46px}.map-coverage{font-size:.875rem}body:has(#panel-map:not([hidden])) .page-footer{padding-bottom:28px}}

/* Carte sur toute la fenêtre, commandes et résultats en superposition. */
body.map-active{overflow:hidden}
body.map-active .topbar,body.map-active .app-tabs,body.map-active .page-footer,body.map-active .app-install,body.map-active .skip-link{display:none}
#panel-map{position:fixed;inset:0;z-index:1000;background:#dce3e9;isolation:isolate}
#panel-map .map-frame{position:absolute;inset:0;height:100%;min-height:0;max-height:none;border:0;border-radius:0;isolation:auto}
.map-floating-top{position:absolute;top:calc(env(safe-area-inset-top,0px) + 12px);left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));display:flex;align-items:flex-start;gap:8px;z-index:850;pointer-events:none}
.map-floating-top>*{pointer-events:auto}.map-floating-top .address-search{max-width:610px}.map-floating-top .address-search>input{min-height:48px;box-shadow:0 3px 15px #21384b26;background:#f8f9fbeF;border-color:#a5b3c3;border-radius:10px}.map-floating-top .search-symbol{top:14px}.map-floating-top .map-icon-button{width:48px;min-width:48px;height:48px;background:#f7f8fa;border-color:#acb9c8;box-shadow:0 3px 15px #21384b20}
#map-layer-panel{position:absolute;z-index:840;right:12px;top:calc(env(safe-area-inset-top,0px) + 70px);display:flex;flex-direction:column;align-items:stretch;width:285px;margin:0;padding:13px;background:#f6f8fa;border:1px solid #a9b7c6;border-radius:12px;box-shadow:0 5px 24px #24384e30;gap:10px}
#map-layer-panel .map-layer-choices{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:0;padding:0;border:0;width:100%;order:0}#map-layer-panel .map-layer-choices label{min-height:42px}#map-layer-panel .map-source{margin:0;font-size:.75rem;color:#59687b}
#map-layer-panel .map-basemaps button{flex:1}#map-layers-toggle[aria-expanded=true]{background:#a31c33;color:#fff;border-color:#9c172d}
#panel-map .map-message{position:absolute;z-index:820;left:70px;top:calc(env(safe-area-inset-top,0px) + 70px);max-width:480px;margin:0;box-shadow:0 3px 15px #263b5020;background:#fff3f5;pointer-events:none}
#panel-map .map-load-error{top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 86px);left:12px;right:auto;max-width:calc(100% - 24px);z-index:700}
.map-summary-actions{position:absolute;bottom:calc(env(safe-area-inset-bottom,0px) + 26px);left:12px;display:flex;gap:8px;z-index:800}
.map-summary-actions .map-button{background:#f5f7fa;border-color:#99aabd;box-shadow:0 3px 16px #1c33482d;font-weight:650;min-height:48px;padding:10px 13px;color:#384b62}
.map-summary-actions button[aria-expanded=true]{background:#a31c33;color:#fff;border-color:#8c1830}.map-summary-actions button[aria-expanded=true] .map-count{background:#fff3;color:#fff}.map-summary-actions img{width:18px;height:24px;object-fit:contain}.map-summary-actions .map-count{margin-left:1px;background:#e2e7ed;color:#3e4f65}
#panel-map .map-sidebar{position:absolute;z-index:830;bottom:calc(env(safe-area-inset-bottom,0px) + 83px);left:12px;width:365px;max-width:calc(100% - 24px);max-height:calc(100dvh - 175px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain;background:#f4f6f9;border:1px solid #a6b4c5;border-radius:14px;box-shadow:0 7px 28px #263b5040}
.map-drawer-header{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;background:#dce3ed;padding:8px 12px 8px 18px;border-bottom:1px solid #bac7d7}.map-drawer-header h2{font-size:1rem;color:#36485e}.map-drawer-header .map-icon-button{background:transparent;border:0;min-height:40px;height:40px;width:40px}
#panel-map .map-roads{border-top:0}#panel-map .map-hydrants,#panel-map .map-roads{padding:15px}.map-section-heading h3{font-size:.9375rem;line-height:1.45;color:#3f5067}.map-section-heading h3 small{display:block;font-size:.75rem;color:#697789;font-weight:450}
#panel-map .leaflet-top{top:calc(env(safe-area-inset-top,0px) + 72px)}#panel-map .leaflet-right{right:2px}#panel-map .leaflet-bottom{bottom:env(safe-area-inset-bottom,0px)}#panel-map .leaflet-bottom.leaflet-left{bottom:calc(env(safe-area-inset-bottom,0px) + 80px)}
.hydrant-row-icon{width:20px;height:28px;flex:none}.hydrant-pin{height:36px}.hydrant-pin .private-pin{right:-5px}.road-row.restriction{border-left-color:#ae6810}.road-row.restriction .road-tag{color:#875009}
.restriction-marker{width:28px;height:28px;background:#f2a52b;border:3px solid white;box-shadow:0 1px 5px #0005;border-radius:7px;display:grid;place-items:center;color:#50370b;font-weight:800;font-size:18px}
@media(max-width:800px){.map-floating-top{gap:6px;top:calc(env(safe-area-inset-top,0px) + 8px);left:8px;right:8px}.map-floating-top .map-icon-button{min-width:42px;width:42px;height:46px;min-height:46px;padding:10px}.map-floating-top .address-search>input{min-height:46px;height:46px;padding:9px 6px 9px 31px;font-size:1rem}.map-floating-top .search-symbol{left:10px;top:15px;width:15px;height:15px}.map-floating-top .address-search{max-width:none}.address-popover{left:-48px;right:-96px}.address-popover ul{max-height:45dvh}#map-layer-panel{top:calc(env(safe-area-inset-top,0px) + 61px);right:8px}#panel-map .map-message{top:calc(env(safe-area-inset-top,0px) + 62px);left:8px;max-width:calc(100% - 66px);padding:8px 11px;font-size:.8125rem}#panel-map .leaflet-top{top:calc(env(safe-area-inset-top,0px) + 61px)}.map-summary-actions{left:8px;right:8px;gap:6px;justify-content:center}.map-summary-actions .map-button{flex:1;padding:10px 8px;font-size:.875rem;gap:7px;max-width:240px}#panel-map .map-sidebar{width:calc(100% - 16px);max-width:none;left:8px;max-height:min(62dvh,calc(100dvh - 160px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)))}.leaflet-popup-content{max-width:240px}.map-floating-top .address-search>input::placeholder{font-size:.875rem}}
@media(max-height:450px){#panel-map .map-sidebar{max-height:calc(100dvh - 95px);bottom:20px;left:auto;right:62px;width:340px}.map-summary-actions{left:8px;right:auto;flex-direction:column;bottom:26px}.map-summary-actions .map-button{min-height:40px}.leaflet-popup-content{max-height:180px;overflow:auto}}

/* Commandes directes, selon la disposition de Pyro21. */
.map-top-controls{position:absolute;z-index:850;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));top:calc(env(safe-area-inset-top,0px) + 12px);display:flex;align-items:center;gap:10px;pointer-events:none}
.map-top-controls>*{pointer-events:auto;box-shadow:0 2px 12px #35463820}.map-top-controls .map-icon-button{width:46px;min-width:46px;height:46px;border-radius:12px;color:#942139;border-color:#c7c6c2;background:#fff}
.map-top-controls .map-basemaps{height:46px;align-items:center;border-color:#c7c6c2;border-radius:12px}.map-basemaps button{min-height:38px}.map-basemaps button[aria-pressed=true]{background:#f2e3e7;color:#942139}
.map-top-controls .map-layer-choices{background:#fff;display:flex;flex-direction:row;gap:20px;border:1px solid #c7c6c2;padding:2px 14px;border-radius:12px;margin:0;min-height:46px;width:auto}.map-layer-choices label{gap:8px;min-height:38px;color:#483c41;font-weight:550;white-space:nowrap}.map-layer-choices input{width:19px;height:19px;accent-color:#a51e34}.map-layer-choices .map-count{background:#f2e8eb;padding:2px 6px;font-size:.75rem;font-weight:550}
.map-address-row{position:absolute;left:max(12px,env(safe-area-inset-left,0px));right:78px;top:calc(env(safe-area-inset-top,0px) + 70px);z-index:840;max-width:650px}.map-address-row .address-search>input{height:46px;min-height:46px;border-radius:12px;border-color:#c7c6c2;box-shadow:0 2px 12px #35463820;background:#fff}.map-address-row .search-symbol{top:13px}.address-popover{left:0;right:0}
.map-side-controls{position:absolute;z-index:820;top:calc(env(safe-area-inset-top,0px) + 70px);right:max(12px,env(safe-area-inset-right,0px));display:flex;flex-direction:column;gap:10px}.map-side-controls .map-icon-button{width:50px;height:50px;padding:12px;min-height:50px;border-radius:14px;background:#fff;border:1px solid #c7c6c2;box-shadow:0 2px 12px #35463820;color:#922039}.map-side-controls svg{width:26px;height:26px;stroke-width:2.1}.map-side-controls .map-icon-button:hover{background:#f9eef1;border-color:#c28b98}
#panel-map .map-message{top:calc(env(safe-area-inset-top,0px) + 127px);left:12px;max-width:min(560px,calc(100% - 90px));background:#fff9fa}.map-bottom-info{position:absolute;left:12px;bottom:calc(env(safe-area-inset-bottom,0px) + 28px);z-index:800}.map-bottom-info .map-button{min-height:40px;background:#ffffffed;border-color:#c7c6c2;box-shadow:0 2px 9px #35463820;color:#59434c;font-size:.8125rem}.map-bottom-info #map-data-state{color:#973047;font-size:.75rem}
#panel-map .map-sidebar{background:#f7f3f4;bottom:calc(env(safe-area-inset-bottom,0px) + 76px);max-height:calc(100dvh - 210px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-color:#c7b7be}.map-drawer-header{background:#e8dde2;border-color:#cebec6}.map-drawer-header h2{color:#613f4d}.map-sidebar .map-roads{border-top:1px solid #d5c8ce!important}.map-road-legend{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:.75rem;line-height:1.4;color:#61565b;margin-bottom:12px}.map-road-legend span{display:flex;align-items:center;gap:6px}.legend-closed,.legend-restricted{width:18px;height:4px;background:#bd1732;border-radius:3px}.legend-restricted{background:#bb771b}
.closure-marker.upcoming{background:#bb1631}.road-row.upcoming{border-left-color:#b91f35}.road-row.upcoming .road-tag{color:#a51d32}.road-row.restriction{border-left-color:#ae6810}.road-row.restriction .road-tag{color:#875009}
.road-map-symbol{position:relative;display:block;width:28px;height:28px}.road-moon{position:absolute;top:-12px;right:-14px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid #e4d2bb;background:#fff;color:#703c15;font-size:23px;font-weight:700;line-height:1;box-shadow:0 1px 5px #0003}.road-moon-alone{display:grid;place-items:center;width:28px;height:28px;border:2px solid #bb1631;border-radius:50%;background:#fff;color:#922039;font-size:25px;line-height:1;box-shadow:0 1px 6px #0003}.moon-note{background:#fff1d6;padding:6px 9px;border-radius:6px;color:#78521a!important}.map-info-note{font-size:.8125rem;color:#745665}
#panel-map .leaflet-bottom.leaflet-left{bottom:calc(env(safe-area-inset-bottom,0px) + 74px)}
@media(max-width:760px){.map-top-controls{top:calc(env(safe-area-inset-top,0px) + 8px);left:10px;right:10px;flex-wrap:wrap;gap:8px}.map-top-controls .map-basemaps{margin-left:auto}.map-top-controls .map-layer-choices{order:3;width:100%;min-height:42px;justify-content:center;gap:22px;padding:1px 8px}.map-top-controls .map-layer-choices label{min-height:38px;font-size:.875rem}.map-address-row{left:10px;right:74px;top:calc(env(safe-area-inset-top,0px) + 113px)}.map-address-row .address-search>input{font-size:1rem;padding-left:39px}.map-address-row .search-symbol{left:13px}.map-side-controls{top:calc(env(safe-area-inset-top,0px) + 113px);right:10px;gap:10px}.map-side-controls .map-icon-button{width:48px;height:48px;min-height:48px}.address-popover{left:0;right:0}.address-popover ul{max-height:40dvh}#panel-map .map-message{top:calc(env(safe-area-inset-top,0px) + 170px);left:10px;max-width:calc(100% - 84px)}#panel-map .map-sidebar{left:10px;max-width:calc(100% - 20px);width:390px;max-height:calc(100dvh - 246px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.map-bottom-info{left:10px}.leaflet-popup-content{max-width:235px}.map-layer-choices .map-count{padding:1px 5px}}
@media(max-width:350px){.map-top-controls .map-layer-choices{gap:12px;padding-inline:5px}.map-top-controls .map-layer-choices label{font-size:.8125rem;gap:6px}.map-layer-choices .map-count{font-size:.6875rem}}
@media(max-height:450px) and (min-width:600px){.map-top-controls{flex-wrap:nowrap}.map-top-controls .map-basemaps{margin-left:0}.map-top-controls .map-layer-choices{width:auto;gap:12px}.map-address-row,.map-side-controls{top:calc(env(safe-area-inset-top,0px) + 68px)}#panel-map .map-message{top:120px}#panel-map .map-sidebar{left:auto;right:70px;bottom:25px;max-height:calc(100dvh - 90px)}.map-side-controls{gap:6px}}
.road-unmapped{display:grid;gap:5px;padding:11px;border:1px dashed #c8b7bf;border-radius:9px;background:#f4eef0;font-size:.8125rem;color:#61515a}.road-unmapped strong{font-size:.8125rem}.road-unmapped small{color:#7b6570}.road-unmapped a{color:#992338;font-size:.8125rem}

/* Search above the two direct layer switches, matching the supplied layout. */
.map-top-controls .map-address-row{position:relative;inset:auto;flex:1;min-width:0;max-width:650px;margin:0;box-shadow:none;z-index:auto}
.map-layers-row{position:absolute;z-index:840;left:max(12px,env(safe-area-inset-left,0px));top:calc(env(safe-area-inset-top,0px) + 70px);width:min(540px,calc(100% - 90px))}
.map-layers-row .map-layer-choices{display:grid;grid-template-columns:1fr 1fr;gap:22px;width:100%;margin:0;padding:10px 15px;border:1px solid #d3c5ca;border-radius:16px;background:#fff;box-shadow:0 3px 14px #39242b20}
.map-layers-row .map-layer-choices label{position:relative;display:grid;grid-template-columns:24px 1fr 40px;align-items:center;gap:9px;min-height:36px;min-width:0;color:#663b48;font-size:.9375rem;font-weight:550}
.map-layer-icon{width:24px;height:28px;object-fit:contain;color:#b91f35;stroke:currentColor;fill:none;stroke-width:2}
.map-layers-row .map-layer-choices input{position:absolute;width:1px;height:1px;opacity:0;padding:0;margin:0}
.map-toggle-track{--switch-width:40px;--switch-height:24px;position:relative;width:var(--switch-width);height:var(--switch-height);border:1px solid #cebec5;border-radius:30px;background:#d9d0d4;transition:background .15s ease}
.map-toggle-track::before{content:'';position:absolute;top:1px;left:1px;width:calc(var(--switch-height) - 4px);height:calc(var(--switch-height) - 4px);border-radius:50%;background:#fff;box-shadow:0 1px 4px #2f17242b;transition:transform .15s ease}
.map-layer-choices input:checked+.map-toggle-track{background:#ad2038;border-color:#ad2038}
.map-layer-choices input:checked+.map-toggle-track::before{transform:translateX(calc(var(--switch-width) - var(--switch-height)))}
.map-layer-choices input:focus-visible+.map-toggle-track{outline:3px solid #673849;outline-offset:4px}
.map-layers-row .map-layer-choices label:hover{color:#a51e34}
.address-popover{z-index:900}
.road-moon.mixed,.road-moon-alone.mixed{width:40px;font-size:18px;border-radius:14px}

.hydrant-dialog{width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid #d6cbd0;border-radius:22px;background:#fff;color:#633244;box-shadow:0 15px 65px #20131e45;overflow:auto;overscroll-behavior:contain}
.hydrant-dialog::backdrop{background:#211c2763}
.hydrant-dialog-heading{display:grid;grid-template-columns:38px minmax(0,1fr) 44px;align-items:start;gap:16px;margin:3px 0 28px}
.hydrant-dialog-heading>img{width:38px;height:49px;margin-top:4px;object-fit:contain}
.hydrant-dialog-heading h2{color:#9a1d35;font-size:1.5rem;line-height:1.2;font-weight:750;margin:0 0 8px;overflow-wrap:anywhere}
.hydrant-dialog-heading p{font-size:1rem;color:#83717a;margin:0}
#hydrant-dialog-close,#pena-dialog-close{display:grid;place-items:center;width:44px;height:44px;padding:10px;border:1px solid #dfd9dc;border-radius:11px;background:#fff;color:#963045}
#hydrant-dialog-close:hover,#pena-dialog-close:hover{background:#f8eff2}
#hydrant-dialog-close svg,#pena-dialog-close svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2}
.hydrant-facts{margin:0}
.hydrant-facts>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:20px;padding:23px 0;border-bottom:1px solid #e8e2e5;line-height:1.5}
.hydrant-facts dt{color:#83717a;font-weight:450;font-size:1rem}
.hydrant-facts dd{margin:0;font-size:1.08rem;font-weight:700;color:#683848;overflow-wrap:anywhere}
.hydrant-availability{margin:23px 0 19px;padding:15px 17px;border-radius:12px;font-weight:700;font-size:1.04rem;line-height:1.4}
.hydrant-availability.available{background:#eaf4ee;color:#245b43}
.hydrant-availability.unavailable{background:#242429;color:#fff}
.hydrant-availability.unknown{background:#f3edf0;color:#685761}
.hydrant-source{font-size:.875rem;color:#81727b;line-height:1.6;margin:0}

@media(max-width:760px){
  .map-top-controls{flex-wrap:wrap}
  .map-top-controls .map-address-row{order:3;flex:0 0 100%;width:100%;max-width:none}
  .map-top-controls .map-address-row .address-search>input{height:46px;min-height:46px}
  .map-layers-row{left:10px;right:10px;top:calc(env(safe-area-inset-top,0px) + 116px);width:auto}
  .map-layers-row .map-layer-choices{gap:15px;padding:8px 10px;border-radius:14px}
  .map-layers-row .map-layer-choices label{grid-template-columns:20px 1fr 36px;gap:6px;font-size:.875rem;min-height:34px}
  .map-layer-icon{width:20px;height:24px}
  .map-toggle-track{--switch-width:36px;--switch-height:22px}
  .map-side-controls{top:calc(env(safe-area-inset-top,0px) + 178px)}
  #panel-map .map-message{top:calc(env(safe-area-inset-top,0px) + 178px)}
  .map-address-row .address-popover{left:0;right:0}
  .map-address-row .address-popover ul{max-height:40dvh}
}
@media(max-width:370px){
  .map-layers-row .map-layer-choices{gap:9px;padding-inline:8px}
  .map-layers-row .map-layer-choices label{grid-template-columns:18px 1fr 32px;gap:4px;font-size:.8125rem}
  .map-layer-icon{width:18px}
  .map-toggle-track{--switch-width:32px;--switch-height:20px}
}
@media(max-width:600px){
  .hydrant-dialog{padding:22px 20px;border-radius:20px}
  .hydrant-dialog-heading{grid-template-columns:30px minmax(0,1fr) 40px;gap:12px;margin-bottom:22px}
  .hydrant-dialog-heading>img{width:30px;height:40px}
  .hydrant-dialog-heading h2{font-size:1.3rem}
  .hydrant-dialog-heading p{font-size:.9375rem}
  #hydrant-dialog-close{width:40px;height:40px}
  .hydrant-facts>div{grid-template-columns:minmax(82px,30%) minmax(0,1fr);gap:13px;padding:20px 0}
  .hydrant-facts dt{font-size:.9375rem}.hydrant-facts dd{font-size:1rem}
}
@media(max-height:450px) and (min-width:600px){
  .map-top-controls{flex-wrap:nowrap}.map-top-controls .map-basemaps{margin-left:0}
  .map-top-controls .map-address-row{flex:1;width:auto;min-width:180px}
  .map-layers-row{top:calc(env(safe-area-inset-top,0px) + 66px);max-width:510px;right:78px}
  .map-side-controls{top:calc(env(safe-area-inset-top,0px) + 66px)}
  #panel-map .map-message{top:125px;max-width:calc(100% - 85px)}
}
@media(prefers-reduced-motion:reduce){.map-toggle-track,.map-toggle-track::before{transition:none}}

/* Autoroutes : repères discrets et accès conservant une cible tactile. */
.motorway-reference-marker{pointer-events:none!important}
.motorway-pk-pin{display:block;white-space:nowrap;text-align:center;padding:2px 3px;border:1px solid #a990984d;border-radius:4px;background:#ffffffdb;color:#754352;font-size:10px;font-weight:650;line-height:12px;box-shadow:0 1px 2px #39242b0d}
.motorway-access-marker{display:grid;place-items:center}
.motorway-access-pin{display:grid;place-items:center;width:20px;height:20px;border:1px solid #fff;border-radius:5px;background:#795568;color:white;box-shadow:0 1px 3px #39242b29}
.motorway-access-pin svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none}
.motorway-access-marker:focus-visible .motorway-access-pin{outline:3px solid #aa3355;outline-offset:3px}
.motorway-popup .leaflet-popup-content{margin:13px 30px 13px 15px;min-width:160px}
.motorway-access-popup h3{margin:0 0 7px!important;font-size:15px!important;line-height:1.4;font-weight:700;color:#9a1d35}
.motorway-access-popup p{margin:0!important;font-size:14px!important;line-height:1.5;color:#6d3b4b}
.road-row a{font-size:.8125rem;color:#a71930;text-underline-offset:2px}
.road-row:not(button):hover{background:#fff;border-color:#e0e4eb;border-left-color:#b91f35}
#motorways-legend{display:flex;align-items:center;gap:16px;margin:12px 0;color:#795366;font-size:.75rem}
#motorways-legend[hidden]{display:none}#motorways-legend>span{display:flex;gap:6px;align-items:center}
.motorway-legend-pk{border:1px solid #c8b6be;border-radius:3px;padding:2px 4px;font-size:10px;color:#754352}
.motorway-legend-access{display:grid;place-items:center;width:18px;height:18px;border-radius:4px;background:#795568;color:white;font-size:14px}
.map-motorways{padding:15px;border-top:1px solid #d5c8ce}.map-motorways h3{margin:0}.map-motorways input{width:100%;padding:10px;border:1px solid #c9bbc3;border-radius:8px;background:#fff;color:#623344;font-size:1rem;margin:6px 0 13px}
.map-motorways summary{font-size:.875rem;color:#65394c;cursor:pointer}.map-motorways summary span{display:block;font-size:.75rem;margin:6px 0;color:#82707b}
#motorways-list{list-style:none;margin:10px 0;padding:0;max-height:320px;overflow:auto}.motorway-inventory-row{display:grid;gap:5px;border-bottom:1px solid #e3d8de;padding:10px 0;color:#603c4f;font-size:.8125rem}.motorway-inventory-row small{color:#80717b;line-height:1.4}.map-motorways a{font-size:.8125rem;color:#85344f}
.restriction-calendar{font-weight:600;color:#78384a!important;line-height:1.5}

/* Quatre couches indépendantes alignées, y compris sur téléphone. */
.map-layers-row{width:min(780px,calc(100% - 96px))}
.map-layers-row .map-layer-choices{grid-template-columns:1fr .8fr 1.25fr 1.15fr;gap:16px}
.map-layers-row .map-layer-choices label{grid-template-columns:20px minmax(0,1fr) 30px;gap:5px;font-size:.8125rem;min-width:0}
.map-toggle-track{--switch-width:30px;--switch-height:20px}
#panel-map .map-message{top:calc(env(safe-area-inset-top,0px) + 138px)}

/* Fiche poteau compacte : numéro dans le titre, adresse, type, disponibilité. */
.hydrant-dialog{width:min(440px,calc(100vw - 28px));padding:20px;border-radius:18px}
.hydrant-dialog-heading{grid-template-columns:28px minmax(0,1fr) 40px;gap:12px;margin-bottom:12px;align-items:center}
.hydrant-dialog-heading>img{width:28px;height:36px}
.hydrant-dialog-heading h2{font-size:1.18rem;line-height:1.25}
#hydrant-dialog-close,#pena-dialog-close{width:40px;height:40px;border-radius:11px}
.hydrant-facts>div{grid-template-columns:68px minmax(0,1fr);gap:12px;padding:12px 0;line-height:1.4}
.hydrant-facts>div[hidden]{display:none}
.hydrant-facts dt{font-size:.875rem}.hydrant-facts dd{font-size:.9375rem;font-weight:650}
.hydrant-availability{margin:15px 0 0;padding:11px 13px;font-size:.9375rem;border-radius:9px}
.pena-pin{position:relative;display:grid;place-items:center;width:36px;height:36px;filter:drop-shadow(0 1px 2px #15394a66)}
.pena-pin>img{width:30px;height:30px}
.address-kind{display:inline-block;margin-left:9px;padding:2px 6px;border-radius:5px;background:#f5e9ed;color:#844455;font-size:.6875rem;font-weight:600;vertical-align:middle}
.pena-dialog .hydrant-dialog-heading h2{color:#176598}
.pena-dialog .hydrant-dialog-heading>img{width:28px;height:28px}
@media(max-width:760px){
  .map-layers-row{width:auto;left:10px;right:10px}
  .map-layers-row .map-layer-choices{grid-template-columns:repeat(4,auto);justify-content:space-between;gap:6px;padding:7px 9px}
  .map-layers-row .map-layer-choices label{grid-template-columns:16px auto 28px;grid-template-rows:auto;justify-content:start;gap:4px;font-size:.75rem;min-height:34px}
  .map-layers-row .map-layer-choices label .map-layer-icon{width:16px;height:19px}
  .map-layers-row .map-toggle-track{grid-column:auto;justify-self:end;--switch-width:28px;--switch-height:18px}
  .map-side-controls{top:calc(env(safe-area-inset-top,0px) + 176px)}
  #panel-map .map-message{top:calc(env(safe-area-inset-top,0px) + 176px)}
}
@media(max-width:680px){.map-layers-row .map-layer-choices{gap:6px;padding-inline:9px}.map-layers-row .map-layer-choices label{grid-template-columns:auto 24px;column-gap:4px;font-size:.75rem}.map-layers-row .map-layer-choices label .map-layer-icon{display:none}.map-layers-row .map-toggle-track{--switch-width:24px;--switch-height:18px}}
@media(max-width:390px){.map-layers-row .map-layer-choices{gap:4px;padding-inline:7px}.map-layers-row .map-layer-choices label{font-size:.6875rem;column-gap:3px}}
@media(max-width:350px){.map-layers-row .map-layer-choices{gap:3px;padding-inline:5px}.map-layers-row .map-layer-choices label{grid-template-columns:auto 22px;font-size:.65625rem;column-gap:3px}.map-layers-row .map-toggle-track{--switch-width:22px;--switch-height:16px}}
@media(max-height:450px) and (min-width:600px){
  .map-layers-row{max-width:780px;width:calc(100% - 96px)}
  .map-layers-row .map-layer-choices label{grid-template-rows:auto;min-height:34px}
  .map-layers-row .map-toggle-track{grid-column:auto}
  .map-side-controls{top:calc(env(safe-area-inset-top,0px) + 66px)}
  #panel-map .map-message{top:125px;max-width:calc(100% - 85px)}
}
