/* Calm controls, readable cards and stable panel headers on both layouts. */
.mapUtilityBar .communityStats>span[hidden],.memberGradeBar[hidden],#openOperatorTools[hidden]{display:none!important}
.mapUtilityBar .communityStats:not(:has(>span:not([hidden]))):not(:has(.mapWeather:not([hidden]))){display:none!important}
.communityStats{gap:10px!important}
.communityStats>span+span{margin-left:0!important;padding-left:0!important}
.communityStats>span::before{display:none!important}
.browseTools{position:absolute;top:10px;left:14px;right:14px;z-index:15;max-width:700px;pointer-events:none}
.browseTools button,.browseTools select{pointer-events:auto;font-family:inherit;cursor:pointer}
.browseFilterButtons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.browseFilterButtons label{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:52px;padding:5px 10px;border:1px solid #d7e2df;border-radius:12px;background:#fff;color:#344a45;box-shadow:0 2px 8px #2146380c;pointer-events:auto;box-sizing:border-box}
.browseFilterButtons small{grid-column:1/-1;font-size:11px;color:#73867e;font-weight:500}
.browseFilterButtons select{width:100%;min-width:0;padding:3px 0;margin:0;border:0;border-radius:0;background:transparent;color:inherit;font-size:14px;font-weight:600;text-overflow:ellipsis;line-height:1.4}
.browseFilterButtons .isSet{border-color:#a7c8be;background:#f5faf8}
.browseQuickFilters{padding:6px 12px 8px;background:#fff;border-bottom:1px solid #e3ebe7;gap:5px}
.browseQuickFilters label{min-height:43px;padding:3px 7px;border-radius:8px;box-shadow:none}
.browseQuickFilters select{font-family:inherit;font-size:12px;cursor:pointer}
.browseQuickFilters :focus-visible{outline:2px solid #458e7d;outline-offset:2px}
.operatorOptions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;padding:4px 12px;border-bottom:1px solid #e3ebe7;background:#fff}
.operatorOptions button{font:inherit;font-size:12px;color:#365b4a;background:#f4f7f5;border:1px solid #d5e1dc;border-radius:8px;min-height:36px;padding:5px 10px;white-space:nowrap;cursor:pointer}
.operatorOptions #adminBtn::after{content:none}
.operatorOptions button:focus-visible{outline:2px solid #458e7d;outline-offset:2px}
.detailReviewLink{border:0;background:none;padding:4px 0;color:#60788a;font-family:inherit;cursor:pointer;text-align:left;min-height:28px}
.browseResultBar{display:flex;align-items:center;gap:7px;margin-top:0;font-size:12px}
.browseResultBar button{border:1px solid #d5e1dc;border-radius:20px;background:#fff;color:#2e5145;min-height:36px;padding:6px 13px;font-weight:600}
#browseConditions{max-width:50%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#ffffffed;border-radius:8px;padding:4px 6px}
#browseConditions:empty{display:none}
#browseClear{font-size:11px;padding:4px 10px}
.browseFilterDialog{padding:0!important;width:min(560px,calc(100vw - 24px));max-height:85dvh;border:1px solid #dce6e1;border-radius:20px;color:#253a32;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
.browseFilterDialog::backdrop{background:#18312955}
.browseDialogHead{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 12px;background:#fff;border-bottom:1px solid #e8eeeb}
.browseDialogHead h2{font-size:20px;margin:0 0 5px}.browseDialogHead p{font-size:12px;color:#6e8179;margin:0}
.browseDialogHead button{flex:none;width:44px;height:44px;border:0;border-radius:50%;font-size:27px;background:#f1f5f3;color:#395548}
.browseFields{display:grid;grid-template-columns:1fr 1fr;gap:17px 14px;padding:20px}
.browseFields label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650;min-width:0}
.browseFields select,.browseFields input{width:100%;min-width:0;box-sizing:border-box;min-height:46px;margin:0;padding:10px;border:1px solid #ccdcd5;border-radius:10px;background:#fff;font-family:inherit;font-size:15px;font-weight:400;line-height:1.5;color:#243c31}
.browseFields select:disabled{background:#f5f7f6;color:#9aa9a1}
.browseWide{grid-column:1/-1}.browseFields [hidden]{display:none}
#browseNearbyNote{font-size:12px;color:#61796d;margin:0;line-height:1.5}
.browseDialogFoot{position:sticky;bottom:0;background:#fff;border-top:1px solid #e5eee9;display:grid;grid-template-columns:1fr 2fr;gap:8px;padding:14px 20px max(14px,env(safe-area-inset-bottom))}
.browseDialogFoot button{min-height:46px;white-space:nowrap;border-radius:10px;border:1px solid #d7e3dc;background:#fff;color:#365c4a;font-family:inherit;font-weight:600;font-size:14px;line-height:1.4}
#browseApply{background:#247f78;border-color:#247f78;color:white}
#browsePreview{grid-column:1/-1;font-size:12px;line-height:1.5;color:#6b7e75;margin:0}
.browseTools :focus-visible,.browseListTabs :focus-visible,.mapWeather:focus-visible,.weatherDialog :focus-visible,.browseFilterDialog :focus-visible{outline:3px solid #458e7d;outline-offset:2px}
#businessSide{height:44%!important;max-height:calc(100% - 14px)!important;border-radius:18px 18px 0 0!important;background:#fff;scroll-behavior:auto;overflow-anchor:none}
#businessSide.menuSized{height:var(--menu-height)!important;max-height:calc(100% - 14px)!important}
#businessSide>.menuResizeGrip{height:18px;min-height:18px;--list-header-grip:18px}
#businessSide{--list-header-grip:18px;--list-head-height:52px;scroll-padding-top:120px}
#businessSide>.mobileSideHead{height:var(--list-head-height);min-height:var(--list-head-height);box-sizing:border-box;padding:0 12px 6px;gap:6px}
#businessSide .mobileSideHead strong{font-size:16px;flex:1}
#browseListCount{margin-left:6px;font-size:12px;font-weight:500;color:#6d8177}
#businessSide .mobileSideHead button{min-height:40px;height:40px}
#businessSide .browseListFilters{min-width:52px!important;width:auto!important;flex:none;white-space:nowrap;border:1px solid #d3e0d9;background:white;border-radius:9px;color:#365b4a;font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;padding:6px 10px}
#businessSide #mobileFilterToggle{margin:0;font-size:11px;min-width:36px;padding:4px 6px}
#businessSide>.browseListTabs{position:sticky;top:calc(var(--list-header-grip) + var(--list-head-height));z-index:10;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0;padding:0 12px 8px;background:#fff;border-bottom:1px solid #e3ebe7}
.browseListTabs button{min-height:40px;padding:6px 4px;border:0;border-radius:9px;background:#f4f6f5;font-family:inherit;font-size:13px;line-height:1.4;font-weight:600;color:#65786f;white-space:nowrap;cursor:pointer}
.browseListTabs button.active{background:#e5f2ee;color:#21685a;box-shadow:inset 0 0 0 1px #a9cebf}
#businessSide .card{padding:14px 12px;margin:0;border:0;border-bottom:1px solid #e6ede9;border-radius:0;background:#fff;box-shadow:none}
#businessSide .card.active{background:#eef7f3}
#businessSide .name{font-size:16px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}
#businessSide .reviewNameHint{display:none}
#businessSide .businessRegion{font-size:12px;margin:5px 0}
#businessSide .cardAside{min-width:75px}
#businessSide .rating{font-size:21px}
#businessSide .meta{font-size:12px;line-height:1.5;margin-top:7px}
#businessSide .badge{font-size:11px}.side .cardReviewLink{font-size:11px}
#detail.show{z-index:16;overflow-anchor:none;scroll-behavior:auto;border-radius:18px;box-shadow:0 5px 24px #183d3524}
#detail{--detail-header-inset:6px;--detail-header-grip:12px;padding-top:var(--detail-header-inset)!important;scroll-padding-top:90px}
#detail.show:not(.detailResized){max-height:calc(100% - max(24px,calc(env(safe-area-inset-bottom) + 12px)) - 14px)!important}
#detail .detailHeader{padding-bottom:4px}
#detail>.detailResizeHandle{height:var(--detail-header-grip);min-height:var(--detail-header-grip)}
#detail .detailHeader h2{font-size:20px;line-height:1.3;margin:0}
#detail .detailReviewLink{min-height:24px;padding:2px 0;margin-top:0}
#detail .detailHeader .detailClose{width:44px;height:44px;flex:none;border:0;background:#f2f6f4;border-radius:50%}
.reviewRecovery{margin:10px 0;padding:10px 12px;border:1px solid #ceddd4;border-radius:10px;background:#f5faf7;font-size:12px;line-height:1.6}
.reviewRecovery button{min-height:38px;padding:5px 10px;border:1px solid #bbd3c4;border-radius:8px;color:#276647;background:#fff;margin-top:5px}
.weatherLayer{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden;contain:strict}
.weatherLayer i{position:absolute;top:-24px;left:var(--x);animation:weather-fall var(--duration) linear infinite;animation-delay:var(--delay);opacity:.35;pointer-events:none;will-change:transform}
.weatherLayer[data-kind="rain"] i{top:-40px;left:calc(var(--x) + var(--rain-offset));width:var(--rain-width);height:var(--rain-length);opacity:var(--rain-opacity);background:linear-gradient(to bottom,#497d9700 0%,#497d9752 30%,#39738fe6 78%,#e8f7ffb3 100%);border-radius:50%;transform-origin:50% 100%;animation-name:weather-rain}
.weatherLayer[data-kind="snow"] i{width:5px;height:5px;border-radius:50%;background:#fff;box-shadow:0 0 2px #607780}
.weatherLayer[data-kind="cloud"] i{top:var(--y);width:140px;height:40px;border-radius:50%;background:#cad5d7;opacity:.14;animation-name:weather-cloud}
.weatherLayer[data-kind="cloud"] i::before,.weatherLayer[data-kind="cloud"] i::after{content:"";position:absolute;bottom:12px;left:24px;width:64px;height:52px;border-radius:50%;background:inherit}
.weatherLayer[data-kind="cloud"] i::after{left:72px;width:42px;height:40px}
@keyframes weather-fall{to{transform:translate3d(var(--drift),var(--fall),0)}}
@keyframes weather-rain{0%{transform:translate3d(0,0,0) rotate(var(--rain-angle));opacity:0}8%{opacity:var(--rain-opacity)}90%{opacity:var(--rain-opacity)}100%{transform:translate3d(var(--drift),var(--fall),0) rotate(var(--rain-angle));opacity:0}}
@keyframes weather-cloud{from{transform:translate3d(-60px,0,0)}to{transform:translate3d(150px,0,0)}}
.mapWeather{flex:none;align-self:center;min-height:28px;min-width:36px;padding:3px 5px;border:0;border-radius:6px;background:#eef4f1;color:#385a4a;font:600 13px/1.4 system-ui,sans-serif;cursor:pointer}
.brandLinks .mapWeather{min-height:24px;min-width:32px;padding:2px 4px;margin-left:6px;font-size:11px}
.weatherDialog{width:min(310px,calc(100vw - 32px));box-sizing:border-box;padding:18px;border:1px solid #dce6e0;border-radius:16px;color:#385a4a;background:#fff;box-shadow:0 6px 24px #183d3524}
.weatherDialog::backdrop{background:#18312944}.weatherDialogHead{display:flex;align-items:center;justify-content:space-between}.weatherDialogHead button{width:40px;height:40px;border:0;border-radius:50%;background:#f2f6f4;color:inherit;font-size:25px;cursor:pointer}
#weatherSummary{font-size:16px;font-weight:600;margin:10px 0}#weatherTime{font-size:12px;line-height:1.6;color:#6b7e75}
#weatherToggle{min-height:42px;padding:8px 12px;border:1px solid #d1dfd7;border-radius:9px;background:#f5faf7;color:inherit;font:inherit;cursor:pointer}
.weatherDialog small{display:block;margin-top:16px;font-size:11px}.weatherDialog a{color:#617a6b;text-decoration:underline}
.weatherLayer[hidden],.mapWeather[hidden]{display:none!important}
@media(min-width:901px){
 #detail.show{width:clamp(440px,42vw,580px)}
 #detail.detailExpanded:not(.detailResized){height:calc(100% - 38px)!important}
 .content>#businessSide{z-index:16}
 body .modalback .modal.desktopWindowSized,body dialog.desktopWindowSized{height:var(--desktop-window-height)!important;min-height:0!important;max-height:calc(100dvh - 40px)!important;overflow-y:auto!important;box-sizing:border-box}
 [data-desktop-resize-hint]{user-select:none}
 .browseTools{max-width:740px}
 .mapwrap #areaLegend{left:auto!important;right:14px;max-width:min(600px,calc(100% - var(--desktop-list-offset) - 28px))}
 .mapwrap #areaPanel{left:calc(var(--desktop-list-offset) + 14px)}
}
@media(max-width:900px){
 .browseTools{left:10px;right:10px;top:8px}
 .browseFilterButtons{gap:5px}.browseFilterButtons label{padding:3px 7px;border-radius:8px;min-height:43px}
 .browseFilterButtons select{font-size:13px}.browseFilterButtons small{font-size:10px}
 #mobileListBtn{display:none!important}
 #businessSide.mobileOpen{left:0;right:0;bottom:0;width:auto;height:72%!important;max-height:calc(100% - 14px)!important;border-radius:18px 18px 0 0!important}
 #businessSide.mobileOpen.menuSized{height:var(--menu-height)!important}
 #businessSide .card{padding:13px 14px}
 .browseFilterDialog{margin:auto auto 0;width:100%;max-width:100vw;max-height:90dvh;border-radius:20px 20px 0 0}
 .browseDialogHead h2{font-size:18px;letter-spacing:-.3px}
 .browseFields{gap:15px 12px;padding:18px 16px}.browseDialogHead{padding:16px}.browseDialogFoot{padding-left:16px;padding-right:16px}
 /* Leave the search header visible, with extra breathing room on opening.
    The close button and grip stay pinned in the same scroll container. */
 #detail.show{position:fixed!important;z-index:41!important;left:6px!important;right:6px!important;top:auto!important;bottom:var(--detail-bottom-gap)!important;width:auto!important;max-width:100%;--detail-bottom-gap:max(24px,calc(env(safe-area-inset-bottom) + 12px))}
 #detail.show:not(.detailResized){max-height:calc(100dvh - var(--detail-bottom-gap) - var(--detail-top-gap,168px))!important}
 #detail:not(.detailExpanded):not(.detailResized){height:min(260px,46%)!important}
 #detail.detailExpanded:not(.detailResized){height:min(76dvh,calc(100dvh - var(--detail-bottom-gap) - var(--detail-top-gap,168px) - 24px))!important}
 .mapUtilityBar .communityStats{display:flex!important;justify-content:center;gap:6px!important;min-height:26px}
 .mapUtilityBar .communityStats>span{min-height:26px}
}
@media(prefers-reduced-motion:reduce){.weatherLayer{display:none!important}}
