/* R17: focused visual correction of the R16R2 home, without changing APIs or role workflows.
   Inherits R16R2 color identity; overrides the highest-priority public stylesheet only. */
:root{--rs17-navy:#18283e;--rs17-red:#b92637;--rs17-stroke:#e3e8ee}
.rs-utilitybar{padding:7px max(4vw,20px);font-weight:560;letter-spacing:0;font-size:11px}
.topbar{height:70px;padding-left:max(4vw,20px);padding-right:max(4vw,20px);gap:24px}
.topbar nav{gap:clamp(12px,1.5vw,24px)}
.topbar nav a{font-size:13px;white-space:nowrap}
.brand{font-size:23px;letter-spacing:-.046em}
.rs-hero{padding:46px 24px 51px!important;background:linear-gradient(115deg,#fff8f8 0%,#fff 42%,#f6f8fb 100%)!important}
.rs-hero::after{width:220px;height:220px;top:-130px;right:-90px;opacity:.34}
.rs-hero-inner{max-width:1150px!important}
.rs-kicker{font-size:11px;letter-spacing:.13em;margin-bottom:14px;display:block}
.rs-hero h1{font-size:clamp(35px,3.4vw,53px)!important;line-height:1.12!important;letter-spacing:-.043em!important;max-width:930px!important;margin:0 auto 12px!important;font-weight:820}
.rs-hero p{font-size:15px!important;line-height:1.55!important;max-width:720px!important;margin:0 auto 23px!important;color:#637084!important}
.rs-market-tabs{max-width:1060px!important;justify-content:flex-start!important;flex-wrap:nowrap;gap:0!important;border:1px solid var(--rs17-stroke)!important;border-bottom:0!important;box-shadow:0 8px 24px rgba(24,40,62,.035);overflow:hidden;border-radius:14px 14px 0 0!important}
.rs-market-tabs .rs-tab{padding:15px clamp(12px,1.9vw,24px)!important;font-size:13px;font-weight:730;white-space:nowrap;border-bottom:3px solid transparent!important;min-height:52px}
.rs-market-tabs .rs-tab.active{background:#fff4f4!important;color:var(--rs17-red)!important;border-bottom-color:var(--rs17-red)!important}
.rs-market-tabs .rs-tab-hint{font-size:10px;margin-left:auto;white-space:nowrap}
.rs-home-search{display:grid!important;grid-template-columns:minmax(0,2.1fr) minmax(112px,.78fr) minmax(152px,1.05fr) minmax(148px,.9fr)!important;grid-template-areas:"where bhk budget submit" "location location location location" "suggest suggest suggest suggest";gap:11px!important;align-items:stretch;padding:15px!important;max-width:1060px!important;background:#fff!important;border:1px solid var(--rs17-stroke)!important;border-top:0!important;border-radius:0 0 14px 14px!important;box-shadow:0 18px 42px rgba(24,40,62,.09)!important;overflow:visible!important}
.rs-home-search>label{min-width:0;min-height:63px;border:1px solid #e4eaf0!important;border-radius:10px!important;background:#fff!important;padding:10px 12px!important;margin:0!important;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:5px!important;cursor:default}
.rs-home-search>label:focus-within{border-color:#a7bacb!important;box-shadow:0 0 0 3px #c5d7e633}
.rs-home-search>label span{font-size:10px!important;color:#617084!important;font-weight:760;letter-spacing:.07em}
.rs-home-search>label input,.rs-home-search>label select{font-size:13px!important;min-height:24px;padding:0!important;min-width:0;max-width:100%;color:#1e324a!important;outline-offset:4px;border:0!important;background:transparent!important}
.rs-home-search>label.rs-search-location{grid-area:where}
.rs-home-search>label:nth-of-type(2){grid-area:bhk}
.rs-home-search>label:nth-of-type(3){grid-area:budget}
.rs-home-search>.rs-search-button{grid-area:submit;min-height:63px!important;height:auto!important;align-self:stretch;justify-self:stretch;width:100%;border-radius:10px!important;font-size:14px!important;font-weight:800!important;white-space:normal!important;margin:0;padding:10px 15px!important}
.rs-home-search>.rs-hero-location-more{grid-area:location;width:100%;min-width:0;grid-column:auto!important;margin:0!important;padding:8px 12px 10px!important;border:1px solid #e9edf2!important;border-radius:10px!important;background:#f7f9fc!important}
.rs-hero-location-more>summary{font-size:12px;font-weight:750!important;color:#344761!important;display:flex;align-items:center;gap:6px;cursor:pointer;padding:2px 0 4px}
.rs-hero-location-more>summary span{margin-left:3px;font-weight:550;color:#778497;font-size:11px}
.rs-hero-location-more>.rs-location-picker{margin:3px 0 0!important;padding:7px 0 0!important;border:0!important;background:transparent!important;border-radius:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.rs-hero-location-more>.rs-location-picker legend{display:none}
.rs-hero-location-more>.rs-location-picker label{border:0!important;background:transparent!important;padding:0!important;margin:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;cursor:default!important;font-size:11px!important;font-weight:730!important;color:#516177!important}
.rs-hero-location-more>.rs-location-picker select{border:1px solid #dfe6ed!important;background:#fff!important;border-radius:8px!important;min-height:42px!important;padding:6px 11px!important;font-size:13px!important;width:100%!important}
.rs-hero-location-more>.rs-location-picker .rs-city-other{grid-column:1/-1}
.rs-hero-location-more>.rs-location-picker .rs-role-location-note,.rs-hero-location-more>.rs-location-picker .rs-city-status{font-size:10px!important;line-height:1.35;margin:0!important;grid-column:1/-1}
.rs-hero-location-more>.rs-location-picker .rs-role-location-note:empty,.rs-hero-location-more>.rs-location-picker .rs-city-status:empty{display:none}
.rs-home-search>#rsLocalitySuggestions{grid-area:suggest;min-width:0;grid-column:auto!important}
.rs-home-search>#rsLocalitySuggestions:empty{display:none}
.rs-trust-row{margin-top:17px!important;display:flex;gap:22px;color:#596a7c;font-size:11px!important;justify-content:center;flex-wrap:wrap}
.rs-trust-row span{white-space:nowrap}
.rs-quick{padding-top:47px!important;padding-bottom:49px!important}
.rs-featured{padding-top:56px!important}
@media(max-width:1160px){.rs-market-tabs .rs-tab-hint{display:none}.topbar nav{gap:12px}}
@media(max-width:1050px){.rs-home-search{grid-template-columns:minmax(0,1.8fr) minmax(105px,.7fr) minmax(125px,.9fr)!important;grid-template-areas:"where bhk budget" "location location location" "submit submit submit" "suggest suggest suggest"}.rs-home-search>.rs-search-button{min-height:46px!important}.rs-home-search>.rs-hero-location-more{grid-column:auto!important}}
@media(max-width:760px){
 .topbar{height:auto;min-height:67px;gap:10px;padding:10px 15px}
 .rs-hero{padding:35px 15px 39px!important}.rs-hero h1{font-size:clamp(32px,7vw,43px)!important;line-height:1.13!important}.rs-hero p{font-size:13px!important;margin-bottom:18px!important}
 .rs-market-tabs{overflow-x:auto;scrollbar-width:thin}.rs-market-tabs .rs-tab{font-size:12px;min-height:47px;padding:12px 14px!important;flex:0 0 auto}
 .rs-home-search{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:"where where" "bhk budget" "location location" "submit submit" "suggest suggest";gap:9px!important;padding:12px!important}
 .rs-home-search>label.rs-search-location,.rs-home-search>.rs-search-button{grid-column:auto!important}
 .rs-home-search>label{min-height:58px;padding:9px 11px!important}
 .rs-hero-location-more>.rs-location-picker{grid-template-columns:1fr!important;gap:8px!important}
 .rs-hero-location-more>.rs-location-picker label{grid-column:1/-1!important}
 .rs-trust-row{gap:10px 15px;margin-top:16px!important;font-size:10px!important}
 .rs-trust-row span{white-space:normal}
 .rs-quick{padding-top:40px!important}
}
@media(max-width:390px){.rs-home-search{grid-template-columns:1fr!important;grid-template-areas:"where" "bhk" "budget" "location" "submit" "suggest"}.rs-market-tabs .rs-tab{padding:11px 12px!important}.rs-hero h1{font-size:32px!important}}
@media(prefers-reduced-motion:reduce){.rs-market-tabs .rs-tab,.rs-home-search .rs-search-button{transition:none!important}}
/* Fieldset default intrinsic sizing must not collapse the three-column location row. */
.rs-home-search>.rs-hero-location-more>.rs-location-picker{width:100%!important;max-width:none!important;box-sizing:border-box!important}
.rs-home-search>.rs-hero-location-more>.rs-location-picker .rs-city-other.hidden{display:none!important}
@media(max-width:920px){
 .topbar{position:relative!important;flex-wrap:wrap!important;min-height:67px;height:auto!important;gap:8px!important}
 .topbar .rs-mobile-menu{display:inline-flex!important;align-items:center;justify-content:center;margin-left:auto}
 .topbar nav#navLinks{display:none!important;order:8;flex:0 0 100%;padding:12px;background:#fff;border:1px solid #e2e6ed;border-radius:10px}
 .topbar nav#navLinks.rs-nav-open{display:flex!important;flex-direction:column;align-items:stretch}
 .topbar .nav-actions{margin-left:0!important;gap:7px!important}
}
/* Named grid row spans every column, not only the first grid track. */
.rs-home-search>.rs-hero-location-more{grid-column:1/-1!important}
.rs-home-search>#rsLocalitySuggestions{grid-column:1/-1!important}
