/* === Agencies listing page =================================== */

.agencies-index-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    padding-block: clamp(56px, 7vw, 96px);
}

.agencies-index-hero__title {
    color: var(--ink);
    font-family: var(--ff-serif);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-block: 16px 14px;
}

.agencies-index-hero__sub {
    color: var(--ink-mid);
    font-size: 17px;
    line-height: 1.65;
}

/* Strip card, use horizontal row layout */
.agency-card {
    background: none;
    border: none;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    display: grid;
    gap: clamp(20px, 3vw, 32px);
    grid-template-columns: 224px 1fr;
    overflow: visible;
    padding-block: clamp(40px, 5vw, 64px);
}

.agency-card:first-child { border-top: 1px solid var(--hairline); }
.agency-card:hover { background: none; }

/* Badge: anchor to portrait column, not right edge */
.agency-card .badge--pending-corner {
    left: 0;
    right: auto;
    top: clamp(40px, 5vw, 64px);
}

.agency-card__portrait img {
    aspect-ratio: 1;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    object-position: top center;
    width: 100%;
}

.img-placeholder--portrait {
    align-items: center;
    background: var(--hairline);
    border-radius: 6px;
    color: var(--ink-mid);
    display: flex;
    font-family: var(--ff-serif);
    font-size: 48px;
    font-weight: 300;
    height: 220px;
    justify-content: center;
}

/* Meta row */
.agency-card__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 12px;
}

/* Remove the left-margin gap that was meant for inline layout */
.agency-card .agency-card__langs-meta {
    margin-left: 0;
}

.agency-card__trip-count {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: 9999px;
    color: var(--ink-faint);
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 2px 10px;
}

.agency-card__link {
    background: var(--accent);
    border-radius: 9999px;
    color: #fff;
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    margin-top: 4px;
    padding: 2px 20px;
    text-decoration: none;
    transition: background 0.2s var(--ease);
}

.agency-card__link:hover {
    background: var(--accent-dk);
    color: #fff;
}

@media (max-width: 600px) {
    .agency-card {
        display: block;
        padding-block: 28px;
    }

    .agency-card__portrait {
        display: none;
    }

    .agency-card__location {
        display: none;
    }

    .agency-card__name {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .agency-card__specialty {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .agency-card__quote {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .agency-card__specialties {
        margin-bottom: 14px;
    }
}
