
/* =========================================
   COUNTRY PAGE
========================================= */

.country-page {
    --country-accent: #8b6be8;
    --country-ink: #171923;
    --country-muted: #777b89;
    --country-border: rgba(30, 30, 45, .09);
    color: var(--country-ink);
    padding-bottom: 70px;
}

.country-page .container {
    width: min(1200px, calc(100% - 40px));
}

/* Breadcrumb */

.country-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    padding: 24px 0 18px;
    font-size: 13px;
    color: var(--country-muted);
}

.country-breadcrumb a {
    color: var(--country-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.country-breadcrumb a:hover {
    color: var(--country-accent);
}

.country-breadcrumb i {
    font-size: 10px;
    opacity: .6;
}

.country-breadcrumb span {
    color: var(--country-ink);
    font-weight: 650;
}

/* Hero */

.country-hero {
    padding: 10px 0 25px;
}

.country-hero-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 55px 65px;
    border-radius: 27px;
    background:
        radial-gradient(circle at 85% 20%, rgba(169, 142, 255, .30), transparent 32%),
        linear-gradient(115deg, #171827 0%, #292342 55%, #41336b 100%);
    color: #fff;
}

.country-hero-content {
    position: relative;
    z-index: 2;
    max-width: 690px;
}

.country-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: #d2c5ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.country-heading {
    display: flex;
    align-items: center;
    gap: 20px;
}

.country-flag {
    font-size: 57px;
    line-height: 1;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,.2));
}

.country-heading h1 {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1.8px;
}

.country-code {
    color: #c5b9e8;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.6px;
}

.country-description {
    max-width: 570px;
    margin: 23px 0;
    color: rgba(255,255,255,.76);
    font-size: 15px;
    line-height: 1.8;
}

.country-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 25px;
}

.country-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e5dfff;
    font-size: 13px;
}

.country-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 19px;
    border-radius: 9px;
    background: #fff;
    color: #30234f;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.country-explore-btn:hover {
    color: #30234f;
    transform: translateY(-3px);
    box-shadow: 0 9px 25px rgba(0,0,0,.2);
}

.country-hero-art {
    position: absolute;
    z-index: 1;
    right: 6%;
    top: 50%;
    width: 310px;
    height: 310px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
}

.country-hero-big-flag {
    position: relative;
    z-index: 2;
    font-size: 125px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,.3));
}

.country-hero-year {
    position: absolute;
    bottom: 20px;
    color: rgba(255,255,255,.13);
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 5px;
}

.country-hero-orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
}

.orbit-one {
    width: 230px;
    height: 230px;
}

.orbit-two {
    width: 300px;
    height: 300px;
}

/* Statistics */

.country-stats-section {
    padding: 10px 0 48px;
}

.country-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.country-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 105px;
    padding: 20px;
    border: 1px solid var(--country-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(20,20,40,.035);
}

.country-stat-icon {
    display: grid;
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    place-items: center;
    border-radius: 13px;
    background: #f0ebff;
    color: #7858d7;
    font-size: 20px;
}

.country-stat-card strong {
    display: block;
    color: var(--country-ink);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
}

.country-stat-card div > span {
    display: block;
    margin-top: 5px;
    color: var(--country-muted);
    font-size: 12px;
}

/* Section headings */

.country-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
}

.country-section-label {
    display: block;
    margin-bottom: 11px;
    color: #8063d7;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 2px;
}

.country-section-heading h2 {
    margin: 0 0 10px;
    color: var(--country-ink);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 800;
    letter-spacing: -1px;
}

.country-section-heading p {
    max-width: 650px;
    margin: 0;
    color: var(--country-muted);
    font-size: 14px;
    line-height: 1.7;
}

.country-event-total {
    flex-shrink: 0;
    text-align: right;
}

.country-event-total strong {
    display: block;
    color: var(--country-ink);
    font-size: 29px;
    font-weight: 850;
}

.country-event-total span {
    color: var(--country-muted);
    font-size: 12px;
}

/* Month groups */

.country-holidays-section {
    padding: 20px 0 65px;
}

.country-month-group {
    margin-bottom: 43px;
}

.country-month-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--country-border);
}

.country-month-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.country-month-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 12px;
    background: #f0ebff;
    color: #7858d7;
    font-size: 18px;
}

.country-month-title h3 {
    margin: 0 0 3px;
    color: var(--country-ink);
    font-size: 20px;
    font-weight: 800;
}

.country-month-title span:not(.country-month-icon) {
    color: var(--country-muted);
    font-size: 12px;
}

.country-month-count {
    padding: 7px 12px;
    border-radius: 30px;
    background: #f2effa;
    color: #7659c9;
    font-size: 11px;
    font-weight: 750;
}

/* Event card grid */

.country-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.country-month-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.country-month-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 19px;
    border: 1px solid #ded6f2;
    border-radius: 9px;
    background: #f5f2fc;
    color: #6048a5;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.country-month-more-btn:hover {
    background: #6048a5;
    color: #fff;
    transform: translateY(-2px);
}

.country-month-more-btn:focus-visible {
    outline: 3px solid rgba(96, 72, 165, .28);
    outline-offset: 3px;
}

/*
 * Reuse the existing DaysAndDates date-card design.
 * These rules only control the card layout inside country pages.
 */

.country-event-grid .date-card {
    width: 100%;
    min-width: 0;
    margin: 0;
    height: 100%;
}

.country-event-grid .date-card__media {
    overflow: hidden;
}

.country-event-grid .date-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.country-event-grid .date-card:hover .date-card__media img {
    transform: scale(1.06);
}

.country-event-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 190px;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.4), transparent 35%),
        linear-gradient(135deg, #ded4ff, #b6a4ed);
}

.country-event-placeholder span {
    font-size: 65px;
}


.country-event-end-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    color: var(--country-muted);
    font-size: 11px;
}

.country-event-grid .date-card__footer {
    margin-top: auto;
}

/* Empty state */

.country-empty-state {
    padding: 65px 25px;
    border: 1px dashed #d9d2eb;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

.country-empty-icon {
    display: grid;
    width: 65px;
    height: 65px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 20px;
    background: #f0ebff;
    color: #7858d7;
    font-size: 27px;
}

.country-empty-state h3 {
    margin: 0 0 10px;
    color: var(--country-ink);
    font-size: 21px;
    font-weight: 800;
}

.country-empty-state p {
    max-width: 480px;
    margin: 0 auto;
    color: var(--country-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Country switcher */

.country-switcher-section {
    padding: 45px 0 10px;
    border-top: 1px solid var(--country-border);
}

.country-switcher-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.country-switcher-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--country-border);
    border-radius: 13px;
    background: #fff;
    color: var(--country-ink);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.country-switcher-card:hover {
    transform: translateY(-3px);
    border-color: #c8b8f3;
    color: var(--country-ink);
    box-shadow: 0 9px 25px rgba(30,20,60,.07);
}

.switcher-flag {
    font-size: 29px;
}

.switcher-country-info {
    display: block;
    flex: 1;
    min-width: 0;
}

.switcher-country-info strong,
.switcher-country-info small {
    display: block;
}

.switcher-country-info strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.switcher-country-info small {
    margin-top: 4px;
    color: var(--country-muted);
    font-size: 10px;
}

.country-switcher-card > i {
    color: #8b6be8;
}

/* Responsive */

@media (max-width: 991px) {
    .country-hero-card {
        padding: 45px;
    }

    .country-hero-art {
        right: -35px;
        opacity: .55;
    }

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

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

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

@media (max-width: 600px) {
    .country-page .container {
        width: min(100% - 28px, 1200px);
    }

    .country-breadcrumb {
        padding-top: 18px;
        font-size: 11px;
    }

    .country-hero-card {
        min-height: 0;
        padding: 34px 23px;
        border-radius: 20px;
    }

    .country-heading {
        gap: 13px;
    }

    .country-flag {
        font-size: 42px;
    }

    .country-heading h1 {
        font-size: 32px;
    }

    .country-description {
        font-size: 13px;
    }

    .country-hero-art {
        right: -115px;
        opacity: .18;
    }

    .country-hero-meta {
        gap: 12px;
        flex-direction: column;
    }

    .country-stats-grid {
        gap: 10px;
    }

    .country-stat-card {
        min-height: 85px;
        gap: 10px;
        padding: 12px;
    }

    .country-stat-icon {
        flex-basis: 37px;
        width: 37px;
        height: 37px;
        font-size: 16px;
    }

    .country-stat-card strong {
        font-size: 20px;
    }

    .country-stat-card div > span {
        font-size: 10px;
    }

    .country-section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 25px;
    }

    .country-event-total {
        text-align: left;
    }

    .country-event-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .country-month-heading {
        align-items: flex-start;
    }

    .country-month-title h3 {
        font-size: 18px;
    }

    .country-switcher-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
