/* Search map: scoped so the home page and CRM are unaffected. */
body.homes-search-page #explorer-view-tabs { display:flex!important; gap:4px; padding:4px; background:#edf3f1; border:1px solid #cbd9d4; border-radius:999px; width:max-content; flex-shrink:0; }
body.homes-search-page #explorer-view-tabs .view-tab { border:0; border-radius:999px; padding:10px 24px; min-height:44px; color:#173c32; background:transparent; font:inherit; font-weight:700; cursor:pointer; }
body.homes-search-page #explorer-view-tabs .view-tab.is-active { color:#fff; background:#24594b; box-shadow:0 2px 6px #12352b22; }
body.homes-search-page #explorer-view-tabs .view-tab:focus-visible { outline:3px solid #b99643; outline-offset:2px; }
body.homes-search-page .homes-map-status { margin:0; padding:10px 14px; background:#f4f8f6; color:#24463b; font-size:13px; line-height:1.5; flex:none; }
body.homes-search-page #homes-map { z-index:0; }
body.homes-search-page #homes-map .leaflet-marker-icon.marker-cluster { border:2px solid #fff!important; border-radius:50%!important; background:#24594b!important; color:#fff!important; box-shadow:0 2px 8px #12352b44; }
body.homes-search-page #homes-map .marker-cluster > div { width:36px!important; height:36px!important; margin:0!important; border-radius:50%!important; background:transparent!important; color:#fff!important; text-align:center!important; line-height:36px!important; font-weight:700; }
body.homes-search-page #homes-map .marker-cluster span { display:block!important; line-height:36px!important; color:#fff!important; background:transparent!important; }
body.homes-search-page .is-map-mode .homes-map-shell { position:relative; flex:1; min-height:0; }
body.homes-search-page .is-map-mode .homes-list { overflow:auto; min-height:0; }
@media(min-width:769px) {
 body.homes-search-page #search-results > .section-inner { max-width:1920px!important; width:100%; padding:0 24px!important; box-sizing:border-box; }
 body.homes-search-page #homes-explorer.zillow-explorer.results-panel.is-map-mode { --split-height:clamp(540px,76vh,1000px); display:grid!important; grid-template-columns:minmax(0,54fr) minmax(320px,46fr)!important; grid-template-areas:'map list'!important; gap:0!important; height:var(--split-height)!important; min-height:540px!important; max-height:1000px!important; overflow:hidden!important; border:1px solid #cbd9d4!important; border-radius:16px!important; box-shadow:0 8px 32px #173c3210; }
 body.homes-search-page #homes-explorer.is-map-mode #homes-map { height:100%!important; min-height:320px!important; }
 body.homes-search-page #homes-explorer.is-map-mode #homes-list.homes-list--grid { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; align-content:start!important; gap:14px!important; padding:16px!important; overflow:auto!important; height:auto!important; max-height:none!important; flex:1 1 0!important; min-height:0!important; overscroll-behavior:contain; scroll-padding:16px; }
 body.homes-search-page #homes-explorer.is-map-mode .zillow-list-col { display:flex!important; flex-direction:column!important; grid-area:list!important; overflow:hidden!important; height:100%!important; min-height:0!important; max-height:100%!important; min-width:0!important; background:#f4f7f5; border:0!important; border-left:1px solid #cbd9d4!important; }
 body.homes-search-page #homes-explorer.is-map-mode #homes-map-wrap { display:flex!important; grid-area:map!important; position:relative!important; top:auto!important; width:auto!important; max-width:none!important; flex-direction:column!important; height:100%!important; min-height:0!important; max-height:100%!important; border:0!important; border-radius:0!important; }
 body.homes-search-page #homes-explorer.is-map-mode .homes-map-shell { height:auto!important; min-height:0!important; max-height:none!important; flex:1 1 0!important; }
 body.homes-search-page #homes-explorer.is-map-mode .homes-pagination { flex:none!important; margin:0!important; padding:12px!important; background:#fff; border-top:1px solid #dce5df; }
 body.homes-search-page #homes-explorer.is-map-mode .premium-card { min-width:0!important; width:100%!important; height:auto!important; max-height:none!important; margin:0!important; border-radius:12px!important; }
 body.homes-search-page #homes-explorer.is-map-mode #homes-list.homes-list--grid { grid-template-rows:none!important; grid-auto-rows:max-content!important; }
 body.homes-search-page #homes-explorer.is-map-mode .premium-card.premium-card--search { display:flex!important; flex-direction:column!important; align-self:start!important; min-height:270px!important; height:max-content!important; }
 body.homes-search-page #homes-explorer.is-map-mode .premium-card .listing-card-photo-wrap { width:100%!important; min-width:0!important; max-width:none!important; height:180px!important; min-height:180px!important; max-height:none!important; flex:0 0 180px!important; }
 body.homes-search-page #homes-explorer.is-map-mode .premium-card .listing-card-photo-hit { width:100%!important; height:100%!important; min-height:0!important; aspect-ratio:auto!important; }
 body.homes-search-page #homes-explorer.is-map-mode .premium-card .listing-card-actions { padding:10px!important; min-height:90px; box-sizing:border-box; }
 body.homes-search-page #homes-explorer.is-map-mode .premium-card.is-active { outline:3px solid #b99643; outline-offset:-3px; box-shadow:0 4px 18px #24594b33!important; }
 body.homes-search-page .homes-page-hero { padding:18px 0!important; }
 body.homes-search-page .homes-page-hero__inner { max-width:1400px!important; }
 body.homes-search-page .homes-page-hero__sub { margin-bottom:10px; }
 body.homes-search-page .homes-page-hero__inner { display:grid!important; grid-template-columns:minmax(180px,28%) minmax(0,1fr); align-items:center; gap:4px 28px; text-align:left!important; }
 body.homes-search-page .homes-page-hero__top { display:none!important; }
 body.homes-search-page .homes-page-hero h1 { grid-column:1; grid-row:1; text-align:left!important; margin:0!important; }
 body.homes-search-page .homes-page-hero__sub { grid-column:1; grid-row:2; text-align:left!important; margin:0!important; }
 body.homes-search-page .homes-page-search.hero-search-bar { grid-column:2; grid-row:1 / span 2; width:100%!important; max-width:none!important; margin:0!important; }
 body.homes-search-page .homes-page-search .hero-search-simple { display:flex!important; }
 body.homes-search-page #homes-page-search-input { display:block!important; min-width:0!important; width:auto!important; flex:1 1 0!important; }
 body.homes-search-page #homes-page-search-submit { width:auto!important; flex:0 0 auto!important; padding:10px 18px!important; }
 body.homes-search-page #search-results { padding-top:12px!important; }
 body.homes-search-page #search-results .results-toolbar { display:flex!important; flex-wrap:wrap!important; gap:10px 16px!important; padding:12px 14px!important; margin:0!important; }
 body.homes-search-page #search-results .results-toolbar-row { display:flex!important; flex:1 1 auto; align-items:center; justify-content:space-between; gap:16px; margin:0!important; }
 body.homes-search-page #search-results .results-toolbar-left { display:flex!important; flex-wrap:wrap; align-items:center; gap:10px; text-align:left!important; }
 body.homes-search-page #search-results .results-toolbar-left p { margin:0!important; }
 body.homes-search-page #search-results #location-label { display:none!important; }
 body.homes-search-page #search-results .results-toolbar-filters { flex:1 1 100%!important; margin:0!important; justify-content:flex-start!important; gap:8px!important; }
 body.homes-search-page .buyer-search-tools { padding:8px 14px; margin:10px 0; }
 body.homes-search-page #search-results .buyer-search-tools { flex:0 1 auto; padding:4px 12px!important; margin:0!important; }
 body.homes-search-page .buyer-search-tools > p:empty { display:none; }
 body.homes-search-page [data-map-list] { display:none!important; }
 body.homes-search-page:has(#homes-explorer.is-map-mode) #expert-cta-bar { display:none!important; }
 body.homes-search-page .map-price-marker.is-active { z-index:1000!important; }
 body.homes-search-page .map-price-marker.is-active .map-price-label { background:#173c32!important; color:#fff!important; border-color:#b99643!important; box-shadow:0 0 0 3px #b9964366; }
 body.homes-search-page #homes-map .marker-cluster.is-linked-cluster { outline:4px solid #b99643; outline-offset:3px; box-shadow:0 0 0 8px #b9964322!important; }
}
@media(min-width:769px) and (max-width:1199px) {
 body.homes-search-page #homes-explorer.zillow-explorer.results-panel.is-map-mode { grid-template-columns:minmax(0,1fr) minmax(320px,42%)!important; }
 body.homes-search-page #homes-explorer.is-map-mode #homes-list.homes-list--grid { grid-template-columns:minmax(0,1fr)!important; }
}
@media(max-width:768px) {
 body.homes-search-page #homes-map-wrap,body.homes-search-page #search-results { scroll-margin-top:76px; }
 body.homes-search-page .results-toolbar-row { flex-wrap:wrap; gap:12px; }
 body.homes-search-page #homes-explorer.is-map-mode { display:block!important; height:auto!important; min-height:0!important; max-height:none!important; }
 body.homes-search-page #homes-explorer.is-map-mode .zillow-list-col { display:none!important; }
 body.homes-search-page #homes-explorer.is-map-mode #homes-map-wrap { display:flex!important; width:100%!important; max-width:none!important; height:68vh!important; height:68dvh!important; min-height:400px; flex-direction:column; border-radius:16px; overflow:hidden; }
 body.homes-search-page #homes-explorer.is-map-mode #homes-map { height:100%!important; min-height:0!important; }
}
