.bz-dir {
    --bz-accent: #3e8cff;
    --bz-accent-dark: #2a6fd6;
    --bz-teal: #18bdd0;
    --bz-text: #3c4354;
    --bz-muted: #7a8194;
    --bz-line: #e7ebf2;
    color: var(--bz-text);
    margin: 24px auto 48px;
}
.bz-dir *, .bz-dir *::before, .bz-dir *::after { box-sizing: border-box; }
.bz-dir [hidden] { display: none !important; }

.bz-dir-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    margin-bottom: 18px;
    background: #fafafa;
    border-radius: 12px;
}
.bz-dir-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; color: var(--bz-text); }
.bz-dir-lead { margin: 0; font-size: 13px; line-height: 1.9; color: var(--bz-muted); max-width: 640px; }
.bz-dir-add {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 6px;
    background: var(--bz-accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(62, 140, 255, .25);
    transition: background .15s;
}
.bz-dir-add::before { content: "+"; font-size: 18px; line-height: 1; }
.bz-dir-add:hover { background: var(--bz-accent-dark) !important; }

.bz-dir-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bz-dir-tab {
    border: 1px solid var(--bz-line);
    background: #fff;
    color: var(--bz-text);
    border-radius: 20px;
    padding: 6px 16px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}
.bz-dir-tab span { color: var(--bz-muted); font-size: 12px; margin-inline-start: 4px; }
.bz-dir-tab:hover { border-color: var(--bz-accent); color: var(--bz-accent); }
.bz-dir-tab.is-on { background: var(--bz-accent); border-color: var(--bz-accent); color: #fff; }
.bz-dir-tab.is-on span { color: rgba(255, 255, 255, .8); }

.bz-dir-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.bz-dir-list > div { display: contents; }
.bz-dir-empty { text-align: center; color: var(--bz-muted); padding: 40px 0; }

.bz-ad {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bz-line);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 18px rgba(17, 24, 39, .05);
    transition: box-shadow .2s, transform .2s;
}
.bz-ad:hover { box-shadow: 0 10px 28px rgba(17, 24, 39, .1); transform: translateY(-2px); }
.bz-ad-admin { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; z-index: 2; }

.bz-ad-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.bz-ad-logo {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 1px solid var(--bz-line);
    background: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bz-ad-logo img { width: 100%; height: 100%; object-fit: contain; }
.bz-ad-initial { font-size: 28px; font-weight: 700; color: var(--bz-accent); }
.bz-ad-heading { min-width: 0; }
.bz-ad-name { font-size: 16px; font-weight: 700; margin: 0 0 6px; line-height: 1.6; color: var(--bz-text); }
.bz-ad-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.bz-ad-stars {
    --r: 0;
    position: relative;
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 1px;
    direction: ltr;
}
.bz-ad-stars::before {
    content: "★★★★★";
    background: linear-gradient(90deg, #f5b301 calc(var(--r) / 5 * 100%), #dde2ea 0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bz-ad-days {
    font-size: 11px;
    font-weight: 700;
    color: #0f8a6a;
    background: #e8f8f2;
    border-radius: 20px;
    padding: 3px 10px;
}
.bz-ad-days.is-low { color: #b45309; background: #fef3e2; }

.bz-ad-manager { margin: 0 0 6px; font-size: 13px; color: var(--bz-muted); }
.bz-ad-manager span { color: var(--bz-text); font-weight: 700; }
.bz-ad-desc { font-size: 13px; line-height: 1.9; margin-bottom: 10px; }
.bz-ad-desc p { margin: 0 0 6px; }
.bz-ad-address {
    position: relative;
    font-size: 12px;
    line-height: 1.9;
    color: var(--bz-muted);
    padding-inline-start: 20px;
    margin-bottom: 12px;
}
.bz-ad-address::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--bz-teal);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bz-ad-address p { margin: 0; }

.bz-ad-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--bz-line); }
.bz-ad-actions:empty { display: none; }
.bz-ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid var(--bz-line);
    color: var(--bz-text) !important;
    background: #fff;
    transition: all .15s;
}
.bz-ad-btn::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: none;
    background: currentColor;
    -webkit-mask: var(--ic) center / contain no-repeat;
    mask: var(--ic) center / contain no-repeat;
}
.bz-ad-btn:hover { border-color: var(--bz-accent); color: var(--bz-accent) !important; }
.bz-ad-tel { direction: ltr; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.bz-ad-tel.is-mobile { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H8a3 3 0 0 0-3 3v16a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3zm-4 20.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM17 17H7V4h10z'/%3E%3C/svg%3E"); }
.bz-ad-web { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm6.9 6h-2.9a15.7 15.7 0 0 0-1.4-3.6A8 8 0 0 1 18.9 8zM12 4c.8 1.2 1.5 2.5 1.9 4h-3.8c.4-1.4 1.1-2.8 1.9-4zM4.3 14a8.2 8.2 0 0 1 0-4h3.4a16.5 16.5 0 0 0 0 4zm.8 2h2.9c.3 1.3.8 2.5 1.4 3.6A8 8 0 0 1 5.1 16zM8 8H5.1a8 8 0 0 1 4.3-3.6C8.8 5.5 8.3 6.7 8 8zm4 12c-.8-1.2-1.5-2.5-1.9-4h3.8c-.4 1.4-1.1 2.8-1.9 4zm2.3-6H9.7a14.7 14.7 0 0 1 0-4h4.6a14.7 14.7 0 0 1 0 4zm.3 5.6c.6-1.1 1.1-2.3 1.4-3.6h2.9a8 8 0 0 1-4.3 3.6zm1.7-5.6a16.5 16.5 0 0 0 0-4h3.4a8.2 8.2 0 0 1 0 4z'/%3E%3C/svg%3E"); }
.bz-ad-pdf { color: #c0392b !important; border-color: #f6d5d1; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm-1 7V3.5L18.5 9zM12 18l-4-4h2.5v-3h3v3H16z'/%3E%3C/svg%3E"); }
.bz-ad-pdf:hover { background: #fdf1ef; }

.bz-ad.is-simple .bz-ad-full { display: none; }
.bz-ad-tel[href="tel:"], .bz-ad-web[href=""], .bz-ad-pdf[href=""], .bz-ad-manager:has(span:empty), .bz-ad-stars[style="--r:"] { display: none; }

.bz-dir-register {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 32px;
    padding: 26px 28px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid var(--bz-line);
    scroll-margin-top: 120px;
}
.bz-dir-register-text { flex: 1 1 320px; }
.bz-dir-register-text h2 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--bz-text); }
.bz-dir-register-text p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--bz-muted); }
.bz-dir-register-form { flex: 1 1 380px; min-width: 0; }
.bz-dir-register-form .DnnModule, .bz-dir-register-form .White { margin: 0; padding: 0; background: none; box-shadow: none; }
.bz-dir-register-form .col-md-12 { padding-left: 0; padding-right: 0; }
.bz-dir-register-form label, .bz-dir-register-form .control-label { font-size: 13px; font-weight: 700; color: var(--bz-text); }
.bz-dir-register-form input.form-control, .bz-dir-register-form input[type=text] {
    height: 42px;
    border-radius: 6px;
    border: 1px solid var(--bz-line);
    direction: ltr;
    text-align: right;
    font-size: 15px;
}
.bz-dir-register-form input.form-control:focus { border-color: var(--bz-accent); box-shadow: 0 0 0 3px rgba(62, 140, 255, .15); }
.bz-dir-register-form .ui.button, .bz-dir-register-form .btn {
    min-width: 180px;
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--bz-accent) !important;
    color: #fff !important;
    font-weight: 700;
}
.bz-dir-register-form .ui.button:hover, .bz-dir-register-form .btn:hover { background: var(--bz-accent-dark) !important; }
.bz-dir-register-form .mbd-submit-default { padding-bottom: 0; }
.bz-dir-register-form .alert-success { border-radius: 8px; font-size: 14px; }

@media (max-width: 1199px) {
    .bz-dir-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .bz-dir { margin-top: 12px; }
    .bz-dir-head { flex-direction: column; align-items: stretch; padding: 18px 16px; }
    .bz-dir-title { font-size: 19px; }
    .bz-dir-add { justify-content: center; }
    .bz-dir-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .bz-dir-tab { flex: none; }
    .bz-dir-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .bz-ad { padding: 16px 14px; }
    .bz-ad:hover { transform: none; }
    .bz-ad-logo { width: 60px; height: 60px; }
    .bz-ad-btn { padding: 8px 12px; }
    .bz-dir-register { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px; }
    .bz-dir-register-text, .bz-dir-register-form { flex: none; }
    .bz-dir-register-form .ui.button { width: 100%; }
}
