/* Next combined release: filter/action hierarchy and richer map results. */
.results-top{gap:10px;align-items:center;min-height:58px}
.results-actions{display:flex;align-items:end;justify-content:center;gap:8px;flex-wrap:wrap}
.results-actions .sort{margin:0;display:grid;gap:3px;min-width:124px}
.results-actions .sort select{min-width:124px;height:36px}
.results-actions .clear-all{height:36px;padding:.45rem .68rem;border:1px solid #8ebcc1;border-radius:8px;background:#fff;color:var(--sea);font-size:.8rem;font-weight:760;text-decoration:none;white-space:nowrap}
.results-actions .clear-all:hover{background:var(--mist)}
.map-results-button{display:inline-flex;align-items:center;gap:.38rem;height:36px;padding:.42rem .68rem}
.map-results-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
footer .release-chip{margin-left:auto;font-size:.66rem;font-weight:750;color:var(--muted)}
.map-popup{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;min-width:230px;max-width:300px;color:var(--ink)}
.map-popup.no-photo{display:block;min-width:190px}
.map-popup-photo{width:72px;height:60px;object-fit:cover;border-radius:5px;background:var(--sand)}
.map-popup h3{margin:0 0 2px;font-size:.84rem;line-height:1.2}
.map-popup p{margin:2px 0;font-size:.74rem;line-height:1.28}
.map-popup .map-popup-price{font-weight:800;color:var(--sea)}
.site-header{min-height:82px;padding-top:6px;padding-bottom:6px;position:relative;justify-content:center}.site-header .brand{position:absolute;left:clamp(16px,3vw,48px)}.site-header .brand .brand-logo{width:300px!important;height:70px;max-height:70px;object-fit:contain}.site-header .mode-switch{margin-left:0}.site-header .header-actions:empty{display:none}.location-picker>.filter-label{font-size:.68rem;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;font-weight:750;color:var(--muted);display:block;margin-bottom:3px}.location-trigger{font-size:1rem;line-height:1.2;font-weight:700}.advanced-filters .check{display:grid;grid-template-rows:auto 37px;gap:3px;padding:0;margin:0;align-items:start;align-self:stretch;justify-items:center;text-align:center}.advanced-filters .check>span{display:block;line-height:1.2}.advanced-filters .check input{width:18px;height:18px;margin:.45rem 0 0}.results-top .clear-all{order:0;background:var(--sea);border-color:var(--sea);color:#fff;white-space:nowrap}.results-top #result-count{order:1;align-self:center;padding-top:0}.results-top .results-actions{order:2;margin:0 auto}@media(max-width:850px){.site-header .brand{position:static}.site-header .brand .brand-logo{width:230px!important;height:58px;max-height:58px}.site-header{min-height:68px;justify-content:space-between}}
@media(min-width:851px){.site-header{display:grid;grid-template-columns:minmax(300px,1fr) auto minmax(300px,1fr);column-gap:16px}.site-header .brand{position:static;left:auto;justify-self:start;min-width:0}.site-header .mode-switch{grid-column:2;justify-self:center;position:relative;z-index:1}.site-header .header-actions{grid-column:3;justify-self:end;margin-left:0}}
.map-popup .map-popup-agent{color:var(--muted)}
.map-popup button{margin-top:5px;border:1px solid #8ebcc1;border-radius:5px;background:#fff;color:var(--sea);padding:.28rem .42rem;font:700 .72rem/1.1 inherit;cursor:pointer}
.leaflet-control-layers{border:1px solid #b9d4d4!important;border-radius:7px!important;box-shadow:0 3px 12px #073d4b24!important}
.listing-photo,.detail-photo,.map-popup-photo-wrap{position:relative;display:block;overflow:hidden}
.listing-photo{width:100%;height:100%;border-radius:7px}
.listing-photo .card-photo{width:100%;height:100%}
.detail-photo{min-height:440px}
.detail-photo img{display:block}
.map-popup-photo-wrap{width:72px;height:60px;border-radius:5px}
.map-popup-photo-wrap .map-popup-photo{width:100%;height:100%;border-radius:0}
.photo-source{position:absolute;right:5px;bottom:5px;z-index:1;max-width:calc(100% - 10px);overflow:hidden;border-radius:4px;background:#073d4bd9;color:#fff;padding:2px 4px;font-size:.59rem;font-weight:700;line-height:1.1;white-space:nowrap;text-overflow:ellipsis;text-shadow:0 1px 1px #0006}
.map-popup-photo-wrap .photo-source{right:3px;bottom:3px;max-width:calc(100% - 6px);padding:1px 3px;font-size:.47rem}
@media(max-width:850px){.detail-photo{min-height:0}}
@media(max-width:760px){.results-top{align-items:stretch;flex-direction:column}.results-actions{justify-content:flex-start}.results-actions .sort{min-width:118px}.results-actions .sort select{min-width:118px}.map-results-button{font-size:.78rem}.map-popup{min-width:210px}}
.advanced-filters #beds{min-width:96px;width:96px}
.badge.status-available{background:#dff0ea;color:#146250}
.badge.status-under_contract{background:#fff0d5;color:#8a5a0b}
.badge.status-sold,.badge.status-leased,.badge.status-rented{background:#e7edf3;color:#3f566a}
.badge.status-withdrawn,.badge.status-removed,.badge.status-unknown{background:#eee;color:#566}
.advanced-filters>label,.advanced-filters .distribution-picker,.advanced-filters .range-filter,.advanced-filters .check{align-self:start}
.advanced-filters>label,.advanced-filters .range-filter{grid-template-rows:1.15em 37px}
.advanced-filters>label{gap:3px}
.advanced-filters>label>select,.distribution-trigger,.range-trigger{color:#48666e;font-size:.78rem!important;font-weight:650}
.map-estimate-note{margin:.15rem 0 0;color:#b7523d;font-size:.72rem;font-weight:750}
.detail-added{margin:.45rem 0 .15rem;color:var(--muted);font-size:.76rem;font-weight:650}
.card-last-checked{margin:.1rem 0 0;color:var(--muted);font-size:.72rem;font-weight:400}
.agent-site-action{display:flex;align-items:center;justify-content:center;gap:.55rem;background:linear-gradient(135deg,#075564,#087b82);border:1px solid #075564;box-shadow:0 6px 16px #073d4b22;transition:transform .14s ease,box-shadow .14s ease,background .14s ease}
.agent-site-action::after{content:'↗';font-size:1rem;line-height:1}
.agent-site-action:hover,.agent-site-action:focus-visible{background:linear-gradient(135deg,#064a57,#079096);box-shadow:0 9px 21px #073d4b35;transform:translateY(-2px)}
.range-filter{position:relative;display:grid;gap:3px;flex:0 0 auto}.range-filter>.filter-label{font-size:.68rem;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;font-weight:750;color:var(--muted)}.range-trigger{height:37px;min-width:170px;max-width:190px;padding:.42rem .68rem;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-weight:700;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.range-trigger::after{content:'⌄';float:right;color:var(--muted);margin-left:12px}.range-trigger[aria-expanded=true]{border-color:#4e9da4;box-shadow:0 0 0 3px #d9f0ef}.range-popover{position:absolute;z-index:30;top:100%;left:0;width:min(370px,calc(100vw - 28px));margin-top:7px;padding:16px;border:1px solid #bcd7d7;border-radius:14px;background:#fff;box-shadow:0 22px 55px #073d4b2b;text-transform:none;letter-spacing:0}.range-popover-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.range-popover-header strong{font-size:1rem;color:var(--ink)}.range-close{width:30px;height:30px;border:0;border-radius:50%;background:var(--mist);color:var(--muted);font-size:1.35rem;line-height:1;cursor:pointer}.range-help{margin:2px 0 12px;color:var(--muted);font-size:.74rem}.range-histogram{height:74px;display:flex;align-items:end;gap:2px;padding:0 7px}.range-histogram-bar{display:block;flex:1;height:var(--bar-height);min-height:3px;border-radius:3px 3px 0 0;background:#d7e5e4;transition:height .15s ease,background .15s ease}.range-histogram-bar.selected{background:#62afb0}.range-slider-shell{position:relative;height:30px;margin:-1px 7px 6px}.range-slider-track{position:absolute;left:0;right:0;top:12px;height:5px;border-radius:99px;background:#d7e5e4}.range-slider-selection{position:absolute;top:0;bottom:0;border-radius:99px;background:var(--sea)}.range-slider{position:absolute;left:0;top:2px;width:100%;height:24px;margin:0;pointer-events:none;appearance:none;-webkit-appearance:none;background:transparent}.range-slider::-webkit-slider-runnable-track{height:5px;background:transparent}.range-slider::-moz-range-track{height:5px;background:transparent}.range-slider::-webkit-slider-thumb{width:22px;height:22px;margin-top:-8px;border:3px solid #fff;border-radius:50%;background:var(--sea);box-shadow:0 1px 5px #073d4b55;pointer-events:auto;appearance:none;-webkit-appearance:none;cursor:grab}.range-slider::-moz-range-thumb{width:17px;height:17px;border:3px solid #fff;border-radius:50%;background:var(--sea);box-shadow:0 1px 5px #073d4b55;pointer-events:auto;cursor:grab}.range-slider:focus-visible::-webkit-slider-thumb{outline:3px solid #e6a385;outline-offset:2px}.range-values{display:grid;grid-template-columns:1fr 1fr;gap:10px}.range-values>label{display:grid!important;gap:4px!important;font-size:.66rem!important;color:var(--muted)!important}.range-value-field{height:39px;display:flex;align-items:center;gap:5px;padding:0 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-size:.69rem}.range-value-field:focus-within{border-color:#4e9da4;box-shadow:0 0 0 3px #d9f0ef}.range-value-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:.84rem;font-weight:700}.range-value-field input::placeholder{color:#80959a;font-weight:500}.range-value-field input::-webkit-inner-spin-button{display:none}.range-distribution{min-height:18px;margin:8px 0 4px;color:var(--muted);font-size:.7rem}.range-popover-actions{display:flex;align-items:center;justify-content:space-between;padding-top:8px;border-top:1px solid var(--line)}.range-clear,.range-done{border:0;border-radius:7px;padding:.48rem .72rem;font-weight:750;cursor:pointer}.range-clear{background:transparent;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.range-done{background:var(--sea);color:#fff}@media(max-width:850px){.range-filter{flex:1 1 160px}.range-trigger{width:100%;max-width:none}.range-popover{position:fixed;left:14px;right:14px;top:auto;bottom:14px;width:auto;max-height:calc(100vh - 28px);overflow:auto}.range-histogram{height:92px}.range-slider::-webkit-slider-thumb{width:26px;height:26px;margin-top:-10px}}
.anonymous-terms-gate{width:min(100vw,720px);max-width:calc(100vw - 28px);border:0;border-radius:22px;background:#fff;color:var(--ink);padding:0;box-shadow:0 28px 86px #001e2a70}
.anonymous-terms-gate::backdrop{background:#022d38e8;backdrop-filter:blur(5px)}
.anonymous-terms-card{padding:clamp(28px,6vw,58px);text-align:center}
.anonymous-terms-logo{display:block;width:min(100%,330px);height:auto;margin:0 auto 2rem}
.anonymous-terms-card h1{margin:.2rem 0 .75rem;font-size:clamp(2rem,5vw,3.05rem);line-height:1;color:var(--ink)}
.anonymous-terms-card>p{max-width:540px;margin:.55rem auto;color:var(--muted);font-size:1.04rem;line-height:1.55}
.anonymous-terms-card a{color:var(--sea);font-weight:800}
.anonymous-terms-card .terms-version{font-size:.78rem;color:var(--muted)}
.anonymous-terms-check{display:flex;align-items:flex-start;gap:.65rem;max-width:470px;margin:1.65rem auto;text-align:left;color:var(--ink);font-weight:700;line-height:1.35}
.anonymous-terms-check input{width:1.15rem;height:1.15rem;margin:.1rem 0 0;accent-color:var(--sea)}
.anonymous-terms-card .primary-action{min-width:min(100%,290px);margin:0 auto}
.anonymous-terms-card .primary-action:disabled{opacity:.48;cursor:not-allowed}
.anonymous-terms-error{min-height:1.5rem;color:#a5231b!important;font-weight:700;font-size:.88rem!important}
@media(max-width:520px){.anonymous-terms-gate{max-width:calc(100vw - 18px);max-height:calc(100dvh - 18px);overflow-y:auto;border-radius:16px}.anonymous-terms-card{padding:20px 18px 18px}.anonymous-terms-logo{width:200px;margin-bottom:.7rem}.anonymous-terms-card h1{margin:.1rem 0 .45rem;font-size:1.65rem}.anonymous-terms-card>p{margin:.4rem auto;font-size:.94rem;line-height:1.4}.anonymous-terms-check{margin:.85rem auto}.anonymous-terms-error{min-height:0;margin-top:.45rem!important}}
