/* Compact homepage search only; retain shared autocomplete and location flow. */
.townhub-homepage .content>section.home-discovery{--mb-brand-ink:#333333;position:relative;z-index:5;padding:28px 0 60px;background:var(--mb-brand-white);overflow:visible;text-align:left}
.townhub-homepage .home-discovery>.container{max-width:1100px}
.townhub-homepage .home-discovery + .home-business-section{padding-top:30px}
.townhub-homepage .home-discovery h1{font-size:28px;font-weight:600;line-height:1.25;color:var(--mb-brand-ink);margin:0 0 6px;text-align:left}
.townhub-homepage .home-discovery .home-discovery-intro{font-size:14px;line-height:1.5;color:var(--mb-brand-muted);padding:0;margin:0 0 16px;text-align:left}
.townhub-homepage .home-discovery .home-mode-selector{float:none;clear:both;width:100%;margin:0;overflow:visible}
.townhub-homepage .home-discovery .home-mode-selector .th-search-tabs{display:inline-flex;align-items:center;justify-content:flex-start;float:none;flex-wrap:nowrap;gap:2px;width:max-content;max-width:100%;margin:0 0 12px;padding:4px;border:1px solid #eceeef;border-radius:10px;background:#f4f5f6;overflow-x:auto;vertical-align:top}
.townhub-homepage .home-discovery .home-mode-selector .th-search-tabs li{flex:0 0 auto;float:none;margin:0}
.townhub-homepage .home-discovery .home-mode-selector .th-search-tabs a{display:flex;align-items:center;justify-content:center;min-height:36px;padding:6px 16px!important;border:1px solid transparent;border-radius:7px;background:transparent;color:#555b63;font-size:13px;line-height:1.4;text-decoration:none;white-space:nowrap}
.townhub-homepage .home-discovery .home-mode-selector .th-search-tabs a[aria-selected=true]{color:var(--mb-brand-primary);background:white;border-color:#dedfe2;font-weight:600;box-shadow:0 1px 2px #00000008}
.townhub-homepage .home-discovery .home-mode-selector .th-search-tabs a:hover{background:white;color:var(--mb-brand-primary)}
.townhub-homepage .home-discovery .th-search.ww-search{display:block;padding:0;border:0;box-shadow:none;background:white;overflow:visible;border-radius:0}
.townhub-homepage .home-discovery .home-search-bar{position:relative;display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) 156px;gap:0;border:0;border-radius:0;align-items:start;background:transparent;min-height:0;isolation:isolate}
.townhub-homepage .home-discovery .home-search-bar:before{content:'';position:absolute;left:0;right:0;top:0;height:64px;border:1px solid #dfe2e6;border-radius:12px;box-sizing:border-box;z-index:-1;background:white}
.townhub-homepage .home-discovery .home-search-bar .ww-field{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:0;min-height:64px;padding:8px 18px;border:0;margin:0}
.townhub-homepage .home-discovery .home-search-bar .ww-field:first-child{grid-column:1;grid-row:1;border-right:1px solid #e4e6e9}
.townhub-homepage .home-discovery .home-search-bar .ww-field:nth-child(2){grid-column:2;grid-row:1}
.townhub-homepage .home-discovery .home-search-bar .ww-field label{font-size:11px;line-height:16px;margin:0;color:#636970;font-weight:600}
.townhub-homepage .home-discovery .home-search-bar .ww-field label strong{font-size:11px;font-weight:600;margin:0}
.townhub-homepage .home-discovery .home-search-bar .mb-search__control{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0;height:28px}
.townhub-homepage .home-discovery .home-search-bar .mb-search__control>svg{width:16px;height:16px;flex:none}
.townhub-homepage .home-discovery .home-search-bar .ww-field input{height:28px!important;font-size:16px!important;line-height:1.5!important;padding:2px 0!important;color:var(--mb-brand-ink)!important}
.townhub-homepage .home-discovery .home-search-bar .ww-field input::placeholder{color:var(--mb-brand-muted)}
.townhub-homepage .home-discovery .home-search-bar .ww-field:focus-within{outline:2px solid var(--mb-brand-primary);outline-offset:-2px;border-radius:10px}
.townhub-homepage .home-discovery .home-search-bar .ww-field input:focus{outline:0!important}
.townhub-homepage .home-discovery .home-search-bar .ww-clear-location{width:28px;height:28px;padding:0}
.townhub-homepage .home-discovery .home-search-bar .main-search-button{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:center;gap:10px;position:static;width:calc(100% - 16px);height:48px;min-height:48px;padding:0 16px;margin:8px;border-radius:8px;background:var(--mb-brand-primary);color:white;font-size:14px;font-weight:600;letter-spacing:0;float:none}
.townhub-homepage .home-discovery .home-search-bar .main-search-button i{position:static;float:none;margin:0;font-size:14px}
.townhub-homepage .home-discovery .home-search-bar .main-search-button:hover{background:var(--mb-brand-hover)}
.townhub-homepage .home-discovery .home-search-bar .main-search-button:disabled{cursor:wait;opacity:.7}
.townhub-homepage .home-discovery .home-search-helper{grid-column:2/4;grid-row:2;padding:0 0 0 18px;margin-top:8px;text-align:left;min-width:0}
.townhub-homepage .home-discovery .home-search-helper>p{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:baseline;gap:0 4px;margin:0;padding:0;font-size:12px;line-height:18px;text-align:left;color:#666d76}
.townhub-homepage .home-discovery .home-search-helper [data-home-city]{min-height:0;display:inline;color:var(--mb-brand-primary);padding:0;text-underline-offset:3px}
.townhub-homepage .home-discovery .home-search-helper .ww-near-state{justify-content:flex-start;font-size:12px}
.townhub-homepage .home-discovery .home-search-helper .ww-near-state:has([data-near-status]:empty):has([data-near-retry][hidden]):has([data-near-refresh][hidden]){display:none}
.townhub-homepage .home-discovery .home-category-shortcuts{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px;margin-top:14px;width:100%;text-align:left}
.townhub-homepage .home-discovery .home-category-shortcuts[hidden]{display:none!important}
.townhub-homepage .home-discovery .home-popular-label{font-size:12px;color:var(--mb-brand-muted);margin-right:2px}
.townhub-homepage .home-discovery .home-category-shortcuts a{display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;padding:4px 10px;min-height:34px;border:1px solid #e4e6e9;border-radius:7px;background:white;color:#555b63;font-size:13px;line-height:1.4}
.townhub-homepage .home-discovery .home-category-shortcuts svg{width:15px;height:15px;color:var(--mb-brand-muted)}
.townhub-homepage .home-discovery .home-category-shortcuts a:hover{border-color:var(--mb-brand-primary);color:var(--mb-brand-primary);background:var(--mb-brand-soft)}
.townhub-homepage .home-discovery :where(a,button):focus-visible{outline:2px solid var(--mb-brand-primary);outline-offset:2px}
.townhub-homepage .home-discovery .ww-options{border-radius:10px;z-index:1200}
@media(max-width:767px){
.townhub-homepage .content>section.home-discovery>.container{width:calc(100% - 32px)}
.townhub-homepage .home-discovery h1{font-size:24px}
.townhub-homepage .home-discovery .home-mode-selector .th-search-tabs{gap:0}
.townhub-homepage .home-discovery .home-mode-selector .th-search-tabs a{padding:8px 12px!important;min-height:40px;font-size:12px}
.townhub-homepage .home-discovery .home-search-bar{grid-template-columns:minmax(0,1fr);gap:10px}
.townhub-homepage .home-discovery .home-search-bar:before{display:none}
.townhub-homepage .home-discovery .home-search-bar .ww-field:first-child,.townhub-homepage .home-discovery .home-search-bar .ww-field:nth-child(2){grid-column:1;grid-row:auto;border:1px solid #dfe2e6;border-radius:10px;padding:8px 14px;min-height:64px;background:white}
.townhub-homepage .home-discovery .home-search-helper{grid-column:1;grid-row:3;padding:0;margin:-2px 0 0}
.townhub-homepage .home-discovery .home-search-bar .main-search-button{grid-column:1;grid-row:4;width:100%;height:48px;margin:0;border-radius:8px}
.townhub-homepage .home-discovery .home-category-shortcuts{gap:6px;margin-top:14px}
.townhub-homepage .home-discovery .home-popular-label{flex-basis:100%;margin:0}
.townhub-homepage .home-discovery .home-category-shortcuts a{min-height:38px;padding:6px 9px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.townhub-homepage .home-discovery *{scroll-behavior:auto!important;transition:none!important}}



