/* Full-width Divi integration, limited to a page actually rendering the explorer. */
body:has(#swmls-explorer) #main-content > .container{width:100%;max-width:none;padding:28px 0 0}
body:has(#swmls-explorer) #left-area{width:100%;padding:0;float:none}
body:has(#swmls-explorer) #sidebar,body:has(#swmls-explorer) #main-content > .container::before{display:none}
body:has(#swmls-explorer) .entry-title{margin:0 32px 12px}
body:has(#swmls-explorer) .swmls-explorer,body:has(#swmls-explorer) .swmls-explorer .explorer-content{width:100%;max-width:none}
body:has(#swmls-explorer) .swmls-explorer .intro{padding-inline:32px}
body:has(#swmls-explorer) .swmls-explorer .explore{margin-inline:32px}
.swmls-explorer .skip-link:not(:focus){clip-path:inset(50%);width:1px;height:1px;padding:0;overflow:hidden;white-space:nowrap}
.swmls-explorer :is(.nearby-areas,.directory-groups,.housing-types) li{list-style:none}
@media(max-width:760px){
 body:has(#swmls-explorer) .entry-title{margin-inline:20px}
 body:has(#swmls-explorer) .swmls-explorer .intro{padding-inline:20px}
 body:has(#swmls-explorer) .swmls-explorer .explore{margin-inline:16px}
}

/* A comfortable reading measure without changing the geographic guide copy. */
.swmls-explorer .guide-content p{max-inline-size:65ch;text-wrap:pretty}

/* Quiet toolbar: search and a native directory picker, map and details lead. */
.swmls-explorer.layout-map .quiet-toolbar{border:0;border-radius:0;overflow:visible}
.swmls-explorer.layout-map .quiet-toolbar .finder{display:block;background:white;border:0}
.swmls-explorer.layout-map .quiet-toolbar .finder-top{padding:0 0 20px;background:white;color:var(--cobalt)}
.swmls-explorer.layout-map .quiet-toolbar #area-search{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,260px);gap:0 16px;align-items:end}
.swmls-explorer .quiet-toolbar #area-search>label{grid-column:1;grid-row:1;color:var(--cobalt);margin-bottom:7px}
.swmls-explorer.layout-map .quiet-toolbar .search-field{grid-column:1;grid-row:2;margin:0}
.swmls-explorer .quiet-toolbar .area-picker{grid-column:2;grid-row:2}
.swmls-explorer .quiet-toolbar .area-picker select{min-height:48px;font:inherit;color:var(--cobalt);border-radius:3px}
.swmls-explorer .quiet-toolbar #region-filter{display:none}
.swmls-explorer.layout-map .quiet-toolbar .list-caption{padding:0 0 8px;background:white}
.swmls-explorer.layout-map .quiet-toolbar .area-results{max-height:240px;margin-bottom:20px;border:1px solid var(--line)}
.swmls-explorer .quiet-toolbar .finder-top :focus-visible{outline-color:var(--cobalt)}
.swmls-explorer .quiet-toolbar .search-field:focus-within{outline-color:var(--cobalt);outline-offset:2px}
.swmls-explorer .quiet-toolbar .search-context{margin-bottom:20px}
@container(max-width:760px){
 .swmls-explorer.layout-map .quiet-toolbar #area-search{grid-template-columns:minmax(0,1fr);gap:8px}
 .swmls-explorer .quiet-toolbar .area-picker{grid-column:1;grid-row:3}
 .swmls-explorer.layout-map .quiet-toolbar .finder-top{padding:0 0 16px}
 .swmls-explorer .quiet-toolbar .area-picker select{font-size:16px}
}

/* Map leads on desktop; details remain stacked below it on phones. */
@container(min-width:761px){.swmls-explorer.layout-map .map-and-detail{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}}

.swmls-explorer.layout-map .quiet-toolbar .empty-results .empty-heading{color:var(--cobalt);font-size:18px;line-height:1.35;margin:0}

/* Keep the comparison heading clear of the fixed site navigation. */
.swmls-explorer.local-explore #area-comparison{scroll-margin-top:110px}

/* Fit the desktop map below the site header on large monitors. */
.swmls-explorer{--explorer-sticky-top:16px}
body:has(header.et-l--header) .swmls-explorer{--explorer-sticky-top:110px}
@container(min-width:761px){
 .swmls-explorer.layout-map .map-wrap{top:var(--explorer-sticky-top)}
 .swmls-explorer.layout-map #map:not(.map-error){max-height:min(1200px,max(240px,calc(100svh - var(--explorer-sticky-top) - var(--map-tool-height,79px) - 64px)))}
}
@container(min-width:1800px){
 .swmls-explorer.layout-map .area-detail{display:grid;grid-template-columns:minmax(0,640px);justify-content:center;align-content:start}
}

/* Keep the map in the first screen instead of opening with a large hero. */
body .et-l--post .et_pb_row:has(#swmls-explorer .compact-intro){padding-top:8px}
.swmls-explorer.layout-map .compact-intro{display:block;padding-block:16px 12px}
.swmls-explorer.layout-map .compact-intro :is(h1,.explorer-title){font-size:26px;line-height:1.25;letter-spacing:-.02em;text-wrap:balance;padding:0;margin:0}
.swmls-explorer.layout-map .compact-intro .intro-copy{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px;margin:4px 0 0;max-width:none}
.swmls-explorer.layout-map .compact-intro .intro-copy h2{font-size:16px;font-weight:600;line-height:1.5;letter-spacing:0;color:var(--cobalt);padding:0;margin:0}
.swmls-explorer.layout-map .compact-intro .intro-copy p{font-size:13px;line-height:1.5;margin:0}
@container(max-width:760px){
 .swmls-explorer.layout-map .compact-intro{display:block;padding-block:12px 10px}
 .swmls-explorer.layout-map .compact-intro :is(h1,.explorer-title){font-size:20px;line-height:1.25}
 .swmls-explorer.layout-map .compact-intro .intro-copy h2{font-size:15px}
 .swmls-explorer.layout-map .compact-intro .intro-copy{margin-top:4px}
 .swmls-explorer.layout-map .compact-intro .intro-copy p{font-size:13px;line-height:1.5}
 .swmls-explorer.layout-map .quiet-toolbar #area-search{grid-template-columns:minmax(0,1fr) 124px;gap:6px 8px}
 .swmls-explorer .quiet-toolbar .area-picker{grid-column:2;grid-row:2}
 .swmls-explorer .quiet-toolbar .area-picker select{min-height:44px;padding-inline:8px}
 .swmls-explorer .quiet-toolbar .search-field{min-height:44px}
 .swmls-explorer .quiet-toolbar .search-field input{padding-block:10px}
 .swmls-explorer.layout-map .quiet-toolbar .finder-top{padding-bottom:12px}
 .swmls-explorer.local-explore .map-tool-row{gap:8px}
 .swmls-explorer.local-explore .map-tool-row:not(:has(.explore-layer-menu[open])){flex-wrap:nowrap}
 .swmls-explorer.local-explore #explore-basemap{flex:1;min-width:0;width:0;max-width:130px}
 .swmls-explorer.local-explore .explore-layer-menu{flex-shrink:0}
}
@container(max-width:290px){
 .swmls-explorer.layout-map .compact-intro :is(h1,.explorer-title){font-size:18px;letter-spacing:-.02em}
 .swmls-explorer.layout-map .compact-intro .intro-copy h2{font-size:14px;line-height:1.4}
 .swmls-explorer.layout-map .quiet-toolbar #area-search{grid-template-columns:minmax(0,1fr)}
 .swmls-explorer .quiet-toolbar .area-picker{grid-column:1;grid-row:3}
 .swmls-explorer.local-explore .map-tool-row>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
