/* Zam Zam Estate marketplace layout; preserves existing theme variables */
body.zz-marketplace{background:var(--premium-paper,#f4f8fb)}
.zz-marketplace .properties-hero{min-height:220px;background-image:none;background:linear-gradient(110deg,var(--premium-dark,#062945),var(--premium-dark-2,#0a3658))}
.zz-marketplace .properties-hero .page-hero-overlay{display:none}
.zz-marketplace .page-hero-content{padding-block:36px 41px}
.zz-marketplace .page-hero h1{font-size:clamp(27px,3.4vw,43px);letter-spacing:-.8px;margin-bottom:11px;max-width:960px}
.zz-marketplace .page-hero p{font-size:14px;max-width:780px}
.zz-marketplace .breadcrumb{margin-bottom:13px}
.zz-marketplace .hero-proof{margin-top:15px;gap:20px}
.zz-marketplace .property-directory{padding:35px 0 70px;background:var(--premium-paper,#f4f8fb)}
.zz-marketplace .directory-intro{align-items:end;margin-bottom:21px}
.zz-marketplace .directory-intro h2{font-size:clamp(25px,2.8vw,34px)}
.zz-marketplace .directory-intro p{font-size:13px}
.zz-marketplace .directory-guidance{background:white;border:1px solid var(--line);color:var(--muted)}
.zz-marketplace .properties-layout.top-filter-layout{display:grid;grid-template-columns:285px minmax(0,1fr);align-items:start;gap:23px}
.zz-marketplace .filter-panel.top-filter-panel{display:block;position:sticky;top:106px;width:auto;transform:none;overflow:visible;padding:20px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 9px 25px rgba(6,41,69,.06)}
.zz-marketplace .filter-panel-topline{display:block;margin-bottom:16px;padding-bottom:15px;border-bottom:1px solid var(--line)}
.zz-marketplace .filter-panel-topline h2{font-size:20px;color:var(--premium-dark)}
.zz-marketplace .filter-help-link{font-size:11px;margin-top:13px;padding:8px 12px;display:inline-flex}
.zz-marketplace .purpose-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;background:transparent;border:0;padding:0;margin:0 0 19px}
.zz-marketplace .purpose-tab{min-height:39px;padding:8px 5px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--premium-dark);font-size:11px;white-space:nowrap}
.zz-marketplace .purpose-tab.active{background:var(--brand);border-color:var(--brand);color:#fff}
.zz-marketplace .purpose-tab.active i{color:#fff}
.zz-marketplace .top-filter-form{display:grid;grid-template-columns:1fr;gap:14px;align-items:stretch}
.zz-marketplace .top-filter-form .filter-field{display:grid;gap:6px;font-size:12px;font-weight:800;color:var(--ink)}
.zz-marketplace .top-filter-form .filter-field input,.zz-marketplace .top-filter-form .filter-field select{width:100%;min-height:43px;font-size:12px;padding:9px 12px}
.zz-marketplace .top-filter-form .filter-keyword input{padding-left:38px}
.zz-marketplace .top-filter-actions{grid-column:auto;margin-top:2px;display:grid;grid-template-columns:1fr;gap:6px}
.zz-marketplace .top-filter-actions .btn{width:100%;min-width:0;padding:11px}
.zz-marketplace .filter-reset{padding:9px}
.zz-marketplace .listing-results{min-width:0}
.zz-marketplace .results-toolbar{padding:12px 18px;border:1px solid var(--line);border-radius:12px;background:white;min-height:62px;margin-bottom:15px;box-shadow:0 5px 18px rgba(6,41,69,.03)}
.zz-marketplace .results-toolbar p{font-size:13px}
.zz-marketplace .directory-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:15px}
.zz-marketplace .directory-grid .listing-card{display:grid;grid-template-columns:minmax(190px,33%) minmax(0,1fr);border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#fff;box-shadow:0 9px 25px rgba(6,41,69,.05);transition:.2s}
.zz-marketplace .directory-grid .listing-card:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(6,41,69,.1)}
.zz-marketplace .directory-grid .listing-card[hidden]{display:none}
.zz-marketplace .listing-card .property-media{height:100%;min-height:231px;aspect-ratio:auto;background:#e5edf2}
.zz-marketplace .listing-card .property-media>a,.zz-marketplace .listing-card .property-media img{display:block;width:100%;height:100%}
.zz-marketplace .listing-card .property-media img{object-fit:cover}
.zz-marketplace .listing-card .property-body{padding:18px 19px;display:flex;flex-direction:column;min-width:0}
.zz-marketplace .listing-card .property-body h3{font-size:18px;min-height:0;line-height:1.32;margin:0 0 8px}
.zz-marketplace .listing-card .property-body .price{font-size:22px;color:var(--brand-dark);margin:0 0 12px}
.zz-marketplace .listing-card .property-body .location{margin:0 0 7px}
.zz-marketplace .listing-card .property-meta{margin-top:auto;padding:10px 0;font-size:11px}
.zz-marketplace .listing-card .card-actions{padding-top:12px;gap:10px}
.zz-marketplace .listing-card .card-actions .btn{background:var(--premium-dark);border-color:var(--premium-dark);color:#fff}
.zz-marketplace .listing-card .card-actions .btn:hover{background:var(--brand);border-color:var(--brand)}
.zz-marketplace .results-note{margin-top:17px}
.zz-mobile-filter-button,.zz-close-filters{display:none}
.zz-filter-overlay[hidden]{display:none!important}
@media(max-width:1060px){.zz-marketplace .properties-layout.top-filter-layout{grid-template-columns:247px minmax(0,1fr);gap:17px}.zz-marketplace .directory-grid .listing-card{grid-template-columns:minmax(170px,38%) minmax(0,1fr)}}
@media(max-width:860px){
 .zz-marketplace .properties-layout.top-filter-layout{display:block}
 .zz-marketplace .directory-guidance{display:none}
 .zz-marketplace .directory-intro{margin-bottom:17px}
 .zz-marketplace .zz-mobile-filter-button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:43px;margin-bottom:14px;border:1px solid var(--brand);border-radius:10px;background:var(--brand);color:#fff;font-weight:800;cursor:pointer}
 .zz-marketplace .filter-panel.top-filter-panel{display:block;position:fixed;top:0;right:0;bottom:0;width:min(360px,90vw);height:100dvh;z-index:1500;overflow-y:auto;border-radius:0;padding:25px 20px;transform:translateX(105%);transition:transform .25s ease;box-shadow:-15px 0 50px rgba(0,0,0,.18)}
 .zz-marketplace .filter-panel.top-filter-panel.zz-open{transform:translateX(0)}
 .zz-marketplace .zz-filter-overlay:not([hidden]){display:block;position:fixed;inset:0;z-index:1499;background:rgba(6,30,47,.6)}
 .zz-marketplace .zz-close-filters{display:grid;place-items:center;float:right;width:31px;height:31px;background:var(--brand-soft);color:var(--premium-dark);border:0;border-radius:8px;cursor:pointer}
 .zz-filter-lock{overflow:hidden}
 .zz-marketplace .listing-results{width:100%}
}
@media(max-width:640px){
 .zz-marketplace .properties-hero{min-height:auto}.zz-marketplace .page-hero-content{padding-block:24px 30px}
 .zz-marketplace .page-hero h1{font-size:28px}.zz-marketplace .page-hero p{font-size:13px}
 .zz-marketplace .hero-proof{gap:9px;font-size:11px;display:flex;flex-wrap:wrap}
 .zz-marketplace .property-directory{padding:24px 0 50px}
 .zz-marketplace .directory-grid .listing-card{grid-template-columns:1fr}
 .zz-marketplace .listing-card .property-media{height:220px;min-height:220px}
 .zz-marketplace .listing-card .property-body{padding:16px}
 .zz-marketplace .listing-card .property-body h3{font-size:17px}
 .zz-marketplace .results-toolbar{gap:8px;flex-wrap:wrap}
 .zz-marketplace .results-toolbar label{width:100%}
}
