.reservas-filter-container {
    width: 100%;
    max-width: var(--reservas-motor-width);
    height: var(--reservas-motor-height);
    margin: 3rem auto !important;
}

.reservas-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background-color: var(--reservas-motor-secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: var(--reservas-motor-width);
    font-size: var(--reservas-motor-font-size);
}

.reservas-filter-item {
    flex: 1 0 auto;
    padding: 10px;
}

.reservas-filter-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--reservas-motor-text-color);
    font-weight: 600;
}

.reservas-icon-container {
    display: flex;
    align-items: center;
    background-color: var(--reservas-motor-secondary-color);
    padding: 5px 5px;
    border-radius: 6px;
    border: 1px solid var(--reservas-motor-text-color);
    transition: all 0.3s ease;
    gap: 5px;

    input {
        width: 100%;
        border: none !important;
        padding: 1px !important;
        background-color: transparent !important;
        color: var(--reservas-motor-text-color) !important;
        font-size: var(--reservas-motor-font-size);
        outline: none;
        box-shadow: none !important;
        margin: 0px !important;

        &::placeholder {
            color: var(--reservas-motor-text-color) !important;
        }
    }
}

.reservas-icon-container:focus-within {
    border-color: var(--reservas-motor-primary-color);
    box-shadow: 0 0 0 3px rgba(var(--reservas-motor-primary-color-rgb), 0.3);
}

.reservas-icon {
    width: 25px;
    height: 20px;

    svg {
        fill: var(--reservas-motor-icon-color) !important;
    }
}

.reservas-filter-form input,
.reservas-filter-form button {
    border: none;
    background: transparent;
    font-size: var(--reservas-motor-font-size);
    color: var(--reservas-motor-text-color);
    width: 100%;
    outline: none;

}

.div-reservas-filter-button {
    align-items: center;
    display: flex;
}

.reservas-filter-button .reservas-icon {
    position: absolute;
    left: 13px;
    transition: all 0.3s ease;
    z-index: 2;

    svg {
        fill: var(--reservas-motor-icon-color) !important;
    }
}

.reservas-filter-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--reservas-motor-primary-color) !important;
    padding: 12px 20px 12px 50px !important;
    border-radius: 6px !important;
    cursor: pointer;
    font-weight: 600 !important;
    text-align: center !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    position: relative;
    overflow: hidden;
    height: 100%;
    max-width: 200px;
}

.reservas-filter-button:hover {
    background-color: rgba(var(--reservas-motor-primary-color-rgb), 0.8) !important;
}

.reservas-filter-button:hover .reservas-icon {
    transform: translateX(10px);
}

.reservas-filter-button-text {
    display: contents !important;
    font-size: var(--reservas-motor-font-size);
    font-weight: 600;
    color: var(--reservas-motor-text-color);
    text-align: center;
    white-space: normal;
    transition: color 0.3s ease;
}

.div-adults,
.div-children {

    select {
        width: 100%;
        padding: 2px 15px;
        border-radius: 6px;
        border: 1px solid #ddd;
        color: var(--reservas-motor-text-color);
        font-size: var(--reservas-motor-font-size);
        cursor: pointer;
        background-color: transparent;
        border: none;
        box-shadow: none !important;
        margin-bottom: 1px !important;
    }

    select:focus {
        background-color: var(--reservas-motor-secondary-color) !important;
    }
}

.reservas-icon-container input[type="date"] {
    width: 100%;
    position: relative;
    z-index: 1;
    margin: 0px !important;
    background-color: transparent !important;
    color: var(--reservas-motor-text-color) !important;
}

/* Esconde o ícone do calendário nativo no Chrome */
.reservas-icon-container input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

@media (max-width: 768px) {
    .reservas-filter-container {
        max-width: 100%;
        margin: 0 auto;
        height: max-content;
    }

    .reservas-filter-header {
        width: 100%;
        padding: 0px;
        border-radius: 10px 10px 0px 0px;
    }

    .reservas-filter-form {
        flex-direction: column;
        align-items: center;
    }

    .reservas-filter-item {
        flex: 1 0 100%;
        margin-bottom: 10px;
    }

    .reservas-icon-container {
        padding: 10px;
        text-align: center;
    }

    .reservas-filter-title {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .reservas-filter-form {
        display: block;
    }

    .reservas-filter-item {
        flex: 1 0 calc(50% - 12px);
    }

    .div-adults,
    .div-children {
        flex: 1 0 100%;
    }

    .reservas-filter-button {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .reservas-filter-item {
        flex: 1 0 100%;
    }

    .reservas-icon-container {
        padding: 8px 12px;
    }
}