:root {
    --country-bg: var(--brand-bg-soft, #f3f5fa);
    --country-ink: var(--brand-secondary, #0f172a);
    --country-muted: var(--brand-ink-soft, #64748b);
    --country-brand: var(--brand-primary, #1d4ed8);
    --country-surface: #ffffff;
    --country-border: color-mix(in srgb, var(--brand-primary, #1d4ed8) 16%, #ffffff);
    --country-shadow: 0 12px 30px color-mix(in srgb, var(--brand-secondary, #0f172a) 12%, transparent);
    --country-accent: var(--brand-accent, #e1252b);
}

.countries-page {
    background: #ffffff;
}

.countries-shell {
    width: min(1180px, calc(100% - 30px));
    margin: 0 auto;
}

/* ── Hero ── */
.ctry-hero {
    padding: 56px 0 64px;
    background:
        radial-gradient(ellipse at 80% 50%, color-mix(in srgb, var(--country-accent) 6%, #ffffff) 0%, #ffffff 60%),
        radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: auto, 16px 16px;
}

.ctry-hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: center;
}

.ctry-eyebrow {
    display: inline-block;
    padding: 4px 14px;
    background: color-mix(in srgb, var(--country-brand) 9%, #ffffff);
    color: var(--country-brand);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.ctry-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--country-ink);
    margin: 0 0 14px;
}

.ctry-accent {
    color: var(--country-accent);
}

.ctry-hero > .countries-shell > .ctry-hero-grid > div > p {
    color: var(--country-muted);
    line-height: 1.72;
    margin: 0 0 20px;
    max-width: 54ch;
    font-size: 1rem;
}

.ctry-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--country-ink);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ctry-hero-btn:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--country-ink) 82%, #ffffff);
}

.ctry-hero-media {
    border-radius: 50%;
    overflow: hidden;
    min-height: 360px;
    width: 360px;
    height: 360px;
    justify-self: center;
    background: color-mix(in srgb, var(--country-accent) 8%, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctry-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.ctry-hero-placeholder {
    width: 100%;
    min-height: 360px;
    display: grid;
    place-items: center;
}

/* ── Destinations section ── */
.ctry-dest-section {
    padding: 20px 0 64px;
}

.ctry-section-head {
    text-align: center;
    margin-bottom: 28px;
}

.ctry-section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 900;
    color: var(--country-ink);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.ctry-section-head p {
    color: var(--country-muted);
    margin: 0;
    line-height: 1.7;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.ctry-empty {
    background: #f9fafb;
    border: 1px dashed #e2e8f0;
    border-radius: 20px;
    padding: 60px 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 1.05rem;
}

/* ── Full-image country cards (competitor style) ── */
.ctry-img-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.ctry-img-card {
    position: relative;
    min-height: 272px;
    border-radius: 22px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: color-mix(in srgb, var(--country-brand) 14%, #e5e7eb);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ctry-img-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(15,23,42,0.18);
}

.ctry-img-card > img:first-child {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.ctry-img-card:hover > img:first-child {
    transform: scale(1.07);
}

.ctry-img-card-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--country-brand) 28%, #ffffff), color-mix(in srgb, var(--country-brand) 14%, #ffffff));
}

.ctry-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.76) 0%, rgba(0,0,0,0.18) 45%, rgba(0,0,0,0.04) 100%);
}

.ctry-img-flag {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 24px;
    border-radius: 5px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
    z-index: 2;
}

.ctry-img-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    z-index: 2;
    padding: 0 16px 22px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: -0.01em;
}

.ctry-clear-link {
    color: var(--country-brand);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ── Trust Section ── */
.ctry-trust {
    margin: 48px 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--country-brand) 8%, #ffffff),
        color-mix(in srgb, var(--country-accent) 5%, #ffffff)
    );
    border: 1px solid color-mix(in srgb, var(--country-brand) 14%, transparent);
    border-radius: 20px;
    padding: 36px 40px;
}

.ctry-trust__text h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--country-ink);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    line-height: 1.25;
}

.ctry-trust__text p {
    color: var(--country-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.ctry-trust__points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ctry-trust__points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--country-ink);
}

.ctry-trust__tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--country-brand) 15%, #ffffff);
    color: var(--country-brand);
    flex-shrink: 0;
    border: 1.5px solid color-mix(in srgb, var(--country-brand) 25%, transparent);
}

.ctry-trust__btn {
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    background: var(--country-brand);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--country-brand) 30%, transparent);
}
.ctry-trust__btn:hover { opacity: .88; transform: translateY(-2px); }

/* ── "Still wondering" CTA ── */
.ctry-wonder {
    background: var(--country-accent);
    border-radius: 24px;
    padding: 32px 36px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 28px;
    align-items: center;
    margin-top: 8px;
}

.ctry-wonder-image {
    width: 180px;
    align-self: end;
}

.ctry-wonder-image img {
    width: 100%;
    border-radius: 12px 12px 20px 20px;
}

.ctry-wonder-content h3 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px;
}

.ctry-wonder-content p {
    color: rgba(255,255,255,0.86);
    margin: 0 0 18px;
    line-height: 1.65;
    font-size: 0.95rem;
}

.ctry-wonder-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #fff;
    color: var(--country-ink);
    font-weight: 800;
    font-size: 0.9rem;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ctry-wonder-btn:hover { transform: translateY(-2px); }

.ctry-wonder-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.ctry-wonder-links a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    transition: background 0.2s ease;
    text-decoration: none;
}

.ctry-wonder-links a:hover {
    background: rgba(255,255,255,0.32);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ctry-hero-grid {
        grid-template-columns: 1fr;
    }

    .ctry-hero-media {
        display: none;
    }

    .ctry-img-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ctry-wonder {
        grid-template-columns: 1fr;
    }

    .ctry-wonder-links {
        flex-direction: row;
        justify-content: flex-start;
    }

    .ctry-trust {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px;
    }
}

@media (max-width: 640px) {
    .ctry-img-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ctry-img-card {
        min-height: 200px;
    }

    .ctry-img-name {
        font-size: 1.1rem;
    }

    .ctry-hero {
        padding: 36px 0 44px;
    }
}
