/* =============================================================================
   MORTENI TABS
   - tab-uri categorii anunturi
   - stil modern, curat, institutional
============================================================================= */

/* container general tab-uri */
.morteni-tax-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    padding: 0;
    border-bottom: none;
}

/* buton tab - stare normala / inactiva */
.morteni-tax-tab-btn {
    appearance: none;
    border: 1px solid #d7e3f0;
    background: #ffffff;
    color: #355070;
    padding: 14px 24px;
    min-height: 52px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    position: relative;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 42, 67, 0.04);
}

/* hover/focus pentru tab inactiv */
.morteni-tax-tab-btn:hover,
.morteni-tax-tab-btn:focus {
    background: #f8fbff;
    color: #1d3557;
    border-color: #bfd3e6;
    box-shadow: 0 6px 16px rgba(16, 42, 67, 0.08);
    transform: translateY(-1px);
    outline: none;
}

/* tab activ */
.morteni-tax-tab-btn.is-active {
    background: #1d4f91;
    color: #ffffff;
    border-color: #1d4f91;
    box-shadow: 0 10px 22px rgba(29, 79, 145, 0.22);
}

/* linie subtila sub tab activ */
.morteni-tax-tab-btn.is-active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: #1d4f91;
}

/* wrapper panels */
.morteni-tax-tabs-content {
    position: relative;
}

/* panel ascuns */
.morteni-tax-tab-panel {
    display: none;
    animation: morteniTabFade 0.28s ease;
}

/* panel activ */
.morteni-tax-tab-panel.is-active {
    display: block;
}

/* animatie subtila la schimbarea tabului */
@keyframes morteniTabFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* responsive small */
@media (max-width: 767px) {
    .morteni-tax-tabs-nav {
        gap: 10px;
        margin-bottom: 24px;
    }

    .morteni-tax-tab-btn {
        width: 100%;
        min-height: auto;
        padding: 13px 16px;
        border-radius: 8px;
    }

    .morteni-tax-tab-btn.is-active::after {
        display: none;
    }
}

/* responsive extra small */
@media (max-width: 480px) {
    .morteni-tax-tab-btn {
        font-size: 13px;
        padding: 12px 14px;
    }
}