/* Mzansi Locals | October 2026 editorial-tech visual language.
   Deep ink + slate + marine blue + copper; purposeful accents, no neon glass. */
:root,html[data-theme="light"]{
  --bg:#f2f4f6;--surface:#fff;--surface2:#edf1f3;
  --text:#162736;--muted:#61717d;--line:#dce4e9;
  --brand:#115c75;--brand2:#133c57;--cyan:#337f99;
  --lime:#54887b;--accent:#be8a4d;--shadow:0 7px 25px rgba(21,39,56,.055);
}
html[data-theme="dark"]{
  --bg:#0d1721;--surface:#172634;--surface2:#203442;
  --text:#ecf1f5;--muted:#a8bdc9;--line:#334959;
  --brand:#8dc4d8;--brand2:#78adc5;--cyan:#88c1d6;
  --lime:#87b4a5;--accent:#dbb585;--shadow:0 10px 30px rgba(0,0,0,.18);
}
body,html[data-theme="light"] body{background:#f2f4f6;}
html[data-theme="dark"] body{background:#0d1721;}
.topbar{background:rgba(250,251,252,.97)!important;box-shadow:0 1px 0 rgba(22,39,54,.08)}
html[data-theme="dark"] .topbar{background:rgba(13,23,33,.97)!important}
.navcta,.btn:not(.secondary),.searchbar button{background:#115c75!important;box-shadow:none!important;letter-spacing:.01em;}
html[data-theme="dark"] .navcta,html[data-theme="dark"] .btn:not(.secondary),html[data-theme="dark"] .searchbar button{background:#31738a!important;color:#fff!important}
.navcta:hover,.btn:not(.secondary):hover,.searchbar button:hover{filter:brightness(1.08)}
.hero{background:linear-gradient(110deg,rgba(11,28,40,.97) 3%,rgba(16,49,67,.90) 58%,rgba(25,53,65,.48)),url('/static/sa-skyline.webp') center 49%/cover no-repeat;border-radius:0 0 18px 18px;}
.hero:after{height:3px;background:#b68d61}
.hero h1 span,.services-hero h1 span{background:none;-webkit-background-clip:initial;background-clip:initial;color:#a8d5df}
.hero .eyebrow{color:#e1ba87;letter-spacing:.11em}
.hero .searchbar{background:#fff;grid-template-columns:minmax(180px,1.6fr) repeat(3,minmax(115px,.72fr)) auto;gap:2px;border-radius:12px;box-shadow:0 12px 24px rgba(0,0,0,.1)}
.hero .searchbar input,.hero .searchbar select{background:#fff;color:#20394a;border-radius:7px;min-width:0}
.hero .searchbar button{min-width:90px}
.hero .command-card{background:rgba(10,24,34,.85);border:1px solid rgba(212,230,236,.19);box-shadow:none}
.hero .command-card>a{background:rgba(255,255,255,.035);border-color:rgba(212,230,236,.13)}
.hero .command-card .ico{background:rgba(148,202,215,.13);color:#b5d8df}
.section-head h2{letter-spacing:-.035em}
.mz-discovery-panel{padding:22px 24px 15px!important;border-radius:17px!important;background:var(--surface)!important;box-shadow:0 8px 30px rgba(19,39,54,.045)!important;border:1px solid var(--line)!important;backdrop-filter:none!important}
.mz-discovery-head{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-bottom:17px;border-bottom:1px solid var(--line)}
.mz-kicker{font-size:10px;font-weight:800;color:var(--brand);letter-spacing:.125em}
.mz-discovery-head h3{margin:5px 0 3px;font-size:21px;line-height:1.2;letter-spacing:-.038em;color:var(--text)}
.mz-discovery-head p{margin:0;font-size:12px;color:var(--muted)}
.mz-discovery-count{text-align:right;display:grid;gap:1px;flex-shrink:0}
.mz-discovery-count strong{color:var(--text);font-size:24px;letter-spacing:-.04em;line-height:1.1;font-variant-numeric:tabular-nums}
.mz-discovery-count span{color:var(--muted);font-size:10px;letter-spacing:.025em}
.mz-facet-group{padding:14px 0 13px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:160px minmax(0,1fr);gap:14px;align-items:start}
.mz-facet-label{display:flex;align-items:center;gap:8px;padding-top:5px;color:var(--text);font-size:11px}
.mz-facet-label strong{font-weight:750}
.mz-facet-symbol{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:7px;background:var(--surface2);color:var(--brand);font-size:15px}
.mz-facets{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.mz-tag{display:inline-flex;align-items:center;min-height:29px;padding:5px 11px;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:11px;font-weight:600;border-radius:7px;text-decoration:none;transition:background .15s,border-color .15s,color .15s}
.mz-tag:hover{border-color:var(--brand);color:var(--brand);background:var(--surface2)}
.mz-tag.is-active,.mz-tag.is-active:hover{background:#17435a;color:#fff;border-color:#17435a}
html[data-theme="dark"] .mz-tag.is-active{background:#386d81;border-color:#386d81}
.mz-results-toolbar{padding:14px 0 0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.mz-results-toolbar .directory-result-strip{display:flex;flex-wrap:wrap;align-items:center;gap:6px;background:none;border:none;padding:0;min-height:0;font-size:12px;color:var(--muted)}
.mz-results-toolbar .directory-result-strip strong{color:var(--text)}
.mz-active-filter{background:var(--surface2);border:1px solid var(--line);padding:4px 7px;border-radius:6px;color:var(--brand);font-size:10px}
.mz-toolbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mz-toolbar-actions .directory-nearby-btn{border:1px solid var(--line);border-radius:7px;background:var(--surface2);color:var(--text);font-weight:700;padding:7px 10px;font-size:11px}
.mz-reset{color:var(--brand);text-decoration:none;font-size:11px;font-weight:700}
.directory-section .cards{gap:15px;margin-top:16px}
.directory-section .store-card,.similar-businesses .store-card{border:1px solid var(--line);background:var(--surface);border-radius:14px;box-shadow:0 5px 18px rgba(23,46,61,.045);overflow:hidden;backdrop-filter:none;display:flex;flex-direction:column;min-width:0;transition:transform .18s,box-shadow .18s}
.directory-section .store-card:hover,.similar-businesses .store-card:hover{transform:translateY(-2px);box-shadow:0 11px 28px rgba(21,45,60,.11)}
.mz-card-visual{position:relative;overflow:hidden;background:#e8eef0}
.mz-card-visual .store-image{display:block;height:154px;border-radius:0;margin:0;position:relative}
.mz-card-visual .store-image>img{height:100%;width:100%;object-fit:cover;display:block}
.mz-card-visual .store-image .placeholder{height:100%;display:grid;place-items:center;background:linear-gradient(125deg,#d9e4e8,#eaf0f1);color:#21586a;font-size:32px;font-weight:850;letter-spacing:-.04em}
.mz-card-visual .store-image .placeholder[hidden]{display:none}
html[data-theme="dark"] .mz-card-visual .store-image .placeholder{background:linear-gradient(125deg,#244351,#2a4653);color:#b1d4df}
.mz-image-top{position:absolute;left:11px;right:11px;top:11px;display:flex;gap:5px;align-items:flex-start;justify-content:space-between;pointer-events:none}
.mz-card-category{display:inline-block;padding:5px 8px;max-width:83%;background:rgba(12,29,41,.82);color:#f6f9fa;border-radius:5px;font-weight:700;font-size:10px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.mz-image-top .verified{position:static;white-space:nowrap;border-radius:5px;font-size:9px;line-height:1.2;padding:5px 6px}
.mz-card-content{padding:14px!important;display:flex;flex:1;flex-direction:column;gap:6px}
.mz-card-location{font-size:10px;display:flex;justify-content:space-between;align-items:center;gap:6px;color:var(--brand);font-weight:700;text-transform:uppercase;letter-spacing:.02em;min-height:15px}
.mz-card-location>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mz-card-rating{white-space:nowrap;color:#ab7b3f}
.mz-card-content h3{font-size:16px!important;line-height:1.28;margin:3px 0 0!important;min-height:20px;letter-spacing:-.023em;font-weight:800;color:var(--text)}
.mz-card-content h3 a{text-decoration:none;color:inherit}
.mz-card-content h3 a:hover{color:var(--brand)}
.mz-card-content .mz-card-address{color:var(--muted);margin:0;min-height:31px;font-size:11.5px!important;line-height:1.42;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mz-card-phone{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;font-size:12px;font-weight:720;color:var(--text);text-decoration:none;margin-top:1px;max-width:100%;overflow-wrap:anywhere}
.mz-card-phone span{color:var(--brand)}
.mz-card-phone:hover{text-decoration:underline;color:var(--brand)}
.mz-card-tags{display:flex;gap:5px;flex-wrap:wrap;min-height:0}
.mz-card-tags span{font-size:9px;color:var(--muted);background:var(--surface2);border-radius:4px;padding:3px 6px;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.mz-card-footer{margin-top:auto;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line)}
.mz-view-link{display:inline-flex;align-items:center;gap:10px;padding:8px 10px;color:#fff;background:#164c64;font-size:11px;font-weight:750;border-radius:7px;text-decoration:none;white-space:nowrap}
.mz-view-link:hover{background:#1d617d;color:#fff}
.mz-view-link span{font-size:14px}
.mz-card-contact{display:flex;gap:5px;align-items:center}
.mz-icon-link{border:1px solid var(--line);border-radius:7px;padding:7px 9px;color:var(--brand);font-size:14px;text-decoration:none}
.mz-whatsapp{display:inline-block;padding:7px 9px;border-radius:7px;border:1px solid #9bcec0;background:#e6f4ed;color:#176548;font-size:10px;font-weight:750;text-decoration:none}
html[data-theme="dark"] .mz-whatsapp{background:#183e33;color:#9be1bc;border-color:#426855}
.mz-card-claim{margin-top:2px;display:inline-block;font-size:10px;color:var(--muted);font-weight:600;text-decoration:none}
.mz-card-claim:hover{color:var(--brand)}
.directory-pagination{border-radius:12px;background:var(--surface);border:1px solid var(--line);box-shadow:none}
.page-number.current,.directory-page-jump button{background:#164c64!important;color:#fff}
.growth-strip{background:#173747;box-shadow:none}
@media(max-width:1120px){.hero .searchbar{grid-template-columns:2fr 1fr 1fr}.hero .searchbar select:nth-of-type(3){grid-column:1/-2}.hero .searchbar button{grid-column:3}}
@media(max-width:880px){.hero .searchbar{grid-template-columns:1fr 1fr}.hero .searchbar input{grid-column:1/-1}.hero .searchbar select:nth-of-type(3){grid-column:auto}.hero .searchbar button{grid-column:1/-1}.mz-facet-group{grid-template-columns:1fr;gap:7px}.mz-discovery-panel{padding:17px!important}}
@media(max-width:610px){.hero .searchbar{grid-template-columns:1fr}.hero .searchbar input,.hero .searchbar select,.hero .searchbar select:nth-of-type(3),.hero .searchbar button{grid-column:1}.mz-discovery-head{align-items:flex-start}.mz-discovery-count strong{font-size:19px}.mz-discovery-count span{max-width:70px;line-height:1.2}.mz-discovery-head h3{font-size:19px}.mz-facets{max-height:106px;overflow:auto;align-content:flex-start}.mz-results-toolbar{align-items:flex-start}.mz-card-visual .store-image{height:188px}}

/* Ensure a failed imported image cannot cover its initials fallback. */
.mz-card-visual .store-image > img[hidden] { display: none !important; }

/* Directory refinement · compact counts and grounded editorial styling. */
:root, html[data-theme="light"] {
  --bg:#f3f5f5;--surface:#ffffff;--surface2:#eef2f2;
  --text:#192e35;--muted:#62757c;--line:#dfe7e8;
  --brand:#175c69;--brand2:#234e5a;--cyan:#438993;
  --accent:#ac8356;--shadow:0 5px 26px rgba(21,45,55,.045);
}
html[data-theme="dark"] {
  --bg:#0f1a20;--surface:#18272d;--surface2:#23353c;
  --text:#e9f0f1;--muted:#a9bec1;--line:#355057;
  --brand:#a7d2d4;--brand2:#8dbbc1;--cyan:#8fc1c8;
  --accent:#d5b287;--shadow:0 8px 28px rgba(0,0,0,.14);
}
body, html[data-theme="light"] body {background:var(--bg);}
html[data-theme="dark"] body {background:var(--bg);}
.section-head .eyebrow,.mz-kicker,.service-grid article>span {letter-spacing:.11em;}
.mz-discovery-panel {box-shadow:0 3px 23px rgba(24,48,59,.04)!important;}
.mz-tag {gap:7px;line-height:1.25;border-color:var(--line);font-size:11px;white-space:normal;}
.mz-tag-count {display:inline-flex;align-items:center;justify-content:center;min-width:22px;padding:2px 5px;border-radius:5px;background:var(--surface2);font-size:10px;font-weight:800;color:var(--brand);font-variant-numeric:tabular-nums;}
.mz-tag.is-active .mz-tag-count {color:#fff;background:rgba(255,255,255,.18);}
.mz-tag:hover .mz-tag-count {background:color-mix(in srgb,var(--brand) 12%,var(--surface));}
.mz-tag.is-active:hover .mz-tag-count {background:rgba(255,255,255,.18);}
.mz-discovery-head {padding-bottom:18px;}
.mz-discovery-head h3 {font-weight:790;}
.mz-discovery-count strong {font-variant-numeric:tabular-nums;}
.mz-facet-group {grid-template-columns:180px minmax(0,1fr);gap:16px;}
.mz-facet-label {font-size:12px;}
.mz-facets {gap:7px;}
.directory-section .cards {gap:17px;margin-top:18px;}
.directory-section .store-card,.similar-businesses .store-card {border-radius:13px;box-shadow:0 4px 19px rgba(20,48,54,.045);}
.directory-section .store-card:hover,.similar-businesses .store-card:hover {box-shadow:0 10px 30px rgba(20,48,54,.10);transform:translateY(-2px);}
.mz-card-visual .store-image {height:162px;}
.mz-card-visual .store-image .placeholder.mz-no-image {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:16px 20px;gap:5px;background:linear-gradient(145deg,#e4eaeb,#f0f3f3);
  color:#607a81;font-size:inherit;letter-spacing:normal;overflow:hidden;text-align:center;
}
html[data-theme="dark"] .mz-card-visual .store-image .placeholder.mz-no-image {background:linear-gradient(145deg,#253b43,#30464e);color:#bad0d4;}
.mz-card-visual .store-image .placeholder.mz-no-image[hidden] {display:none!important;}
.mz-no-image-icon {display:grid;place-items:center;width:43px;height:43px;border:1px solid rgba(88,117,125,.25);border-radius:12px;font-size:26px;font-weight:400;line-height:1;background:rgba(255,255,255,.3);}
.mz-no-image-title {font-size:12px;font-weight:760;color:inherit;letter-spacing:.005em;}
.mz-no-image-caption {max-width:100%;font-size:10px;font-weight:450;color:inherit;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mz-card-content {padding:16px!important;gap:7px;}
.mz-card-content h3 {font-weight:770;letter-spacing:-.02em;}
.mz-card-footer {padding-top:13px;}
.mz-card-claim {line-height:1.5;}
.service-grid article {min-height:230px;box-shadow:0 5px 23px rgba(19,52,59,.045);border-radius:14px;}
.service-grid h3 {margin:20px 0 8px;font-size:19px;letter-spacing:-.025em;}
.service-grid article p {line-height:1.68;}
.service-grid .mz-service-featured {background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 10%,var(--surface)),var(--surface));border-color:color-mix(in srgb,var(--brand) 25%,var(--line));}
.service-grid .mz-service-featured>span {color:var(--brand);}
.services-hero .orbit {box-shadow:none;}
.services-hero .orb-core {box-shadow:none;}
.quote-section {box-shadow:none;}
.mz-map-overlay-info {border-radius:10px;}
@media(max-width:880px) {.mz-facet-group {grid-template-columns:1fr;gap:8px;}}
@media(max-width:610px) {.mz-tag{padding:6px 9px}.mz-card-visual .store-image{height:190px}.mz-facets{max-height:175px;overflow:auto}.mz-tag-count{min-width:21px}}

/* Store profile: give unavailable photos the same clear missing-image state. */
.store-visual .mz-profile-no-image {
  width:100%;height:100%;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:9px;padding:22px;text-align:center;
  background:linear-gradient(145deg,#e4eaeb,#f0f3f3);color:#607a81;
}
.store-visual .mz-profile-no-image[hidden] {display:none!important;}
.store-visual > img[hidden] {display:none!important;}
html[data-theme="dark"] .store-visual .mz-profile-no-image{background:linear-gradient(145deg,#253b43,#30464e);color:#bad0d4;}
.store-visual .mz-profile-no-image .mz-no-image-icon{width:56px;height:56px;font-size:33px;}
.store-visual .mz-profile-no-image .mz-no-image-title{font-size:15px;}
