/* /dmc-companies/ hub: long-form guide under the city grid
   (template-parts/directory-guide.php). Loaded only on page-destinations.php.
   Cards reuse the look of the country / city cards above: white, 1px light
   border, 12px radius, primary border + lift on hover. */

.dmc-dir-guide-inner {
    max-width: 1240px;     /* same container as the country / city grids above */
    margin: 0 auto;
    padding: 0 24px;
    color: #334155;
    font-size: 1rem;
    line-height: 1.75;
}

.dmc-dir-guide-block + .dmc-dir-guide-block {
    margin-top: 3.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--border-light, #e2e8f0);
}

.dmc-dir-guide-title {
    margin: 0 0 1.25rem;
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-dark, #111827);
}

.dmc-dir-guide-inner p {
    margin: 0 0 1.1rem;
    font-size: 1rem;       /* beats the global p { 14px } */
    line-height: 1.75;
}

.dmc-dir-guide-inner p:last-child {
    margin-bottom: 0;
}

.dmc-dir-guide-inner strong {
    color: var(--text-dark, #111827);
    font-weight: 600;
}

/* Count pill, same as the "19 DMCs" pill on the city cards */
.dmc-dir-guide-count {
    flex: 0 0 auto;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    background: var(--bg-light, #f8fafc);
    font-size: var(--font-sm, 0.8125rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
    white-space: nowrap;
}

/* ── Badges explainer ─────────────────────────────────────────── */
.dmc-dir-guide-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0.25rem 0 1.5rem;
}

.dmc-dir-guide-badge-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-light, #f8fafc);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
}

.dmc-dir-guide-inner .dmc-dir-guide-badge-card p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.dmc-dir-guide-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    background: #eef2f7;
    color: var(--text-dark, #111827);
}

.dmc-dir-guide-pill--verified {
    background: #ecf6ee;
    color: #1d6e2f;
    border: 1px solid rgba(29, 110, 47, 0.18);
}

/* ── Service categories ───────────────────────────────────────── */
.dmc-dir-guide-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
    margin: 0.25rem 0 1.5rem;
}

.dmc-dir-guide-cat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.125rem 1.25rem;
    background: var(--white, #fff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-normal, 0.3s ease);
}

.dmc-dir-guide-cat:hover {
    border-color: var(--primary, #2b4c7e);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    transform: translateY(-2px);
}

.dmc-dir-guide-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dmc-dir-guide-cat-name {
    font-size: var(--font-base, 0.875rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark, #111827);
}

.dmc-dir-guide-cat:hover .dmc-dir-guide-cat-name {
    color: var(--primary, #2b4c7e);
}

.dmc-dir-guide-cat-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted, #4b5563);
}

/* ── Shortlist steps ──────────────────────────────────────────── */
.dmc-dir-guide-steps {
    list-style: none;
    counter-reset: dmc-step;
    margin: 0.25rem 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.dmc-dir-guide-steps li {
    counter-increment: dmc-step;
    position: relative;
    padding: 1rem 1.25rem 1rem 3.75rem;
    background: var(--bg-light, #f8fafc);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.dmc-dir-guide-steps li::before {
    content: counter(dmc-step);
    position: absolute;
    left: 1.125rem;
    top: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary, #2b4c7e);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

/* ── Coverage ─────────────────────────────────────────────────── */
.dmc-dir-guide-countries {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.25rem 0 1.5rem;
}

.dmc-dir-guide-country {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--white, #fff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-normal, 0.3s ease);
    min-width: 0;
}

.dmc-dir-guide-country:hover {
    border-color: var(--primary, #2b4c7e);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    transform: translateY(-2px);
}

.dmc-dir-guide-flag {
    flex: 0 0 auto;
    width: 32px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dmc-dir-guide-flag .dmc-flag-img,
.dmc-dir-guide-flag svg {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.dmc-dir-guide-country-name {
    flex: 1;
    min-width: 0;
    font-size: var(--font-base, 0.875rem);
    font-weight: 600;
    color: var(--text-dark, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dmc-dir-guide-country:hover .dmc-dir-guide-country-name {
    color: var(--primary, #2b4c7e);
}

.dmc-dir-guide-cta {
    margin-top: 2.5rem;
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .dmc-dir-guide-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dmc-dir-guide-countries {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dmc-dir-guide-inner {
        padding: 0 24px; /* same side gutter as the city grid above */
    }

    .dmc-dir-guide-inner p {
        font-size: 0.9375rem;
    }

    .dmc-dir-guide-title {
        font-size: 1.625rem;
    }

    .dmc-dir-guide-block + .dmc-dir-guide-block {
        margin-top: 2.5rem;
        padding-top: 2.5rem;
    }

    .dmc-dir-guide-badges,
    .dmc-dir-guide-cats {
        grid-template-columns: 1fr;
    }

    .dmc-dir-guide-steps li {
        padding: 0.875rem 1rem 0.875rem 3.25rem;
    }

    .dmc-dir-guide-steps li::before {
        left: 0.875rem;
        top: 0.875rem;
        width: 26px;
        height: 26px;
        line-height: 26px;
    }
}
