/*
 * Rebranded "Navian Tab Content" element (inc/wpbakery/custom-tab-content.php)
 * and the satellite tabs stage/bar (assets/js/satellite-tabs.js).
 *
 * - Element-internal rules use the element's own .navian-tab-* classes and
 *   work inside any [tlg_tabs].
 * - Stage and tab bar rules are scoped to .navian-sat-tabs (set it as the
 *   column's extra class name).
 * Breakpoints: 767 / 991 / 1199 (see viewmedia-responsive).
 */

/* ---------- Map stage (built by satellite-tabs.js) ---------- */

.navian-sat-tabs .navian-tab-maps {
    position: relative;
    background: #eceef1;
    /* Full-bleed grey while the row stays boxed; clipped so there is no page overflow. */
    box-shadow: 0 0 0 100vmax #eceef1;
    clip-path: inset(0 -100vmax);
    padding: 30px 0 0;
}

.navian-sat-tabs .navian-tab-map {
    display: none;
    min-height: 120px;
}

.navian-sat-tabs .navian-tab-map.active {
    display: block;
}

.navian-sat-tabs .navian-tab-map .navian-tab-content-image {
    margin: 0;
}

.navian-sat-tabs .navian-tab-map img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Without JS the image stays in the pane. */
.navian-tab-content-image {
    margin-bottom: 20px;
}

.navian-tab-content-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---------- Tab bar ---------- */

.navian-sat-tabs .tabs-content > .tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    overflow: visible;
    float: none;
    max-width: none;
    width: 100%;
    background: #fff;
    border: 0;
}

.navian-sat-tabs .tabs-content > .tabs > li {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

.navian-sat-tabs .tabs-content > .tabs .tab-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 56px;
    width: 100%;
    margin: 0;
    padding: 12px 10px;
    border: 0;
    border-radius: 0;
    background: #e4e5e8;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

.navian-sat-tabs .tabs-content > .tabs .tab-title i {
    display: none;
}

.navian-sat-tabs .tabs-content > .tabs .tab-title span {
    color: #1b1d24;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.navian-sat-tabs .tabs-content > .tabs .tab-title:hover {
    background: #d5d7dc;
}

.navian-sat-tabs .tabs-content > .tabs > li.active .tab-title,
.navian-sat-tabs .tabs-content > .tabs > li.active .tab-title:hover {
    background: var(--navian-brand-accent, #e0032c);
}

.navian-sat-tabs .tabs-content > .tabs > li.active .tab-title span {
    color: #fff;
    font-weight: 700;
}

.navian-sat-tabs .tabs-content > .tabs-content-text {
    float: none;
    max-width: none;
    width: 100%;
    margin: 0;
}

/* ---------- Pane layout ---------- */

.navian-tab-content {
    padding-top: 40px;
    background: #fff;
}

.navian-tab-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.navian-tab-layout.has-countries {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 48px;
}

.navian-tab-layout.has-countries .navian-tab-main {
    padding-right: 48px;
    border-right: 1px solid #dcdee3;
}

/* ---------- Title ---------- */

.navian-tab-titlebar {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.navian-tab-title-icon {
    flex: 0 0 auto;
    display: block;
    padding-right: 24px;
    border-right: 1px solid #c9ccd2;
    line-height: 0;
}

.navian-tab-title-icon img {
    display: block;
    width: auto;
    max-width: 72px;
    max-height: 72px;
    height: auto;
}

.navian-tab-content-title {
    margin: 0;
    color: var(--navian-brand-dark, #0a0b10);
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* ---------- Body ---------- */

.navian-tab-body {
    color: #3b3e47;
    font-size: 16px;
    line-height: 1.65;
}

.navian-tab-body h4 {
    margin: 0 0 12px;
    color: var(--navian-brand-dark, #0a0b10);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: none;
}

.navian-tab-body h4 strong {
    font-weight: 600;
}

.navian-tab-body p:last-child {
    margin-bottom: 0;
}

/* ---------- Highlights (downlink) ---------- */

.navian-tab-highlights {
    margin-top: 32px;
}

.navian-tab-highlights-title {
    margin: 0 0 16px;
    color: var(--navian-brand-dark, #0a0b10);
    font-size: 20px;
    font-weight: 700;
    text-transform: none;
}

.navian-tab-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navian-tab-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navian-tab-highlight-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    color: var(--navian-brand-primary, #1a3cff);
    line-height: 0;
}

.navian-tab-highlight-icon svg,
.navian-tab-highlight-icon img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.navian-tab-highlight-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.navian-tab-highlight-label {
    color: #6b6f7a;
    font-size: 13px;
    line-height: 1.3;
}

.navian-tab-highlight-value {
    color: var(--navian-brand-dark, #0a0b10);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* ---------- Country card ---------- */

.navian-tab-countries {
    align-self: start;
    padding: 28px;
    border-radius: 12px;
    background: #f1f2f4;
}

.navian-tab-countries-title {
    margin: 0 0 18px;
    color: var(--navian-brand-dark, #0a0b10);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
}

.navian-tab-countries-list {
    columns: 2;
    column-gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navian-tab-countries-item {
    break-inside: avoid;
    margin: 0;
    padding: 2px 0;
    color: #3b3e47;
    font-size: 14px;
    line-height: 1.35;
}

@media (min-width: 1200px) {
    .navian-tab-countries-list {
        columns: 3;
    }
}

@media (max-width: 991px) {
    .navian-tab-layout.has-countries {
        column-gap: 32px;
    }

    .navian-tab-layout.has-countries .navian-tab-main {
        padding-right: 32px;
    }
}

@media (max-width: 767px) {
    .navian-tab-content {
        padding-top: 28px;
    }

    .navian-tab-layout.has-countries {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 32px;
    }

    .navian-tab-layout.has-countries .navian-tab-main {
        padding-right: 0;
        border-right: 0;
    }

    .navian-tab-titlebar {
        gap: 16px;
    }

    .navian-tab-title-icon {
        padding-right: 16px;
    }

    .navian-tab-title-icon img {
        max-width: 52px;
        max-height: 52px;
    }

    .navian-tab-countries {
        padding: 22px;
    }

    .navian-sat-tabs .navian-tab-maps {
        padding-top: 16px;
    }

    .navian-sat-tabs .tabs-content > .tabs {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

