/*
 * International Dealers page styles
 * Loaded via @push('styles') — only on /international.
 * Shared, brand-aware: all accents use the --brand-* tokens
 * (resources/css/{eb,mm}/brand.css) so EB renders pink and MM gold
 * with no per-brand duplication. Never hardcode brand hex here.
 */

/* =================================================================
   1. PAGE HEADER
   ================================================================= */
.intl-page {
    max-width: 960px;
}

.intl-page__title {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 2rem;
    letter-spacing: 0.02em;
    color: #212529;
    margin-bottom: 0.75rem;
}

.intl-page__intro {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    max-width: 68ch;
    margin-bottom: 2rem;
}

/* =================================================================
   2. TYPE-TO-FILTER SEARCH
   ================================================================= */
.intl-filter {
    margin-bottom: 2.5rem;
    max-width: 420px;
}

.intl-filter__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #333;
    margin-bottom: 0.5rem;
}

.intl-filter__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    color: #212529;
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.intl-filter__input::placeholder {
    color: #999;
}

.intl-filter__input:hover {
    border-color: #adb5bd;
}

.intl-filter__input:focus,
.intl-filter__input:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.15);
}

.intl-filter__empty {
    padding: 3rem 0;
    text-align: center;
    color: #999;
    font-size: 1.125rem;
}

/* =================================================================
   3. COUNTRY SECTION HEADER (.section-title idiom)
   ================================================================= */
.intl-country {
    margin-bottom: 3rem;
    /* Offset so anchor jumps clear the sticky header */
    scroll-margin-top: 6rem;
}

.section-title {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
    color: #212529;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--brand-primary);
    margin-top: 0.5rem;
}

/* =================================================================
   4. DEALER LIST + CARDS
   ================================================================= */
.intl-country__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.intl-dealer {
    border: 1px solid #eee;
    border-left: 3px solid var(--brand-primary);
    border-radius: 4px;
    padding: 1.25rem 1.375rem;
    background: #fff;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.intl-dealer:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.intl-dealer__name {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.35;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.intl-dealer__badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* The AA fill pair, not the accent: white on Slinky Pink is 3.58:1 and
       these badges are 10px text (WAVE on /international, 2026-09-01). */
    color: var(--brand-on-primary, #fff);
    background: var(--brand-primary-fill, var(--brand-primary));
    border-radius: 3px;
}

.intl-dealer__details {
    margin: 0;
}

.intl-dealer__row + .intl-dealer__row {
    margin-top: 0.5rem;
}

.intl-dealer__row dd {
    margin: 0;
}

.intl-dealer__address,
.intl-dealer__phone,
.intl-dealer__email {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #555;
}

.intl-dealer__url {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--brand-link);
    text-decoration: none;
}

.intl-dealer__url:hover,
.intl-dealer__url:focus-visible {
    color: var(--brand-link-hover);
    text-decoration: underline;
}

.intl-dealer__url:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* =================================================================
   5. EMPTY STATE
   ================================================================= */
.intl-page__empty {
    padding: 4rem 0;
    text-align: center;
    color: #999;
    font-size: 1.125rem;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

/* Tablet */
@media (max-width: 767.98px) {
    .intl-page__title {
        font-size: 1.75rem;
    }

    .intl-country {
        margin-bottom: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .intl-page__title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .intl-country__list {
        grid-template-columns: 1fr;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .intl-dealer {
        transition: none;
    }

    .intl-dealer:hover {
        transform: none;
    }
}
