/**
 * Styles pour le sélecteur de voyageurs personnalisé
 * Ce fichier contient les styles pour le nouveau sélecteur de voyageurs
 * avec sections pour adultes, enfants et bébés
 */

/* Style général du dropdown */
.custom_guest_dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    padding: 16px;
    z-index: 1000;
    margin-top: 8px;
    border: 1px solid #e4e4e4;
}

/* Afficher le dropdown quand la classe show est présente */
.custom_guest_dropdown.show {
    display: block;
}

/* Style pour chaque type de voyageur */
.guest_type_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.guest_type_wrapper:last-of-type {
    border-bottom: none;
}

/* Informations sur le type de voyageur */
.guest_type_info {
    flex: 1;
}

.guest_type_title {
    font-weight: 600;
    font-size: 16px;
    color: #222;
    margin-bottom: 4px;
}

.guest_type_subtitle {
    font-size: 14px;
    color: #717171;
}

/* Contrôles de comptage */
.guest_count_controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.guest_count_button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #b0b0b0;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: #222;
    transition: all 0.2s ease;
}

.guest_count_button:hover:not(:disabled) {
    border-color: #222;
    background-color: #f7f7f7;
}

.guest_count_button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #ddd;
    color: #b0b0b0;
}

.guest_count {
    font-size: 16px;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

/* Message de capacité */
.guest_capacity_message {
    margin-top: 16px;
    padding: 12px 0;
    font-size: 14px;
    color: #717171;
    border-top: 1px solid #f0f0f0;
}

/* Footer du dropdown */
.guest_dropdown_footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.guest_dropdown_close {
    background: none;
    border: none;
    color: #222;
    font-weight: 600;
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 12px;
}

.guest_dropdown_close:hover {
    color: #F97C5A;
}

/* Style pour le trigger du dropdown */
.filter_menu_trigger {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.filter_menu_trigger:hover {
    background-color: #f7f7f7;
}

/* Styles responsives */
@media (max-width: 768px) {
    .custom_guest_dropdown {
        width: 100%;
        min-width: 100%;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
        margin-top: 0;
        max-height: 80vh;
        overflow-y: auto;
    }
}
