/* Contenedor principal del formulario */
.smart-search-form {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 8px 12px;
    border-radius: 50px;
    /* Bordes super redondeados estilo moderno */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Sombra suave */
    max-width: 750px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    gap: 10px;
    justify-content: space-between;
}



/* Estilos comunes para el select y el input de fechas */
.smart-search-form select,
.smart-search-form .flatpickr-input {
    flex: 1;
    border: none !important;
    background-color: transparent;
    padding: 12px 16px;
    font-size: 15px;
    color: #333333;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    max-width: 302px !important;
}

/* Efecto hover sutil al pasar el mouse por encima de los campos */
.smart-search-form select:hover,
.smart-search-form .flatpickr-input:hover {
    background-color: #f3f4f6;
}

/* Línea divisoria visual entre el select y el calendario */
.smart-search-form select {
    border-right: 1px solid #e5e7eb;
    border-radius: 25px 0 0 25px;
    /* Redondeado solo a la izquierda */
}

/* Ajuste para el input de Flatpickr */
.smart-search-form .flatpickr-input {
    border-radius: 0 25px 25px 0;
    /* Redondeado solo a la derecha */
    text-overflow: ellipsis;
}

/* Botón de Buscar */
.smart-search-form button[type="submit"] {
    background-color: #ff5a5f;
    /* Un tono vivo, ideal para real estate/vacacional */
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Efectos para el botón */
.smart-search-form button[type="submit"]:hover {
    background-color: #e04b50;
    /* Un poco más oscuro al pasar el cursor */
}

.smart-search-form button[type="submit"]:active {
    transform: scale(0.98);
    /* Efecto de clic */
}

/* --- Adaptación para pantallas móviles --- */
@media (max-width: 600px) {
    .smart-search-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 16px;
    }

    .smart-search-form select,
    .smart-search-form .flatpickr-input {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 8px;
    }

    .smart-search-form button[type="submit"] {
        width: 100%;
        margin-top: 10px;
    }
}