/* ==================== TRAVELER DIRECTORY (HOME + COUNTRY) ==================== */

/* ---------- Home (intro + countries) ---------- */

.gv-directory-home {
    padding: var(--gv-space-3xl) var(--gv-section-padding-x) var(--gv-space-4xl);
    background: var(--gv-gradient-hero);
    text-align: center;
}

.gv-directory-home__intro {
    max-width: 36rem;
    margin: 0 auto var(--gv-space-2xl);
}

.gv-directory-home__title {
    margin-bottom: var(--gv-space-md);
}

.gv-directory-home__lead {
    margin: 0;
}

/* ---------- Country page hero ---------- */

.gv-directory-country {
    padding: var(--gv-space-2xl) var(--gv-section-padding-x);
    background: var(--gv-gradient-hero);
    text-align: left;
}

.gv-directory-country__inner {
    max-width: var(--gv-max-width);
    margin: 0 auto;
}

.gv-directory-country__breadcrumb {
    margin-bottom: var(--gv-space-xl);
    font-size: var(--gv-text-sm);
}

.gv-directory-country__breadcrumb a {
    color: var(--gv-brand-dark);
    text-decoration: none;
}

.gv-directory-country__breadcrumb a:hover {
    text-decoration: underline;
}

.gv-directory-country__breadcrumb-sep {
    margin: 0 var(--gv-space-xs);
    color: var(--gv-text-muted);
}

.gv-directory-country__title {
    margin-bottom: var(--gv-space-md);
    font-size: clamp(1.75rem, 4vw, var(--gv-text-4xl));
}

.gv-directory-country__lead {
    margin: 0;
}

/* ---------- Country page results ---------- */

.gv-directory-results {
    padding: var(--gv-space-2xl) var(--gv-section-padding-x) var(--gv-space-3xl);
}

/* ---------- Guide signup (home) ---------- */

.gv-directory-cta {
    padding: var(--gv-space-3xl) var(--gv-section-padding-x);
    border-top: 1px solid var(--gv-border);
    background: var(--gv-bg-secondary);
    text-align: center;
}

.gv-directory-cta__inner {
    max-width: var(--gv-max-width-narrow);
    margin: 0 auto;
}

.gv-directory-cta__text {
    margin-bottom: var(--gv-space-lg);
}

/* ---------- Shared empty state ---------- */

.gv-directory-empty {
    text-align: center;
    padding: var(--gv-space-3xl);
    color: var(--gv-text-secondary);
}

/* ---------- Country cards (home grid) ---------- */

.gv-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: var(--gv-space-md);
    max-width: var(--gv-max-width);
    margin: 0 auto;
}

.gv-country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gv-space-sm);
    padding: var(--gv-space-lg) var(--gv-space-md);
    text-decoration: none;
    color: inherit;
    background: var(--gv-white);
    border: 1px solid var(--gv-border-light);
    border-radius: var(--gv-radius-xl);
    box-shadow: var(--gv-shadow-xs);
    transition: transform var(--gv-transition-base), box-shadow var(--gv-transition-base), border-color var(--gv-transition-base);
}

.gv-country-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--gv-shadow-md);
    border-color: var(--gv-brand-light);
}

.gv-country-card__flag {
    font-size: 2.5rem;
    line-height: 1;
}

.gv-country-card__name {
    font-family: var(--gv-font-display);
    font-size: var(--gv-text-sm);
    font-weight: 600;
    text-align: center;
    color: var(--gv-text-primary);
}

.gv-country-card__count {
    font-size: var(--gv-text-xs);
    color: var(--gv-text-muted);
}

/* ---------- Guide cards (country results) ---------- */

.gv-guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gv-space-lg);
    max-width: var(--gv-max-width);
    margin: 0 auto;
}

.gv-guide-card {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: var(--gv-space-lg);
    align-items: start;
    padding: var(--gv-space-md);
    text-decoration: none;
    color: inherit;
    background: var(--gv-white);
    border: 1px solid var(--gv-border-light);
    border-radius: var(--gv-radius-xl);
    box-shadow: var(--gv-shadow-xs);
    transition: transform var(--gv-transition-base), box-shadow var(--gv-transition-base);
}

.gv-guide-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gv-shadow-md);
}

.gv-guide-card__media {
    aspect-ratio: 1;
    border-radius: var(--gv-radius-lg);
    overflow: hidden;
    background: var(--gv-gray-100);
    flex-shrink: 0;
}

.gv-guide-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gv-guide-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gv-brand-subtle);
}

.gv-guide-card__placeholder svg {
    width: 50%;
    height: 50%;
    opacity: 0.4;
}

.gv-guide-card__body {
    min-width: 0;
}

.gv-guide-card__name {
    --line-clamp: 2;
    font-family: var(--gv-font-display);
    font-size: var(--gv-text-lg);
    font-weight: 600;
    margin-bottom: var(--gv-space-xs);
    color: var(--gv-text-primary);
}

.gv-guide-card__location {
    --line-clamp: 2;
    font-size: var(--gv-text-sm);
    color: var(--gv-text-muted);
    margin-bottom: var(--gv-space-sm);
}

.gv-guide-card__description {
    --line-clamp: 3;
    font-size: var(--gv-text-sm);
    line-height: var(--gv-leading-relaxed);
    color: var(--gv-text-secondary);
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
    .gv-country-grid {
        grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    }

    .gv-guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gv-guide-card {
        grid-template-columns: 1fr;
    }

    .gv-guide-card__media {
        aspect-ratio: 4 / 3;
    }
}

@media (min-width: 1024px) {
    .gv-guide-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 480px) {
    .gv-directory-results {
        padding: var(--gv-space-3xl) var(--gv-section-padding-x) var(--gv-space-4xl);
    }
}