@import url("/assets/design-foundation.css?v=6dbe4f46e583");
/* Both browse modes share the same heading and search panel rhythm. */
#homes,#communities{padding-top:24px}
#homes .section-head,#communities .section-head{margin:0 0 14px}
#homes .section-head h2,#communities .section-head h2{margin:7px 0 0}
.jm-search-panel{background:#fff;border:1px solid var(--jm-border);border-radius:var(--jm-card-radius);padding:16px;gap:10px;align-items:end;margin:0 0 14px;box-shadow:none}
#homes .jm-search-panel,#communities .jm-search-panel{border-radius:var(--jm-card-radius);margin:0 0 14px;padding:16px;box-shadow:none}
.jm-search-panel button{background:var(--jm-utility-button);color:#fff;border:1px solid var(--jm-gold);border-radius:var(--jm-button-radius);min-height:var(--jm-touch-height)}
.jm-search-panel input,.jm-search-panel select{min-width:0;width:100%;min-height:var(--jm-touch-height);border-radius:var(--jm-button-radius)}
#homes .inventory-meta,#communities #community-count{margin:0 0 14px;font-size:13px;line-height:1.5}
@media(max-width:620px){#homes,#communities{padding-top:18px}#homes .jm-search-panel,#communities .jm-search-panel{padding:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#homes .jm-search-panel button,#communities .jm-search-panel button{grid-column:1/-1}}

/* Generated community pages use the same search panel without changing filter behavior. */
.inventory-section .inventory-controls.jm-search-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--jm-border);border-radius:var(--jm-card-radius);padding:16px;gap:10px;margin:0 0 14px;box-shadow:none}
.inventory-section .jm-search-panel label{min-width:0;font-size:13px;font-weight:700}
.inventory-section .jm-search-panel input,.inventory-section .jm-search-panel select{min-width:0;width:100%;min-height:var(--jm-touch-height);border-radius:var(--jm-button-radius)}
.inventory-section .jm-search-panel button{grid-column:1/-1;background:var(--jm-utility-button);color:white;border:1px solid var(--jm-gold);border-radius:var(--jm-button-radius);min-height:var(--jm-touch-height)}
.inventory-section .inventory-count{margin:0 0 14px;font-size:13px;line-height:1.5}
@media(max-width:620px){.inventory-section .inventory-controls.jm-search-panel{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:8px}.inventory-section .jm-search-panel .community-search-query{grid-column:1/-1}}

/* A lone city filter spans the mobile community search row. */
@media(max-width:620px){#communities .jm-search-panel .field:has(#community-city){grid-column:1/-1}}

/* Shared community results layout: filters first, then heading and inventory metadata. */
.inventory-first .inventory-section:has(> .inventory-controls.jm-search-panel){display:flex;flex-direction:column}
.inventory-first .inventory-section > .inventory-controls.jm-search-panel{order:-1;margin-bottom:18px!important}
.inventory-first .inventory-section:has(> .inventory-controls.jm-search-panel)>h2{margin:0 0 10px!important}
.hero.community-photo-hero>h1{margin-bottom:2px!important}
.hero.community-photo-hero>.community-location{margin:2px 0 0!important;line-height:1.35!important}

/* Match the approved mobile community banner on desktop; retain underlying links. */
@media(min-width:621px){.hero.community-title>.actions{display:none!important}}
