.soves-search-tabs-widget,
.soves-search-tabs-widget * {
    box-sizing: border-box;
}

.soves-search-tabs-widget {
    --soves-st-overlay-strength: 100;
    --soves-st-radius: 8px;
    --soves-st-tab-color: #ffffff;
    --soves-st-tab-active-bg: #e34234;
    --soves-st-tab-active-color: #ffffff;
    --soves-st-nav-border-color: rgba(255, 255, 255, 0.42);
    --soves-st-tagline-color: #ffffff;
    --soves-st-bg-color: #0b1622;

    position: relative;
    overflow: visible;
    border-radius: var(--soves-st-radius);
    background-image:
        linear-gradient(
            90deg,
            rgba(8, 13, 22, calc(var(--soves-st-overlay-strength) / 100 * 0.66)),
            rgba(8, 13, 22, calc(var(--soves-st-overlay-strength) / 100 * 0.42))
        ),
        var(--soves-search-tabs-bg, none);
    background-color: var(--soves-st-bg-color, #0b1622);
    background-position: center;
    background-size: cover;
    padding: 16px 20px 20px;
}

.soves-search-tabs-widget__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--soves-st-nav-border-color);
}

.soves-search-tabs-widget__tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    appearance: none;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--soves-st-tab-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 13px 18px;
    transition: background 0.15s ease, color 0.15s ease;
}

.soves-search-tabs-widget__tab-icon {
    color: currentColor;
}

.soves-search-tabs-widget__tab.is-active,
.soves-search-tabs-widget__tab:hover,
.soves-search-tabs-widget__tab:focus {
    background: var(--soves-st-tab-active-bg);
    color: var(--soves-st-tab-active-color);
    outline: none;
}

.soves-search-tabs-widget__trip-type {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.soves-search-tabs-widget__trip-type .soves-search-tabs-widget__tab {
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.soves-search-tabs-widget__tagline {
    margin: 0 0 10px;
    color: var(--soves-st-tagline-color);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.soves-search-tabs-widget__panel[hidden] {
    display: none !important;
}

.soves-search-tabs-widget .soves-hotel-search-card {
    box-shadow: none !important;
}

/* Responsive: tabs get cramped well before the shared search-card's own
   1200px/767px breakpoints kick in, so this widget's own chrome (nav,
   trip-type pills, tagline, outer padding) needs its own, tighter steps. */
@media (max-width: 767px) {
    .soves-search-tabs-widget {
        padding: 14px 14px 16px;
    }

    .soves-search-tabs-widget__nav {
        gap: 6px;
        margin: 0 0 12px;
        padding: 0 0 10px;
    }

    .soves-search-tabs-widget__tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    .soves-search-tabs-widget__tagline {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .soves-search-tabs-widget {
        padding: 12px 12px 14px;
    }

    .soves-search-tabs-widget__nav {
        justify-content: center;
    }

    .soves-search-tabs-widget__tab {
        flex: 1 1 auto;
        justify-content: center;
        padding: 9px 10px;
        font-size: 12px;
    }

    .soves-search-tabs-widget__tab-icon {
        font-size: 16px;
    }

    .soves-search-tabs-widget__trip-type {
        justify-content: center;
    }

    .soves-search-tabs-widget__trip-type .soves-search-tabs-widget__tab {
        flex: 0 1 auto;
    }

    .soves-search-tabs-widget__tagline {
        font-size: 14px;
    }
}

/* Dynamic Packages tab: the return date follows from the number of nights (and the departure field already shows the
   date range), so that field is hidden to keep From, Destination, Departure, Nights and Travellers on one line. */
.soves-search-tabs-widget [data-soves-search-tab-panel="package"] [data-soves-checkout-field] { display: none !important; }
.soves-search-tabs-widget [data-soves-search-tab-panel="package"] .soves-hotel-search-field--text input { text-overflow: ellipsis; }
