.geography-fields,.geography-filters{min-inline-size:0;margin:0;padding:1rem;border:1px solid #d5e1e9;border-radius:12px}
.geography-fields legend,.geography-filters legend{padding-inline:.35rem;font-weight:700;color:var(--primary,#153e5c)}
.geography-fields .field,.geography-filter-pair .field{min-inline-size:0}
.geography-fields select,.geography-filters select{max-inline-size:100%;inline-size:100%}
.geography-fields select[multiple]{min-block-size:12rem;padding:.4rem;line-height:1.65}
.geography-fields select[multiple] option{padding:.35rem .5rem}
.geography-consent{align-items:flex-start;margin-block:1rem .4rem}
.geography-filter-pair+.geography-filter-pair{margin-block-start:1rem;padding-block-start:1rem;border-block-start:1px solid #d5e1e9}
.geography-pair-label{margin-block:.4rem;font-weight:700}
.geography-fields [hidden],.geography-filters [hidden]{display:none!important}
.directory-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-block-end:1.5rem}
.directory-filter-grid .geography-filters{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.directory-filter-grid .geography-filters>p{grid-column:1/-1}
.directory-filter-grid .geography-filter-pair+.geography-filter-pair{margin:0;padding:0;border:0}
/* Compact search: stable header row; expandable panel outside its flow. */
.header .main-header{position:relative;gap:14px;padding-block:10px;align-items:center}.header .brand-image{width:210px;height:auto}.header-actions{gap:10px}.header-search{max-width:none}.marketplace-quick-search{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}.quick-search-row{display:flex;min-width:0;gap:6px}.quick-search-row input{min-width:0;width:100%;height:40px;padding:7px 10px;border:1px solid #c7d8e2;border-radius:8px;background:white;font-size:.875rem}.quick-search-row .button{flex-shrink:0;padding:7px 12px;min-height:40px}.quick-search-details{display:contents}.quick-search-details>summary{grid-column:2;grid-row:1;cursor:pointer;padding:8px 10px;border:1px solid #b4cbd9;border-radius:8px;color:var(--primary);font-size:.82rem;font-weight:600;background:white;list-style:none;white-space:nowrap}.quick-search-details>summary::before{content:'+';margin-inline-end:.35rem}.quick-search-details[open]>summary::before{content:'−'}.quick-search-details>summary:focus-visible,.compact-search-panel>summary:focus-visible{outline:3px solid var(--secondary);outline-offset:3px}.quick-search-filters{position:absolute;inset-inline:0;top:100%;z-index:50;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;gap:10px;align-items:end;padding:12px;border:1px solid #d5e1e9;border-radius:10px;background:white;box-shadow:0 8px 20px #123b5d18}.quick-search-filters .field,.product-horizontal-filters .field{min-width:0;margin:0}.quick-search-filters label,.product-horizontal-filters label{font-size:.8rem;margin-bottom:4px}.quick-search-filters select,.product-horizontal-filters select,.product-horizontal-filters input:not([type=checkbox]){width:100%;min-width:0;height:38px;padding:6px 9px;font-size:.85rem}.geography-filters.compact-location{min-width:0;margin:0;padding:0;border:0}.compact-location .geography-filter-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.compact-location>p{font-size:.7rem;margin-bottom:5px}.compact-filter-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.compact-filter-actions .button{padding:7px 10px;min-height:36px;font-size:.8rem;white-space:nowrap}.product-search-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,1fr);gap:16px;align-items:center;margin-block:16px}.product-search-heading h1{font-size:clamp(1.45rem,2.5vw,2rem);margin-bottom:6px}.product-search-heading p{margin-bottom:0;font-size:.875rem}.listing-layout.product-horizontal-filters{display:block}.product-horizontal-filters>.filter-panel{position:static;width:100%;margin-block-end:14px;padding:10px 12px}.compact-search-panel>summary{cursor:pointer;font-size:.875rem;font-weight:600;color:var(--primary)}.product-horizontal-filters #listing-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end;margin-top:10px}.product-horizontal-filters .compact-location{grid-column:span 2}.product-horizontal-filters .checkbox{margin:0;align-self:center}.product-horizontal-filters .compact-filter-actions{grid-column:span 2;justify-content:flex-end}@media(max-width:1000px){.header .main-header{flex-wrap:wrap;gap:8px}.marketplace-quick-search{order:3;flex-basis:100%}.header-actions{margin-inline-start:auto}.quick-search-filters{grid-template-columns:1fr 2fr}.quick-search-filters .compact-filter-actions{grid-column:1/-1;justify-content:flex-end}.product-horizontal-filters #listing-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.header .brand-image{width:150px}.header-actions .button{padding:7px 9px;font-size:.75rem}.header-actions select{max-width:90px;padding:6px}.quick-search-details>summary{font-size:.75rem;padding:9px 7px}.quick-search-filters{grid-template-columns:1fr;gap:8px;padding:10px}.quick-search-filters .compact-filter-actions{grid-column:auto}.product-search-heading{grid-template-columns:1fr;gap:8px}.product-horizontal-filters #listing-filters{grid-template-columns:minmax(0,1fr)}.product-horizontal-filters .compact-location,.product-horizontal-filters .compact-filter-actions{grid-column:auto}.product-horizontal-filters .compact-filter-actions{justify-content:flex-start}}

/* Responsive search and directories: retain usable fields and touch targets. */
.directory-quick-search{flex-wrap:wrap;align-items:center}
.directory-quick-search input{flex:1 1 220px;width:auto;min-inline-size:0}
.directory-quick-search .button{white-space:normal;text-align:center}
@media(max-width:780px){
 .header .main-header>.brand,.header .main-header>.header-actions{min-inline-size:0;max-inline-size:100%}
 .header .main-header>.header-actions{flex-wrap:wrap}
 .quick-search-row input,.quick-search-filters select,.product-horizontal-filters select,.product-horizontal-filters input:not([type=checkbox]){font-size:16px;min-height:44px}
 .quick-search-row .button,.quick-search-details>summary,.compact-filter-actions .button{min-height:44px}
 .directory-filter-grid{grid-template-columns:minmax(0,1fr)}
 .directory-filter-grid .geography-filters{grid-template-columns:minmax(0,1fr)}
 .directory-filter-grid>*{min-inline-size:0}
}
@media(max-width:540px){
 .home-page .header .brand-image,.header .brand-image{width:150px;max-inline-size:100%}
 .header .main-header{align-items:center}
 .header .main-header>.header-actions{flex:1 1 100%;margin-inline-start:0;justify-content:flex-end;gap:8px}
 .header-actions select{font-size:16px}
 .marketplace-quick-search{grid-template-columns:minmax(0,1fr);position:relative;width:100%}
 .marketplace-quick-search>.quick-search-row{grid-column:1;grid-row:1}
 .quick-search-details>summary{grid-column:1;grid-row:2;justify-self:start;white-space:normal}
 .quick-search-filters{position:static;grid-column:1;grid-row:3;box-shadow:none;min-inline-size:0}
 .quick-search-details:not([open])>.quick-search-filters{display:none}
 .compact-location .geography-filter-pair{grid-template-columns:minmax(0,1fr)}
 .directory-quick-search input{flex-basis:100%}
 .directory-quick-search .button{flex:1 1 auto}
}
