/* Responsive map v1: desktop rules remain in the existing stylesheet. */
#mobile-toolbar[hidden],#mobile-location[hidden]{display:none!important}
#mobile-filters:not([open]){display:none}
#mobile-filters{padding:0;border:1px solid var(--line);border-radius:14px;width:min(560px,calc(100% - 24px));max-height:90dvh;color:var(--ink);background:var(--paper)}
#mobile-filters::backdrop{background:#14251dcc}
.mobile-filter-head,.mobile-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:var(--paper)}
.mobile-filter-head h2{margin:0;font-size:19px}.mobile-filter-body{overflow:auto;max-height:calc(90dvh - 130px);overscroll-behavior:contain}
.mobile-filter-actions{border-top:1px solid var(--line)}
.mobile-filter-actions button{background:var(--ink);color:white;flex:1}
#mobile-location{position:fixed;z-index:1000;right:16px;bottom:16px;width:min(480px,calc(100% - 32px));max-height:55dvh;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 35px #0004;overflow:auto;padding:16px;overscroll-behavior:contain}
#mobile-location-close{float:right;position:sticky;top:0;margin-left:8px}.mobile-location-body h2{margin-top:0;padding-right:70px}.mobile-location-body p{line-height:1.5}.mobile-location-body img{width:100%;max-height:160px;object-fit:cover;border-radius:8px}.mobile-location-body a{display:block;margin-top:12px;padding:12px 0}.mobile-location-body .mobile-gallery{background:var(--ink);color:white;padding:14px;border-radius:6px;text-decoration:none}
@media(max-width:1199px){
body:has(.explorer){overflow:hidden}body:has(.explorer)>header{height:60px;padding:0 16px}.explorer{display:block;height:calc(100dvh - 130px);position:relative}.explorer>.map-wrap{height:100%;min-height:0}.explorer>aside{display:none}
#mobile-toolbar{display:flex;align-items:center;gap:10px;height:70px;padding:10px 14px;background:var(--paper)}#mobile-toolbar input{margin:0;min-width:0;flex:1;height:48px}#mobile-toolbar button{flex-shrink:0;min-height:48px}
.mobile-filter-body>aside{padding:16px;overflow:visible;max-height:none}.mobile-filter-body .eyebrow,.mobile-filter-body h1,.mobile-filter-body .intro,.mobile-filter-body #results,.mobile-filter-body #filters>label[for=search],.mobile-filter-body #search{display:none}
.mobile-filter-body .choice{min-height:44px;margin:0;padding-top:8px;padding-bottom:8px}.mobile-filter-body input[type=checkbox]{width:20px;height:20px;flex:0 0 20px}.mobile-filter-body summary{min-height:44px;margin:0;padding:12px 0}.mobile-filter-body button{min-height:44px}
#mobile-location button{min-height:44px}.fit{bottom:28px;max-width:calc(100% - 40px)}#mobile-location{padding-bottom:max(16px,env(safe-area-inset-bottom))}
.category-marker{box-shadow:0 3px 9px #0007}.map-pin{touch-action:manipulation}
}
@media(max-width:767px){body:has(.explorer)>header .brand{font-size:19px}body:has(.explorer)>header .brand span{display:none}body:has(.explorer)>header>a:last-child{font-size:11px}#mobile-location{left:8px;right:8px;bottom:8px;width:auto;max-height:52dvh}#mobile-filters{max-height:94dvh}.mobile-filter-body{max-height:calc(94dvh - 130px)}}
@media(prefers-reduced-motion:reduce){#mobile-location{scroll-behavior:auto}}
.mobile-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:1199px){.explorer .leaflet-bar a{width:44px;height:44px;line-height:44px}.explorer .map-pin::before{content:"";position:absolute;inset:-4px}.fit{bottom:calc(28px + env(safe-area-inset-bottom))}}
@media(max-width:767px){.location-grid{grid-template-columns:1fr;gap:20px}.location-page{padding:24px 16px}.location-page>h1{font-size:38px}.gallery{display:block;text-align:center}.location-page dd{overflow-wrap:anywhere}}

@media(max-width:1199px){#mobile-toolbar{height:94px;flex-wrap:wrap;gap:4px 10px}.explorer{height:calc(100dvh - 154px)}#mobile-status{flex-basis:100%;font-size:12px;line-height:18px;margin:0;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

.mobile-location-body .mobile-gallery-hint{font-size:13px;line-height:1.5;margin:6px 0 16px;color:var(--muted)}

/* B9 UX refinement 2026-10-26 */
#mobile-location .mobile-location-body .mobile-gallery{padding:9px 12px;font-size:14px;min-height:44px;display:flex;align-items:center;justify-content:center;}
