/* RealHouse V8: content width follows available main column, not only viewport. */
.v520-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.v520-section,.v520-row>*{min-width:0}
.v520-row{overflow-wrap:anywhere}
@media(max-width:1280px){
 .v520-grid{grid-template-columns:minmax(0,1fr)}
 .v541-valuation-head{flex-direction:column;align-items:stretch}
 .v541-valuation-head>.btn{align-self:flex-start;white-space:normal}
 .v520-row{grid-template-columns:minmax(0,1fr) auto}
 .v520-row>*:nth-child(2),.v520-row>*:nth-child(4){grid-column:1/-1}
 .v520-alert{flex-wrap:wrap}
 .v520-alert span{text-align:left;overflow-wrap:anywhere}
}
/* Give long page names their own row on smaller laptops. */
@media(min-width:901px) and (max-width:1280px){
 .topbar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 16px}
 .topbar>.rh-back-btn{grid-column:1;grid-row:1}
 .topbar>div:not(.top-actions){grid-column:2;grid-row:1;min-width:0}
 .topbar h1{font-size:21px;line-height:1.3;overflow-wrap:anywhere}
 .topbar .top-actions{grid-column:1/-1;grid-row:2;width:100%;max-width:100%;justify-content:flex-end}
 .topbar .top-actions>.rh26-find-button{max-width:none}
}
