/* MALBORZ DISCOVERY UX 1.0 — scoped reusable components */
.mzb-directory-layout,.mzb-directory-layout *, .mzb-profile-toolbar,.mzb-profile-toolbar *, .mzb-discovery-panel,.mzb-discovery-panel *,.mzb-mobile-dock,.mzb-mobile-dock *{box-sizing:border-box}
.mzb-directory-layout{--mzb-ink:#17334f;--mzb-blue:#155ca8;--mzb-gold:#ffd535;--mzb-border:#d8e4f1;display:grid;grid-template-columns:282px minmax(0,1fr);gap:24px;direction:rtl;width:min(96%,1510px);margin:30px auto 70px;align-items:start;font-family:shabnam,Vazirmatn,Tahoma,sans-serif}
.mzb-directory-main{min-width:0}
.mzb-directory-main .mal-directory{margin:0!important;padding:12px 5px!important;max-width:none!important}
.mzb-directory-main .mal-directory h1{font-size:clamp(25px,2.7vw,38px);margin:0 0 10px}
.mzb-directory-main .mal-directory-search{margin:15px 0 14px}
.mzb-directory-main .mal-directory-search input{min-width:0!important;box-shadow:0 5px 15px rgba(22,57,94,.07);border:1px solid #d7e2ed}
.mzb-directory-main .mal-directory-search button{background:#145cab;border-radius:12px;transition:transform .2s,background .2s}
.mzb-directory-main .mal-directory-search button:hover{background:#2477d0;transform:translateY(-1px)}
.mzb-directory-main .mal-directory-item{transition:transform .2s,box-shadow .2s,border-color .2s}
.mzb-directory-main .mal-directory-item:hover{transform:translateY(-2px);box-shadow:0 13px 25px rgba(24,65,103,.13);border-color:#c2d9ec}
.mzb-discovery-panel{direction:rtl;text-align:right;position:relative;background:linear-gradient(145deg,rgba(248,252,255,.96),rgba(224,239,254,.92));border:1px solid rgba(255,255,255,.94);border-radius:23px;padding:22px 18px;box-shadow:0 16px 40px rgba(22,58,94,.15),inset 0 2px 0 #fff;backdrop-filter:blur(22px) saturate(125%);-webkit-backdrop-filter:blur(22px) saturate(125%);color:#193b5c;font-family:shabnam,Vazirmatn,Tahoma,sans-serif}
.mzb-directory-layout>.mzb-discovery-panel{position:sticky;top:105px;max-height:calc(100dvh - 124px);overflow-y:auto;scrollbar-width:thin}
.mzb-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:15px;margin-bottom:16px;border-bottom:1px solid #cbdbea}
.mzb-eyebrow{display:block;font-size:11px;font-weight:700;color:#597695;line-height:1.6}
.mzb-panel-head h2{font-size:19px!important;line-height:1.6!important;color:#13375a!important;font-weight:850!important;margin:3px 0 0!important}
.mzb-panel-close{display:none;background:#e8f1fb;border-radius:9px;color:#204c7b;border:0;font-size:26px;min-width:36px;height:36px;cursor:pointer}
.mzb-filter-form{display:flex;flex-direction:column;gap:9px;margin:0}
.mzb-filter-form label{display:block;margin:5px 0 0;font-size:12px;font-weight:700;color:#345572;line-height:1.65}
.mzb-filter-form input[type=search],.mzb-filter-form select{width:100%;margin:0!important;min-height:43px;border:1px solid #c5d9eb!important;border-radius:11px!important;padding:8px 12px!important;background:rgba(255,255,255,.85)!important;color:#183953!important;box-shadow:0 2px 8px rgba(18,56,96,.04)!important;font-size:13px!important;font-family:inherit}
.mzb-filter-form input[type=search]:focus,.mzb-filter-form select:focus{outline:2px solid rgba(255,207,54,.65);outline-offset:1px;border-color:#638fb7!important}
.mzb-q-row{display:flex;gap:6px}
.mzb-q-row input{min-width:0;flex:1}
.mzb-q-submit{min-height:43px!important;width:44px!important;flex:none;padding:0!important;margin:0!important;border:0!important;border-radius:11px!important;background:#ffdb43!important;color:#112a47!important;font-weight:900!important;font-size:27px!important;box-shadow:0 3px 0 #cda627}
.mzb-filter-heading{font-size:13px;font-weight:850;color:#173956;margin-top:14px;border-top:1px solid #ceddec;padding-top:13px}
.mzb-filter-actions{display:flex;flex-direction:column;gap:10px;margin-top:17px}
.mzb-filter-apply{background:linear-gradient(130deg,#176ebc,#104c8f)!important;color:#fff!important;min-height:45px!important;border:0!important;border-radius:12px!important;font-size:13px!important;font-weight:800!important;box-shadow:0 4px 0 #083a71,0 8px 20px rgba(21,78,135,.19)!important;margin:0!important;transition:filter .2s,transform .2s}
.mzb-filter-apply:hover{filter:brightness(1.12);transform:translateY(-1px)}
.mzb-clear-filters{font-size:12px;font-weight:700!important;color:#557491!important;text-align:center;text-decoration:underline;text-underline-offset:4px}
.mzb-ad-holder{margin-top:22px;padding-top:17px;border-top:1px solid #cfdfed}
.mzb-ad-block{position:relative;border:1px solid #d3e2ec;border-radius:15px;padding:12px;background:rgba(255,255,255,.83);overflow:hidden}
.mzb-ad-label{display:inline-block;font-size:10px;line-height:1.6;padding:2px 7px;color:#44617b;background:#eaf1f8;border-radius:6px;margin-bottom:8px}
.mzb-ad-empty a{display:flex;flex-direction:column;gap:7px;background:linear-gradient(125deg,#14395f,#147793);border-radius:12px;padding:21px 12px;text-align:center;text-decoration:none;color:white!important}
.mzb-ad-empty a strong{font-size:14px;color:#fff!important;line-height:1.6}
.mzb-ad-empty a span{color:#d9e9f6!important;font-size:11px;line-height:1.6}
.mzb-ad-block img,.mzb-ad-block iframe{max-width:100%;height:auto}
.mzb-profile-toolbar{direction:rtl;display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;max-width:1160px;margin:12px auto 15px;padding:16px 19px;border:1px solid #d6e6f4;border-radius:18px;background:linear-gradient(135deg,rgba(248,253,255,.95),rgba(222,238,255,.91));box-shadow:0 9px 24px rgba(20,63,105,.1);font-family:shabnam,Vazirmatn,Tahoma,sans-serif}
.mzb-profile-toolbar form{flex:1 1 350px;min-width:0;margin:0}
.mzb-profile-toolbar form label{font-size:13px;color:#24486e;font-weight:800;display:block;margin:0 0 8px}
.mzb-profile-search-line{display:flex;align-items:center;gap:8px}
.mzb-profile-search-line input{height:44px;min-width:0;flex:1;margin:0!important;border:1px solid #c6d9e9!important;border-radius:11px!important;background:#fff!important;padding:0 12px!important;font-size:13px!important}
.mzb-profile-search-line button{min-width:90px;margin:0!important;height:44px;background:#ffdb43!important;color:#173655!important;font-size:13px!important;font-weight:800!important;border:0;border-radius:10px;box-shadow:0 3px 0 #cda627}
.mzb-back-results{display:inline-flex;align-items:center;justify-content:center;color:#1b5b97!important;font-size:12px;font-weight:800;min-height:42px;white-space:nowrap}
.mzb-profile-toolbar .mzb-open-filters{display:none;background:#e9f2fc;color:#134c80!important;border:1px solid #bed8ef;border-radius:10px;font-weight:800;font-size:12px;min-height:42px;margin:0}
.single-mal_business .post-sidebar #secondary .widget{display:none!important}
.single-mal_business #secondary>.mzb-discovery-panel{display:block;max-width:100%;margin:0;position:sticky;top:105px;max-height:calc(100dvh - 125px);overflow:auto}
.single-mal_business .entry-content>.mzb-discovery-panel{margin:15px auto;max-width:560px}
.single-mal_business .post-sidebar #secondary{overflow:visible}
.mzb-drawer-overlay{display:none}
.mzb-mobile-dock{display:none}
@media(min-width:850px) and (max-width:1149px){
 .mzb-directory-layout{grid-template-columns:250px minmax(0,1fr);gap:14px}
 .mzb-discovery-panel{padding:17px 12px}
}
@media(max-width:849px){
 .mzb-directory-layout{display:block;width:100%;margin:14px auto 45px}
 .mzb-directory-main .mal-directory{padding:10px 16px!important}
 .mzb-directory-main .mal-directory-search{gap:7px}
 .mzb-directory-main .mal-directory-search input{min-width:0!important;flex:1 1 135px}
 .mzb-directory-main .mal-directory-search button{padding:8px 15px;min-height:46px}
 .mzb-discovery-panel{position:fixed!important;top:0!important;bottom:0!important;right:0!important;left:auto!important;width:min(89vw,388px)!important;height:100dvh!important;max-width:none!important;max-height:none!important;z-index:100101!important;overflow-y:auto!important;overscroll-behavior:contain;border-radius:23px 0 0 23px;padding:22px 17px 100px;visibility:hidden;opacity:0;pointer-events:none;transform:translateX(105%);transition:transform .28s ease,opacity .28s ease,visibility .28s;box-shadow:-15px 0 52px rgba(5,28,54,.25)}
 body.mzb-drawer-open .mzb-discovery-panel{visibility:visible;opacity:1;pointer-events:auto;transform:translateX(0)}
 .mzb-panel-close{display:block}
 body.mzb-drawer-open{overflow:hidden!important}
 .mzb-drawer-overlay{display:block;position:fixed;inset:0;background:rgba(9,30,57,.52);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);z-index:100100;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .28s,visibility .28s}
 body.mzb-drawer-open .mzb-drawer-overlay{opacity:1;visibility:visible;pointer-events:auto}
 .mzb-mobile-dock{display:flex;align-items:center;justify-content:space-between;gap:8px;position:fixed;bottom:max(11px,env(safe-area-inset-bottom));left:12px;right:12px;background:rgba(247,252,255,.96);box-shadow:0 9px 32px rgba(15,46,80,.25);border:1px solid #fff;border-radius:16px;padding:8px;z-index:100050;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);font-family:shabnam,Vazirmatn,Tahoma,sans-serif}
 .mzb-mobile-dock button{min-height:43px;margin:0!important;background:#ffdb43!important;color:#142a43!important;border-radius:10px!important;font-size:12px!important;font-weight:800!important;padding:9px 13px!important;box-shadow:0 3px 0 #c9a029}
 .mzb-mobile-dock a{min-height:42px;display:flex;align-items:center;justify-content:center;font-size:12px;color:#185890!important;font-weight:800;padding:5px 8px}
 .mzb-profile-toolbar{margin:10px 15px 12px;padding:15px;gap:9px}
 .mzb-profile-toolbar form{flex:1 1 100%}
 .mzb-profile-toolbar .mzb-open-filters{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px}
 .mzb-profile-toolbar .mzb-back-results{min-height:40px}
 .single-mal_business .post-sidebar{display:none!important}
 .single-mal_business .entry-content>.mzb-discovery-panel{margin:0;max-width:none}
 .single-mal_business .entry-content .mal-pb{margin-top:10px}
 .single-mal_business .blog-single.page-wrapper{padding-bottom:80px}
 .mzb-directory-main .mal-directory{padding-bottom:90px!important}
}
@media(max-width:350px){
 .mzb-mobile-dock button{font-size:11px!important;padding:9px 8px!important}
 .mzb-mobile-dock a{font-size:11px}
 .mzb-profile-search-line button{min-width:74px}
}
@media(prefers-reduced-motion:reduce){
 .mzb-discovery-panel,.mzb-drawer-overlay,.mzb-directory-main .mal-directory-item,.mzb-filter-apply{transition:none!important}
}

/* V1.0.1: keep discovery navigation on the right on business profiles;
   remove redundant legacy mobile header search on discovery pages only. */
@media(min-width:850px){
 .single-mal_business .blog-single .row.row-divided{flex-direction:row-reverse!important}
}
@media(max-width:849px){
 body.single-mal_business #wide-nav,body.page-id-1855 #wide-nav{display:none!important}
}
