/* Vehicle Filter Block Styles */

/* Contenedor del filtro (cuando está en hero) */
.hero-filter {
    position: relative;
    z-index: 3;
    margin-top: -60px;
    padding: 0 20px;
}

.hero-filter__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* Formulario */
.vehicle-filter-form {
    width: 100%;
    max-width: 100%;
}

.vehicle-filter-form__field {
    margin-bottom: 16px;
}

.vehicle-filter-form__field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-filter-form__field label .optional {
    font-weight: 400;
    color: #999;
    text-transform: none;
}

.vehicle-filter-form__select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.vehicle-filter-form__select:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.vehicle-filter-form__select:disabled {
    background-color: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
    opacity: 0.7;
}

.vehicle-filter-form__select option {
    padding: 8px;
}

/* Botón Buscar */
.vehicle-filter-form__field--submit {
    margin-top: 8px;
    margin-bottom: 0;
}

.vehicle-filter-form__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: #f13e3d;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.vehicle-filter-form__button:hover {
    background: #c62828;
    transform: translateY(-1px);
}

.vehicle-filter-form__button svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .vehicle-filter-form__select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .vehicle-filter-form__button {
        padding: 16px 24px;
    }
}
