/* Local review candidate: the map is the primary surface. */
.mobile-map-tools,.mobile-map-peek,.mobile-sheet-heading,.mobile-search-mark{display:none}
@media(max-width:720px){
 body.mobile-readable.mobile-map-focus:not(.home-view){padding:0;background:#eaf0f3;--map-ui-blue:#0875c9}
 body.mobile-map-focus:not(.home-view) .workspace{position:fixed;inset:0 0 calc(68px + env(safe-area-inset-bottom));height:auto!important;display:block}
 body.mobile-map-focus:not(.home-view) .map-stage{height:100%;width:100%}
 body.mobile-map-focus:not(.home-view) .header{position:fixed;top:12px;left:12px;right:12px;height:56px;min-height:56px;padding:0 8px 0 12px;border:1px solid #d4dfe7;border-radius:16px;box-shadow:0 3px 14px #183b5024;gap:8px;flex-wrap:nowrap;background:#fff;z-index:1000}
 body.mobile-map-focus:not(.home-view) .header .brand{display:none}
 body.mobile-map-focus:not(.home-view) .header .tagline{display:none}
 body.mobile-map-focus:not(.home-view) .header>.place-search{order:0;flex:1;min-width:0;max-width:none;flex-basis:auto}
 body.mobile-map-focus:not(.home-view) .place-search form{border:0;gap:0;padding:0;background:none;align-items:center}
 body.mobile-map-focus:not(.home-view) .place-search .mobile-search-mark{display:block;width:28px;height:28px;flex:0 0 28px;margin-right:8px;object-fit:contain}
 body.mobile-map-focus:not(.home-view) .header .place-search input{border:0;background:none;padding:0 4px;min-height:52px;font-size:16px}
 body.mobile-map-focus:not(.home-view) .header .place-search form button{background:none;border:0;color:#0875c9;min-width:44px;width:44px;height:48px;padding:0;border-radius:50%;font-size:22px}
 body.mobile-map-focus:not(.home-view) .header .place-search form button svg{width:23px;height:23px;vertical-align:middle}
 body.mobile-map-focus:not(.home-view) .header #place-clear{display:none}
 body.mobile-map-focus:not(.home-view) .header:has(#place-query:not(:placeholder-shown)) #place-clear{display:block;font-size:24px}
 body.mobile-map-focus:not(.home-view) .mobile-account-toggle{display:block;margin:0;flex:none;width:40px;height:44px;padding:0;min-height:44px;border:0;color:#50697c;background:#f1f5f8;border-radius:50%;font-size:24px}
 body.mobile-map-focus:not(.home-view) .header-actions{top:64px;right:0;max-width:calc(100vw - 24px)}
 body.mobile-map-focus .header #place-results{position:absolute;top:64px;left:-12px;right:-52px;max-height:42dvh;overflow:auto;border-radius:16px;box-shadow:0 6px 24px #173b5326}
 body.mobile-map-focus .header #place-results button{display:block;width:100%;height:auto;min-height:48px;padding:6px 16px;margin:0;text-align:left;border:0;border-bottom:1px solid #e3eaf0;border-radius:0;background:white;color:#294b62;font-size:15px}
 body.mobile-map-focus .header #place-results strong,body.mobile-map-focus .header #place-results small{display:block;white-space:normal;line-height:1.4}
 body.mobile-map-focus .header #place-results small{margin-top:2px}
 body.mobile-map-focus:not(.home-view) .map-toolbar{top:80px;left:12px;right:12px;max-width:none;display:flex;gap:8px;background:none;flex-wrap:wrap;width:auto}
 body.mobile-map-focus .map-toolbar button{border:1px solid #d9e4ec;background:#fff;box-shadow:0 2px 8px #183b501a;border-radius:24px;min-height:42px;padding:0 14px;font-size:14px;font-weight:650;white-space:nowrap;color:#294b62}
 body.mobile-map-focus .map-toolbar button[aria-pressed=true]{color:#0875c9;background:#eaf5ff;border-color:#7fb5df}
 body.mobile-map-focus .mobile-map-tools{display:flex;position:absolute;right:12px;top:calc(102px + var(--map-toolbar-height,42px));gap:10px;flex-direction:column;z-index:720}
 body.mobile-map-focus .mobile-map-tools button,body.mobile-map-focus #my-location{width:46px;height:46px;min-height:46px;display:grid;place-items:center;padding:0;background:#fff;border:1px solid #d9e4ec;border-radius:50%;color:#294b62;box-shadow:0 2px 10px #173b5326}
 body.mobile-map-focus .mobile-map-tools svg,body.mobile-map-focus #my-location svg{width:23px;height:23px}
 body.mobile-map-focus #my-location{position:absolute;right:12px;bottom:88px;z-index:720;color:#0875c9}
 body.mobile-map-focus .map-stage .leaflet-bottom.leaflet-right{bottom:150px;right:12px}
 body.mobile-map-focus .map-stage .leaflet-control-zoom{border:0;border-radius:20px;box-shadow:0 2px 10px #173b5326;margin:0;overflow:hidden}
 body.mobile-map-focus .leaflet-control-zoom a{width:44px;height:40px;line-height:40px;font-size:23px;color:#294b62}
 body.mobile-map-focus .leaflet-control-attribution{font-size:9px;margin:0!important;position:fixed;right:0;bottom:calc(134px + env(safe-area-inset-bottom))}
 body.mobile-map-focus .leaflet-control-scale{margin-left:12px;margin-bottom:78px}
 body.mobile-map-focus .leaflet-control-scale{position:fixed;left:12px;bottom:calc(146px + env(safe-area-inset-bottom));margin:0!important}
 body.mobile-map-focus .leaflet-control:has(.location-refresh){display:none}
 body.mobile-map-focus .location-refresh{display:none!important}
 body.mobile-map-focus .map-stage .layer-panel:not([open]),body.mobile-map-focus .map-stage .legend:not([open]),body.mobile-map-focus .map-stage #rate-message{display:none}
 body.mobile-map-focus .map-stage .layer-panel[open],body.mobile-map-focus .map-stage .legend[open]{position:absolute;left:0;right:0;top:auto;bottom:0;width:100%;max-width:none;max-height:65%;border:0;border-radius:22px 22px 0 0;background:#fff;color:#243d50;padding:12px 20px 20px;box-shadow:0 -4px 24px #173b5324;overflow:auto;z-index:850}
 body.mobile-map-focus .map-stage .layer-panel[open] summary{background:white;color:#243d50;border:0;padding:8px 0 14px;min-height:48px;position:sticky;top:0;z-index:5}
 body.mobile-map-focus .layer-panel[open] .layer-panel-action{color:#0875c9}
 body.mobile-map-focus .layer-panel[open] .layer-panel-title{font-size:19px}
 body.mobile-map-focus .layer-panel .layer-panel-action .layer-close-text{font-size:15px}
 body.mobile-map-focus .layer-panel label{min-height:44px;display:flex;gap:8px;align-items:center;font-size:15px;margin:0}
 body.mobile-map-focus .layer-panel .basemaps{margin:12px 0;display:flex;box-shadow:none;background:#f1f5f8;gap:6px}
 body.mobile-map-focus .layer-panel .basemaps button{flex:1;min-height:44px;font-size:15px}
 body.mobile-map-focus .layer-panel #home-map{width:100%;min-height:44px}
 body.mobile-map-focus .map-stage .legend[open]>summary{font-size:18px;padding:8px 0;position:sticky;top:0;background:white}
 body.mobile-map-focus .map-stage .legend[open]>span{margin:12px 0;font-size:14px}
 body.mobile-map-focus .map-notice{left:12px;right:72px;top:132px;max-width:none;max-height:90px;overflow:auto;font-size:13px}
 body.mobile-map-focus .mobile-map-peek{display:block;position:absolute;bottom:0;left:0;right:0;padding:7px 18px 10px;border-radius:20px 20px 0 0;background:#fff;box-shadow:0 -2px 12px #173b5318;z-index:740}
 .mobile-map-grip{display:block;margin:0 auto 7px;width:34px;height:4px;border-radius:9px;background:#cbd5de}
 .mobile-peek-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
 body.mobile-map-focus .mobile-peek-row strong{font-size:15px;color:#243d50}
 body.mobile-map-focus .mobile-peek-row small{display:block;font-size:12px;line-height:1.4;color:#6e8090}
 body.mobile-map-focus .mobile-peek-row button{font-size:14px;color:#0875c9;background:#eff6fc;border:0;border-radius:12px;min-height:40px;padding:0 14px;white-space:nowrap}
 body.mobile-readable.mobile-map-focus .sidebar.open{position:fixed;left:0;right:0;top:auto;bottom:calc(68px + env(safe-area-inset-bottom));width:100%;max-height:64dvh;min-height:220px;border:0;border-radius:22px 22px 0 0;box-shadow:0 -4px 24px #173b5324;z-index:1010;padding:0;overflow:auto;overscroll-behavior:contain}
 body.mobile-map-focus .sidebar-intro,body.mobile-map-focus #dismiss-list{display:none}
 body.mobile-map-focus .mobile-sheet-heading{display:flex;position:sticky;top:0;z-index:5;padding:12px 18px;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e3eaf0;border-radius:22px 22px 0 0;touch-action:none}
 body.mobile-map-focus .mobile-sheet-heading strong{font-size:18px}
 body.mobile-map-focus .mobile-sheet-heading button{min-height:44px;border:0;font-size:14px;color:#0875c9}
 body.mobile-readable.mobile-map-focus .map-stage .detail{left:0;right:0;bottom:0;width:100%;max-height:57%;border:0;border-radius:22px 22px 0 0;padding:14px 20px;box-shadow:0 -4px 24px #173b5324;z-index:860;overscroll-behavior:contain}
 body.mobile-map-focus .detail h2{font-size:21px;margin-right:44px}
 body.mobile-map-focus .detail .eyebrow{display:none}
 body.mobile-map-focus .detail-close{position:sticky;top:0;min-width:44px;min-height:44px;float:right;z-index:10;background:#fff}
 body.mobile-map-focus .restriction-cluster{background:none;border:0;padding:5px}
 .restriction-cluster span{display:grid;place-items:center;width:34px;height:34px;border:2px solid white;border-radius:50%;background:#315b79;color:#fff;font-size:13px;font-weight:750;box-shadow:0 1px 5px #173b5340}
 body.mobile-map-focus .ban-marker .unknown-boundary{font-size:0;min-height:20px;height:20px;width:20px;min-width:20px;padding:0;border-radius:50%;margin:0;background:#fff2cd;color:#8b5c00}
 body.mobile-map-focus .ban-marker .unknown-boundary:after{content:'?';font-size:12px;font-weight:700}
 body.mobile-map-focus .ban-marker span{font-size:11px;padding:2px 5px;min-height:22px;line-height:18px}
 body.mobile-map-focus #privacy-location-stop{bottom:calc(148px + env(safe-area-inset-bottom));right:72px;font-size:12px;min-height:40px}
 body.mobile-map-focus .site-nav .nav-links>.menu-map{background:#edf6fe;border-radius:12px}
 body.mobile-map-focus .mobile-sheet-heading:focus-visible,body.mobile-map-focus button:focus-visible{outline:3px solid #0875c9;outline-offset:2px}
}

/* One stable bottom sheet for mobile place, park and restriction details. */
@media(max-width:720px){
 body.mobile-detail-open .mobile-map-peek,body.mobile-detail-open .map-toolbar,body.mobile-detail-open .mobile-map-tools,body.mobile-detail-open #my-location,body.mobile-detail-open .leaflet-control-zoom,body.mobile-detail-open .map-notice{display:none!important}
 body.mobile-detail-open .leaflet-popup-pane{display:none}
 body.mobile-readable.mobile-map-focus .map-stage .detail:not(.editing){height:52%;max-height:52%;padding:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#172e40;border-radius:20px 20px 0 0;box-shadow:0 -5px 22px #173b5326;z-index:1020}
 body.mobile-readable.mobile-map-focus.mobile-detail-expanded .map-stage .detail:not(.editing){height:calc(100% - 82px);max-height:calc(100% - 82px)}
 .nm-sheet-header{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;flex:none;padding:25px 16px 14px;border-bottom:1px solid #dce5eb;background:#fff;touch-action:none}
 .nm-sheet-grip{position:absolute;left:calc(50% - 18px);top:9px;width:36px;height:4px;border-radius:4px;background:#b6c4cf}
 .nm-sheet-title{font-size:21px;font-weight:750;line-height:1.35;word-break:keep-all;overflow-wrap:anywhere;letter-spacing:-.025em}
 .nm-sheet-actions{display:flex;align-items:center;gap:6px}
 .nm-sheet-expand{min-height:44px;padding:0 10px;border:1px solid #cfdeea;background:#f1f7fc;color:#075d9b;border-radius:8px;font-size:13px;font-weight:650}
 body.mobile-map-focus .detail .nm-sheet-close{position:static;float:none;min-width:44px;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:#edf2f6;color:#254657;font-size:28px;line-height:1}
 .nm-sheet-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:18px 20px 28px;font-size:16px;line-height:1.7;overflow-wrap:anywhere;scrollbar-color:#91a7b8 #f1f5f8}
 .nm-sheet-content .nm-sheet-original-title{display:none}
 .nm-sheet-content p{margin:0 0 16px;font-size:16px;line-height:1.7;color:#243f51}
 .nm-sheet-content small{font-size:14px;line-height:1.6;color:#496374}
 .nm-sheet-content .notice{padding:16px;margin:0 0 20px;background:#f1f6fa;color:#203e53;border:0;border-radius:10px;font-size:15px}
 .nm-sheet-content .notice p{font-size:15px;color:#203e53}
 .nm-sheet-content .notice h4{margin:16px 0 8px;font-size:16px}
 .nm-sheet-content .notice ul{padding:0;list-style:none;margin:8px 0 12px}
 .nm-sheet-content .notice li+li{margin-top:8px}
 .nm-sheet-content .notice button{width:100%;min-height:44px;text-align:left;font-size:15px;line-height:1.5;color:#185f91;background:#fff;border:1px solid #cfdeea;padding:10px 12px}
 .nm-sheet-content .notice button:disabled{opacity:1;color:#284a61;background:#e3edf5;cursor:default}
 .nm-sheet-content a{color:#075d9b;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
 .nm-sheet-content dl{font-size:15px;line-height:1.65}
 body.mobile-detail-open .leaflet-control-attribution{bottom:calc(68px + env(safe-area-inset-bottom) + (100dvh - 68px - env(safe-area-inset-bottom)) * .52)}
 body.mobile-detail-expanded .leaflet-control-attribution{display:none}
 body.mobile-detail-open .leaflet-control-scale{display:none}
 body.mobile-map-focus .header #place-results:has(.place-result){max-height:calc(100dvh - 178px)}
 body.mobile-readable.mobile-map-focus:has(#place-query[aria-expanded=true]) .sidebar.open{display:none}
}
@media(max-width:720px){
 .nm-sheet-context{border-top:1px solid #dce5eb;margin-top:18px;padding-top:4px}
 .nm-sheet-context>summary{min-height:48px;padding:12px 0;color:#254b65;font-size:15px;font-weight:650;cursor:pointer}
 .nm-sheet-context .notice{margin-top:8px}
 .nm-sheet-content img{max-width:100%;height:auto}
}

/* Keep the selected parcel compact; fishing restrictions precede boundary notes. */
#detail .nm-click-location,.leaflet-popup-content .nm-click-location{padding:8px 10px;margin:8px 0 14px;background:#f4f7f9;color:#41596b;border-radius:5px;font-size:16px;line-height:1.5}
#detail .nm-click-location>strong,.leaflet-popup-content .nm-click-location>strong{font-size:16px}
#detail .nm-click-location>p,.leaflet-popup-content .nm-click-location>p{margin:3px 0;font-size:16px;line-height:1.5;color:#243f51}
.nm-location-more>summary{padding:5px 0;cursor:pointer;font-size:16px;color:#496374}
#detail .nm-location-more small,.leaflet-popup-content .nm-location-more small{font-size:16px;line-height:1.5}
#detail .nm-boundary-note>.badge{display:table;margin-bottom:8px}
#detail .nm-boundary-note dl{margin-bottom:0}

@media(max-width:720px){
 body.mobile-map-focus .mobile-map-tools button,body.mobile-map-focus #my-location{width:54px;height:56px;min-height:56px;border-radius:12px;display:flex;flex-direction:column;justify-content:center;gap:3px;border-color:#b8cbd8}
 body.mobile-map-focus .mobile-tool-label{font-size:11px;font-weight:650;line-height:1.2;color:#24495e}
 body.mobile-map-focus .mobile-map-tools button[aria-expanded=true]{background:#e5f2ff;border-color:#0875c9;color:#0065a8}
 body.mobile-map-focus .map-toolbar button{min-height:44px;border-color:#b8cbd8}
 body.mobile-map-focus .mobile-peek-row button{min-height:44px;background:#0875c9;color:#fff;border-radius:8px;font-weight:700}
 body.mobile-map-focus .mobile-peek-row small{font-size:13px;color:#526a7c}
 body.mobile-detail-open .nm-sheet-expand{min-height:44px;border-color:#a9c4d7;background:#eff7fd;color:#075f98;font-weight:650}
 body.mobile-map-focus .mobile-map-tools button:focus-visible,body.mobile-map-focus #my-location:focus-visible{outline:3px solid #0875c9;outline-offset:3px}
}

@media(max-width:720px){
 body.mobile-map-focus .mobile-account-toggle{min-width:44px}
 body.mobile-map-focus .leaflet-control-zoom a{height:44px;line-height:44px}
 body.mobile-map-focus .mobile-tool-label{font-size:13px;line-height:1.25}
 body.mobile-map-focus .mobile-peek-row small{font-size:14px;line-height:1.5}
 body.mobile-detail-open .nm-sheet-expand{font-size:14px}
}
