.explorer.property-map-layout:has(.map-agencies),.explorer.property-map-layout{grid-template-columns:minmax(0,1fr)}
.property-map-layout .map:has(.map-agencies) .agency-overlay{order:1}
.property-map-layout .map:has(.map-agencies) .map-canvas{border-top:0;border-radius:23px 23px 0 0}
.property-map-layout .map:has(.map-agencies) .map-agencies{border-radius:0 0 23px 23px}
.property-map-layout #map{height:clamp(380px,59vh,670px);aspect-ratio:auto}
.property-map-layout .map-canvas{background-color:#d7ebf0}
.property-markers{position:absolute;inset:0;pointer-events:none;z-index:2}
.property-marker{position:absolute;pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:38px;min-height:38px;padding:5px 7px;border-radius:16px 16px 16px 4px;border:2px solid #fff;color:#fff;background:#174f45;transform:translate(-50%,-83%);box-shadow:0 4px 13px #123a435b;font-weight:780}
.property-marker.marker-land{background:#845019}.property-marker.marker-condo{background:#3d4a8a}.property-marker.marker-mixed{background:#184f72}
.property-marker:hover,.property-marker[aria-expanded=true]{filter:brightness(1.18);z-index:1;outline:2px solid #133731;outline-offset:2px}
.marker-count{font-size:.78rem}
.property-map-status,.property-key{position:absolute;right:13px;display:flex;align-items:center;gap:10px;color:#286052;background:#fbfffbee;border:1px solid #b6d9cd;padding:7px 9px;border-radius:13px;font-weight:700;font-size:.78rem;pointer-events:none}
.property-map-status{left:70px;right:auto;top:12px;margin:0}.property-key{bottom:12px}.property-key span{display:flex;align-items:center;gap:4px}.property-key svg{width:15px;height:15px}.key-land{color:#845019}.key-condo{color:#3d4a8a}
.property-peek{z-index:4;position:absolute;right:15px;top:42px;bottom:48px;width:min(340px,43%);overflow:auto;border-radius:18px;border:1px solid #b7d7ca;background:#fcfffb;box-shadow:0 15px 38px #1c443f40;padding:12px 13px}
.peek-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;position:sticky;top:0;background:#fcfffb;z-index:1;padding:5px 0 10px}.peek-head h2{margin:2px 0 0;font-size:1.2rem;line-height:1.2;letter-spacing:-.03em}.peek-scope{margin:0;color:#497263;font-size:.78rem;font-weight:700}.peek-head button{flex:none;border:1px solid #c4ddd1;border-radius:50%;width:37px;height:37px;background:#ebf5ee;color:#20584c;font-weight:700;font-size:1.3rem}.peek-list{display:grid;gap:8px}.peek-list .listing-card{margin:0}.peek-list .listing-art:has(img){aspect-ratio:2.25/1}
@media(max-width:690px){.property-map-layout #map{height:clamp(295px,51vh,430px)}.property-map-layout .map:has(.map-agencies) .map-canvas{border-radius:18px 18px 0 0}.property-peek{position:relative;right:auto;top:auto;bottom:auto;width:auto;max-height:520px;margin:0 8px 9px;padding:8px;box-shadow:none}.property-map-status{top:8px;left:52px;font-size:.7rem}.property-key{top:46px;bottom:auto;font-size:.68rem;gap:5px}}
.canton-inventory{margin:11px 0;color:#4b6d64;font-size:.8rem}.canton-inventory label{display:flex;gap:7px;align-items:center;font-weight:700}.canton-sort{max-width:100%;background:#f5fbf7;color:#21564b;border:1px solid #bfdace;border-radius:8px;padding:5px;font-size:.8rem}.canton-inventory p{margin:7px 0}.canton-stat small{display:block;margin-top:2px;color:#385f55;font-weight:540;line-height:1.4}.canton-stat small+small{color:#74501d;font-weight:675}#map .canton-map-count{font-size:calc(var(--map-text)*.76);fill:#285b53}
body.area-theme .section-head{background:linear-gradient(120deg,color-mix(in srgb,var(--area-color) 68%,white),var(--area-color));color:#17332b}
body.area-theme .section-head :is(h1,p,.hero-kicker){color:#17332b}
body.area-theme .section-head .photo-credit{display:none}
.area-travel{margin:12px 0 18px;background:white;border:1px solid #c9dacf;padding:16px 20px;border-radius:18px}
.area-travel h2{font-size:1.2rem;margin:0;color:#214f43}
.travel-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.travel-content p{grid-column:1/-1;margin:4px 0;color:#46645b;font-size:.9rem}
.travel-content a{display:grid;align-content:start;gap:4px;padding:10px;border-radius:10px;background:#f0f6f2;color:#214f43;text-decoration:none}
.travel-content a:hover{background:#e2eee6}.travel-content small,.travel-content span{font-size:.88rem}
.listing-travel{margin:10px 0}.listing-travel summary,.feature-picker summary{cursor:pointer;font-weight:650}.listing-travel .travel-content{grid-template-columns:1fr}
.feature-picker{position:relative;align-self:center}.feature-picker summary{padding:10px 14px;border:1px solid #ceded6;border-radius:24px;color:#244e4d}.feature-choices{position:absolute;right:0;z-index:15;background:white;padding:8px;border:1px solid #ceded6;border-radius:12px;box-shadow:0 8px 18px #143d2922;width:210px}.criteria .feature-choices label{border:0;border-radius:6px;cursor:pointer}.feature-choices input{width:18px;height:18px}
@media(max-width:620px){.travel-content{grid-template-columns:1fr}.travel-content a{grid-template-columns:1fr auto}.travel-content a small{grid-column:1/-1}.area-travel{padding:12px}}
.feature-note{display:block;padding:6px 10px;color:#49635a;font-size:.85rem}
body.area-theme .header{background:var(--area-color);border-bottom:1px solid color-mix(in srgb,var(--area-color) 72%,#23372d)}
body.area-theme .header :is(a,strong),body.area-theme .section-head h1{color:#19231f}
.safety-figures{display:flex;gap:8px;flex-wrap:wrap;margin:.7rem 0}.safety-figures span{background:#f1f5f2;border-radius:9px;padding:.5rem .7rem}
.district-profile p{max-width:82ch;line-height:1.5}.district-profile h3{margin-bottom:.4rem}

/* The map is the primary workspace at every geographic level. */
body{background:#eef3f5;font-family:Inter,"Helvetica Neue",system-ui,sans-serif}
.wrap.section,.header .wrap{width:calc(100% - clamp(16px,3vw,60px));max-width:none}
.header .nav{min-height:54px}.wrap.section{margin-top:10px}
#explore .section-head{min-height:0;padding:18px clamp(16px,2.4vw,40px);align-items:center;border-radius:15px;margin-bottom:10px;box-shadow:none}
#explore .section-head h1{max-width:none;font-size:clamp(1.7rem,3.4vw,3.8rem);margin:2px 0 5px;letter-spacing:-.055em}
#explore .section-head p,.hero-kicker{margin:0}
#explore .hero-kicker,.property-map-status,.north,.listing-badge{font-family:"IBM Plex Mono",ui-monospace,monospace;letter-spacing:.045em}
#explore .browse-bar{box-shadow:none;border:1px solid #cedbe0;border-radius:13px;padding:7px 10px;margin-bottom:9px}
#explore .explorer,#explore .explorer:has(.map-agencies){display:flex;flex-direction:column;gap:14px}
#explore .explorer>.map,#explore .explorer>.panel{width:100%;box-sizing:border-box}
#explore .map{border:1px solid #45626b;border-radius:16px;box-shadow:0 8px 30px #17344216}
#explore .map .map-canvas{border:0;border-radius:15px;background-color:#bedee8;background-image:linear-gradient(#56809018 1px,transparent 1px),linear-gradient(90deg,#56809018 1px,transparent 1px),radial-gradient(ellipse at 30% 45%,#e5f4f2,transparent 75%);background-size:32px 32px,32px 32px,cover}
#explore .map-canvas::after{display:none}
#explore .map-canvas #map{height:clamp(480px,78svh,1040px);max-height:none;width:100%;aspect-ratio:auto}
#explore .map-tools{background:#122b38;border:1px solid #365763;box-shadow:0 4px 18px #15334135}
#explore .map-tools :is(a,button){background:transparent;color:#edf9f9;border-color:#45616c}
#explore .map-tools :is(a,button):hover{background:#345361}
#explore .map-tools svg{stroke:currentColor}
#explore .panel{border-radius:16px;padding:clamp(16px,2vw,30px)}
#explore .places:not(:empty){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:7px;max-height:none}
#explore .places li{margin:0}.area-travel{margin-top:16px}
.listing-art,.peek-list .listing-art{aspect-ratio:2/1}
.listing-art.representative img{object-position:center 58%}
.listing-art::before{display:none}.listing-photo-credit{font-size:.78rem}
.agency-art:not(:has(img:not([hidden]))){background:#34645c url('/media/representative.webp') center/cover}
.agency-art:not(:has(img:not([hidden])))::before{background:none}
.agency-art:not(:has(img:not([hidden])))::after{content:"Representative image";position:absolute;bottom:4px;right:5px;padding:2px 5px;border-radius:5px;color:white;background:#102e2ae6;font-size:.72rem}
@media(max-width:690px){
 #explore.wrap{width:100%}
 #explore>.back-nav,#explore>.destinations,#explore>.lifestyle-bar{margin-inline:10px}
 #explore .section-head{padding:15px 14px;gap:12px;border-radius:0}
 #explore .browse-bar{border-radius:0}
 #explore .map .map-canvas,#explore .map{border-radius:0}
 #explore .map-canvas #map{height:72svh;min-height:380px}
 #explore .map-canvas .property-key{left:auto;right:8px;top:auto;bottom:10px}
 #explore .map-canvas:has(.property-peek:not([hidden])) .property-key{display:none}
}

.property-markers .property-marker{transform:none}

/* Keep the entire search stacking context above the filters while results are open. */
#explore .section-head:has(#search-results:not([hidden])){z-index:30}
#search-results{background:#fff;max-height:min(22rem,48svh);overflow-y:auto;overscroll-behavior:contain}
