/* Oct 5 search filters: transaction, beds & baths and the shared popover pieces (More filters is now a dialog: search-adaptive.css). Loaded last on public pages. */
/* Same chip and popover language as search-reference.css; colours come from the --ws-* tokens so both themes follow. */
html[data-aw-theme] body .aw-sr .aw-sr-pop-head{margin:0;padding:14px 18px 0}
html[data-aw-theme] body .aw-sr .aw-sr-deal .aw-sr-options button>span:not(.aw-sr-status-dot){margin-right:auto}
html[data-aw-theme] body .aw-sr .aw-sr-pop-group{margin:2px 0 -4px;color:var(--ws-muted);font:700 12px/1.2 var(--ws-font);letter-spacing:.08em;text-transform:uppercase}
html[data-aw-theme] body .aw-sr .aw-sr-rooms .aw-sr-pop{width:360px}
html[data-aw-theme] body .aw-sr .aw-sr-rooms .aw-sr-pick button{padding:0 2px!important}
/* A type where beds & baths don't apply: the chip stays focusable and its panel explains why. */
html[data-aw-theme] body .aw-sr .aw-sr-chip[aria-disabled=true]{border-style:dashed!important;background:var(--ws-soft)!important;color:var(--ws-muted)!important;font-weight:500!important}
html[data-aw-theme] body .aw-sr .aw-sr-fieldset{display:grid;gap:8px;min-width:0;margin:0;padding:0;border:0}
html[data-aw-theme] body .aw-sr .aw-sr-fieldset>legend{float:left;width:100%;margin:0 0 8px;padding:0}
html[data-aw-theme] body .aw-sr .aw-sr-fieldset>legend+*{clear:both}
html[data-aw-theme] body .aw-sr .aw-sr-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
html[data-aw-theme] body .aw-sr .aw-sr-pop-left{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px}
html[data-aw-theme] body .aw-sr .aw-sr-check input:focus-visible{outline:2px solid var(--ws-blue)!important;outline-offset:2px!important}

/* Five chips: tighter spacing below 1600 px so the location field keeps a usable width;
   below 1150 px the location field takes its own row (as tablets already do). */
@media (min-width:768px) and (max-width:1599px){
 html[data-aw-theme] body .aw-sr .aw-sr-filters{gap:8px}
 html[data-aw-theme] body .aw-sr .aw-sr-chip{gap:6px;padding:0 11px 0 12px!important}
 html[data-aw-theme] body .aw-sr .aw-sr-type .aw-sr-chip{min-width:0}
}
@media (min-width:1024px) and (max-width:1149px){
 html[data-aw-theme] body .aw-sr .aw-sr-toolbar{flex-wrap:wrap}
 html[data-aw-theme] body .aw-sr .aw-sr-q{flex:1 1 100%;max-width:none}
}
@media (min-width:768px) and (max-width:1023px){
 html[data-aw-theme] body .aw-sr .aw-sr-type .aw-sr-chip>.aw-sr-type-glyph{display:none}
 html[data-aw-theme] body .aw-sr .aw-sr-views button{width:54px}
}

/* Phones: two chip rows (looking to / price / beds & baths, then type / more filters). */
@media (max-width:767px){
 html[data-aw-theme] body .aw-sr .aw-sr-filters{grid-template-columns:repeat(6,minmax(0,1fr))}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>.aw-sr-menu{grid-column:span 2}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>:is(.aw-sr-type,.aw-sr-more){grid-column:span 3}
 /* Panels open below their chip row and stay inside the viewport (the footer stays reachable). */
 html[data-aw-theme] body .aw-sr .aw-sr-filters .aw-sr-pop{max-height:calc(100dvh - 190px);overflow:auto;overscroll-behavior:contain}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>:is(.aw-sr-type,.aw-sr-more) .aw-sr-pop{max-height:calc(100dvh - 240px)}
 html[data-aw-theme] body .aw-sr :is(.aw-sr-rooms,.aw-sr-size,.aw-sr-price,.aw-sr-type) .aw-sr-pop{width:auto}
 html[data-aw-theme] body .aw-sr .aw-sr-features{gap:12px 10px}
}
@media (max-width:359px){
 html[data-aw-theme] body .aw-sr .aw-sr-features{grid-template-columns:minmax(0,1fr)}
}

/* Stable filter bar (owner, Oct 10): every chip keeps one size whatever its label says ("Beds & baths" / "Acreage" /
   "Space size", "All types" / "New construction"), so picking a property type never pushes the other filters around.
   Wide screens give each chip a fixed width; tablets and small laptops put the search box on its own row and lay the
   chips out as a fixed grid across the next. A rare longer label ends in an ellipsis. Phones keep their two-row grid. */
@media (min-width:768px){
 html[data-aw-theme] body .aw-sr .aw-sr-filters .aw-sr-chip-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html[data-aw-theme] body .aw-sr .aw-sr-filters .aw-sr-chip{justify-content:space-between}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>.aw-sr-more .aw-sr-chip{justify-content:center}
}
@media (min-width:1280px){
 html[data-aw-theme] body .aw-sr .aw-sr-filters>.aw-sr-menu{flex:none}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>.aw-sr-deal .aw-sr-chip{width:140px!important}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>.aw-sr-price .aw-sr-chip{width:102px!important}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>:is(.aw-sr-rooms,.aw-sr-size) .aw-sr-chip{width:140px!important}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>.aw-sr-type .aw-sr-chip{width:204px!important;min-width:0!important}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>.aw-sr-more .aw-sr-chip{width:132px!important}
}
@media (min-width:1600px){
 html[data-aw-theme] body .aw-sr .aw-sr-filters>.aw-sr-deal .aw-sr-chip{width:190px!important}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>.aw-sr-price .aw-sr-chip{width:124px!important}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>:is(.aw-sr-rooms,.aw-sr-size) .aw-sr-chip{width:180px!important}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>.aw-sr-type .aw-sr-chip{width:200px!important;min-width:0!important}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>.aw-sr-more .aw-sr-chip{width:170px!important}
}
@media (min-width:768px) and (max-width:1279px){
 html[data-aw-theme] body .aw-sr .aw-sr-toolbar{flex-wrap:wrap}
 html[data-aw-theme] body .aw-sr .aw-sr-q{flex:1 1 100%;max-width:none}
 html[data-aw-theme] body .aw-sr .aw-sr-filters{display:grid!important;flex:1 1 0;grid-template-columns:1fr .8fr 1.1fr 1.55fr 1fr;gap:8px;min-width:0}
 html[data-aw-theme] body .aw-sr .aw-sr-filters>.aw-sr-menu{min-width:0}
 html[data-aw-theme] body .aw-sr .aw-sr-filters .aw-sr-chip{width:100%!important;min-width:0!important}
}
@media (min-width:768px) and (max-width:1023px){
 html[data-aw-theme] body .aw-sr .aw-sr-filters .aw-sr-chev{display:none}
 html[data-aw-theme] body .aw-sr .aw-sr-filters .aw-sr-long{display:none}
 html[data-aw-theme] body .aw-sr .aw-sr-filters .aw-sr-short{display:inline}
 html[data-aw-theme] body .aw-sr .aw-sr-filters .aw-sr-chip{justify-content:center;padding:0 8px!important}
}
/* New results ease in instead of snapping in place (Oct 10): a card that enters the list fades up briefly. */
@keyframes aw-src-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
html[data-aw-theme] body .aw-sr .aw-sr-list>li{animation:aw-src-in .24s ease-out both}
html[data-aw-theme] body .aw-sr .aw-src-photo{background:var(--ws-soft)}
@media (prefers-reduced-motion:reduce){html[data-aw-theme] body .aw-sr .aw-sr-list>li{animation:none}}
