/* BD ADVOCATES — Directory CSS v5
   Homepage-matched dark palette: #212529 / #1a1d20 / #2c3136
   Gold accent: #c8a84b  |  Text: #dee2e6 / #adb5bd / #9ca3af
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

/* ── Directory Wrapper ── */
.bdadv-dir-wrap {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #dee2e6;
    background: #212529;
    min-height: 100vh;
}

/* ── Hero ── */
.bdadv-dir-hero {
    background: #212529;
    color: #fff;
    padding: 56px 24px 44px;
    border-bottom: 1px solid #2c3136;
}
.bdadv-dir-hero-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.bdadv-dir-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    line-height: 1.15;
    color: #fff;
}
.bdadv-dir-hero p {
    font-size: 15px;
    color: #adb5bd;
    margin: 0 0 32px;
}

/* ── Hero Search Box ── */
.bdadv-hero-search {
    background: #1a1d20;
    border: 1px solid #2c3136;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 2px;
}
.bdadv-hero-field {
    flex: 1 1 160px;
    border-right: 1px solid #2c3136;
    padding: 10px 14px 8px;
}
.bdadv-hero-field-sm { flex: 1 1 130px; }
.bdadv-hero-field:last-of-type { border-right: none; }
.bdadv-hero-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #9ca3af;
    margin-bottom: 4px;
}
.bdadv-hero-field input,
.bdadv-hero-field select {
    display: block;
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: #dee2e6;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    font-family: inherit;
}
.bdadv-hero-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 20px;
}
.bdadv-hero-field input::placeholder { color: #495057; }
.bdadv-hero-field select option { background: #212529; color: #dee2e6; }
.bdadv-hero-btn {
    background: #fff;
    color: #212529;
    border: none;
    padding: 0 28px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 64px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    border-radius: 0;
}
.bdadv-hero-btn:hover { background: #e9ecef; }

/* ── Stats Bar ── */
.bdadv-stats-bar {
    background: #1a1d20;
    border-bottom: 1px solid #2c3136;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.bdadv-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 40px;
    border-right: 1px solid #2c3136;
}
.bdadv-stat:last-child { border-right: none; }
.bdadv-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.bdadv-stat-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-top: 4px;
}

/* ── Practice Area Quick Links ── */
.bdadv-practice-section {
    background: #1a1d20;
    border-bottom: 1px solid #2c3136;
    padding: 28px 24px;
}
.bdadv-practice-inner { max-width: 1100px; margin: 0 auto; }
.bdadv-section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}
.bdadv-practice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bdadv-practice-btn {
    background: #212529;
    border: 1px solid #343a40;
    color: #dee2e6;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    border-radius: 2px;
}
.bdadv-practice-btn:hover,
.bdadv-practice-btn.active {
    background: #fff;
    color: #212529;
    border-color: #fff;
}

/* ── A–Z Browse ── */
.bdadv-alpha-section {
    background: #212529;
    border-bottom: 1px solid #2c3136;
    padding: 14px 24px;
}
.bdadv-alpha-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bdadv-alpha-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #9ca3af;
    white-space: nowrap;
}
.bdadv-alpha-links { display: flex; flex-wrap: wrap; gap: 4px; }
.bdadv-alpha-btn {
    width: 30px; height: 30px;
    background: transparent;
    border: 1px solid #343a40;
    color: #adb5bd;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
    border-radius: 2px;
}
.bdadv-alpha-btn:hover,
.bdadv-alpha-btn.active {
    background: #fff;
    color: #212529;
    border-color: #fff;
}

/* ── Main Layout ── */
.bdadv-dir-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 60px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .bdadv-dir-body { grid-template-columns: 1fr; }
    .bdadv-filters { order: -1; }
}

/* ── Mobile filter toggle ── */
.bdadv-mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: #1a1d20;
    border: 1px solid #2c3136;
    color: #dee2e6;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    align-items: center;
    gap: 8px;
    border-radius: 2px;
    margin-bottom: 12px;
}
@media (max-width: 900px) {
    .bdadv-mobile-filter-toggle { display: flex; }
}

/* ── Filter Sidebar ── */
.bdadv-filters {
    background: #1a1d20;
    border: 1px solid #2c3136;
    border-radius: 2px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}
@media (max-width: 900px) {
    .bdadv-filters {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }
    .bdadv-filters.open { transform: translateX(0); }
}
.bdadv-filter-header {
    padding: 14px 16px;
    border-bottom: 1px solid #2c3136;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bdadv-filter-header h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9ca3af;
    margin: 0;
}
.bdadv-reset-btn {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    background: transparent;
    border: 1px solid #343a40;
    padding: 4px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    border-radius: 2px;
}
.bdadv-reset-btn:hover { border-color: #dee2e6; color: #dee2e6; }
.bdadv-filter-group {
    padding: 14px 16px;
    border-bottom: 1px solid #2c3136;
}
.bdadv-filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9ca3af;
    margin-bottom: 8px;
}
.bdadv-filter-group select,
.bdadv-filter-group input {
    width: 100%;
    padding: 9px 12px;
    background: #212529;
    border: 1px solid #343a40;
    color: #dee2e6;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 2px;
    transition: border-color 0.15s;
}
.bdadv-filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}
.bdadv-filter-group select:focus,
.bdadv-filter-group input:focus { border-color: #adb5bd; }
.bdadv-filter-group select option { background: #212529; }
.bdadv-filter-group input::placeholder { color: #495057; }
.bdadv-apply-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 14px 16px;
    padding: 11px;
    background: #fff;
    color: #212529;
    border: none;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    border-radius: 2px;
}
.bdadv-apply-btn:hover { background: #e9ecef; }
.bdadv-filter-divider { border: none; border-top: 1px solid #2c3136; margin: 0; }
.bdadv-sidebar-cta {
    padding: 16px;
    background: #212529;
}
.bdadv-sidebar-cta h4 {
    font-size: 13px;
    font-weight: 700;
    color: #dee2e6;
    margin: 0 0 6px;
}
.bdadv-sidebar-cta p {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0 0 10px;
}
.bdadv-sidebar-cta-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #c8a84b;
    color: #212529;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.15s;
    border-radius: 2px;
}
.bdadv-sidebar-cta-btn:hover { background: #b8943b; }

/* ── Results Area ── */
.bdadv-results-area {}
.bdadv-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.bdadv-results-count {
    font-size: 13px;
    font-weight: 700;
    color: #dee2e6;
}
.bdadv-view-toggle { display: flex; gap: 4px; }
.bdadv-view-btn {
    width: 32px; height: 32px;
    background: #1a1d20;
    border: 1px solid #343a40;
    color: #9ca3af;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
    border-radius: 2px;
}
.bdadv-view-btn:hover,
.bdadv-view-btn.active { background: #fff; color: #212529; border-color: #fff; }

/* ── Active Filter Chips ── */
.bdadv-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.bdadv-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2c3136;
    border: 1px solid #343a40;
    color: #dee2e6;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 2px;
}
.bdadv-filter-chip-remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    font-family: inherit;
    transition: color 0.15s;
}
.bdadv-filter-chip-remove:hover { color: #fff; }

/* ── Card List (default) ── */
.bdadv-cards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bdadv-card-item {
    background: #1a1d20;
    border: 1px solid #2c3136;
    border-left: 4px solid #343a40;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: border-left-color 0.15s, background 0.15s;
    border-radius: 2px;
}
.bdadv-card-item:hover {
    border-left-color: #c8a84b;
    background: #212529;
}
.bdadv-card-avatar {
    width: 44px; height: 44px;
    border-radius: 2px;
    background: #2c3136;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #adb5bd;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    overflow: hidden;
}
.bdadv-card-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.bdadv-card-main { flex: 1; min-width: 0; }
.bdadv-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bdadv-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: #9ca3af;
    align-items: center;
}
.bdadv-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.bdadv-card-meta-item svg { flex-shrink: 0; opacity: 0.7; }
.bdadv-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.bdadv-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid transparent;
}
.bdadv-badge-premium {
    background: rgba(200,168,75,0.15);
    color: #c8a84b;
    border-color: rgba(200,168,75,0.3);
}
.bdadv-badge-claimed {
    background: rgba(39,174,96,0.12);
    color: #27ae60;
    border-color: rgba(39,174,96,0.25);
}
.bdadv-badge-id {
    background: #2c3136;
    color: #9ca3af;
    border-color: #343a40;
}
.bdadv-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.bdadv-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
}
.bdadv-status-dot::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: #495057;
}
.status-active .bdadv-status-dot::before,
.bdadv-status-dot.status-active::before { background: #27ae60; }
.status-defaulter .bdadv-status-dot::before,
.bdadv-status-dot.status-defaulter::before { background: #e67e22; }
.status-retired .bdadv-status-dot::before,
.bdadv-status-dot.status-retired::before { background: #7f8c8d; }
.status-deceased .bdadv-status-dot::before,
.bdadv-status-dot.status-deceased::before { background: #95a5a6; }
.bdadv-view-profile-btn {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid #343a40;
    transition: all 0.15s;
    border-radius: 2px;
    white-space: nowrap;
}
.bdadv-card-item:hover .bdadv-view-profile-btn {
    border-color: #c8a84b;
    color: #c8a84b;
}

/* ── Card Grid (toggle) ── */
.bdadv-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.bdadv-cards-grid .bdadv-card-item {
    flex-direction: column;
    align-items: flex-start;
    border-left: none;
    border-top: 3px solid #343a40;
    padding: 20px;
}
.bdadv-cards-grid .bdadv-card-item:hover { border-top-color: #c8a84b; }
.bdadv-cards-grid .bdadv-card-right {
    align-items: flex-start;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
}

/* ── Loading / Empty ── */
.bdadv-loading {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}
.bdadv-spinner {
    width: 36px; height: 36px;
    border: 2px solid #2c3136;
    border-top-color: #c8a84b;
    border-radius: 50%;
    animation: bdadv-spin 0.7s linear infinite;
    margin: 0 auto 16px;
}
@keyframes bdadv-spin { to { transform: rotate(360deg); } }
.bdadv-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 15px;
}
.bdadv-no-results h3 { color: #dee2e6; font-size: 18px; margin: 0 0 8px; }
.bdadv-clear-link {
    color: #c8a84b;
    text-decoration: underline;
    cursor: pointer;
}

/* ── Pagination ── */
.bdadv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.bdadv-page-btn {
    min-width: 36px; height: 36px;
    border: 1px solid #343a40;
    background: #1a1d20;
    color: #adb5bd;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
    padding: 0 10px;
    border-radius: 2px;
}
.bdadv-page-btn:hover { border-color: #dee2e6; color: #dee2e6; }
.bdadv-page-btn.active { background: #fff; color: #212529; border-color: #fff; font-weight: 800; }
.bdadv-page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Bottom Info Section ── */
.bdadv-info-section {
    background: #1a1d20;
    border-top: 1px solid #2c3136;
    padding: 48px 24px;
}
.bdadv-info-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}
.bdadv-info-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.bdadv-info-block p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.65;
    margin: 0 0 12px;
}
.bdadv-info-link {
    font-size: 13px;
    font-weight: 700;
    color: #c8a84b;
    text-decoration: none;
    transition: color 0.15s;
}
.bdadv-info-link:hover { color: #fff; }
.bdadv-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bdadv-info-list li {
    font-size: 13px;
    color: #9ca3af;
    padding: 6px 0;
    border-bottom: 1px solid #2c3136;
    line-height: 1.5;
}
.bdadv-info-list li:last-child { border-bottom: none; }

/* ── Filter overlay (mobile) ── */
.bdadv-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}
.bdadv-filter-overlay.active { display: block; }

/* ── Responsive ── */
@media (max-width: 700px) {
    .bdadv-hero-search { flex-direction: column; }
    .bdadv-hero-field { border-right: none; border-bottom: 1px solid #2c3136; }
    .bdadv-hero-btn { min-height: 48px; width: 100%; justify-content: center; }
    .bdadv-stat { padding: 14px 20px; }
    .bdadv-card-item { flex-wrap: wrap; }
    .bdadv-card-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; margin-top: 8px; }
}
