/* ============================================================
   Business Directory Page — directory.css
   ============================================================ */

/* ── General ─────────────────────────────────────────────── */
.dir-page {
    background: #f8f8fb;
    overflow-x: hidden;
}

/* ── Header ──────────────────────────────────────────────── */
.dir-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.dir-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.dir-header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dir-header-logo img {
    height: 44px;
    object-fit: contain;
}

.dir-nav {
    gap: 36px;
}

.dir-nav a {
    font-size: .875rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: color .2s;
}

.dir-nav a:hover,
.dir-nav a.active {
    color: #7c3aed;
}

.dir-nav a.active {
    font-weight: 600;
}

.dir-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dir-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    font-size: .85rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all .2s;
    background: transparent;
    cursor: pointer;
}

.dir-btn-outline:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.dir-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    background: #7c3aed;
    font-size: .85rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: background .2s;
    border: none;
    cursor: pointer;
}

.dir-btn-primary:hover {
    background: #6d28d9;
    color: #fff;
}

.dir-hamburger {
    background: none;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dir-mobile-nav {
    border-top: 1px solid #f1f5f9;
    padding: 12px 0 16px;
}

.dir-mobile-nav a {
    display: block;
    padding: 8px 4px;
    font-size: .9rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: color .2s;
}

.dir-mobile-nav a:hover,
.dir-mobile-nav a.active {
    color: #7c3aed;
}

.dir-mobile-nav a.active {
    font-weight: 600;
}

/* ── Hero ─────────────────────────────────────────────────── */
.dir-hero {
    position: relative;
    padding: 80px 0 90px;
    background: #f8f8fb;
    overflow: hidden;
}

.dir-hero-blob-1 {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.12);
    filter: blur(100px);
    top: -60px;
    left: -80px;
    z-index: 0;
    pointer-events: none;
}

.dir-hero-blob-2 {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(251, 146, 60, 0.10);
    filter: blur(100px);
    top: 60px;
    right: -60px;
    z-index: 0;
    pointer-events: none;
}

.dir-hero-inner {
    position: relative;
    z-index: 1;
}

.dir-hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.dir-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ede9fe;
    color: #7c3aed;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.dir-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: #1e1b39;
    margin-bottom: 18px;
}

.dir-hero-title span {
    color: #7c3aed;
}

.dir-hero-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 36px;
}

.dir-search-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}

.dir-search-input-wrap {
    position: relative;
}

.dir-search-input-wrap .dir-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

.dir-search-input {
    width: 100%;
    height: 52px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 14px 0 40px;
    font-size: .9rem;
    outline: none;
    color: #334155;
    transition: border-color .2s;
}

.dir-search-input:focus {
    border-color: #7c3aed;
}

.dir-search-select {
    width: 100%;
    height: 52px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 40px 0 14px;
    font-size: .9rem;
    outline: none;
    color: #334155;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .2s;
    cursor: pointer;
}

.dir-search-select:focus {
    border-color: #7c3aed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.dir-search-btn {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    background: #7c3aed;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.dir-search-btn:hover {
    background: #6d28d9;
}

.dir-clear-link {
    display: block;
    margin-top: 12px;
    text-align: right;
    font-size: .82rem;
    color: #7c3aed;
    text-decoration: none;
}

.dir-clear-link:hover {
    text-decoration: underline;
    color: #6d28d9;
}

/* ── Top Industry ─────────────────────────────────────────── */
.dir-industry {
    padding: 80px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.dir-industry-blob-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 280px;
    background: rgba(124, 58, 237, 0.08);
    filter: blur(90px);
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
}

.dir-industry-blob-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 280px;
    height: 280px;
    background: rgba(251, 146, 60, 0.08);
    filter: blur(90px);
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
}

.dir-industry-inner {
    position: relative;
    z-index: 1;
}

.dir-section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.dir-section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #1e1b39;
    margin-bottom: 12px;
}

.dir-section-heading p {
    color: #64748b;
    font-size: .95rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.8;
}

.topIndustrySlider {
    padding-bottom: 8px;
}

.topIndustrySlider .swiper-slide {
    height: auto;
}

.dir-industry-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 28px 16px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.dir-industry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    color: inherit;
    text-decoration: none;
}

.dir-industry-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 22px;
    transition: all .3s ease;
}

.dir-industry-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.dir-industry-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.dir-industry-count {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* ── Business Section ─────────────────────────────────────── */
.dir-business {
    padding: 72px 0;
    background: #f8f8fb;
}

.dir-business-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.dir-topbar-left {
    flex-shrink: 0;
}

.dir-topbar-left h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: #1e1b39;
    margin-bottom: 4px;
}

.dir-topbar-left p {
    font-size: .82rem;
    color: #64748b;
    margin: 0;
}

.dir-topbar-left p a {
    color: #7c3aed;
    text-decoration: none;
}

/* Controls row — fixed widths so nothing wraps on desktop */
.dir-topbar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Search input */
.dir-topbar-search-wrap {
    position: relative;
    width: 180px;
    flex-shrink: 0;
}

.dir-topbar-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .9rem;
    pointer-events: none;
    z-index: 1;
}

.dir-topbar-search-input {
    width: 100%;
    height: 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 0 12px 0 34px;
    font-size: .82rem;
    color: #334155;
    background: #fff;
    outline: none;
    transition: border-color .2s;
}

.dir-topbar-search-input:focus {
    border-color: #7c3aed;
}

/* Category select — fixed 160px */
.dir-topbar-select {
    width: 160px;
    height: 38px;
    padding: 0 28px 0 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: .82rem;
    color: #334155;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 9px center;
    outline: none;
    flex-shrink: 0;
    transition: border-color .2s;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Per-page & sort — narrower */
.dir-topbar-select--sm {
    width: 110px;
}

.dir-topbar-select:focus {
    border-color: #7c3aed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Select2 inside topbar — force fixed width, match native height */
.dir-topbar-controls .select2-container {
    width: 160px !important;
    flex-shrink: 0;
}

.dir-topbar-controls .select2-container--sm {
    width: 110px !important;
}

.dir-topbar-controls .select2-container--default .select2-selection--single {
    height: 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    display: flex;
    align-items: center;
}

.dir-topbar-controls .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 10px;
    padding-right: 26px;
    font-size: .82rem;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dir-topbar-controls .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 6px;
}

.dir-topbar-controls .select2-container--default.select2-container--open .select2-selection--single,
.dir-topbar-controls .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #7c3aed;
    box-shadow: none;
    outline: none;
}

/* Search button */
.dir-topbar-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #7c3aed;
    color: #fff;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
}

.dir-topbar-search-btn:hover {
    background: #6d28d9;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .dir-business-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dir-topbar-controls {
        flex-wrap: wrap;
    }

    .dir-topbar-search-wrap {
        width: 100%;
        flex: 1 1 100%;
    }

    .dir-topbar-select {
        flex: 1 1 calc(50% - 4px);
        width: auto;
    }

    .dir-topbar-select--sm {
        flex: 1 1 calc(50% - 4px);
        width: auto;
    }

    .dir-topbar-controls .select2-container {
        flex: 1 1 calc(50% - 4px);
        width: auto !important;
    }

    .dir-topbar-search-btn {
        width: 100%;
        flex: 1 1 100%;
    }
}

/* Empty state */
.dir-empty-state {
    text-align: center;
    padding: 70px 20px;
    color: #94a3b8;
}

.dir-empty-state i {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
    opacity: .3;
}

.dir-empty-state h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.dir-empty-state p {
    font-size: .9rem;
    margin-bottom: 20px;
}

.dir-empty-state a {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 10px;
    background: #7c3aed;
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.dir-empty-state a:hover {
    background: #6d28d9;
    color: #fff;
}

/* Business card */
.dir-biz-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow .3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dir-biz-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.dir-biz-card-body {
    padding: 20px 20px 16px;
    flex: 1;
}

.dir-biz-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}

.dir-biz-card-top-left {
    flex: 1;
    min-width: 0;
}

.dir-biz-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.dir-biz-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.dir-biz-initials {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: .5px;
}

.dir-biz-title {
    font-size: .95rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    display: block;
    line-height: 1.3;
    transition: color .2s;
}

.dir-biz-title:hover {
    color: #7c3aed;
}

.dir-biz-category {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: .72rem;
    font-weight: 500;
}

.dir-vcf-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    font-size: .7rem;
    font-weight: 700;
    color: #7c3aed;
    white-space: nowrap;
    text-decoration: none;
}

.dir-vcf-badge a {
    color: inherit;
    text-decoration: none;
}

.dir-biz-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dir-biz-info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.dir-biz-info-row i {
    color: #94a3b8;
    font-size: .85rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
}

.dir-biz-info-row span {
    font-size: .82rem;
    color: #475569;
    line-height: 1.5;
}

.dir-biz-info-row span.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dir-biz-info-row span.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dir-biz-info-row span.break-all {
    word-break: break-all;
}

.dir-biz-card-footer {
    border-top: 1px solid #f1f5f9;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.dir-biz-views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

.dir-biz-views i {
    font-size: .8rem;
}

.dir-biz-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.dir-btn-view-card {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    font-size: .75rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all .2s;
    background: #fff;
}

.dir-btn-view-card:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.dir-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    background: #4b1768;
    font-size: .75rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: background .2s;
}

.dir-btn-download:hover {
    background: #39114f;
    color: #fff;
}

/* ── Business hours label & closed state ─────────────────── */
.dir-biz-hours-label {
    font-weight: 600;
    color: #334155;
    margin-right: 2px;
}

.dir-biz-closed {
    color: #ef4444;
    font-weight: 500;
}

/* ── Pagination ───────────────────────────────────────────── */
.dir-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.dir-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: .82rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all .2s;
}

.dir-page-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.dir-page-btn--disabled {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: .82rem;
    font-weight: 500;
    color: #cbd5e1;
    cursor: not-allowed;
}

.dir-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: .82rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all .2s;
}

.dir-page-num:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.dir-page-num--active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #7c3aed;
    background: #7c3aed;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
}


/* ── Card top-right action group (VCF + Detail) ─────────── */
.dir-card-top-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.dir-vcf-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1.5px solid #ddd6fe;
    font-size: .68rem;
    font-weight: 700;
    color: #7c3aed;
    white-space: nowrap;
    text-decoration: none;
    transition: all .2s;
    background: #faf5ff;
}

.dir-vcf-badge:hover {
    background: #ede9fe;
    border-color: #7c3aed;
    color: #6d28d9;
}

.dir-vcf-badge svg {
    flex-shrink: 0;
}

.dir-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: .85rem;
    cursor: pointer;
    transition: all .2s;
    padding: 0;
    line-height: 1;
}

.dir-detail-btn:hover {
    background: #ede9fe;
    border-color: #7c3aed;
    color: #7c3aed;
}

/* ── Card footer icon buttons ────────────────────────────── */
.dir-footer-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: .9rem;
    text-decoration: none;
    transition: all .2s;
    flex-shrink: 0;
}

.dir-footer-icon-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: #f5f3ff;
}

.dir-footer-icon-btn--vcf {
    color: #7c3aed;
    border-color: #ddd6fe;
    background: #faf5ff;
}

.dir-footer-icon-btn--vcf:hover {
    background: #ede9fe;
    border-color: #7c3aed;
    color: #6d28d9;
}

/* ── Business Detail Modal ───────────────────────────────── */
.dir-biz-modal .modal-dialog {
    max-width: 720px;
}

.dir-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

.dir-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbff;
}

.dir-modal-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dir-modal-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.dir-modal-initials {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: .5px;
}

.dir-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
    line-height: 1.3;
}

.dir-modal-body {
    padding: 24px;
}

.dir-modal-section-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dir-modal-section-title i {
    font-size: .95rem;
    color: #7c3aed;
}

.dir-modal-desc {
    font-size: .88rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 14px;
}

.dir-modal-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dir-modal-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: .85rem;
    color: #475569;
    line-height: 1.5;
}

.dir-modal-info-list li i {
    color: #94a3b8;
    font-size: .9rem;
    margin-top: 1px;
    flex-shrink: 0;
    width: 16px;
}

.dir-modal-info-list li a {
    color: #7c3aed;
    text-decoration: none;
    word-break: break-all;
}

.dir-modal-info-list li a:hover {
    text-decoration: underline;
}

/* Business hours table in modal */
.dir-modal-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.dir-modal-hours-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    font-size: .82rem;
    border-bottom: 1px solid #f8fafc;
    background: #fff;
}

.dir-modal-hours-list li:last-child {
    border-bottom: none;
}

.dir-modal-hours-list li.dir-hours-today {
    background: #f5f3ff;
}

.dir-hours-day {
    font-weight: 600;
    color: #334155;
}

.dir-hours-time {
    color: #475569;
}

/* Modal action buttons */
.dir-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dir-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

.dir-modal-btn--primary {
    background: #7c3aed;
    color: #fff;
    border: 1.5px solid #7c3aed;
}

.dir-modal-btn--primary:hover {
    background: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
}

.dir-modal-btn--outline {
    background: #fff;
    color: #7c3aed;
    border: 1.5px solid #ddd6fe;
}

.dir-modal-btn--outline:hover {
    background: #ede9fe;
    border-color: #7c3aed;
    color: #6d28d9;
}

/* ── Business sub-title text on card ────────────────────── */
.dir-biz-subtitle-text {
    display: block;
    font-size: .75rem;
    color: #64748b;
    line-height: 1.4;
    margin-top: 1px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* ── Branches count badge (replaces VCF badge when multi-branch) ── */
.dir-branches-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 7px;
    width: auto;
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

.dir-branches-badge:hover {
    background: #dcfce7;
    border-color: #16a34a;
    color: #15803d;
}