.nice-select {
    position: relative;
    display: block;
    -webkit-tap-highlight-color: transparent;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border, rgba(255, 255, 255, 0.08));
    box-sizing: border-box;
    clear: both;
    cursor: pointer;
    float: none;
    font-family: 'Montserrat', sans-serif;
    color: var(--white, #ffffff);
    font-size: 1rem;
    font-weight: 400;
    height: 70px;
    outline: none;
    padding-left: 25px;
    padding-right: 45px;
    text-align: left !important;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    white-space: nowrap;
    width: 100%;
}

.nice-select:hover {
    border-color: var(--primary-soft, rgba(195, 210, 0, 0.3));
}

.nice-select:active,
.nice-select.open,
.nice-select:focus {
    border-color: var(--primary, #c3d200);
    box-shadow: 0 0 30px rgba(195, 210, 0, 0.15);
}

.nice-select:after {
    position: absolute;
    right: 22px;
    top: 50%;
    margin-top: -6px;
    display: block;
    border-bottom: 2px solid var(--primary, #c3d200);
    border-right: 2px solid var(--primary, #c3d200);
    content: '';
    width: 10px;
    height: 10px;
    pointer-events: none;
    -webkit-transform-origin: 66% 66%;
    -ms-transform-origin: 66% 66%;
    transform-origin: 66% 66%;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    opacity: 0.8;
}

.nice-select.open:after {
    -webkit-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    transform: rotate(-135deg);
    opacity: 1;
}

.nice-select.open .list {
    opacity: 1;
    pointer-events: auto;
    -webkit-transform: scale(1) translateY(0);
    -ms-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
}

.nice-select.disabled {
    border-color: var(--border, rgba(255, 255, 255, 0.08));
    color: var(--gray, #808080);
    pointer-events: none;
    opacity: 0.5;
}

.nice-select.disabled:after {
    border-color: var(--gray, #808080);
}

.nice-select.wide {
    width: 100%;
}

.nice-select.wide .list {
    left: 0 !important;
    right: 0 !important;
}

.nice-select.right {
    float: right;
}

.nice-select.right .list {
    left: auto;
    right: 0;
}

.nice-select.small {
    font-size: 0.9rem;
    height: 50px;
    line-height: 46px;
    padding-left: 18px;
    padding-right: 40px;
}

.nice-select.small:after {
    width: 8px;
    height: 8px;
    right: 18px;
}

.nice-select.small .option {
    line-height: 40px;
    min-height: 40px;
    font-size: 0.9rem;
}

/* Style pour la liste déroulante */
.nice-select .list {
    background-color: var(--black-card, #1a1a1a);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    box-sizing: border-box;
    margin-top: 5px;
    opacity: 0;
    overflow: hidden;
    padding: 8px 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    -webkit-transform-origin: 50% 0;
    -ms-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -webkit-transform: scale(0.9) translateY(-15px);
    -ms-transform: scale(0.9) translateY(-15px);
    transform: scale(0.9) translateY(-15px);
    -webkit-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease-out;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease-out;
    z-index: 999;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Personnalisation de la scrollbar */
.nice-select .list::-webkit-scrollbar {
    width: 6px;
}

.nice-select .list::-webkit-scrollbar-track {
    background: var(--border, rgba(255, 255, 255, 0.05));
    border-radius: 3px;
}

.nice-select .list::-webkit-scrollbar-thumb {
    background: var(--primary, #c3d200);
    border-radius: 3px;
}

.nice-select .list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark, #9bad00);
}

.nice-select .list:hover .option:not(:hover) {
    background-color: transparent !important;
}

/* Style des options */
.nice-select .option {
    color: var(--white, #ffffff) !important;
    font-weight: 400;
    line-height: 45px;
    list-style: none;
    min-height: 45px;
    outline: none;
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    white-space: normal;
    word-wrap: break-word;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nice-select .option:last-child {
    border-bottom: none;
}

/* Effet de survol */
.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
    color: var(--black, #0a0a0a) !important;
    background-color: var(--primary, #c3d200) !important;
}

/* Option sélectionnée */
.nice-select .option.selected {
    font-weight: 600;
    color: var(--primary, #c3d200) !important;
    background-color: rgba(195, 210, 0, 0.1);
}

.nice-select .option.selected:hover {
    color: var(--black, #0a0a0a) !important;
}

/* Option désactivée (placeholder) */
.nice-select .option.disabled {
    background-color: transparent !important;
    color: var(--gray, #808080) !important;
    cursor: default;
    font-style: italic;
}

.nice-select .option.disabled:hover {
    background-color: transparent !important;
    color: var(--gray, #808080) !important;
}

/* Support pour les navigateurs sans pointer events */
.no-csspointerevents .nice-select .list {
    display: none;
}

.no-csspointerevents .nice-select.open .list {
    display: block;
}

/* Style spécifique pour le thème sombre */
.get-flight-two__inner .nice-select {
    background-color: rgba(255, 255, 255, 0.05);
}

.get-flight-two__inner .nice-select:after {
    border-bottom: 2px solid var(--primary, #c3d200);
    border-right: 2px solid var(--primary, #c3d200);
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .nice-select {
        height: 60px;
        line-height: 56px;
        font-size: 0.95rem;
        padding-left: 18px;
        padding-right: 40px;
    }
    
    .nice-select:after {
        right: 18px;
        width: 8px;
        height: 8px;
    }
    
    .nice-select .option {
        line-height: 40px;
        min-height: 40px;
        font-size: 0.9rem;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .nice-select {
        height: 55px;
        line-height: 51px;
        font-size: 0.9rem;
        padding-left: 15px;
        padding-right: 35px;
    }
    
    .nice-select .list {
        max-height: 250px;
    }
    
    .nice-select .option {
        line-height: 38px;
        min-height: 38px;
        font-size: 0.85rem;
    }
}