/* =============================================
   Truck Vehicle Filter — [truck_vehicle_filter]
   Horizontal single-bar design (screenshot style)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body .ti-vf-wrap,
body .ti-vf-wrap * {
    font-family: 'Inter', sans-serif !important;
    box-sizing: border-box !important;
}

/* ---- Outer card — white rounded bar ---- */
body .ti-vf-wrap {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 18px 22px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: 0 2px 18px rgba(0,0,0,0.10) !important;
    border: 1px solid #ebebeb !important;
    text-align: left !important;
}

/* Hide title/subtitle — inline bar has no heading */
body .ti-vf-subtitle,
body .ti-vf-title { display: none !important; }

/* ---- Form — single horizontal row ---- */
body .ti-vf-form {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    flex-wrap: nowrap !important;
}

/* ---- Left label: icon + text ---- */
body .ti-vf-label {
    
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    color: #1a1a1a !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    letter-spacing: -0.1px !important;
}

/* ---- Dropdowns row ---- */
body .ti-vf-selects {
    display: flex !important;
    gap: 10px !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

/* ---- Single dropdown wrapper ---- */
body .ti-vf-select-wrap {
    position: relative !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* ---- The select element ---- */
body .ti-vf-select {
    width: 100% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: #f4f4f5 !important;
    border: 1.5px solid #e4e4e7 !important;
    border-radius: 6px !important;
    padding: 11px 36px 11px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
    color: #3f3f46 !important;
    cursor: pointer !important;
    transition: border-color 0.18s, background 0.18s !important;
    line-height: 1.4 !important;
    height: auto !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

body .ti-vf-select:focus {
    border-color: #c0392b !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.10) !important;
}

body .ti-vf-select option {
    font-family: 'Inter', sans-serif !important;
    color: #1a1a1a !important;
    background: #fff !important;
}

body .ti-vf-select:disabled {
    background: #f4f4f5 !important;
    color: #a1a1aa !important;
    cursor: not-allowed !important;
    border-color: #e4e4e7 !important;
    opacity: 0.7 !important;
}

/* Custom arrow */
body .ti-vf-arrow {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 10px !important;
    color: #71717a !important;
    pointer-events: none !important;
    line-height: 1 !important;
}

/* ---- Search Button ---- */
body .ti-vf-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    background: #a1a1aa !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 11px 22px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 1.4px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    margin: 0 !important;
    outline: none !important;
    width: auto !important;
}

/* Active state — red when year is selected */
body .ti-vf-form.ti-vf-ready .ti-vf-btn,
body .ti-vf-btn:not(:disabled):hover {
    background: #c0392b !important;
    color: #fff !important;
}

body .ti-vf-btn:hover {
    background: #c0392b !important;
    transform: none !important;
    box-shadow: none !important;
    color: #fff !important;
}

body .ti-vf-btn:active {
    background: #a93226 !important;
    transform: none !important;
}

/* Loading spinner */
body .ti-vf-select.ti-loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23ddd' stroke-width='6'/%3E%3Cpath d='M25 5 A20 20 0 0 1 45 25' stroke='%23c0392b' stroke-width='6' fill='none'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.7s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
    body .ti-vf-form {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    body .ti-vf-label {
        width: 100% !important;
        font-size: 14px !important;
    }
    body .ti-vf-selects {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    body .ti-vf-btn {
        flex: 1 1 100% !important;
        width: 100% !important;
        padding: 13px 22px !important;
    }
}

@media (max-width: 500px) {
    body .ti-vf-selects { flex-direction: column !important; }
    body .ti-vf-wrap { padding: 16px !important; }
}

/* =============================================
   RESULTS BAR (inventory page)
   ============================================= */

body .ti-vf-results-bar {
    background: #f6f6f6 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px 18px !important;
    margin-bottom: 24px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    color: #555 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

body .ti-vf-results-bar strong {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
}

body .ti-vf-clear-link {
    color: #c0392b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    text-decoration: none !important;
    border-bottom: 1px dashed #c0392b !important;
    transition: opacity 0.18s !important;
}
body .ti-vf-clear-link:hover { opacity: 0.7 !important; color: #c0392b !important; }

body .ti-vf-no-results {
    text-align: center !important;
    padding: 48px 24px !important;
    font-family: 'Inter', sans-serif !important;
    color: #888 !important;
    background: #f6f6f6 !important;
    border-radius: 10px !important;
    border: 2px dashed #e0e0e0 !important;
}
body .ti-vf-no-results h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 8px !important;
    font-family: 'Inter', sans-serif !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}
body .ti-vf-no-results p {
    font-size: 14px !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    padding: 0 !important;
}

/* ---- Label: icon + text ---- */
body .ti-vf-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

body .ti-vf-icon {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

body .ti-vf-label-text {
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    color: #1a1a1a !important;
    white-space: nowrap !important;
}

@media (max-width: 900px) {
    body .ti-vf-label { width: 100% !important; }
}
