/* Premium location discovery footer band — sits above existing CoreLab footer */

.cl-loc-footer,
.cl-directory {
    --cl-lf-bg: #0f172a;
    --cl-lf-bg-soft: #1e293b;
    --cl-lf-accent: #8ebf4c;
    --cl-lf-accent-dark: #6fa032;
    --cl-lf-text: #f1f5f9;
    --cl-lf-muted: #94a3b8;
    --cl-lf-border: rgba(148, 163, 184, 0.18);
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
}

.cl-loc-footer__cta {
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 50%, #0f172a 100%);
    border-top: 3px solid var(--cl-lf-accent);
    padding: 2rem 0;
}

.cl-loc-footer__cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.cl-loc-footer__cta-copy h2 {
    color: #fff;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.cl-loc-footer__cta-copy p {
    color: var(--cl-lf-muted);
    margin: 0;
    font-size: 0.95rem;
    max-width: 36rem;
}

.cl-loc-footer__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.cl-loc-footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.cl-loc-footer__btn--primary {
    background: var(--cl-lf-accent, #8ebf4c);
    color: #0f172a !important;
    box-shadow: 0 4px 14px rgba(142, 191, 76, 0.35);
}

.cl-loc-footer__btn--primary:hover {
    background: var(--cl-lf-accent-dark, #6fa032);
    color: #fff !important;
    transform: translateY(-1px);
}

.cl-loc-footer__btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border: 1px solid var(--cl-lf-border, rgba(148, 163, 184, 0.18));
}

.cl-loc-footer__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
}

.cl-loc-footer__btn--wa {
    background: #25d366;
    color: #fff !important;
}

.cl-loc-footer__btn--wa:hover {
    background: #1ebe57;
    color: #fff !important;
}

.cl-loc-footer__grid-wrap {
    background: var(--cl-lf-bg);
    padding: 2.5rem 0 1.75rem;
}

.cl-loc-footer__head {
    margin-bottom: 1.75rem;
}

.cl-loc-footer__eyebrow {
    display: inline-block;
    color: var(--cl-lf-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cl-loc-footer__intro {
    color: var(--cl-lf-muted);
    font-size: 0.95rem;
    margin: 0;
    max-width: 52rem;
    line-height: 1.55;
}

.cl-loc-footer__grid {
    row-gap: 1.5rem;
}

.cl-loc-footer__col {
    height: 100%;
}

.cl-loc-footer__col-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    line-height: 1.35;
    color: #fff;
}

.cl-loc-footer__col-title a {
    color: #fff !important;
    text-decoration: none;
}

.cl-loc-footer__col-title a:hover {
    color: var(--cl-lf-accent) !important;
}

.cl-loc-footer__hub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--cl-lf-accent) !important;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-decoration: none !important;
}

.cl-loc-footer__hub-link:hover {
    color: #b8e06a !important;
}

.cl-loc-footer__sub-title {
    color: var(--cl-lf-muted) !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 1rem 0 0.5rem;
}

.cl-loc-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cl-loc-footer__links li {
    margin-bottom: 0.35rem;
}

.cl-loc-footer__links a {
    color: var(--cl-lf-muted) !important;
    font-size: 0.8125rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cl-loc-footer__links a:hover {
    color: #fff !important;
}

.cl-loc-footer__links--regions a i {
    color: var(--cl-lf-accent);
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

.cl-loc-footer__links--compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.cl-loc-footer__links--compact li {
    margin: 0;
}

.cl-loc-footer__directory {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cl-lf-border);
    text-align: center;
}

.cl-loc-footer__directory-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--cl-lf-border);
    background: var(--cl-lf-bg-soft);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.cl-loc-footer__directory-link:hover {
    border-color: var(--cl-lf-accent);
    background: rgba(142, 191, 76, 0.1);
    color: var(--cl-lf-accent) !important;
}

/* HTML directory page */
.cl-directory__hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.cl-directory__badge {
    display: inline-block;
    background: rgba(142, 191, 76, 0.15);
    color: #8ebf4c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.cl-directory__hero h1 {
    color: #fff !important;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    max-width: 48rem;
    margin: 0 auto 1rem;
    line-height: 1.25;
}

.cl-directory__lead {
    color: #94a3b8;
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
}

.cl-directory__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.cl-directory__body {
    padding: 2.5rem 0 4rem;
}

.cl-directory__section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.cl-directory__section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cl-directory__section-head h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.cl-directory__section-head h2 a {
    color: #0f172a;
    text-decoration: none;
}

.cl-directory__section-head h2 a:hover {
    color: #6fa032;
}

.cl-directory__hub-cta {
    color: #6fa032;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.cl-directory__intro {
    color: #64748b;
    margin-bottom: 1.25rem;
    max-width: 52rem;
}

.cl-directory__group {
    margin-bottom: 1.25rem;
}

.cl-directory__group h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    color: #334155;
}

.cl-directory__group h3 a {
    color: #334155;
    text-decoration: none;
}

.cl-directory__group h3 a:hover {
    color: #6fa032;
}

.cl-directory__count {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.875rem;
}

.cl-directory__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.35rem 1rem;
}

.cl-directory__links a {
    color: #475569;
    font-size: 0.875rem;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}

.cl-directory__links a:hover {
    color: #6fa032;
}

@media (max-width: 767px) {
    .cl-loc-footer__cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cl-loc-footer__cta-actions {
        width: 100%;
    }

    .cl-loc-footer__btn {
        flex: 1 1 auto;
        justify-content: center;
        min-width: calc(50% - 0.35rem);
        white-space: normal;
        text-align: center;
    }

    .cl-loc-footer__grid-wrap {
        padding: 2rem 0 1.5rem;
    }

    .cl-loc-footer__col-title {
        font-size: 0.9rem;
    }

    .cl-loc-footer__links a {
        font-size: 0.8125rem;
        display: inline-block;
        padding: 0.15rem 0;
    }

    /* HTML directory page — mobile */
    .cl-directory .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .cl-directory__hero {
        padding: 2rem 0 1.75rem;
        text-align: left;
    }

    .cl-directory__hero h1 {
        margin-left: 0;
        margin-right: 0;
        font-size: clamp(1.35rem, 6vw, 1.85rem);
        line-height: 1.3;
    }

    .cl-directory__lead {
        margin-left: 0;
        margin-right: 0;
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .cl-directory__actions {
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }

    .cl-directory__actions .cl-loc-footer__btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .cl-directory__body {
        padding: 1.75rem 0 3rem;
    }

    .cl-directory__section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .cl-directory__section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cl-directory__section-head h2 {
        font-size: clamp(1.1rem, 5vw, 1.35rem);
        line-height: 1.35;
        word-break: break-word;
    }

    .cl-directory__hub-cta {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.45rem 0.85rem;
        background: rgba(111, 160, 50, 0.1);
        border-radius: 999px;
        white-space: nowrap;
    }

    .cl-directory__intro {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .cl-directory__group h3 {
        font-size: 0.9375rem;
        line-height: 1.4;
        word-break: break-word;
    }

    .cl-directory__links {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .cl-directory__links li {
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #f8fafc;
    }

    .cl-directory__links a {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        line-height: 1.4;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 399px) {
    .cl-loc-footer__btn {
        min-width: 100%;
    }
}
