.elementor-shortcode {
    height: 70px;
}

.busca-custom {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.busca-custom .fields {
    gap: 10px;
    width: 100%;
    align-items: center; /* 🔥 alinha botão perfeitamente */
}

/* 🔥 TODOS IGUAIS */
.busca-custom select {
    flex: 1;
    width: 0;              /* 🔥 impede crescer */
    min-width: 0;          /* 🔥 ESSENCIAL */
    height: 40px;
    padding: 0 12px;
    background: #e5e5e5;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 🔥 corta texto grande */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.busca-custom .select2-container {
    display: block !important;
    width: 100% !important;
}

.busca-custom .select2-selection {
    height: 48px !important;
    display: flex !important;
    align-items: center;
}

/* botão */
.busca-btn {
    height: 39px; /* igual select */
    flex: 0 0 140px;
    background: #e60000;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    padding-top: 13px;
}

/* 🔥 ÁREA DAS ABAS (TRANSPARENTE) */
.tabs {
    display: flex;
    justify-content: center;
    gap: 5px;    
    position: absolute;
    top: -40px; /* faz flutuar */
    left: 50%;
    transform: translateX(-50%);
}

/* 🔥 TABS BASE */
.tab-filtro {
    padding: 10px 22px;
    background: rgba(255,255,255,0.7); /* leve transparência */
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #222 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: none !important;
    font-size: 14px;
}

/* 🔥 TAB ATIVA */
.tab-filtro.active {
    background: #fff;
    border-top: 3px solid #e60000;
    color: #000;
}

/* hover geral */
.tab-filtro:hover,
.tab-filtro:hover * {
    color: #e60000 !important;
}

/* dropdown (lista) */
.busca-custom .select2-dropdown {
    background: #fff; /* 🔥 cor de fundo */
    border: 1px solid #ccc;
}

/* opções */
.busca-custom .select2-results__option {
    background: #fff;
    color: #333;
    border-bottom: 2px solid #353434; /* 🔥 separador */
}

/* hover */
.busca-custom .select2-results__option--highlighted {
    background: #e60000;
    color: #fff;
}

.busca-custom .select2-search--dropdown {
    display: block !important;
}

.busca-custom .select2-search__field {
    border: 1px solid #ccc;
    padding: 6px;
    width: 100%;
}

/* caixa do select */
.busca-custom .select2-selection--single {
    height: 40px !important;        /* 🔥 altura menor */
    display: flex !important;
    align-items: center !important;
}

/* texto */
.busca-custom .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 10px !important;
    font-size: 13px;
}

/* 🔥 TAMANHO PADRÃO DOS SELECTS */
.stm-filter .select2-container {
    width: 100% !important;
}

.stm-filter .select2-selection--single {
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 4px !important;
}

/* 🔥 TEXTO CENTRALIZADO */
.stm-filter .select2-selection__rendered {
    line-height: normal !important;
    padding-left: 12px !important;
}

/* 🔥 SETA ALINHADA */
.stm-filter .select2-selection__arrow {
    height: 100% !important;
}

.select2-container.loading {
    position: relative;
}

.select2-container.loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    
    width: 14px;
    height: 14px;

    border: 2px solid #ccc;
    border-top-color: #e60023;
    border-radius: 50%;

    /* 🔥 posiciona fixo */
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.select2-container {
    position: relative;
}

/* 🔥 anima só a rotação */
.select2-container.loading::after {
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}

@media (min-width: 769px){
    .busca-custom .fields {
        display: flex;
    }

    .filtro-tab-campo {
        width: 25%;
    }

    .fields-carro,
    .fields-moto {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .elementor-element-cf17606 {
        height: 670px !important;
    }
}

@media (max-width: 768px){
    .elementor-element-cf17606 {
        height: 1330px !important;
    }

    .elementor-element-0787fd8 {
        height: 300px;
    }

    .filtro-tab-campo {
        width: 100%;
        margin-bottom: 10px;
    }

    .busca-btn {
        width: 100%;
    }

    stm-filter .form-group {
        width: 100% !important;
    }

    .stm-filter .col-md-12,
    .stm-filter .col-sm-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .select2-container {
        width: 100% !important;
    }

    /* 🔥 remove grid do Motors */
    .stm-filter .col-md-12,
    .stm-filter .col-sm-6,
    .stm-filter [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        display: block !important;
    }

    .stm-filter .select2-container {
        width: 100% !important;
        min-width: 100% !important;
    }

    .stm-filter .select2-selection--single {
        width: 100% !important;
    }

    .stm-filter .row {
        margin: 0 !important;
    }

    .stm-filter .row > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .fields-carro,
    .fields-moto {
        width: 100% !important;
    }
}