/* Directory index pages — categories & locations */
.directory-page {
    background: linear-gradient(180deg, #f0f7f4 0%, #f8fbff 220px, #f8f8f8 220px);
    min-height: 60vh;
}

.directory-hero {
    background: linear-gradient(135deg, #0d4a2a 0%, #11b730 45%, #155770 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(17, 83, 45, 0.18);
    margin-bottom: 2rem;
}

.directory-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.directory-hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: 5%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.directory-hero__inner {
    position: relative;
    z-index: 1;
}

.directory-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.directory-hero__title {
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.directory-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 0;
    line-height: 1.6;
}

.directory-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.directory-stat {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 0.85rem 1.15rem;
    min-width: 130px;
}

.directory-stat__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.directory-stat__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 4px;
}

.directory-toolbar {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    padding: 1rem 1.15rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.directory-search {
    position: relative;
    flex: 1 1 280px;
    max-width: 420px;
}

.directory-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #11b730;
    pointer-events: none;
}

.directory-search__input {
    width: 100%;
    border: 1px solid #dbe4ea;
    border-radius: 999px;
    padding: 12px 18px 12px 44px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.directory-search__input:focus {
    outline: none;
    border-color: #11b730;
    box-shadow: 0 0 0 4px rgba(17, 183, 48, 0.12);
}

.directory-toolbar__meta {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.directory-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 1px solid #e7edf3;
    border-radius: 16px;
    padding: 1.15rem;
    min-height: 130px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.directory-card:hover {
    transform: translateY(-4px);
    border-color: #11b730;
    box-shadow: 0 16px 32px rgba(17, 183, 48, 0.12);
    color: inherit;
    text-decoration: none;
}

.directory-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.directory-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f8ec, #dff4ea);
    color: #0a7a22;
    font-size: 18px;
    flex-shrink: 0;
}

.directory-card__icon--location {
    background: linear-gradient(135deg, #e7f4fb, #dceef8);
    color: #155770;
}

.directory-card__count {
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 5px 10px;
    white-space: nowrap;
}

.directory-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a213d;
    line-height: 1.35;
    margin: 0;
}

.directory-card__link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #11b730;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.directory-card:hover .directory-card__link {
    color: #088b1c;
}

.directory-empty {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.directory-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.25rem;
}

.directory-breadcrumb .breadcrumb-item a {
    color: #11b730;
    text-decoration: none;
    font-weight: 500;
}

.directory-breadcrumb .breadcrumb-item.active {
    color: #64748b;
}

.directory-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

.directory-links-panel {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.directory-links-panel__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a213d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.directory-links-panel__title i {
    color: #11b730;
}

.directory-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.directory-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.directory-chip:hover {
    background: #11b730;
    border-color: #11b730;
    color: #fff;
    text-decoration: none;
}

.directory-chip__count {
    background: rgba(17, 183, 48, 0.12);
    color: #0a7a22;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
}

.directory-chip:hover .directory-chip__count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.listing-page-header {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.listing-page-header h1 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 0.5rem;
    color: #1a213d;
}

.listing-page-header p {
    margin-bottom: 0;
    color: #64748b;
}

@media (max-width: 767px) {
    .directory-hero {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .directory-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.85rem;
    }

    .directory-toolbar {
        padding: 0.9rem;
    }
}
