/* v4.2: theme-safe home cards and compact, fully expanded apartment results. */
.rb-home :is(.rb-promotions,.rb-selection){background:var(--rb-surface)!important;color:var(--rb-text)!important;border-color:var(--rb-line)}
.rb-home :is(.rb-promotions,.rb-selection) :is(h3,a,.rb-card-link){color:var(--rb-text)!important}
.rb-home :is(.rb-promotions,.rb-selection) :is(p,.rb-card-number){color:var(--rb-muted)!important}
.rb-home :is(.rb-promotions,.rb-selection) .rb-icon-box{background:var(--rb-soft);color:var(--rb-blue)}
.rb-home .rb-programs span{background:var(--rb-soft);color:var(--rb-text);border-color:var(--rb-line)}
body.rb-service.rb-page-auto_selection .flats-grid{gap:12px}
body.rb-service.rb-page-auto_selection .flat-card .plan-thumbnail{height:112px}
body.rb-service.rb-page-auto_selection .flat-card .body{padding:12px}
body.rb-service.rb-page-auto_selection .flat-card .body .top-row{margin-bottom:10px;gap:8px}
body.rb-service.rb-page-auto_selection .flat-card .body .apartment{font-size:18px}
body.rb-service.rb-page-auto_selection .flat-card .body .apartment small{display:inline;font-size:12px;margin:0}
body.rb-service.rb-page-auto_selection .flat-card .rb-card-section-title{margin:10px 0 7px;padding-top:10px;font-size:11px;letter-spacing:.4px}
body.rb-service.rb-page-auto_selection .flat-card .body .details{gap:6px 12px}
body.rb-service.rb-page-auto_selection .flat-card .body .details>span{font-size:13px}
body.rb-service.rb-page-auto_selection .flat-card .body .details .label{display:inline;margin:0;font-size:12px}
body.rb-service.rb-page-auto_selection .flat-card .body .price-block{padding:9px 10px;gap:6px}
body.rb-service.rb-page-auto_selection .flat-card .body .price-block .price{font-size:22px}
body.rb-service.rb-page-auto_selection .flat-card .body .price-old{font-size:12px;margin-top:3px}
body.rb-service.rb-page-auto_selection .flat-card .body .mortgage-info{padding:10px;gap:6px;font-size:12px;line-height:1.5}
body.rb-service.rb-page-auto_selection .flat-card .body .mortgage-info .payment{font-size:17px;padding:7px 0;margin:2px 0}
body.rb-service.rb-page-auto_selection .flat-card .multi-bank-header{font-size:12px;gap:4px 12px;padding-bottom:7px}
body.rb-service.rb-page-auto_selection .flat-card .banks-list{gap:6px}
body.rb-service.rb-page-auto_selection .flat-card .bank-row{padding:8px;gap:6px}
body.rb-service.rb-page-auto_selection .flat-card .bank-name{font-size:13px}
body.rb-service.rb-page-auto_selection .flat-card .bank-payment{font-size:16px}
body.rb-service.rb-page-auto_selection .flat-card .rb-building-caption{padding-top:8px!important;margin-top:8px!important}
body.rb-service.rb-page-auto_selection .flat-card .share-block{padding:8px 12px}
body.rb-service.rb-page-auto_selection .flat-card .share-btn{min-height:44px}
body.rb-service.rb-page-auto_selection .flat-card :is(.body,.price-block,.mortgage-info,.bank-row,.bank-left,.bank-right,.bank-info,.details>span){min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(min-width:1100px){
body.rb-service.rb-page-auto_selection .flats-grid{grid-template-columns:minmax(0,1fr)}
body.rb-service.rb-page-auto_selection .flat-card{display:grid;grid-template-columns:132px minmax(0,1fr)}
body.rb-service.rb-page-auto_selection .flat-card .plan-thumbnail{height:160px;border-bottom:0;border-right:1px solid var(--rb-line)}
body.rb-service.rb-page-auto_selection .flat-card .body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);column-gap:18px;align-items:start}
body.rb-service.rb-page-auto_selection .flat-card .body>.top-row{grid-column:1;grid-row:1}
body.rb-service.rb-page-auto_selection .flat-card .body>.rb-card-section-title:nth-of-type(1){grid-column:1;grid-row:2}
body.rb-service.rb-page-auto_selection .flat-card .body>.details{grid-column:1;grid-row:3}
body.rb-service.rb-page-auto_selection .flat-card .body>.rb-card-section-title:nth-of-type(2){grid-column:1;grid-row:4}
body.rb-service.rb-page-auto_selection .flat-card .body>.price-block{grid-column:1;grid-row:5}
body.rb-service.rb-page-auto_selection .flat-card .body>.rb-card-section-title:nth-of-type(3){grid-column:2;grid-row:1;margin-top:0;padding-top:0;border-top:0}
body.rb-service.rb-page-auto_selection .flat-card .body>.mortgage-info{grid-column:2;grid-row:2/6}
body.rb-service.rb-page-auto_selection .flat-card .body>.rb-building-caption{grid-column:1/-1;grid-row:6}
body.rb-service.rb-page-auto_selection .flat-card .share-block{grid-column:1/-1}
}
@media(max-width:540px){body.rb-service.rb-page-auto_selection .flat-card .body{padding:10px}body.rb-service.rb-page-auto_selection .flat-card .plan-thumbnail{height:100px}}
