/* ═══════════════════════════════════════════════════════════════════════
   VEHICLE FINDER v2 — Barra Compacta
   ═══════════════════════════════════════════════════════════════════════ */

.vf {
    background: linear-gradient(135deg, #0D1B2A 0%, #1D3557 100%);
    padding: 0;
    position: relative;
    z-index: 10;
    border-bottom: 3px solid var(--theme-accent, #F77F00);
}

/* ── Row principal (tudo inline) ── */
.vf__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    flex-wrap: nowrap;
}

/* ── Label com ícone ── */
.vf__label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.85);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.vf__icon {
    width: 22px;
    height: 22px;
    color: var(--theme-accent, #F77F00);
    flex-shrink: 0;
}

/* ── Tabs de tipo (ícones compactos) ── */
.vf__tabs {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,.08);
    border-radius: 6px;
    padding: 2px;
    flex-shrink: 0;
}

.vf__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: rgba(255,255,255,.5);
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}

.vf__tab:hover {
    color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.06);
}

.vf__tab--active {
    background: var(--theme-accent, #F77F00) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(247,127,0,.35);
}

/* ── Selects ── */
.vf__select {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 28px 0 10px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='%23ffffff80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.vf__select:hover:not(:disabled) {
    border-color: rgba(255,255,255,.3);
    background-color: rgba(255,255,255,.12);
}

.vf__select:focus {
    outline: none;
    border-color: var(--theme-accent, #F77F00);
    box-shadow: 0 0 0 2px rgba(247,127,0,.25);
}

.vf__select:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.vf__select option {
    background: #1D3557;
    color: #fff;
}

/* ── Botão Buscar ── */
.vf__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    background: var(--theme-accent, #F77F00);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
    flex-shrink: 0;
}

.vf__btn:hover:not(:disabled) {
    background: var(--theme-accent-dark, #E65100);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(247,127,0,.4);
}

.vf__btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vf__btn i {
    font-size: 12px;
}

/* ── Badge de veículo selecionado ── */
.vf__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    font-size: 12px;
    color: #10B981;
}

.vf__badge i:first-child {
    font-size: 11px;
}

.vf__badge span {
    color: rgba(255,255,255,.8);
    font-weight: 500;
}

.vf__badge-clear {
    background: none;
    border: none;
    color: rgba(255,255,255,.4);
    cursor: pointer;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all .15s;
}

.vf__badge-clear:hover {
    color: #EF4444;
    background: rgba(239,68,68,.1);
}

/* ═══ RESPONSIVO ═══ */

/* Tablet */
@media (max-width: 992px) {
    .vf__row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .vf__label {
        width: 100%;
        font-size: 12px;
        padding-bottom: 2px;
    }

    .vf__tabs {
        order: 0;
    }

    .vf__select {
        flex: 1 1 calc(33% - 6px);
        min-width: 100px;
    }

    .vf__btn {
        flex: 0 0 auto;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .vf__row {
        padding: 8px 0;
    }

    .vf__label span {
        display: none; /* Só mostra o ícone */
    }

    .vf__select {
        flex: 1 1 100%;
        height: 36px;
        font-size: 14px; /* Maior no mobile pra facilitar toque */
    }

    .vf__btn {
        width: 100%;
        justify-content: center;
        height: 38px;
        font-size: 14px;
    }

    .vf__btn-text {
        display: inline; /* Mostra "Buscar" no mobile também */
    }
}

/* ═══ DARK MODE OVERRIDE (se necessário) ═══ */
@media (prefers-color-scheme: dark) {
    .vf__select option {
        background: #0D1B2A;
    }
}