.nml-geo-tabs {
    padding: 80px 0;
    background: var(--color-bg);
}

.nml-geo-tabs .nml-badge{
    margin-bottom: 20px;
}

/* ── Header ── */
.nml-geo-tabs__header {
    text-align: center;
    margin-bottom: 48px;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
}

.nml-geo-tabs__heading { color: var(--color-text-primary); }

/* Wrap a word in <span> to give it the accent colour. */
.nml-geo-tabs__heading span { color: var(--color-accent); }

/* ── Desktop tab bar ── */
.nml-geo-tabs__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background: var(--color-bg-secondary);
    overflow-x: auto;
    scrollbar-width: none;
    border: 1px solid var(--color-line);
    width: max-content;
    margin: 0 auto 32px;    
}
.nml-geo-tabs__bar::-webkit-scrollbar { display: none; }

.nml-geo-tabs__tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

.nml-geo-tabs__tab:hover {
    background-color: #162F6F14;
}

.nml-geo-tabs__tab.is-active {
    background: var(--color-primary);
    color: #fff;
}

.nml-geo-tabs__tab.is-active:hover {
    background: var(--color-primary-dark);
}

/* ── Panels ── */
.nml-geo-tabs__panels {}

.nml-geo-tabs__panel {
    display: none;
}
.nml-geo-tabs__panel.is-active {
    display: block;
}

/* ── Grid of country items ── */
.nml-geo-tabs__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.nml-geo-tabs__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: var(--color-primary);
    transition: border-color 0.18s, box-shadow 0.18s;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0px 1px 2px 0px #4C83F333;
    justify-content: center;
}

.nml-geo-tabs__item:hover {
    border: 1px solid var(--color-line-blue);
}

.nml-geo-tabs__item-flag {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    display: block;
}

.nml-geo-tabs__item-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Footer text ── */
.nml-geo-tabs__footer {
    margin: 32px 0 0;
    text-align: center;
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* ── Mobile ── */
.nml-geo-tabs__mobile {
    display: none;
}

/* Mobile accordion — one per tab */
.nml-geo-tabs__acc {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--color-line-blue);
    box-shadow: 0px 1px 2px 0px #4C83F333;
}

.nml-geo-tabs__acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.nml-geo-tabs__acc-trigger.is-open{
    background-color: var(--color-primary);
    color: var(--color-text-white);
}

.nml-geo-tabs__acc-trigger svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.nml-geo-tabs__acc-trigger.is-open svg {
    transform: rotate(180deg);
}

.nml-geo-tabs__acc-body {
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 12px;
    background: var(--color-bg);
}

.nml-geo-tabs__acc-body.is-open {
    display: flex;
}

.nml-geo-tabs__acc-note {
    margin: 0;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.nml-geo-tabs__acc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nml-geo-tabs__acc .nml-geo-tabs__item {
    justify-content: center;
    text-align: center;
}

/* hidden extra countries — override .item display:flex */
.nml-geo-tabs__item[hidden] {
    display: none;
}

/* Show More / Close this Tab buttons */
.nml-geo-tabs__acc-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nml-geo-tabs__show-more,
.nml-geo-tabs__close-tab {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.nml-geo-tabs__show-more {
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.nml-geo-tabs__show-more:hover {
    background: var(--color-primary-dark, #0F204D);
}

.nml-geo-tabs__close-tab {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-line);
}

.nml-geo-tabs__close-tab:hover {
    border: 1px solid var(--color-line-blue);
    background: #F5F6FA;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .nml-geo-tabs__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1024px) {
    .nml-geo-tabs__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nml-geo-tabs {
        padding: 40px 0;
    }

    .nml-geo-tabs__header {
        text-align: center;
        margin-bottom: 32px;
        font-size: 32px;
        font-weight: 800;
        line-height: 40px;
    }

    .nml-geo-tabs__bar,
    .nml-geo-tabs__panels,
    .nml-geo-tabs__footer {
        display: none;
    }
    .nml-geo-tabs__mobile {
        display: block;
    }
    .nml-geo-tabs__heading {
        font-size: 32px;
        line-height: 40px;
    }

    .nml-geo-tabs__acc-body {
        padding: 16px 20px;
        gap: 16px;
    }

    .nml-geo-tabs__item {
        gap: 6px;
        font-size: 14px;
        line-height: 20px;
    }

    .nml-geo-tabs__item-flag {
        width: 20px;
        height: 20px;
    }

    .nml-geo-tabs__acc-actions {
        margin-top: 8px;
    }

    .nml-geo-tabs__close-tab {
        background: #162F6F0A;
        color: var(--color-primary);
        border: 1px solid var(--color-line);
    }
}

