/* Scoped repairs: preserve approved branding and other page layouts. */
.hero .hero-content { width:min(880px,100%); max-width:880px; margin-inline:auto!important; text-align:center!important; padding:4rem 24px 6rem!important; align-self:center!important; }
.hero { justify-content:center!important; align-items:center!important; }
.hero .hero-title,.hero .hero-sub,.hero .hero-eyebrow { text-align:center!important; margin-inline:auto!important; }
.hero .hero-sub { max-width:620px; }
.hero .hero-search-wrap { width:100%; max-width:520px!important; margin:1.75rem auto 0!important; text-align:left; }
.hero .hero-search-dropdown { max-height: min(340px,42svh); overflow-y:auto; }
.p1-layout { grid-template-columns: minmax(340px,420px) minmax(0,1fr); height:calc(100dvh - var(--nav-h)); }
.p1-list { min-height:0; overscroll-behavior:contain; }
.p1-map { position:relative!important; top:0!important; height:100%!important; min-height:0; background:#eaf0f4; }
#map {width:100%;height:100%;padding:0;}
@media(max-width:900px){
 .p1-layout { display:flex; flex-direction:column; height:auto; }
 .p1-map { display:block!important; order:-1; height:510px!important; }
 .p1-list { overflow:visible; }
 .p1-list-header { position:static; }

 .hero .hero-content { padding:3rem 20px 5rem!important; }
}
@media(max-height:500px) and (min-width:901px){.p1-layout{height:600px}}

.bv-home-hero .hero-buttons,.bv-home-hero .hero-ctas {justify-content:center!important;}
/* Let county suggestions extend below the hero instead of clipping at its edge. */
.hero.bv-home-hero {overflow:visible!important;}

.p1-list-header h1{font-size:30px!important;line-height:1.12!important;margin-bottom:8px!important}
.p1-list-header{padding:18px 20px 14px}
.p1-list-meta{font-size:13px!important}
.comm-card-cities,.comm-spec{font-size:12px!important}
.comm-card-price{font-size:14px!important}
.comm-card-actions button{min-height:44px;font-size:12px!important;padding:6px 10px}
.comm-card-specs{gap:8px;flex-wrap:wrap}
/* The old phone layout hid #map even after its panel was restored. */
#page-p1 #map{display:block!important;}
