/* Voirie Finder 4.5 — interface mobile tactile, la carte reste visible. */
@media(max-width:700px){
 :root{--blue:#176db2;--blue-dark:#125990}
 body{height:100dvh;min-height:100dvh;background:#f6f9fc}
 .topbar{position:fixed;inset:0 0 auto;height:58px;padding:0 14px;background:#fff;box-shadow:0 1px 10px #142c4012;z-index:600}
 .brand{gap:9px;font-size:14px}.brand-mark{width:34px;height:34px;min-width:34px;border-radius:10px}.brand small{font-size:10px}
 .top-actions{gap:10px}.local-badge{font-size:0;gap:0}.local-badge i{width:8px;height:8px;background:#40a67a;box-shadow:0 0 0 4px #40a67a1c}
 .icon-button{width:42px;height:42px;font-size:19px;border-radius:12px}
 .layout{position:static;height:auto;display:block}.map-wrap{position:fixed;inset:0;width:100%;height:100dvh;z-index:1}#map{height:100%;width:100%}
 .sidebar{display:contents}.intro,.side-spacer,.sidebar-foot{display:none}
 .search-box{position:fixed;top:calc(70px + env(safe-area-inset-top));left:13px;right:62px;margin:0;z-index:520;filter:drop-shadow(0 4px 12px #20374b18)}
 .search-input-wrap{height:48px;border:1px solid #e1e8ee;border-radius:15px;background:#fff;padding:0 13px;gap:10px}.search-input-wrap>span{font-size:22px;color:#52728d}.search-input-wrap input{font-size:15px;min-height:44px}.search-input-wrap input::placeholder{color:#8393a0}.search-input-wrap button{font-size:23px;min-width:30px;min-height:40px}
 .search-results{margin-top:7px;max-height:min(35dvh,260px);overflow:auto;border:1px solid #e2e9ee;border-radius:14px;box-shadow:0 8px 28px #1c344222}.search-result{min-height:54px;padding:8px 11px}.search-result-text strong{font-size:13px}.search-result-text small{font-size:11px}
 .map-tools{top:calc(70px + env(safe-area-inset-top));right:12px;gap:8px}.map-tool{width:44px;height:44px;border-radius:14px;font-size:21px;box-shadow:0 3px 12px #142c4022;border-color:#e2e9ee}.map-mode{width:auto;min-width:48px;padding:0 9px;font-size:10px}
 .side-heading{position:fixed;left:14px;right:14px;bottom:calc(126px + env(safe-area-inset-bottom));margin:0;z-index:510;font-size:13px;color:#23384a;pointer-events:none}.side-heading>span{background:#fff;padding:6px 10px;border-radius:10px;box-shadow:0 2px 9px #1c344218}.category-actions{pointer-events:auto;background:#fff;border-radius:10px;box-shadow:0 2px 9px #1c344218}.text-button{min-height:38px;padding:0 10px;font-size:12px}
 .category-list{position:fixed;left:0;right:0;bottom:calc(72px + env(safe-area-inset-bottom));display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:5px 14px 10px;z-index:510;scrollbar-width:none;overscroll-behavior-x:contain}.category-list::-webkit-scrollbar{display:none}
 .category-row{height:46px;flex:0 0 auto;gap:7px;padding:0 9px;background:#fff;border:1px solid #e4ebf0;border-radius:14px;box-shadow:0 3px 12px #1c344219}.category-row:hover{background:#fff}.category-row input{width:18px;height:18px}.category-icon{width:28px;height:28px;border-radius:9px;font-size:14px}.category-name{font-size:12px;max-width:96px}.category-count{min-width:22px;height:21px;font-size:11px;background:#eef5fb;color:#245e8a}.category-add-btn{width:30px;height:30px;font-size:19px;border-radius:9px}
 .wide{position:fixed;left:14px;right:14px;bottom:calc(12px + env(safe-area-inset-bottom));width:calc(100% - 28px);height:52px;margin:0;padding:0 16px;border-radius:16px;font-size:15px;z-index:520;box-shadow:0 6px 18px #176db238}.primary-button span{font-size:21px}
 .map-hint{bottom:calc(188px + env(safe-area-inset-bottom));max-width:calc(100% - 38px);white-space:normal;text-align:center;line-height:1.4;font-size:12px;padding:10px 14px;border-radius:13px;box-shadow:0 4px 16px #1c34421b}
 .selection-card{left:12px;right:12px;bottom:calc(182px + env(safe-area-inset-bottom));transform:none;width:auto;border-radius:17px;padding:13px 14px;box-shadow:0 8px 26px #17291d2a}.selection-info strong{font-size:14px}.selection-info small{font-size:11px}.selection-note{font-size:12px}.card-actions button{min-height:42px;font-size:12px}
 .modal-backdrop{align-items:end;justify-items:stretch;padding:0;background:#13283a66}.modal{width:100%;max-height:min(90dvh,850px);border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -8px 40px #15271f26;overscroll-behavior:contain}
 .modal-header{position:sticky;top:0;background:#fff;z-index:2;padding:19px 20px 14px;border-radius:22px 22px 0 0}.modal-header h2{font-size:19px}.modal-header p{font-size:12px}.modal-close{width:42px;height:42px;font-size:23px}
 .modal-body{padding:16px 20px 22px}.form-grid{grid-template-columns:1fr;gap:14px}.field.full{grid-column:auto}.field label{font-size:13px}.field input,.field select,.field textarea{min-height:48px;padding:12px;font-size:15px;border-radius:12px}.field textarea{min-height:86px}.field-hint{font-size:11px}
 .position-row{flex-wrap:wrap}.position-row input{flex-basis:100%}.position-row button{flex:1;min-height:44px}.modal-footer{position:sticky;bottom:0;background:#fff;padding:13px 0 calc(4px + env(safe-area-inset-bottom));margin-top:14px;z-index:2}.modal-footer button{min-height:46px;padding:0 15px;font-size:13px}
 .add-cat-row{flex-wrap:wrap}.add-cat-row input{min-width:0;min-height:46px;flex:1;font-size:14px}.add-cat-row button{min-height:46px;font-size:13px}.category-manage-row{gap:8px;padding:9px 0}.category-manage-row button{min-height:40px;padding:7px 9px;font-size:11px}.category-manage-row input[type=color]{width:38px;height:38px}
 .detail-number{font-size:26px}.detail-row p{font-size:14px}.detail-row{padding:13px 0}.leaflet-bottom.leaflet-right{bottom:calc(205px + env(safe-area-inset-bottom))}
}
@media(max-width:370px){.brand{font-size:12px}.brand-mark{width:31px;height:31px;min-width:31px}.brand small{font-size:9px}.category-row{gap:5px;padding:0 7px}.category-name{max-width:76px}.text-button{padding:0 7px;font-size:11px}}

