.world-map-hero-banner {
    background: transparent;
    border-radius: 0;
    padding: clamp(1rem, 2vw, 1.8rem);
    margin-bottom: clamp(1rem, 2vw, 1.8rem);
    border: none;
}

.world-map-hero-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 2vw, 2rem);
}

.world-map-hero-banner__copy {
    flex: 1 1 320px;
}

.world-map-hero-banner__copy h1 {
    font-size: clamp(1.6rem, 2.2vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.world-map-hero-banner__copy p {
    margin: 0;
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 52ch;
}

.world-map-hero-banner__stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    text-align: right;
    min-width: 220px;
}

.world-map-hero-banner__stat-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.world-map-hero-banner__stat-value {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #0ea5e9;
}

.world-map-hero-banner__timestamp {
    font-size: 0.8rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .world-map-hero-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .world-map-hero-banner__stats {
        align-items: flex-start;
        text-align: left;
    }
}

.world-map-chart-wrapper {
    margin-bottom: clamp(1.2rem, 2vw, 2rem);
    margin-top: 0;
}

.country-hub-hero {
    display: grid;
    gap: 1rem;
}

.country-hub-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0;
}

.country-hub-hero__stats dt {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.country-hub-hero__stats dd {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.world-map-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.world-map-chart {
    width: 100%;
    min-height: 420px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.world-map-table,
.country-hub-listing table {
    width: 100%;
    border-collapse: collapse;
}

.world-map-table th,
.world-map-table td,
.country-hub-listing table th,
.country-hub-listing table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.world-map-table th,
.country-hub-listing table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.world-map-table td a,
.country-hub-listing table td a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
}

.world-map-table tbody tr:hover,
.country-hub-listing table tbody tr:hover {
    background: #f9fafb;
}

.flag-small {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.25rem 1rem;
}

.country-grid--top {
    margin-bottom: 0.75rem;
}

.country-grid__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.country-grid__item:hover {
    border-color: rgba(79, 70, 229, 0.45);
    color: #0ea5e9;
}

.country-grid__flag img {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
}

/* Icon support for continents */
.country-grid__flag .fa {
    font-size: 1rem;
    color: var(--accent-primary, #0ea5e9);
    width: 22px;
    text-align: center;
}

.country-grid__label {
    font-weight: 600;
    font-size: 0.9rem;
}

.country-grid__count {
    font-size: 0.85rem;
    color: var(--country-count-color, #94a3b8);
}

.country-hub-hero__header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.country-hub-hero__header .flag {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.country-hub-switcher__grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 600px) {
    .country-hub-switcher__grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
}

.country-hub-switcher__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    text-align: left;
}

.country-hub-switcher__label {
    font-weight: 600;
}

.country-hub-switcher__counts {
    font-size: 0.85rem;
    color: #4b5563;
}

.table-responsive {
    overflow-x: auto;
}

.world-map-page .is-active {
    background: #0063c6;
    color: #ffffff;
}

.seo-rich-text p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.seo-rich-text ul {
    padding-left: 1.1rem;
    margin-bottom: 0.75rem;
}

.seo-rich-text li {
    margin-bottom: 0.35rem;
}

/* World map page: override .index-content-main gap for balanced spacing */
.world-map-page .index-content-main {
    gap: 0.6rem !important;
}

/* Ensure sections stay tight with matching background */
body.world-map-page .text-box {
    margin: 0 !important;
    background: var(--surface-secondary) !important;
    border-color: var(--border-secondary) !important;
}

body.world-map-page #top-countries,
body.world-map-page #all-countries,
body.world-map-page #continents,
body.world-map-page .world-map-seo-text,
body.world-map-page .world-map-chart-wrapper {
    margin: 0 !important;
    background: var(--surface-secondary) !important;
    border-color: var(--border-secondary) !important;
}



