/* FishMap V3 additive front-end. Do not restyle the original item pages, account,
 * chat, listing popups, share sheet or platform logo. All selectors are scoped. */
.pf-app.fm3-enabled .fm3-layers,
.pf-app.fm3-enabled .fm3-categories,
.pf-app.fm3-enabled .fm3-summary{position:absolute;z-index:485;pointer-events:auto;left:12px}
.pf-app.fm3-enabled .fm3-layers{top:68px;display:flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--pf-border);border-radius:13px;background:rgba(255,255,255,.97);box-shadow:0 5px 18px rgba(25,45,31,.09);backdrop-filter:blur(10px)}
.fm3-layers button{height:33px;padding:0 13px;border:0;border-radius:10px;background:transparent;color:#637266;font-size:12px;font-weight:720;white-space:nowrap;cursor:pointer;transition:background .16s,color .16s}
.fm3-layers button[aria-pressed="true"]{background:#2d6e4e;color:#fff}
.fm3-layers button:not([aria-pressed="true"]):hover{background:#f0f4f1}
.pf-app.fm3-enabled .fm3-categories{top:112px;display:flex;align-items:center;gap:5px;overflow-x:auto;max-width:min(580px,calc(100vw - 24px));padding:2px 1px 5px;scrollbar-width:none}
.fm3-categories::-webkit-scrollbar{display:none}
.fm3-categories button{display:inline-flex;flex:none;align-items:center;gap:5px;height:30px;border:1px solid #e1e9e1;border-radius:9px;background:rgba(255,255,255,.97);padding:0 10px;color:#687a6d;font-size:11px;font-weight:680;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s}
.fm3-glyph{width:17px;height:17px;flex:none;vertical-align:middle}
.fm3-categories .fm3-glyph{width:14px;height:14px}
.fm3-categories button[aria-pressed="true"]{color:#2d6e4e;background:#edf5ef;border-color:#b8d2c0}
.fm3-categories button:hover{border-color:#afcabb;background:#f8fbf9}
/* Food dropdown lives at document level so the horizontal category rail
   cannot clip it. Keep below resource detail sheets and above the map. */
.fm3-categories .fm3-food-caret{display:inline-block;margin-left:4px;font-size:12px;line-height:1;transform:translateY(-1px)}
.fm3-food-options[hidden]{display:none!important}
.fm3-food-options{position:fixed;z-index:880;display:grid;gap:3px;min-width:160px;max-width:calc(100vw - 16px);padding:5px;background:#fff;border:1px solid #dbe7de;border-radius:11px;box-shadow:0 10px 24px rgba(24,48,31,.18);max-height:min(180px,calc(100dvh - 130px));overflow-y:auto}
.fm3-food-options button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:36px;padding:7px 11px;border:0;border-radius:8px;background:transparent;text-align:left;color:#425a49;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
.fm3-food-options button:hover,.fm3-food-options button:focus-visible{outline:2px solid transparent;background:#edf5ef;color:#276748}
.fm3-food-options button[aria-checked="true"]{background:#e8f3eb;color:#276748}
.fm3-food-options button span[aria-hidden="true"]{font-size:13px}
.pf-app.fm3-enabled .fm3-summary{top:157px;max-width:min(490px,calc(100vw - 24px));display:flex;align-items:center;gap:10px;min-height:36px;padding:8px 11px;border-radius:12px;background:rgba(255,255,255,.97);border:1px solid var(--pf-border);box-shadow:0 5px 16px rgba(25,45,31,.09);font-size:12px;color:#455c4d;line-height:1.35;white-space:normal}
.fm3-summary b{font-weight:850;color:#234b35}
.fm3-visit-count{font-size:11px;font-weight:760;color:#576a5d;background:#f0f3f1;border-radius:999px;padding:5px 9px;white-space:nowrap}
.fm3-demo-flag{font-size:10px;font-weight:750;background:#fff4e7;color:#a16c34;border-radius:6px;padding:4px 6px;white-space:nowrap}
.pf-app.fm3-enabled #statusCard{top:113px}
.pf-app.fm3-enabled #statusCard.pf-hidden{display:none!important}
.pf-app.fm3-enabled .fm3-summary.pf-hidden,.pf-app.fm3-enabled .fm3-categories.pf-hidden{display:none!important}
/* Original radius and price buttons are relocated, never rewritten. Their
 * existing handlers and translation remain in app.js. */
.pf-app.fm3-enabled .pf-filterbar{position:absolute!important;z-index:490;left:auto!important;right:12px!important;top:68px!important;bottom:auto!important;transform:none!important;width:max-content!important;max-width:min(390px,calc(100vw - 24px))!important;display:flex;align-items:center;justify-content:flex-end;gap:5px!important;overflow:visible;border:0!important;border-radius:14px!important;padding:0!important;box-shadow:none!important;background:transparent!important;backdrop-filter:none}
.pf-app.fm3-enabled .pf-filterbar>*:not(#radiusBtn):not(#priceBtn):not(#fm3CityBtn){display:none!important}
.pf-app.fm3-enabled .pf-filterbar #radiusBtn,
.pf-app.fm3-enabled .pf-filterbar #priceBtn,
.pf-app.fm3-enabled .fm3-city-chip{display:inline-flex!important;justify-content:center;align-items:center;gap:5px;height:37px;min-height:37px;margin:0;padding:0 11px!important;border:1px solid #e2e9e2!important;border-radius:12px!important;background:rgba(255,255,255,.97)!important;box-shadow:0 4px 14px rgba(28,51,34,.09);color:#405c49!important;font-size:12px!important;font-weight:750!important;white-space:nowrap}
.pf-app.fm3-enabled .pf-filterbar #priceBtn{color:#2e7651!important;background:#f0f8f2!important}
.fm3-city-chip .fm3-glyph{width:14px;height:14px}
.fm3-city-chip span{max-width:98px;overflow:hidden;text-overflow:ellipsis}
/* Search location popup still uses the existing geocoder; the redundant GPS
 * choice inside it is removed because the separate GPS icon performs location. */
.pf-app.fm3-enabled #gpsBtn{display:none!important}
.pf-app.fm3-enabled #manualCard:not(.pf-hidden){z-index:750}
/* Preserve native location button, but change its action to immediate GPS.
 * A second nearby button opens the original city/postcode search card. */
.pf-app.fm3-enabled #relocateBtn{z-index:510;right:12px!important;bottom:max(207px,calc(env(safe-area-inset-bottom) + 199px))!important;width:41px!important;height:41px!important;display:grid;border-radius:12px!important}
.fm3-search-map-btn{position:absolute;right:12px;bottom:max(161px,calc(env(safe-area-inset-bottom) + 153px));z-index:511;width:41px;height:41px;background:rgba(255,255,255,.97);border:1px solid var(--pf-stroke);border-radius:12px;display:grid;place-items:center;cursor:pointer;color:#3e634c;box-shadow:0 6px 20px rgba(20,42,25,.14)}
.fm3-search-map-btn:hover{background:#f3f7f4}
.fm3-search-map-btn .fm3-glyph{width:19px;height:19px}
.pf-app.fm3-enabled .leaflet-control-zoom{margin-bottom:80px!important;margin-right:12px!important;border-radius:12px!important}
/* Five native actions, front-end links to unchanged original event handlers. */
.fm3-bottom-nav{position:absolute;z-index:480;left:50%;bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(600px,calc(100vw - 20px));min-height:66px;display:flex;align-items:center;gap:4px;padding:6px;background:rgba(255,255,255,.97);border:1px solid rgba(230,236,230,.96);border-radius:16px;box-shadow:0 8px 27px rgba(25,45,31,.13);backdrop-filter:blur(10px)}
.fm3-bottom-nav button{flex:1;min-width:0;height:52px;border:0;border-radius:12px;background:transparent;color:#718073;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;font-size:11px;font-weight:720}
.fm3-bottom-nav button .fm3-glyph{width:19px;height:19px}
.fm3-bottom-nav button:hover{background:#f4f8f5;color:#3d6b4e}
.fm3-bottom-nav button[data-fm3-action="publish"] .fm3-glyph{color:#286744}
.fm3-bottom-nav button:focus-visible{outline:2px solid #70a589;outline-offset:-2px}
/* Leaflet public-resource markers (new only). Existing site markers unchanged. */
.fm3-marker-shell{background:none;border:0}
.fm3-resource-pin{width:40px;height:51px;display:block;filter:drop-shadow(0 4px 6px rgba(23,43,29,.20));transform-origin:50% 93%;transition:transform .18s ease,filter .18s ease}
.fm3-resource-pin>svg{width:40px;height:51px;display:block}
.fm3-marker-shell:hover .fm3-resource-pin,
.fm3-marker-shell:focus-visible .fm3-resource-pin{transform:translateY(-4px) scale(1.07);filter:drop-shadow(0 7px 9px rgba(23,43,29,.25))}
.fm3-resource-pin.fm3-tap{animation:fm3-bounce .44s cubic-bezier(.2,.75,.25,1)}
@keyframes fm3-bounce{0%{transform:translateY(0) scale(1)}40%{transform:translateY(-8px) scale(1.08)}68%{transform:translateY(-2px) scale(1.02)}100%{transform:translateY(0) scale(1)}}
/* Original native markers receive subtle hover/click feedback only. */
.pf-marker.fm3-hover{filter:brightness(1.08) drop-shadow(0 3px 4px rgba(25,45,31,.23))}
.pf-marker.fm3-tap{animation:fm3-native-tap .32s ease}
@keyframes fm3-native-tap{0%,100%{filter:brightness(1)}50%{filter:brightness(1.17) drop-shadow(0 3px 4px rgba(25,45,31,.25))}}
.fm3-resource-popup .leaflet-popup-content-wrapper{border-radius:16px!important}
.fm3-resource-popup .leaflet-popup-content{margin:12px!important}
.fm3-preview{min-width:215px;max-width:274px;color:#35463b;font-size:12px;line-height:1.48}
.fm3-preview-eyebrow{font-size:10px;font-weight:750;color:#317450}
.fm3-muted-warning{color:#a87236;margin-left:6px}
.fm3-preview-name{font-size:15px;font-weight:790;color:#25372c;margin:7px 0 5px;line-height:1.3}
.fm3-preview-meta{display:flex;align-items:center;gap:4px;color:#829083;font-size:11px;margin-bottom:8px}
.fm3-preview-meta .fm3-glyph{width:13px;height:13px}
.fm3-preview-desc{font-size:12px;line-height:1.5;color:#5b6b5e;margin:0 0 12px}
.fm3-preview-actions{display:flex;gap:8px;align-items:center}
.fm3-preview-actions button{height:35px;border-radius:10px;font-size:12px;font-weight:760;cursor:pointer;white-space:nowrap;border:1px solid #d8e1da;padding:0 13px}
.fm3-main-action{background:#293b30;color:#fff;border-color:#293b30!important;flex:1}
.fm3-alt-action{background:#fff;color:#536758;min-width:70px}
.fm3-preview-actions button:hover{filter:brightness(.97)}
/* Public resource sheets are independent of the original item detail panel. */
.fm3-sheet,.fm3-visit{position:fixed;z-index:1350;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(520px,calc(100vw - 18px));max-height:76dvh;overflow:auto;background:#fff;border:1px solid #e1e6e0;border-radius:18px;box-shadow:0 19px 56px rgba(17,34,24,.20);padding:16px;color:#26392d}
.fm3-sheet-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.fm3-head-text{min-width:0}
.fm3-head-text h2{font-size:18px;font-weight:790;line-height:1.3;margin:4px 0 0}
.fm3-detail-eyebrow{font-size:11px;font-weight:720;color:#407456}
.fm3-close{width:30px;height:30px;flex:none;display:grid;place-items:center;border:1px solid #e4eae4;border-radius:9px;background:#f8faf8;color:#6a756c;font-size:22px;cursor:pointer}
.fm3-detail-overview{display:flex;gap:13px;align-items:flex-start;border-radius:13px;border:1px solid #e8ece8;background:#fbfcfb;padding:12px;margin-top:15px}
.fm3-detail-icon{flex:none;width:43px;height:43px;display:grid;place-items:center;background:#fff;border:1px solid #e1e8e1;border-radius:12px}
.fm3-detail-icon .fm3-glyph{width:22px;height:22px}
.fm3-detail-overview strong{font-size:13px;color:#314537}
.fm3-detail-overview p{font-size:12px;color:#5e6f62;margin:5px 0 0;line-height:1.5}
.fm3-detail-grid{margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:9px}
.fm3-detail-grid div{padding:10px 11px;background:#fff;border:1px solid #e8ece8;border-radius:11px;min-width:0}
.fm3-detail-grid small{display:block;font-size:10px;color:#8a978d;margin-bottom:5px}
.fm3-detail-grid strong{font-size:12px;font-weight:760;color:#3a4c40;overflow-wrap:anywhere}
.fm3-detail-section{margin-top:14px;padding:0 2px}
.fm3-detail-section strong{font-size:13px}
.fm3-detail-section p{margin:6px 0 0;font-size:12px;line-height:1.55;color:#5e7163}
.fm3-detail-footer{margin-top:14px;border-top:1px solid #eef1ed;padding:12px 2px 0;display:flex;flex-direction:column;gap:6px;color:#808d82;font-size:11px}
.fm3-detail-footer a{color:#2f7253;text-decoration:none;font-weight:730}
/* Compact visit sheet: only three choices, optional comment and submit. */
.fm3-visit{z-index:1400;width:min(440px,calc(100vw - 18px));padding:10px 12px 13px;max-height:60dvh}
.fm3-visit-top{display:flex;justify-content:flex-end;margin-bottom:4px}
.fm3-visit-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.fm3-visit-options label{position:relative;cursor:pointer;min-height:66px;padding:8px 5px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;border:1px solid #dfe5df;border-radius:12px;background:#fff;color:#667469;text-align:center;font-size:10px;line-height:1.3}
.fm3-visit-options label input{position:absolute;opacity:0;pointer-events:none}
.fm3-visit-options label:has(input:checked){border-color:#b3c8b8;background:#f5f8f5;color:#2c4b37}
.fm3-visit-options .fm3-glyph{width:17px;height:17px}
.fm3-visit-options b{font-weight:720}
.fm3-visit textarea{display:block;width:100%;height:73px;min-height:63px;resize:vertical;border:1px solid #e0e5e0;border-radius:11px;padding:10px 11px;margin-top:10px;color:#3e5143;font-size:12px}
.fm3-visit-actions{display:flex;justify-content:flex-end;margin-top:10px}
.fm3-visit-actions button{background:#2b4938;color:#fff;height:35px;padding:0 19px;border:0;border-radius:10px;font-size:12px;font-weight:760;cursor:pointer}
/* Entry shares original account action button style. */
.fm3-profile-explore{display:flex!important;align-items:center;justify-content:center;gap:7px}
.fm3-profile-explore .fm3-glyph{width:17px;height:17px}
.fm3-chat-explore{margin-left:auto;border:1px solid #e1e9e1;border-radius:9px;background:#fafcfa;padding:6px 9px;color:#46674e;font-size:11px;white-space:nowrap}
.fm3-explore-head{display:flex;align-items:center;gap:12px;border:1px solid #e5ede7;background:#f9fbfa;border-radius:13px;margin-top:14px;padding:12px}
.fm3-explore-avatar{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:15px;background:#e2f0e8;color:#2b7550;font-weight:800;font-size:19px}
.fm3-explore-head strong{font-size:14px}
.fm3-explore-head p{font-size:11px;color:#829083;margin:5px 0 0}
.fm3-explore-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}
.fm3-explore-stats div{display:flex;flex-direction:column;align-items:center;gap:4px;padding:11px 8px;border-radius:11px;border:1px solid #e7ece7}
.fm3-explore-stats b{font-size:21px;font-weight:800;color:#2d6446}
.fm3-explore-stats span{font-size:11px;color:#738375}
.fm3-explore-list{margin-top:10px}
.fm3-explore-entry{display:flex;gap:10px;align-items:center;border-bottom:1px solid #edf0ed;padding:10px 1px}
.fm3-explore-entry>span{width:33px;height:33px;display:grid;place-items:center;border-radius:10px;background:#f0f6f2;color:#477a57}
.fm3-explore-entry .fm3-glyph{width:18px;height:18px}
.fm3-explore-entry b,.fm3-explore-entry small{display:block}
.fm3-explore-entry b{font-size:12px}.fm3-explore-entry small{font-size:11px;color:#819081;margin-top:4px}
.fm3-explore-empty,.fm3-explore-footnote{font-size:11px;color:#859286;line-height:1.5}
.fm3-explore-footnote{margin-top:11px}
/* Native map-relative wave: collapse from broad ring, then radiate out. */
.fm3-wave{position:absolute;inset:0;z-index:455;pointer-events:none;overflow:hidden}
.fm3-wave i{display:block;position:absolute;left:50%;top:50%;width:520px;height:520px;border-radius:50%;border:3px solid rgba(38,133,84,.31);background:rgba(51,142,95,.09);opacity:0;transform:translate(-50%,-50%) scale(1)}
.fm3-wave i:nth-child(2){width:25px;height:25px}
.fm3-wave.play i:first-child{animation:fm3-collapse 1.9s ease-in-out forwards}
.fm3-wave.play i:nth-child(2){animation:fm3-expand 2.0s ease-out 1.73s forwards}
@keyframes fm3-collapse{0%{transform:translate(-50%,-50%) scale(1.4);opacity:.2}48%{opacity:.35}95%{transform:translate(-50%,-50%) scale(.02);opacity:.47}100%{transform:translate(-50%,-50%) scale(.02);opacity:0}}
@keyframes fm3-expand{0%{transform:translate(-50%,-50%) scale(1);opacity:.7}72%{opacity:.19}100%{transform:translate(-50%,-50%) scale(34);opacity:0}}
@media(max-width:900px){
 .pf-app.fm3-enabled .pf-filterbar{top:108px!important;right:9px!important}
 .pf-app.fm3-enabled .fm3-categories{top:155px}
 .pf-app.fm3-enabled .fm3-summary{top:199px}
 .pf-app.fm3-enabled #statusCard{top:155px}
}
@media(max-width:600px){
 .pf-app.fm3-enabled .fm3-layers{top:61px;left:9px;padding:3px}
 .fm3-layers button{height:30px;font-size:11px;padding:0 11px}
 .pf-app.fm3-enabled .pf-filterbar{top:106px!important;right:9px!important;max-width:calc(100vw - 18px)!important}
 .pf-app.fm3-enabled .pf-filterbar #radiusBtn,.pf-app.fm3-enabled .pf-filterbar #priceBtn,.pf-app.fm3-enabled .fm3-city-chip{height:34px;min-height:34px;font-size:11px!important;padding:0 9px!important}
 .pf-app.fm3-enabled .fm3-categories{left:9px;top:149px;max-width:calc(100vw - 18px)}
 .pf-app.fm3-enabled .fm3-summary{left:9px;top:188px;max-width:calc(100vw - 18px);min-height:32px;padding:7px 10px;font-size:11px}
 .pf-app.fm3-enabled #statusCard{top:149px;left:9px}
 .pf-app.fm3-enabled #relocateBtn{right:9px!important;bottom:max(203px,calc(env(safe-area-inset-bottom) + 195px))!important;width:40px!important;height:40px!important}
 .fm3-search-map-btn{right:9px;bottom:max(157px,calc(env(safe-area-inset-bottom) + 149px));width:40px;height:40px}
 .pf-app.fm3-enabled .leaflet-control-zoom{margin-right:9px!important;margin-bottom:78px!important}
 .fm3-bottom-nav{width:calc(100vw - 14px);bottom:max(7px,env(safe-area-inset-bottom));padding:5px;min-height:60px;border-radius:14px;gap:1px}
 .fm3-bottom-nav button{height:50px;font-size:10px;gap:4px}
 .fm3-bottom-nav button .fm3-glyph{width:18px;height:18px}
 .fm3-preview{min-width:185px;max-width:235px}
 .fm3-sheet{bottom:max(8px,env(safe-area-inset-bottom));max-height:74dvh}
 .fm3-visit{bottom:max(8px,env(safe-area-inset-bottom))}
}
@media(max-width:360px){.fm3-layers button{padding:0 9px}.fm3-bottom-nav button{font-size:9px}.pf-app.fm3-enabled .pf-filterbar #radiusBtn,.pf-app.fm3-enabled .pf-filterbar #priceBtn,.pf-app.fm3-enabled .fm3-city-chip{padding:0 7px!important;font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.fm3-wave.play i,.fm3-resource-pin.fm3-tap,.pf-marker.fm3-tap{animation-duration:.01ms!important}}

/* V3.1: tighter top layout and unified GPS/search control. Original site CSS untouched. */
.pf-app.fm3-enabled .fm3-layers{top:69px;left:12px}
.pf-app.fm3-enabled .pf-filterbar{top:69px!important;right:12px!important}
.pf-app.fm3-enabled .fm3-categories{top:115px;left:12px}
.pf-app.fm3-enabled .fm3-summary{top:154px;left:12px}
.pf-app.fm3-enabled #statusCard{top:115px}
.pf-app.fm3-enabled .fm3-city-chip{cursor:default!important;pointer-events:auto;user-select:text}
.pf-app.fm3-enabled #relocateBtn{position:static!important;inset:auto!important;display:grid!important;place-items:center;width:41px!important;height:41px!important;box-shadow:none!important;border:0!important;border-radius:0!important;background:#276e4a!important;color:#fff!important}
.fm3-location-tools{position:absolute;z-index:515;right:12px;bottom:max(161px,calc(env(safe-area-inset-bottom) + 153px));display:flex;flex-direction:column;align-items:stretch;width:41px;overflow:hidden;border-radius:13px;background:#fff;border:1px solid #e0e9e0;box-shadow:0 7px 20px rgba(25,48,30,.14)}
.fm3-location-tools .fm3-search-map-btn{position:static!important;inset:auto!important;width:41px;height:41px;box-shadow:none!important;border:0!important;border-radius:0!important;border-top:1px solid #e4eae4!important;background:#fff}
.fm3-location-tools #relocateBtn:hover{background:#215a3d!important}
.fm3-location-tools .fm3-search-map-btn:hover{background:#f3f7f4!important}
.fm3-resource-pin svg{overflow:visible}
.fm3-marker-shell:hover .fm3-resource-pin{transform:translateY(-5px) scale(1.08)}
/* Keep six category filters on screen whenever possible; never clip beneath side controls. */
.fm3-categories button{flex:none}
@media(max-width:920px){
 .pf-app.fm3-enabled .fm3-layers{top:63px;left:9px}
 .pf-app.fm3-enabled .pf-filterbar{top:63px!important;right:9px!important;max-width:none!important}
 .pf-app.fm3-enabled .fm3-categories{top:105px;left:9px}
 .pf-app.fm3-enabled .fm3-summary{top:143px;left:9px}
 .pf-app.fm3-enabled #statusCard{top:105px}
}
@media(max-width:600px){
 .pf-app.fm3-enabled .fm3-layers{top:61px;left:8px;padding:2px;gap:1px;border-radius:11px}
 .fm3-layers button{height:29px;padding:0 7px;font-size:10px;border-radius:9px;letter-spacing:0}
 .pf-app.fm3-enabled .pf-filterbar{top:61px!important;right:8px!important;max-width:none!important;gap:3px!important}
 .pf-app.fm3-enabled .pf-filterbar #radiusBtn,.pf-app.fm3-enabled .pf-filterbar #priceBtn,.pf-app.fm3-enabled .fm3-city-chip{height:33px!important;min-height:33px!important;min-width:0!important;padding:0 7px!important;font-size:10px!important;gap:3px!important;border-radius:10px!important}
 .pf-app.fm3-enabled .fm3-city-chip .fm3-glyph{width:12px;height:12px}
 .pf-app.fm3-enabled .fm3-city-chip span{max-width:56px;white-space:nowrap;text-overflow:ellipsis}
 .pf-app.fm3-enabled .fm3-categories{left:8px;top:103px;max-width:calc(100vw - 16px);padding:1px 0 3px;gap:4px}
 .fm3-categories button{padding:0 7px;height:29px;font-size:10px;gap:4px;border-radius:9px}
 .fm3-categories .fm3-glyph{width:12px;height:12px}
 .pf-app.fm3-enabled .fm3-summary{left:8px;top:139px;max-width:calc(100vw - 16px);min-height:30px;padding:6px 9px;font-size:10.5px}
 .pf-app.fm3-enabled #statusCard{left:8px;top:103px}
 .fm3-location-tools{right:9px;bottom:max(157px,calc(env(safe-area-inset-bottom) + 149px));width:40px}
 .pf-app.fm3-enabled #relocateBtn,.fm3-location-tools .fm3-search-map-btn{width:40px!important;height:40px!important}
 .pf-app.fm3-enabled .leaflet-control-zoom{margin-bottom:78px!important}
}
@media(max-width:350px){
 .pf-app.fm3-enabled .fm3-layers{left:6px;padding:1px}
 .fm3-layers button{padding:0 4px;font-size:9.5px}
 .pf-app.fm3-enabled .pf-filterbar{right:6px!important;gap:2px!important}
 .pf-app.fm3-enabled .pf-filterbar #radiusBtn,.pf-app.fm3-enabled .pf-filterbar #priceBtn,.pf-app.fm3-enabled .fm3-city-chip{padding:0 5px!important;font-size:9px!important}
 .pf-app.fm3-enabled .fm3-city-chip span{max-width:45px}
 .fm3-categories button{padding:0 5px;font-size:9.3px;gap:3px}
 .fm3-categories .fm3-glyph{width:11px;height:11px}
}
@media(max-width:350px){
 /* On narrow 320px devices keep every category reachable without cutting off the last tab. */
 .pf-app.fm3-enabled .fm3-categories{flex-wrap:wrap;overflow:visible;gap:3px 5px}
 .pf-app.fm3-enabled .fm3-summary{top:171px}
}


/* V3.2 focused UI polish; isolated additions only. Original FishMap CSS untouched. */
.pf-app.fm3-enabled .fm3-resource-pin,
.pf-app.fm3-enabled .fm3-resource-pin>svg{width:44px;height:53px}
/* Category-colored waterdrops with centered pictograms on pure-white discs. */
.pf-app.fm3-enabled .fm3-marker-shell:hover .fm3-resource-pin{transform:translateY(-5px) scale(1.075)}
/* The original unseen counter retains its behavior, but uses the warm accent. */
.pf-app.fm3-enabled #unseenBtn.pf-unseen{background:#fff1df!important;color:#a8722d!important;border:1px solid #f3dfc0!important}
.pf-app.fm3-enabled #unseenBtn.pf-unseen:not(:disabled):hover{background:#ffe6c5!important}
/* Compact, label-free navigation; tooltip and aria-label remain available. */
.pf-app.fm3-enabled .fm3-bottom-nav{height:49px!important;min-height:0!important;max-width:350px!important;width:min(350px,calc(100vw - 18px))!important;border-radius:15px!important;padding:4px!important;gap:4px!important}
.pf-app.fm3-enabled .fm3-bottom-nav button{height:39px!important;gap:0!important;border-radius:11px!important}
.pf-app.fm3-enabled .fm3-bottom-nav button span{display:none!important}
.pf-app.fm3-enabled .fm3-bottom-nav button .fm3-glyph{width:20px;height:20px}
/* Lighter single-line summary; no demo/visit totals in the banner. */
.pf-app.fm3-enabled .fm3-summary{min-height:29px!important;max-width:min(490px,calc(100vw - 18px));padding:5px 10px!important;font-size:11px!important;white-space:nowrap!important;line-height:1.35!important}
.pf-app.fm3-enabled .fm3-summary>*{white-space:nowrap}
/* The city badge and original 3/5km and price buttons are not reinvented. */
/* Match GPS/search size exactly to existing Leaflet zoom controls. */
.pf-app.fm3-enabled .fm3-location-tools{right:9px!important;bottom:max(130px,calc(env(safe-area-inset-bottom) + 123px))!important;width:36px!important;border-radius:12px!important}
.pf-app.fm3-enabled #relocateBtn,
.pf-app.fm3-enabled .fm3-location-tools .fm3-search-map-btn{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
.pf-app.fm3-enabled .fm3-location-tools .fm3-search-map-btn .fm3-glyph{width:17px;height:17px}
.pf-app.fm3-enabled .leaflet-control-zoom{margin-bottom:54px!important;margin-right:9px!important}
/* Larger search animation: broad circle collapses, then a ring radiates out,
 * repeating ONLY while geolocation and nearby-data fetching are in flight. */
.pf-app.fm3-enabled .fm3-wave{z-index:455}
.fm3-wave i{animation:none;opacity:0}
.fm3-wave.searching i:first-child{animation:fm32-collapse 3.6s ease-in-out infinite}
.fm3-wave.searching i:nth-child(2){animation:fm32-expand 3.6s ease-out infinite}
@keyframes fm32-collapse{0%{transform:translate(-50%,-50%) scale(1.65);opacity:.28}36%{transform:translate(-50%,-50%) scale(.04);opacity:.40}40%,100%{transform:translate(-50%,-50%) scale(.03);opacity:0}}
@keyframes fm32-expand{0%,38%{transform:translate(-50%,-50%) scale(.4);opacity:0}42%{transform:translate(-50%,-50%) scale(1);opacity:.65}88%{transform:translate(-50%,-50%) scale(33);opacity:0}100%{opacity:0}}
.fm3-wave.finishing i{animation:fm32-end .55s ease-out both}
@keyframes fm32-end{from{transform:translate(-50%,-50%) scale(.5);opacity:.25}to{transform:translate(-50%,-50%) scale(2);opacity:0}}
@media(max-width:760px){
 /* Same-row layer controls, fewer occupied map pixels. */
 .pf-app.fm3-enabled .fm3-layers{top:57px!important;left:8px!important;padding:2px!important;border-radius:10px!important}
 .pf-app.fm3-enabled .fm3-layers button{height:26px!important;padding:0 7px!important;font-size:10px!important;border-radius:8px!important}
 .pf-app.fm3-enabled .pf-filterbar{top:57px!important;right:8px!important;gap:3px!important}
 .pf-app.fm3-enabled .pf-filterbar #radiusBtn,
 .pf-app.fm3-enabled .pf-filterbar #priceBtn,
 .pf-app.fm3-enabled .fm3-city-chip{height:31px!important;min-height:31px!important;font-size:10px!important;padding:0 6px!important;border-radius:9px!important}
 .pf-app.fm3-enabled .fm3-categories{top:94px!important;left:8px!important;max-width:calc(100vw - 16px)!important;gap:4px!important;flex-wrap:nowrap!important;overflow:auto!important;padding:1px 0 2px!important}
 .pf-app.fm3-enabled .fm3-categories button{height:26px!important;font-size:10px!important;padding:0 6px!important;gap:3px!important;border-radius:8px!important}
 .pf-app.fm3-enabled .fm3-categories .fm3-glyph{width:12px;height:12px}
 .pf-app.fm3-enabled .fm3-summary{top:126px!important;left:8px!important;max-width:calc(100vw - 16px)!important;min-height:27px!important;padding:5px 8px!important;font-size:10px!important}
 .pf-app.fm3-enabled #statusCard{top:94px!important;left:8px!important;min-width:0!important;padding:6px 9px!important;border-radius:11px!important}
 .pf-app.fm3-enabled #statusCard .pf-status-meta{display:none!important}
 .pf-app.fm3-enabled #statusCard .pf-status-main{font-size:11px!important}
 .pf-app.fm3-enabled #statusCard .pf-unseen{min-height:22px;font-size:10px;padding:3px 6px}
 .pf-app.fm3-enabled .fm3-location-tools{right:9px!important;bottom:max(130px,calc(env(safe-area-inset-bottom) + 123px))!important}
 .pf-app.fm3-enabled .leaflet-control-zoom{margin-bottom:54px!important}
}
@media(max-width:370px){
 .pf-app.fm3-enabled .fm3-layers button{padding:0 5px!important;font-size:9.4px!important}
 .pf-app.fm3-enabled .pf-filterbar #radiusBtn,
 .pf-app.fm3-enabled .pf-filterbar #priceBtn,
 .pf-app.fm3-enabled .fm3-city-chip{padding:0 4px!important;font-size:9px!important}
 .pf-app.fm3-enabled .fm3-city-chip span{max-width:38px!important}
 .pf-app.fm3-enabled .fm3-categories{scrollbar-width:none!important}
}
@media(prefers-reduced-motion:reduce){
 .fm3-wave.searching i{animation-duration:5s!important}
}
/* On narrow phones all six categories remain visible in a single row. */
@media(max-width:370px){
 .pf-app.fm3-enabled .fm3-categories{gap:3px!important;overflow:visible!important}
 .pf-app.fm3-enabled .fm3-categories button{height:25px!important;padding:0 3px!important;font-size:9px!important;gap:2px!important;border-radius:7px!important}
 .pf-app.fm3-enabled .fm3-categories .fm3-glyph{width:10px!important;height:10px!important}
}

/* V3.3 — final focused polish: no changes to legacy app.css or marker styles. */
.pf-app.fm3-enabled .fm3-location-tools{
  bottom:max(134px,calc(env(safe-area-inset-bottom) + 127px))!important;
}
/* Exploration card: category hue, neutral surfaces and independent status
   colors. The website's green remains a brand accent, not every card color. */
.pf-app.fm3-enabled .fm3-explore-sheet{
  width:min(490px,calc(100vw - 20px));
  border-radius:18px;
  border:1px solid #e3e7e6;
  box-shadow:0 18px 52px rgba(30,43,48,.18);
}
.fm3-explore-sheet .fm3-sheet-head{align-items:center;padding-bottom:1px}
.fm3-explore-sheet .fm3-head-text h2{font-size:19px;letter-spacing:.1px;margin:0}
.fm3-explore-head{
  background:linear-gradient(112deg,#f7f8fc 0%,#fbfcfe 58%,#f9fafb 100%);
  border-color:#e5e8f0;
  border-radius:15px;
  padding:13px;
  gap:12px;
}
.fm3-explore-avatar{background:linear-gradient(145deg,#e8e4fc,#dcd9f3);color:#66529a;border-radius:14px;width:48px;height:48px}
.fm3-explore-head strong{color:#333b49;font-size:15px}
.fm3-explore-head p{color:#79818c}
.fm3-explore-stats{gap:9px;margin-top:11px}
.fm3-explore-stats>div{border-radius:13px;padding:12px 9px;border:1px solid #e4e9ef;gap:5px}
.fm3-explore-stats .fm3-stat-places{background:#f3f6fc;border-color:#e0e8f7}
.fm3-explore-stats .fm3-stat-confirmed{background:#fcf8ef;border-color:#f3e8d0}
.fm3-explore-stats .fm3-stat-places b{color:#5576ac}
.fm3-explore-stats .fm3-stat-confirmed b{color:#b68337}
.fm3-explore-stats span{color:#71808a}
.fm3-explore-list{margin-top:13px}
.fm3-explore-entry{gap:11px;padding:11px 4px;border-bottom-color:#edf0f2}
.fm3-explore-entry[data-fm3-category="book"]{--fm3-category-color:#087f8c;--fm3-category-bg:#e7f6f8}
.fm3-explore-entry[data-fm3-category="give"]{--fm3-category-color:#8765b0;--fm3-category-bg:#f4edfc}
.fm3-explore-entry[data-fm3-category="hygiene"]{--fm3-category-color:#c77e9b;--fm3-category-bg:#fff0f6}
.fm3-explore-entry[data-fm3-category="food"],
.fm3-explore-entry[data-fm3-category="food_bank"]{--fm3-category-color:#dd8b38;--fm3-category-bg:#fff5e6}
.fm3-explore-entry[data-fm3-category="seed"]{--fm3-category-color:#4b976c;--fm3-category-bg:#eaf6ee}
.fm3-explore-entry .fm3-history-icon{width:38px;height:38px;border-radius:12px;background:var(--fm3-category-bg,#eff2f5);color:var(--fm3-category-color,#687b8e);flex:none}
.fm3-explore-entry .fm3-history-icon .fm3-glyph{width:19px;height:19px}
.fm3-explore-entry .fm3-history-copy{flex:1;min-width:0}
.fm3-explore-entry .fm3-history-copy b{font-size:12.5px;color:#34413b}
.fm3-explore-entry .fm3-history-copy small{font-size:11px;color:#82918b;margin-top:4px}
.fm3-explore-entry .fm3-history-state{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#eaf5ed;color:#2f8c61;flex:none}
.fm3-explore-entry[data-fm3-status="closed"] .fm3-history-state,
.fm3-explore-entry[data-fm3-status="missing"] .fm3-history-state{background:#ffeff0;color:#d34f58}
.fm3-explore-entry .fm3-history-state .fm3-glyph{width:13px;height:13px}
.fm3-explore-footnote{color:#96a0a6;margin-top:12px;font-size:10.5px}
@media(max-width:600px){
 .pf-app.fm3-enabled .fm3-location-tools{bottom:max(134px,calc(env(safe-area-inset-bottom) + 127px))!important}
 .pf-app.fm3-enabled .fm3-explore-sheet{padding:14px 13px;max-height:76dvh}
 .fm3-explore-head{padding:11px}
 .fm3-explore-stats>div{padding:10px 7px}
}


/* ---------------------------------------------------------------
 * V3.4 compact map navigation and legacy modal preservation.
 * All rules scoped to .fm3-enabled; original app.css stays byte-identical.
 * --------------------------------------------------------------- */
/* Keep original radius/price/post/share/message event targets but hide their
   duplicated top bar. The V3 bottom dock invokes their native handlers. */
.pf-app.fm3-enabled .pf-filterbar{display:none!important}
.pf-app.fm3-enabled .fm3-city-chip{display:none!important}
/* Three tabs stay in original FishMap style, without a third top row. */
.pf-app.fm3-enabled .fm3-categories{gap:2px!important;max-width:min(540px,calc(100vw - 16px));padding:1px 0 2px!important}
.pf-app.fm3-enabled .fm3-categories button{gap:0!important;padding:0 8px!important;height:25px!important;font-size:10px!important;border-radius:8px!important}
.pf-app.fm3-enabled .fm3-categories button .fm3-glyph{display:none!important}
.pf-app.fm3-enabled .fm3-summary{top:147px!important}
.pf-app.fm3-enabled .fm3-categories{top:114px!important}
.pf-app.fm3-enabled #statusCard{top:114px!important}
/* Five slots: city + radius, price, publish, share, messages. */
.pf-app.fm3-enabled .fm3-bottom-nav{
 height:38px!important;min-height:38px!important;
 width:min(392px,calc(100vw - 14px))!important;max-width:none!important;
 bottom:max(6px,env(safe-area-inset-bottom))!important;
 gap:2px!important;padding:3px!important;border-radius:12px!important;
 box-shadow:0 4px 14px rgba(24,45,31,.12)!important;
}
.pf-app.fm3-enabled .fm3-bottom-nav button{
 flex:1 1 31px;min-width:0!important;height:30px!important;
 display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;
 border-radius:9px!important;padding:0 3px!important;gap:3px!important;
 font-size:10px!important;font-weight:750;white-space:nowrap;
}
.pf-app.fm3-enabled .fm3-bottom-nav button .fm3-glyph{width:16px!important;height:16px!important;flex:none}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-distance{flex:1.7 1 111px;gap:2px!important;color:#394f41}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-distance .fm3-glyph{width:13px!important;height:13px!important}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-city{display:inline!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:75px;font-size:10px}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-radius{display:inline!important;color:#315c43;font-weight:800;font-size:10px}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dot{display:inline!important;color:#8a9990}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-free{flex:1.08 1 67px;background:#fafbfa}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-free[aria-pressed="true"]{background:#eaf3ec;color:#266842}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-free .fm3-dock-free-text{display:inline!important;font-size:10px}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-free .fm3-glyph{width:12px!important;height:12px!important}
/* Two independent stacks with a real 1px vertical gap, no overlap. */
.pf-app.fm3-enabled .fm3-location-tools{
 bottom:max(123px,calc(env(safe-area-inset-bottom) + 116px))!important;
 width:36px!important;right:9px!important;
}
.pf-app.fm3-enabled .leaflet-control-zoom{margin-bottom:54px!important;margin-right:9px!important}
/* Native zoom's two anchors stay 34px. Give them 1px boundary gap from upper stack. */
.pf-app.fm3-enabled .fm3-resource-popup .leaflet-popup-content{font-size:12px!important}
/* Compact type hierarchy — native modal actions/contents preserved. */
.pf-app.fm3-enabled :is(.pf-sheet,.pf-detail,.fm3-sheet,.fm3-visit){font-size:12px!important}
.pf-app.fm3-enabled :is(.pf-sheet-head h2,.pf-detail-title,.fm3-head-text h2,.fm3-explore-sheet .fm3-head-text h2,.fm3-preview-name){font-size:14px!important;line-height:1.3!important}
.pf-app.fm3-enabled :is(.pf-sheet,.pf-detail,.fm3-sheet,.fm3-visit) :is(input,textarea,select,button:not(.pf-sheet-close):not(.pf-detail-close):not(.fm3-close),label,p,strong,b,a){font-size:clamp(10px,12px,14px)!important}
.pf-app.fm3-enabled :is(.pf-menu-item,.pf-account-row,.pf-list-card,.pf-empty,.pf-chat-title,.pf-chat-listing,.pf-msg,.pf-detail-summary,.fm3-detail-overview,.fm3-detail-footer){font-size:12px!important}
.pf-app.fm3-enabled .pf-sheet-head{padding:7px 0 9px!important;margin-bottom:8px!important}
.pf-app.fm3-enabled .pf-sheet-head h2{font-size:14px!important}
.pf-app.fm3-enabled :is(.pf-menu-item,.pf-account-actions .pf-secondary-btn){padding:8px 10px!important}
.pf-app.fm3-enabled .fm3-sheet{padding:13px!important;max-height:65dvh!important}
.pf-app.fm3-enabled .fm3-visit{padding:12px!important;max-height:55dvh!important}
.pf-app.fm3-enabled .fm3-explore-avatar{font-size:14px!important}
.pf-app.fm3-enabled .fm3-explore-stats b{font-size:14px!important}
/* Reapply the later, compact mobile behavior absent in the 2026-10-28 ZIP.
   Only height/scroll layout, not legacy business logic. */
@media(max-width:680px){
 .pf-app.fm3-enabled :is(#publishSheet,#messagesSheet,#myListingsSheet){
  top:auto!important;bottom:max(8px,env(safe-area-inset-bottom))!important;
  height:auto!important;min-height:0!important;overflow-y:auto!important;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:12px 14px 14px!important;border-radius:18px!important;
 }
 .pf-app.fm3-enabled #publishSheet{max-height:58dvh!important}
 .pf-app.fm3-enabled #messagesSheet{max-height:55dvh!important}
 .pf-app.fm3-enabled #myListingsSheet{max-height:52dvh!important}
 .pf-app.fm3-enabled :is(#publishSheet,#messagesSheet,#myListingsSheet) .pf-sheet-head{
  top:-12px!important;padding:3px 0 8px!important;margin-bottom:8px!important;
 }
 .pf-app.fm3-enabled #publishSheet .pf-form{gap:5px!important}
 .pf-app.fm3-enabled #publishSheet .pf-form textarea{min-height:60px!important}
 .pf-app.fm3-enabled #publishSheet .pf-image-upload-grid{grid-template-columns:repeat(3,74px)!important;gap:7px!important}
 .pf-app.fm3-enabled #publishSheet :is(.pf-image-add,.pf-image-preview){width:74px!important;height:74px!important;aspect-ratio:1!important}
 .pf-app.fm3-enabled #publishSheet .pf-publish-location{padding:7px 9px!important;margin:2px 0!important}
 .pf-app.fm3-enabled #messagesSheet #chatMessages{min-height:80px!important;max-height:26dvh!important;overflow-y:auto!important}
 .pf-app.fm3-enabled #messagesSheet .pf-chat-compose{bottom:-14px!important}
 .pf-app.fm3-enabled #myListingsSheet #myListingsList{min-height:0!important}
 .pf-app.fm3-enabled :is(#savedSheet,#menuSheet,#accountSheet){max-height:58dvh!important;overflow-y:auto!important}
 .pf-app.fm3-enabled #detailPanel{height:min(54dvh,490px)!important;max-height:54dvh!important}
 .pf-app.fm3-enabled #detailPanel .pf-detail-image-wrap{height:125px!important}
 .pf-app.fm3-enabled #detailPanel .pf-detail-scroll{height:calc(100% - 125px)!important;overflow-y:auto!important}
}
@media(max-width:600px){
 .pf-app.fm3-enabled .fm3-categories{top:95px!important;left:8px!important;max-width:calc(100vw - 16px)!important;gap:2px!important;flex-wrap:nowrap!important;overflow-x:auto!important}
 .pf-app.fm3-enabled .fm3-categories button{padding:0 7px!important;height:24px!important;font-size:10px!important;gap:0!important}
 .pf-app.fm3-enabled .fm3-summary{top:126px!important;left:8px!important}
 .pf-app.fm3-enabled #statusCard{top:95px!important;left:8px!important}
 .pf-app.fm3-enabled .fm3-location-tools{bottom:max(123px,calc(env(safe-area-inset-bottom) + 116px))!important}
 .pf-app.fm3-enabled .leaflet-control-zoom{margin-bottom:54px!important}
}
@media(max-width:370px){
 .pf-app.fm3-enabled .fm3-categories{gap:2px!important;overflow-x:auto!important;flex-wrap:nowrap!important}
 .pf-app.fm3-enabled .fm3-categories button{padding:0 5px!important;font-size:10px!important}
 .pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-city{max-width:50px}
 .pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-distance{flex-basis:90px}
 .pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-free{flex-basis:59px}
}
@media(max-width:680px) and (max-height:560px){
 .pf-app.fm3-enabled #publishSheet{max-height:64dvh!important}
 .pf-app.fm3-enabled #messagesSheet{max-height:60dvh!important}
 .pf-app.fm3-enabled #myListingsSheet{max-height:56dvh!important}
}


/* V3.5: narrow, equal-width dock, measured tool separation, compact modals.
   All rules scoped to the V3 opt-in container; app.css is unchanged. */
.pf-app.fm3-enabled .fm3-bottom-nav{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:center!important;
  width:min(360px,calc(100vw - 16px))!important;
  max-width:none!important;
  height:38px!important;min-height:38px!important;
  padding:3px!important;gap:2px!important;
  border-radius:12px!important;
}
.pf-app.fm3-enabled .fm3-bottom-nav button,
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-distance,
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-free{
  flex:none!important;
  width:100%!important;min-width:0!important;
  height:30px!important;max-height:30px!important;
  padding:0 1px!important;gap:1px!important;
  display:flex!important;flex-direction:row!important;
  align-items:center!important;justify-content:center!important;
  font-size:12px!important;line-height:1!important;font-weight:700!important;
  border-radius:9px!important;white-space:nowrap!important;
}
.pf-app.fm3-enabled .fm3-bottom-nav button .fm3-glyph{
  width:12px!important;height:12px!important;flex:none!important;
}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-distance .fm3-glyph,
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-free .fm3-glyph{display:none!important}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-city{
  font-size:12px!important;font-weight:700!important;
  display:inline-block!important;flex:0 1 auto!important;
  max-width:38px!important;min-width:0!important;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-radius,
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-free .fm3-dock-free-text,
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dot{
  font-size:12px!important;font-weight:700!important;display:inline!important;
  white-space:nowrap;flex:none;
}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dot{color:#9ba49c}
/* Prevent older responsive flex-basis declarations from stretching the first two slots. */
@media(max-width:370px){
  .pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-distance,
  .pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-free{flex-basis:auto!important}
  .pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-city{max-width:29px!important}
}
/* Dynamic right/bottom coordinates are applied by alignLocationTools() after
   measuring Leaflet's actual zoom control. This is a fallback only. */
.pf-app.fm3-enabled .fm3-location-tools{width:36px!important}
/* Visit count badge is moved one SVG unit left in markerHtml(). */
/* Compact content hierarchy in original and V3 panels. No resizing of control icons. */
.pf-app.fm3-enabled :is(
  .pf-sheet, .pf-detail, .fm3-sheet, .fm3-visit, .fm3-resource-popup
){font-size:10px!important;line-height:1.45!important}
.pf-app.fm3-enabled :is(
  .pf-sheet, .pf-detail, .fm3-sheet, .fm3-visit, .fm3-resource-popup
) :is(p,span,small,label,em,li,dd,dt,input,textarea,select,strong,b,a){font-size:10px!important;line-height:1.45!important}
.pf-app.fm3-enabled :is(
  .pf-sheet, .pf-detail, .fm3-sheet, .fm3-visit, .fm3-resource-popup
) :is(h1,h2,h3,h4,.pf-detail-title,.pf-sheet-head h2,.fm3-head-text h2,.fm3-preview-name){font-size:12px!important;line-height:1.35!important}
.pf-app.fm3-enabled :is(
  .pf-sheet, .pf-detail, .fm3-sheet, .fm3-visit, .fm3-resource-popup
) button,
.pf-app.fm3-enabled :is(.pf-menu-item,.pf-account-actions .pf-secondary-btn,.pf-account-settings .pf-secondary-btn){font-size:12px!important;line-height:1.25!important}
/* Separate top-level popup typography: account and menu content have smaller default text,
   while their clickable rows keep the requested 12px. */
.pf-app.fm3-enabled :is(.pf-menu-list,.pf-account-row,.pf-chat-messages,.pf-list-card,.pf-empty,.pf-msg,
  .pf-chat-title,.pf-chat-listing,.pf-detail-summary,.fm3-detail-overview,.fm3-detail-footer){font-size:10px!important;line-height:1.45!important}
.pf-app.fm3-enabled .pf-sheet-head h2,
.pf-app.fm3-enabled .pf-detail-title,
.pf-app.fm3-enabled .fm3-head-text h2,
.pf-app.fm3-enabled .fm3-explore-sheet .fm3-head-text h2,
.pf-app.fm3-enabled .fm3-preview-name{font-size:12px!important}
.pf-app.fm3-enabled .pf-menu-item,
.pf-app.fm3-enabled .pf-account-settings button{font-size:12px!important}
.pf-app.fm3-enabled :is(.fm3-preview-actions button,.fm3-visit button,.fm3-sheet button){font-size:12px!important}

@media(min-width:371px){
  .pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-city{max-width:none!important;letter-spacing:-.35px}
  .pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-radius{letter-spacing:-.35px}
}
.pf-app.fm3-enabled :is(.pf-sheet,.pf-detail,.fm3-sheet,.fm3-visit,.fm3-resource-popup) button :is(span,strong,b,small){font-size:12px!important;line-height:1.25!important}
/* Legacy V3.4 used a high-specificity :is(...button:not(...)) rule; ensure
   the 10px content / 12px action hierarchy is not accidentally overridden. */
.pf-app.fm3-enabled :is(#publishSheet,#messagesSheet,#savedSheet,#myListingsSheet,#accountSheet,#menuSheet,#authSheet,#detailPanel,#fm3ResourceSheet,#fm3VisitSheet,#fm3ExploreSheet) :is(p,small,label,input,textarea,select,span,strong,b,a,li){font-size:10px!important}
.pf-app.fm3-enabled :is(#publishSheet,#messagesSheet,#savedSheet,#myListingsSheet,#accountSheet,#menuSheet,#authSheet,#detailPanel,#fm3ResourceSheet,#fm3VisitSheet,#fm3ExploreSheet) :is(h1,h2,h3,h4){font-size:12px!important}
.pf-app.fm3-enabled :is(#publishSheet,#messagesSheet,#savedSheet,#myListingsSheet,#accountSheet,#menuSheet,#authSheet,#detailPanel,#fm3ResourceSheet,#fm3VisitSheet,#fm3ExploreSheet) button,
.pf-app.fm3-enabled :is(#publishSheet,#messagesSheet,#savedSheet,#myListingsSheet,#accountSheet,#menuSheet,#authSheet,#detailPanel,#fm3ResourceSheet,#fm3VisitSheet,#fm3ExploreSheet) button :is(span,strong,b,small){font-size:12px!important}


/* V3.6 — UI typography correction: readable icons, compact but legible fields.
   The old V3.5 blanket 10px rule made account names and primary controls tiny.
   These deliberate per-component overrides restore hierarchy without touching app.css. */

/* Three icon-only actions are visually readable (the 38px bar itself is unchanged). */
.pf-app.fm3-enabled .fm3-bottom-nav button[data-fm3-action="publish"] .fm3-glyph,
.pf-app.fm3-enabled .fm3-bottom-nav button[data-fm3-action="share"] .fm3-glyph,
.pf-app.fm3-enabled .fm3-bottom-nav button[data-fm3-action="messages"] .fm3-glyph{
  width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;
  stroke-width:1.8;
}
.pf-app.fm3-enabled .fm3-bottom-nav button[data-fm3-action="publish"],
.pf-app.fm3-enabled .fm3-bottom-nav button[data-fm3-action="share"],
.pf-app.fm3-enabled .fm3-bottom-nav button[data-fm3-action="messages"]{
  min-width:0!important;min-height:30px!important;
}

/* Publish: keep a small 12px title, with readable 11px field labels and content. */
.pf-app.fm3-enabled #publishSheet .pf-sheet-head h2{font-size:12px!important;line-height:1.4!important;font-weight:780!important}
.pf-app.fm3-enabled #publishSheet :is(
  .pf-form label,.pf-field label,.pf-upload-heading label,
  .pf-upload-remaining,.pf-upload-note,.pf-form-note,.pf-publish-location,
  #imageRemaining,#publishTitle,#publishPrice,#publishDescription,#publishKind,
  #publishNickname,.pf-field-hint
){font-size:11px!important;line-height:1.5!important}
.pf-app.fm3-enabled #publishSheet :is(input,textarea,select){font-size:11px!important;line-height:1.5!important}
.pf-app.fm3-enabled #publishSheet :is(input,textarea)::placeholder{font-size:11px!important;opacity:.85}
.pf-app.fm3-enabled #publishSheet :is(button,button span,button strong){font-size:12px!important;line-height:1.25!important}
/* The photo-upload plus is an icon and should not become a 12px glyph. */
.pf-app.fm3-enabled #publishSheet .pf-image-add-icon{font-size:19px!important;line-height:1!important}
.pf-app.fm3-enabled #publishSheet .pf-sheet-close{font-size:20px!important}

/* Location search is a task: 12px header/actions and 12px input, with compact spacing. */
.pf-app.fm3-enabled #manualCard .pf-manual-title{font-size:12px!important;line-height:1.4!important}
.pf-app.fm3-enabled #manualCard :is(.pf-manual-hint,.pf-form-note){font-size:11px!important;line-height:1.5!important}
.pf-app.fm3-enabled #manualCard .pf-manual-row input{font-size:12px!important;line-height:1.4!important}
.pf-app.fm3-enabled #manualCard :is(.pf-manual-row button,.pf-gps-choice){font-size:12px!important;line-height:1.3!important}
.pf-app.fm3-enabled #manualCard .pf-manual-close{font-size:19px!important}
/* On-map confirmation popup: do not inherit the 10px dialog body rule. */
.pf-app.fm3-enabled .pf-switch-popup .pf-switch-title,
.pf-app.fm3-enabled .pf-switch-popup .pf-switch-title :is(span,strong,b){font-size:12px!important;line-height:1.4!important}
.pf-app.fm3-enabled .pf-switch-popup .pf-switch-hint{font-size:11px!important;line-height:1.45!important}
.pf-app.fm3-enabled .pf-switch-popup .pf-switch-actions button,
.pf-app.fm3-enabled .pf-switch-popup .pf-switch-actions button :is(span,strong){font-size:12px!important;line-height:1.25!important}

/* Account: restore visual hierarchy (name is primary, subtitle is secondary). */
.pf-app.fm3-enabled #accountSheet .pf-sheet-head h2{font-size:12px!important;line-height:1.4!important}
.pf-app.fm3-enabled #accountSheet .pf-profile-heading #profileDisplayName,
.pf-app.fm3-enabled #accountSheet #profileDisplayName{
  font-size:16px!important;line-height:1.3!important;font-weight:800!important;
  letter-spacing:-.15px!important;color:#23352b!important;
}
.pf-app.fm3-enabled #accountSheet .pf-profile-heading>span{
  font-size:11px!important;line-height:1.45!important;color:#87948b!important;
}
.pf-app.fm3-enabled #accountSheet .pf-profile-avatar{font-size:18px!important;font-weight:760!important}
.pf-app.fm3-enabled #accountSheet .pf-account-row :is(span,strong){font-size:11px!important;line-height:1.45!important}
.pf-app.fm3-enabled #accountSheet #accountNicknameValue{font-size:12px!important;font-weight:750!important}
.pf-app.fm3-enabled #accountSheet :is(.pf-auth-welcome h3){font-size:13px!important;line-height:1.35!important}
.pf-app.fm3-enabled #accountSheet :is(.pf-auth-welcome p,.pf-form-note,.pf-form label){font-size:11px!important;line-height:1.5!important}
.pf-app.fm3-enabled #accountSheet :is(input,textarea,select){font-size:12px!important}
.pf-app.fm3-enabled #accountSheet :is(button,button span){font-size:12px!important;line-height:1.3!important}
.pf-app.fm3-enabled #accountSheet .pf-sheet-close{font-size:20px!important}

/* Other windows: 12px titles and buttons, 11px user content, 10px timestamps/hints.
   Avoid forcing text nested inside navigation controls to 10px. */
.pf-app.fm3-enabled :is(#messagesSheet,#savedSheet,#myListingsSheet,#menuSheet,#shareSheet,#fm3InfoSheet,#fm3VisitSheet,#fm3ExploreSheet) :is(.pf-sheet-head h2,h2,.fm3-head-text h2){font-size:12px!important;line-height:1.4!important}
.pf-app.fm3-enabled :is(#messagesSheet,#savedSheet,#myListingsSheet,#menuSheet,#shareSheet,#fm3InfoSheet,#fm3VisitSheet,#fm3ExploreSheet) :is(
  .pf-msg,.pf-chat-title,.pf-chat-listing,.pf-list-card-title,.pf-menu-item,
  .pf-share-intro,.pf-detail-summary,.fm3-preview-name,.fm3-detail-overview
){font-size:11px!important;line-height:1.5!important}
.pf-app.fm3-enabled :is(#messagesSheet,#savedSheet,#myListingsSheet,#menuSheet,#shareSheet,#fm3InfoSheet,#fm3VisitSheet,#fm3ExploreSheet) :is(
  .pf-msg-time,.pf-msg-name,.pf-list-card-meta,.pf-form-note,.fm3-detail-footer
){font-size:10px!important;line-height:1.45!important}
.pf-app.fm3-enabled :is(#messagesSheet,#savedSheet,#myListingsSheet,#menuSheet,#shareSheet,#fm3InfoSheet,#fm3VisitSheet,#fm3ExploreSheet) button,
.pf-app.fm3-enabled :is(#messagesSheet,#savedSheet,#myListingsSheet,#menuSheet,#shareSheet,#fm3InfoSheet,#fm3VisitSheet,#fm3ExploreSheet) button :is(span,strong,b){font-size:12px!important;line-height:1.3!important}
.pf-app.fm3-enabled :is(#messagesSheet,#savedSheet,#myListingsSheet,#menuSheet,#shareSheet,#fm3InfoSheet,#fm3VisitSheet,#fm3ExploreSheet) .pf-sheet-close{font-size:20px!important}
/* Keep chat input legible, without enlarging the chat sheet itself. */
.pf-app.fm3-enabled #messagesSheet :is(input,textarea){font-size:12px!important;line-height:1.4!important}

/* Prevent publishing on mobile from unexpectedly expanding its container. */
@media(max-width:680px){
 .pf-app.fm3-enabled #publishSheet{overflow-y:auto!important;overscroll-behavior:contain!important}
}


/* V3.7 — city lives in the top information line; the five-slot dock stays balanced.
   Legacy statusText and unseenBtn are retained, only their layout is changed. */
.pf-app.fm3-enabled #statusCard .pf-status-line{
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  gap:7px!important;min-width:0!important;
}
.pf-app.fm3-enabled #statusCard .fm3-status-text{
  display:inline-flex;align-items:center;min-width:0;flex:0 1 auto;
  gap:0;color:#455c4d;font-size:10px;font-weight:550;line-height:1.35;
}
.pf-app.fm3-enabled #statusCard #statusText{
  display:inline!important;font-size:10px!important;color:#455c4d!important;
  font-weight:550!important;line-height:1.35!important;white-space:normal;
}
.pf-app.fm3-enabled #statusCard .fm3-status-city,
.pf-app.fm3-enabled .fm3-summary .fm3-status-city{
  display:inline!important;color:#455c4d!important;
  font-size:10px!important;font-weight:550!important;white-space:nowrap;flex:none;
}
.pf-app.fm3-enabled #statusCard .fm3-status-separator,
.pf-app.fm3-enabled .fm3-summary .fm3-status-separator{
  display:inline!important;flex:none;font-size:10px!important;font-weight:550!important;
  color:#859286!important;white-space:pre;
}
/* Only typography changes for the existing amber unseen-count badge. */
.pf-app.fm3-enabled #statusCard #unseenBtn.pf-unseen{
  font-size:10px!important;font-weight:550!important;
}
/* The former second line was only the city; it is now shown before statusText. */
.pf-app.fm3-enabled #statusCard .pf-status-meta{display:none!important}
.pf-app.fm3-enabled #statusCard{width:max-content!important;max-width:calc(100vw - 16px)!important;min-width:0!important}
/* Personal & resource status use identical type and color. */
.pf-app.fm3-enabled .fm3-summary{
  display:flex;align-items:center;gap:0!important;
  font-size:10px!important;font-weight:550!important;color:#455c4d!important;
  line-height:1.35!important;min-height:28px!important;
}
.pf-app.fm3-enabled .fm3-summary span,
.pf-app.fm3-enabled .fm3-summary b{font-size:10px!important;font-weight:550!important;line-height:1.35!important}
.pf-app.fm3-enabled .fm3-summary b{font-weight:550!important;color:#234b35!important}
/* Remove city text from the bottom dock, leaving only a 3km/5km toggle. */
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-city,
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dot{display:none!important}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-dock-radius{
  display:inline!important;font-size:12px!important;font-weight:750!important;
  line-height:1!important;color:#435b4d!important;
}
/* Equal columns are retained from V3.5, regardless of localization. */
.pf-app.fm3-enabled .fm3-bottom-nav{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:center!important;gap:2px!important;
}
.pf-app.fm3-enabled .fm3-bottom-nav>button{
  width:100%!important;min-width:0!important;flex:none!important;
  justify-content:center!important;
}
@media(max-width:600px){
  .pf-app.fm3-enabled #statusCard .pf-status-line{gap:5px!important}
  .pf-app.fm3-enabled #statusCard{padding:5px 8px!important}
  .pf-app.fm3-enabled .fm3-summary{padding:5px 8px!important}
}


/* V3.7.2: The exact, high-specificity V3.7 declarations above now own
   font-size (10px) and font-weight (550) for both status bars and their
   nested city, message and number. No universal selector is needed. */

/* 3.0.1 integration fix: reflect the canonical app.js unread badge on V3 dock.
   Override the V3 icon-only span hiding rule without changing dock geometry. */
.pf-app.fm3-enabled .fm3-bottom-nav button[data-fm3-action="messages"]{
  position:relative!important;
  overflow:visible!important;
}
.pf-app.fm3-enabled .fm3-bottom-nav button[data-fm3-action="messages"] .fm3-unread-badge{
  position:absolute;
  top:-3px;
  right:5px;
  z-index:2;
  box-sizing:border-box;
  min-width:17px;
  height:17px;
  padding:0 3px;
  border:1px solid #fff;
  border-radius:999px;
  background:#e34d55;
  color:#fff;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  font:700 10px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important;
  pointer-events:none;
}
.pf-app.fm3-enabled .fm3-bottom-nav button[data-fm3-action="messages"] .fm3-unread-badge[hidden]{
  display:none!important;
}

/* V3.0.1 compact production-style dock and matching status banners. */
.pf-app.fm3-enabled .fm3-bottom-nav{
  box-sizing:border-box!important;
  width:min(280px,calc(100vw - 40px))!important;max-width:280px!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:2px!important;padding:3px!important;border-radius:999px!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid rgba(227,232,226,.9)!important;
  box-shadow:0 7px 24px rgba(24,41,29,.13)!important;
}
.pf-app.fm3-enabled .fm3-bottom-nav>button{
  box-sizing:border-box!important;border-radius:999px!important;
  background:#f5f7f4!important;color:#39443c!important;
}
.pf-app.fm3-enabled .fm3-bottom-nav>button[data-fm3-action="publish"]{
  background:#254b35!important;color:#fff!important;
}
.pf-app.fm3-enabled .fm3-bottom-nav>button[data-fm3-action="publish"] .fm3-glyph{color:#fff!important}
.pf-app.fm3-enabled .fm3-bottom-nav>button[data-fm3-action="share"]{color:#234d36!important}
.pf-app.fm3-enabled .fm3-bottom-nav>button:hover{filter:brightness(.96)}
.pf-app.fm3-enabled #statusCard,
.pf-app.fm3-enabled .fm3-summary{
  box-sizing:border-box!important;height:28px!important;min-height:28px!important;
  padding:3px 8px!important;border-radius:11px!important;
}
.pf-app.fm3-enabled #statusCard:not(.pf-hidden){display:flex!important;align-items:center!important}
.pf-app.fm3-enabled #statusCard #unseenBtn.pf-unseen{
  box-sizing:border-box!important;height:20px!important;min-height:20px!important;padding:2px 6px!important;
}

/* Equal-width dock cells, with a pop-up price selector anchored above cell two. */
.pf-app.fm3-enabled .fm3-bottom-nav{overflow:visible!important}
.pf-app.fm3-enabled .fm3-bottom-nav>button,
.pf-app.fm3-enabled .fm3-bottom-nav>button.fm3-dock-distance,
.pf-app.fm3-enabled .fm3-bottom-nav>button.fm3-dock-free{border-radius:inherit!important}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-price-options{
 position:absolute;bottom:calc(100% + 6px);left:20%;z-index:3;
 display:flex;flex-direction:column;gap:3px;padding:4px;min-width:86px;
 box-sizing:border-box;background:rgba(255,255,255,.98);border:1px solid rgba(227,232,226,.9);
 border-radius:16px;box-shadow:0 7px 24px rgba(24,41,29,.15);
}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-price-options[hidden]{display:none!important}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-price-options>button{
 width:100%!important;min-height:30px!important;border-radius:999px!important;
 background:#f5f7f4;color:#39443c;white-space:nowrap;
}
.pf-app.fm3-enabled .fm3-bottom-nav .fm3-price-options>button[aria-checked="true"]{
 background:#254b35;color:white;
}
