@layer matte-ui {
/* Keep the original backdrop blur on glass surfaces; action colors and selection rings stay matte. */
button,.btn,[role="button"]{background-image:none!important;box-shadow:none!important;text-shadow:none!important;filter:none!important}
button::before,button::after,.btn::before,.btn::after{background-image:none!important;box-shadow:none!important;filter:none!important}
.home-search-mode::before,.home-search-mode::after,.housing-find-btn::before,.housing-find-btn::after{display:none!important}
.btn.housing-orange,.btn.housing-find-btn,[data-housing-find],.home-search-mode,.nav-install{background-color:var(--jtbs-action-pink,#D90043)!important;color:#fff!important}
.search-card,.housing-find-mobile-card,.housing-shell,.housing-mode-card,header .nav{background-image:none!important;box-shadow:none!important}
header .nav-actions .nav-review{box-sizing:border-box!important;height:var(--nav-review-height,40px)!important;min-height:var(--nav-review-height,40px)!important;max-height:var(--nav-review-height,40px)!important;padding:0 var(--nav-review-pad,14px)!important;font-size:var(--nav-review-font,13px)!important;line-height:var(--nav-review-line,1.2)!important;font-weight:var(--nav-review-weight,750)!important;border-radius:var(--nav-review-radius,14px)!important;background-color:var(--jtbs-action-pink,#D90043)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid rgba(255,255,255,.92)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.13)!important;white-space:nowrap!important;align-items:center!important;justify-content:center!important}
header .nav-actions .nav-review::before,header .nav-actions .nav-review::after{display:none!important}

/* Search focus belongs to the individual control, never the surrounding bubble. */
.search-card:focus-within,.housing-find-mobile-card:focus-within{border-color:#e3e4e3!important;outline:none!important;box-shadow:none!important}
.search-card:focus-within::before,.search-card:focus-within::after{box-shadow:none!important;outline:none!important}
/* Opaque navigation and legible secondary actions over photos and map results. */
header .nav{background:rgba(246,245,241,.72)!important;opacity:1!important}
.btn.btn-light{background-color:#eeedea!important;color:#22252a!important;border-color:#c7c9c7!important;opacity:1!important}
header .btn.nav-contact,header .btn.nav-discussions,.housing-nav-message-link{background:#e1e2df!important;color:#202328!important;-webkit-text-fill-color:#202328!important;border:1px solid #b9bdb9!important;opacity:1!important}
header .btn.nav-contact:hover,header .btn.nav-discussions:hover,.housing-nav-message-link:hover{background:#d4d6d2!important;border-color:#939993!important}
/* Same frosted material for fullscreen and location on every MapLibre map. */
.map-fullscreen-btn,.map-fullscreen-btn:hover,.maplibregl-ctrl-group{
 background:rgba(255,255,255,.72)!important;background-image:none!important;
 border:1px solid rgba(255,255,255,.86)!important;
 backdrop-filter:blur(22px) saturate(145%)!important;-webkit-backdrop-filter:blur(22px) saturate(145%)!important;
}
.maplibregl-ctrl-group button{background-color:transparent!important}
.maplibregl-ctrl-group button:hover{background-color:rgba(255,255,255,.25)!important}
/* Keep the filter controls below the measured sticky header while results scroll. */
.discovery-expanded .discovery-filter-bar{position:sticky!important;top:var(--jtbs-sticky-header-height,110px)!important;z-index:20;background:#fff!important;padding:14px 0!important;align-self:start;isolation:isolate}


/* Light secondary navigation, retaining readable text. */
header .btn.nav-contact,header .btn.nav-discussions,header .nav-actions .member-auth-link,header .housing-nav-message-link{background:#f5f5f2!important;border-color:#d9dcd8!important;color:#25282c!important;-webkit-text-fill-color:#25282c!important}
header .btn.nav-contact:hover,header .btn.nav-discussions:hover,header .nav-actions .member-auth-link:hover{background:#eaece7!important}
/* Deliberate selection rings, separate from default focus styling. */
.discovery-search-pill.is-finding{box-shadow:0 0 0 3px rgba(217,0,67,.14)!important}
#searchForm.is-address-active{outline:2px solid #242424!important;outline-offset:3px!important}
.discovery-search-pill.is-finding .discovery-pill-action:first-of-type{color:#D90043!important}
.discovery-search-pill{position:relative}
.discovery-mode-menu{position:absolute;top:calc(100% + 12px);left:50%;transform:translateX(-50%);display:flex;gap:8px;padding:8px;border:1px solid #e1e3df;border-radius:20px;background:#fff;z-index:60;width:max-content}
.discovery-mode-menu[hidden]{display:none!important}
.discovery-mode-menu .btn{min-height:42px;padding:10px 18px;background:#D90043!important;color:#fff!important;border:1px solid #D90043;border-radius:14px;font-size:13px}
.home-search-choices{border-radius:18px}
/* A transparent outer capsule; the colored button keeps its peers' measured size. */
header .nav-actions .nav-review-surround{display:inline-flex!important;align-items:center;justify-content:center;padding:4px;border:2px solid rgba(255,255,255,.96);border-radius:calc(var(--nav-review-radius,14px) + 6px);background:rgba(255,255,255,.32);flex:0 0 auto}
header .nav-actions .nav-review-surround .nav-review{position:static!important;transform:none!important;margin:0!important;box-sizing:border-box!important}
@media(max-width:760px){
 header .nav-actions .nav-review-surround{padding:2px;border-radius:16px}
 header .nav-actions .nav-review-surround .nav-review{font-size:10px!important;padding-inline:7px!important}
 .discovery-mode-menu{max-width:calc(100vw - 32px);box-sizing:border-box}
}


/* One neutral capsule, visible from opening through focus and blur. */
.home-search-choices:not([hidden]){box-shadow:none!important;background:transparent!important;background-image:none!important}
.housing-find-mobile-card:has(.home-search-choices:not([hidden])),
.housing-find-mobile-card:has(.home-search-choices:not([hidden])):focus-within{border-color:rgba(255,255,255,.96)!important;box-shadow:none!important;outline:none!important;transition:none!important}
.housing-find-mobile-card:has(.home-search-choices:not([hidden]))::before,
.housing-find-mobile-card:has(.home-search-choices:not([hidden]))::after{display:none!important}
.home-search-choices-desktop:not([hidden]){outline:1px solid rgba(255,255,255,.96)!important;outline-offset:5px!important}
.home-search-choices .home-search-mode:focus-visible{outline:2px solid rgba(255,255,255,.96)!important;outline-offset:-4px!important}

/* Plain background without decorative dotted networks. */
.ambient-route-layer,.route-texture{display:none!important}

/* Returning focus to Find a home must preserve the capsule's white rim. */
.search-card:has(>[data-housing-find]:not([hidden])),
.search-card:has(>[data-housing-find]:not([hidden])):focus-within{
 border-color:rgba(255,255,255,.96)!important;
 transition:none!important;
}

/* Only a return from the search header selects the home-search capsule. */
body.home-search-return-selected .housing-find-mobile-card:has(.home-search-choices:not([hidden])),
body.home-search-return-selected .housing-find-mobile-card:has(.home-search-choices:not([hidden])):focus-within,
body.home-search-return-selected .home-search-choices-desktop:not([hidden]){
 outline:2px solid #D90043!important;
 outline-offset:3px!important;
 box-shadow:none!important;
}
body.home-search-returning .hero-grid > :first-child{view-transition-name:home-search-intro}
::view-transition-group(home-search-map){animation-duration:550ms;animation-timing-function:cubic-bezier(.2,.75,.3,1)}
::view-transition-new(home-search-intro){animation:home-search-intro-in 420ms ease-out 90ms both}
::view-transition-old(home-search-intro){animation:none}
@keyframes home-search-intro-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
 body.home-search-returning .hero-grid > :first-child{view-transition-name:none}
 ::view-transition-new(home-search-intro){animation:none}
}

/* Restore the original frosted material on navigation and map layer controls. */
header .nav{
 backdrop-filter:blur(20px) saturate(145%)!important;
 -webkit-backdrop-filter:blur(20px) saturate(145%)!important;
}
.map-type-legend .map-layer-toggle,
.map-type-legend .map-layer-toggle:hover,
.map-type-legend .map-layer-toggle:focus-visible{
 backdrop-filter:blur(22px) saturate(175%)!important;
 -webkit-backdrop-filter:blur(22px) saturate(175%)!important;
}

/* The primary filter action is solid black before hover or keyboard submission. */
#discoveryFilterApply:not(:disabled){
 background:#171717!important;
 background-image:none!important;
 border-color:#171717!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 opacity:1!important;
}

/* One geometric close icon, independent of font metrics and legacy pseudo-glyph offsets. */
:is(button.close,button.sheet-close,button.member-panel-close,button.install-app-close,button.classic-detail-close,button.property-follow-close,button.review-photo-lightbox-close,button[data-filter-close],button.maplibregl-popup-close-button,button.map-fullscreen-btn[aria-pressed="true"]){
 display:grid!important;
 place-items:center!important;
 padding:0!important;
 font-size:0!important;
 line-height:0!important;
 text-align:center!important;
 text-indent:0!important;
}
button.sheet-close,button[data-filter-close]{position:relative}
button.map-fullscreen-btn[aria-pressed="true"]{color:#17191f!important}
:is(button.close,button.sheet-close,button.member-panel-close,button.install-app-close,button.classic-detail-close,button.property-follow-close,button.review-photo-lightbox-close,button[data-filter-close],button.maplibregl-popup-close-button,button.map-fullscreen-btn[aria-pressed="true"])::before{
 content:""!important;
 display:block!important;
 position:absolute!important;
 inset:0!important;
 width:20px!important;
 height:20px!important;
 min-width:0!important;
 min-height:0!important;
 max-width:none!important;
 max-height:none!important;
 margin:auto!important;
 padding:0!important;
 border:0!important;
 border-radius:0!important;
 box-sizing:border-box!important;
 font-size:0!important;
 line-height:0!important;
 transform:none!important;
 translate:none!important;
 rotate:none!important;
 opacity:1!important;
 background-color:currentColor!important;
 background-image:none!important;
 mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 4l12 12M16 4L4 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")!important;
 -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 4l12 12M16 4L4 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")!important;
 mask-size:contain!important;
 -webkit-mask-size:contain!important;
 mask-position:center!important;
 -webkit-mask-position:center!important;
 mask-repeat:no-repeat!important;
 -webkit-mask-repeat:no-repeat!important;
 pointer-events:none!important;
}
:is(button.close,button.sheet-close,button.member-panel-close,button.install-app-close,button.classic-detail-close,button.property-follow-close,button.review-photo-lightbox-close,button[data-filter-close],button.maplibregl-popup-close-button,button.map-fullscreen-btn[aria-pressed="true"])::after{content:none!important;display:none!important}


/* A self-contained white filter capsule below the unchanged glass navigation. */
body.discovery-expanded:not(.home-api-active) .discovery-filter-bar{
 position:sticky!important;
 top:calc(var(--jtbs-sticky-header-height,110px) + 12px)!important;
 z-index:20;
 box-sizing:border-box;
 width:100%;
 max-width:100%;
 min-width:0;
 padding:14px 16px!important;
 margin:0 0 18px!important;
 border:1px solid #e8eae9;
 border-radius:22px;
 background:#fff!important;
 background-image:none!important;
 box-shadow:none!important;
 isolation:isolate;
}
@media(max-width:760px){
 body.discovery-expanded:not(.home-api-active) .discovery-filter-bar{
  top:calc(var(--jtbs-sticky-header-height,110px) + 10px)!important;
  padding:12px!important;
  border-radius:18px;
 }
}

/* Inline location and rent criteria share the full filter state and map price range. */
.discovery-quick-filters{
 display:grid;
 grid-template-columns:minmax(125px,1.45fr) repeat(2,minmax(82px,1fr));
 flex:1 1 320px;
 align-items:end;
 gap:10px;
 margin:0;
 min-width:0;
}
.discovery-quick-filters label{display:grid;gap:5px;min-width:0}
.discovery-quick-filters label>span{font-size:11px;font-weight:650;line-height:1.25;color:#626970;white-space:nowrap}
.discovery-quick-filters input{
 box-sizing:border-box;
 width:100%;
 min-width:0;
 height:40px;
 padding:9px 10px;
 border:1px solid #d8ded9;
 border-radius:11px;
 background:#fff;
 color:#20242a;
 font:inherit;
 font-size:13px;
 line-height:1.25;
}
.discovery-quick-filters input:focus{outline:2px solid rgba(32,36,42,.18);outline-offset:1px;border-color:#939b96}
.discovery-quick-filters [hidden]{display:none!important}
body.discovery-expanded:not(.home-api-active) .discovery-filter-bar{align-items:center;column-gap:12px;row-gap:12px}
.discovery-filter-count{white-space:nowrap}
#discoveryFilterApply:not(:disabled){background:#20242a!important;border-color:#171a1f!important}
#discoveryFilterApply:not(:disabled):hover{background:#2a2f36!important;border-color:#20242a!important}
#discoveryFilterApply:not(:disabled):active{background:#171a1f!important}
#discoveryFilterApply:not(:disabled):focus-visible{outline:3px solid rgba(32,36,42,.18)!important;outline-offset:2px!important}
@media(max-width:600px){
 .discovery-quick-filters{flex-basis:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .discovery-quick-location{grid-column:1/-1}
 .discovery-quick-filters input{font-size:16px}
}

}

@layer matte-ui {
html body #memberPanel #memberAuthSubmit{display:inline-flex!important;align-items:center;justify-content:center;background:#242424!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #242424!important;min-height:48px;padding:0 22px;font-weight:750;visibility:visible!important}
html body #memberPanel #memberAuthSubmit:hover{background:#171717!important;border-color:#171717!important}
html body #memberPanel #memberAuthSubmit:disabled{opacity:.65!important}
}

/* Solid primary actions retain their background when matte styling removes gradients. */
@layer matte-ui {
html body .btn.btn-dark{background:#242424!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#242424!important}
html body .btn.btn-dark:hover{background:#171717!important;border-color:#171717!important}
html body .btn.btn-dark:focus-visible{outline:3px solid rgba(36,36,36,.28)!important;outline-offset:3px!important}
html body .btn.btn-dark:disabled{opacity:.65!important}
}
