/* MzansiHub A–Z directory: compact premium controls, 20-per-page browsing. */
.directory-section { scroll-margin-top:74px; }
.directory-controls { border:1px solid var(--line); border-radius:16px; background:var(--surface); padding:18px 20px 14px; margin:0 0 17px; box-shadow:0 10px 30px rgba(19,42,72,.04); }
.directory-controls-top { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:13px; margin-bottom:15px; }
.directory-controls-title { display:flex; gap:12px; align-items:center; min-width:0; }
.directory-controls-title>div { display:grid; gap:1px; }
.directory-controls-title b { font-size:14px; letter-spacing:-.01em; }
.directory-controls-title small { font-size:11px; color:var(--muted); }
.directory-az-icon { display:inline-flex; gap:2px; align-items:center; justify-content:center; min-width:46px; height:42px; padding:6px; border-radius:11px; background:linear-gradient(135deg,#083653,#079969); color:#fff; font-size:15px; font-weight:900; letter-spacing:-.06em; }
.directory-az-icon span { font-size:10px; font-weight:600; }
.directory-summary { color:var(--muted); font-size:12px; white-space:nowrap; }
.directory-summary strong { color:var(--text); font-size:18px; font-variant-numeric:tabular-nums; }
.directory-summary-separator { color:var(--line); padding:0 5px; }
.directory-alphabet { display:grid; grid-template-columns:repeat(14,minmax(0,1fr)); gap:5px; }
.alphabet-choice { display:flex; align-items:center; justify-content:center; min-height:33px; padding:5px 2px; font-size:12px; font-weight:800; border:1px solid var(--line); border-radius:8px; background:var(--surface2); color:var(--text); white-space:nowrap; transition:background .15s,border-color .15s,transform .15s; }
.alphabet-choice:hover { background:color-mix(in srgb,#0a9876 13%,var(--surface)); border-color:#0a9876; transform:translateY(-1px); }
.alphabet-choice.active,.alphabet-choice.active:hover { color:white; background:linear-gradient(135deg,#065d51,#08a371); border-color:transparent; box-shadow:0 3px 10px rgba(1,133,92,.18); }
.alphabet-choice.no-results:not(.active) { color:var(--muted); opacity:.65; }
.alphabet-choice:focus-visible,.page-number:focus-visible,.page-arrow:focus-visible { outline:3px solid var(--brand);outline-offset:2px; }
.directory-result-strip { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:13px; padding-top:11px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.directory-result-strip>div {display:flex;align-items:center;flex-wrap:wrap;gap:4px;}
.directory-result-strip strong {font-weight:850;color:var(--text);font-variant-numeric:tabular-nums;}
.directory-result-strip a {font-weight:800;color:#08866a;}
.directory-result-dot {display:inline-block;width:7px;height:7px;background:#0ba36e;border-radius:50%;margin-right:5px;}
.directory-result-filter {display:inline-flex;margin-left:5px;padding:3px 7px;border-radius:6px;font-weight:700;color:#087057;background:color-mix(in srgb,#0ea875 12%,var(--surface));}
.directory-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:15px; padding:19px 18px; margin:19px 0 6px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:0 8px 25px rgba(19,42,72,.035); }
.directory-page-status {display:flex;flex-direction:column;gap:3px;font-size:12px;min-width:150px;}
.directory-page-status strong {font-size:13px;}
.directory-page-status span {color:var(--muted);font-size:11px;}
.directory-page-buttons {display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;}
.page-number,.page-arrow {display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:9px;background:var(--surface2);color:var(--text);min-width:32px;height:34px;padding:0 9px;font-size:12px;font-weight:800;transition:background .15s,border-color .15s,transform .15s;}
.page-number:hover,.page-arrow:not(.disabled):hover {border-color:#08a371;background:color-mix(in srgb,#0a9876 11%,var(--surface));transform:translateY(-1px);}
.page-number.current {border-color:transparent;background:linear-gradient(135deg,#065d51,#08a371);color:white;box-shadow:0 3px 11px rgba(1,133,92,.2);}
.page-arrow.disabled {opacity:.35;pointer-events:none;}
.page-ellipsis {color:var(--muted);padding:0 4px;font-weight:900;}
.directory-page-jump {display:flex;align-items:center;gap:7px;white-space:nowrap;}
.directory-page-jump label {font-size:11px;color:var(--muted);font-weight:700;}
.directory-page-jump input {width:62px;height:34px;padding:5px 7px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums;border-radius:8px;}
.directory-page-jump button {height:34px;border:0;border-radius:8px;background:#0a8f6b;color:#fff;font-size:11px;font-weight:850;padding:0 12px;}
.directory-page-jump button:hover {background:#076c56;}
@media(max-width:1100px){.directory-alphabet{grid-template-columns:repeat(10,minmax(0,1fr));}.directory-pagination{justify-content:center;}.directory-page-status{text-align:center;}}
@media(max-width:650px){.directory-controls{padding:13px 12px;}.directory-controls-top{align-items:flex-start;}.directory-alphabet{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;}.alphabet-choice{min-height:34px;}.directory-summary{width:100%;padding-left:2px;}.directory-pagination{padding:14px 9px;gap:12px;}.directory-page-status{width:100%;}.directory-page-jump{justify-content:center;width:100%;}.page-number,.page-arrow{min-width:29px;height:32px;padding:0 7px;}.directory-result-strip{font-size:11px;}}

/* ===========================================================================
   MzansiHub 2026: Frosted-glass light mode and Midnight Ocean dark mode.
   Keeps compact 100%-zoom layout, controls and responsive directory unchanged.
   =========================================================================== */
:root,html[data-theme=light]{
 --bg:#e9f2f5;
 --surface:rgba(255,255,255,.66);
 --surface2:rgba(233,247,248,.64);
 --text:#142a3c;
 --muted:#536d7c;
 --line:rgba(105,153,165,.28);
 --brand:#087e75;
 --brand2:#09699a;
 --cyan:#159db0;
 --lime:#32ae84;
 --accent:#e5a24e;
 --danger:#be455b;
 --shadow:0 18px 50px rgba(44,91,115,.10),inset 0 1px rgba(255,255,255,.65);
 --glass-glow:rgba(255,255,255,.65);
 --focus-ring:rgba(7,140,130,.21);
 color-scheme:light;
}
html[data-theme=dark]{
 --bg:#081523;
 --surface:rgba(18,39,55,.73);
 --surface2:rgba(26,53,69,.76);
 --text:#eef7f8;
 --muted:#b3c7d2;
 --line:rgba(125,185,192,.21);
 --brand:#50dfbf;
 --brand2:#29a6cd;
 --cyan:#69cdec;
 --lime:#77e2af;
 --accent:#f3c577;
 --danger:#ff8da0;
 --shadow:0 22px 60px rgba(0,6,16,.38),inset 0 1px rgba(211,246,244,.07);
 --glass-glow:rgba(143,237,222,.07);
 --focus-ring:rgba(68,227,185,.27);
 color-scheme:dark;
}
body{
 background:radial-gradient(ellipse 640px 520px at 8% 2%,rgba(86,209,204,.22),transparent 82%),
 radial-gradient(ellipse 780px 680px at 97% 20%,rgba(105,151,234,.20),transparent 76%),
 linear-gradient(160deg,#f2fbfb 0%,#e5f0f4 48%,#f4f8fb 100%);
 background-attachment:fixed;
}
html[data-theme=dark] body{
 background:radial-gradient(ellipse 640px 560px at 9% -5%,rgba(18,146,139,.18),transparent 81%),
 radial-gradient(ellipse 740px 620px at 92% 26%,rgba(43,90,165,.20),transparent 80%),
 linear-gradient(155deg,#07111c,#0c1d2e 58%,#102432);
 background-attachment:fixed;
}
body:before{opacity:.17}
.aurora{opacity:.11;filter:blur(130px)}
.topbar{
 background:rgba(246,254,255,.73);border-color:rgba(255,255,255,.7);
 box-shadow:0 5px 22px rgba(44,93,112,.06);backdrop-filter:blur(24px) saturate(145%);
 -webkit-backdrop-filter:blur(24px) saturate(145%);
}
html[data-theme=dark] .topbar{background:rgba(8,22,35,.80);border-color:var(--line);box-shadow:0 6px 32px rgba(0,5,13,.18)}
.store-card,.market-card,.lead-card,.panel,.command-card,.directory-controls,.directory-pagination,
.details,.ad,.claimbox,.ownerbox,.business-gallery,.owner-photos,.dashside,.map-controls,.map-panel,
.startup-card,.service-card,.growth-card{
 background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);
 backdrop-filter:blur(18px) saturate(132%);-webkit-backdrop-filter:blur(18px) saturate(132%);
}
.store-card,.market-card,.lead-card{box-shadow:0 10px 26px rgba(34,76,97,.065),inset 0 1px var(--glass-glow)}
html[data-theme=dark] .store-card,html[data-theme=dark] .market-card,
html[data-theme=dark] .lead-card{box-shadow:0 14px 40px rgba(0,7,18,.23),inset 0 1px var(--glass-glow)}
.theme-toggle{display:grid;place-items:center;flex-shrink:0;background:var(--surface);border:1px solid var(--line);box-shadow:inset 0 1px var(--glass-glow);transition:transform .17s,background .17s}
.theme-toggle:hover{transform:translateY(-2px);background:var(--surface2)}
.theme-toggle [data-theme-icon]{font-size:17px;line-height:1}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
input:focus,select:focus,textarea:focus{box-shadow:0 0 0 3px var(--focus-ring)}
input,textarea,select{background:color-mix(in srgb,var(--surface) 74%,transparent);backdrop-filter:blur(5px)}
.btn,.searchbar button,.navcta{background:linear-gradient(135deg,#078d7a,#0979a4);color:#fff;box-shadow:0 8px 20px rgba(4,120,129,.15)}
html[data-theme=dark] .btn:not(.secondary):not(.offer-btn):not(.whatsapp-btn),
html[data-theme=dark] .searchbar button,html[data-theme=dark] .navcta{background:linear-gradient(135deg,#158a80,#177d9d);color:#f7ffff}
.btn.secondary,.theme-toggle,.chip{box-shadow:inset 0 1px var(--glass-glow)}
.alphabet-choice,.page-number,.page-arrow{background:var(--surface);backdrop-filter:blur(8px)}
.alphabet-choice.active,.alphabet-choice.active:hover,.page-number.current,.directory-page-jump button{background:linear-gradient(135deg,#067d70,#098bad);color:white}
.directory-result-strip a,.ghost-link,.textlink{color:var(--brand)}
html[data-theme=dark] .chip.build{background:rgba(194,149,55,.15);border-color:rgba(245,201,127,.27);color:#f5cf85}
html[data-theme=dark] .growth-strip{background:linear-gradient(120deg,#104e60,#14315b)}
html[data-theme=dark] .startup-hero{background:linear-gradient(135deg,#0f344b,#134a4b 70%,#102a49)}
html[data-theme=dark] .service-mini{background:var(--surface2);border-color:var(--line)}
html[data-theme=dark] .directory-result-filter{color:var(--brand)}
html[data-theme=dark] .rating-stars{color:#ffc66f}
/* Owner-managed company photos */
.owner-photos{margin:22px 0 0;padding:25px;border-radius:19px;width:100%;max-width:730px}
.owner-photos-header{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:20px}
.owner-photos-header h2{font-size:24px;line-height:1.15;margin:6px 0 8px;letter-spacing:-.03em}
.owner-photos-header p{color:var(--muted);margin:0;font-size:13px;max-width:490px}
.photo-tag{flex-shrink:0;border:1px solid var(--line);border-radius:999px;padding:8px 10px;background:var(--surface2);font-size:10px;font-weight:900;color:var(--brand)}
.owner-photo-upload{display:flex;flex-direction:column;gap:15px}
.owner-photo-upload>label,.photo-field-grid>label{display:grid;gap:7px;font-weight:800;font-size:13px}
.owner-photo-upload label small{display:block;font-size:11px;font-weight:500;color:var(--muted)}
.owner-photo-upload input[type=file]{width:100%;font-size:12px;max-width:100%;padding:11px;border:1px dashed var(--line);border-radius:11px}
.photo-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.photo-preview{min-height:150px;max-height:160px;display:grid;place-items:center;overflow:hidden;border-radius:13px;border:1px solid var(--line);background:var(--surface2);color:var(--muted);font-size:12px}
.photo-preview img{max-height:160px;width:100%;height:160px;object-fit:contain}
.photo-cover-preview img{object-fit:cover}
.photo-remove-inline{display:inline-block;margin:12px 12px 0 0}
.photo-delete{border:1px solid color-mix(in srgb,var(--danger) 40%,var(--line));color:var(--danger);background:var(--surface);border-radius:9px;font-weight:750;font-size:11px;padding:8px 11px}
.photo-delete:hover{background:color-mix(in srgb,var(--danger) 12%,var(--surface))}
.owner-gallery-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.owner-gallery-item{padding:6px;border:1px solid var(--line);background:var(--surface2);border-radius:12px;text-align:center}
.owner-gallery-item img{width:100%;height:95px;object-fit:cover;border-radius:8px}
.owner-gallery-item form{margin-top:7px}
.card-company-logo{position:absolute;bottom:9px;right:10px;width:49px!important;height:49px!important;object-fit:contain!important;border-radius:12px;background:#fff;padding:4px;border:2px solid white;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.profile-company-logo{width:70px;height:70px;object-fit:contain;border-radius:15px;background:white;border:1px solid var(--line);padding:5px;margin-bottom:12px;box-shadow:var(--shadow)}
.business-gallery{max-width:1264px;margin:20px auto;padding:24px;border-radius:22px}
.business-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.business-gallery-grid a{height:170px;display:block;border-radius:13px;overflow:hidden;border:1px solid var(--line)}
.business-gallery-grid img{width:100%;height:100%;object-fit:cover;transition:transform .2s}
.business-gallery-grid a:hover img{transform:scale(1.04)}
@media(max-width:800px){.business-gallery-grid,.owner-gallery-list{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-photos{padding:17px}.photo-tag{display:none}}
@media(max-width:540px){.photo-field-grid{grid-template-columns:1fr}.owner-photos-header h2{font-size:21px}.business-gallery{margin:12px;padding:15px}.business-gallery-grid a{height:130px}}
@media(prefers-reduced-motion:reduce){.store-card,.market-card,.lead-card,.btn,.theme-toggle{transition:none}}

