/* ========================================
   ENHANCED NIGHTS SELECTOR STYLES
   ======================================== */

/* Desktop Nights Selector */
.custom-nights-selector {
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
}

.custom-select-display {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.dropdown-arrow {
  color: #c39e36;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.custom-nights-selector.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Enhanced Dropdown Menu - Desktop */
.custom-dropdown-menu {
  display: none;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-top: 4px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(205, 159, 58, 0.2);
  overflow: hidden;
  animation: dropdownSlide 0.3s ease;
}

.custom-dropdown-menu.show {
  display: block;
}

@keyframes dropdownSlide {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 0;
}

/* Custom scrollbar */
.dropdown-scroll::-webkit-scrollbar {
  width: 4px;
}

.dropdown-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dropdown-scroll::-webkit-scrollbar-thumb {
  background: #c39e36;
  border-radius: 2px;
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-size: 13px;
  font-weight: 500;
}

.custom-dropdown-item:hover {
  background: linear-gradient(135deg,
      rgba(205, 159, 58, 0.1) 0%,
      rgba(205, 159, 58, 0.05) 100%);
  color: #c39e36;
}

.custom-dropdown-item.selected {
  background: linear-gradient(135deg, #c39e36 0%, rgba(205, 159, 58, 0.9) 100%);
  color: white;
}

.option-text {
  font-weight: 500;
  color: inherit;
}

.check-icon {
  opacity: 0;
  color: #c39e36;
  font-size: 12px;
  transition: all 0.2s ease;
}

.custom-dropdown-item.selected .check-icon {
  opacity: 1;
  color: white;
}

/* Mobile Nights Selector */
.custom-nights-selector-mobile {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  background: #fff;
  padding: 0px 40px;
}

/* .custom-nights-selector-mobile:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
} */

.custom-select-display-mobile {
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: rgba(205, 159, 58, 0.05);
  border: 1px solid rgba(205, 159, 58, 0.2);
  min-width: 100px;
}

.custom-select-display-mobile:hover {
  background-color: rgba(205, 159, 58, 0.1);
  border-color: rgba(205, 159, 58, 0.3);
}

.dropdown-arrow-mobile {
  color: #c39e36;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.custom-nights-selector-mobile.active .dropdown-arrow-mobile {
  transform: rotate(180deg);
}

/* Enhanced Dropdown Menu - Mobile */
.custom-dropdown-menu-mobile {
  display: none;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-top: 8px;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(205, 159, 58, 0.3);
  overflow: hidden;
  animation: dropdownSlideUp 0.3s ease;
}

.custom-dropdown-menu-mobile.show {
  display: block;
}

@keyframes dropdownSlideUp {
  0% {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-scroll-mobile {
  max-height: 250px;
  overflow-y: auto;
  padding: 12px 0;
}

.custom-dropdown-item-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(205, 159, 58, 0.1);
}

.custom-dropdown-item-mobile:last-child {
  border-bottom: none;
}

.custom-dropdown-item-mobile:hover {
  background: linear-gradient(135deg,
      rgba(205, 159, 58, 0.15) 0%,
      rgba(205, 159, 58, 0.08) 100%);
  color: #c39e36;
  transform: translateX(2px);
}

.custom-dropdown-item-mobile.selected {
  background: linear-gradient(135deg, #c39e36 0%, rgba(205, 159, 58, 0.9) 100%);
  color: white;
  font-weight: 600;
}

.option-text-mobile {
  font-weight: inherit;
  color: inherit;
}

.check-icon-mobile {
  opacity: 0;
  color: #c39e36;
  font-size: 14px;
  transition: all 0.2s ease;
}

.custom-dropdown-item-mobile.selected .check-icon-mobile {
  opacity: 1;
  color: white;
}

/* Focus and accessibility improvements */
.custom-select-display:focus,
.custom-select-display-mobile:focus {
  outline: 2px solid rgba(205, 159, 58, 0.5);
  outline-offset: 2px;
}

/* .custom-dropdown-item:focus,
.custom-dropdown-item-mobile:focus {
  outline: 2px solid rgba(205, 159, 58, 0.5);
  outline-offset: -2px;
} */

/* Responsive adjustments */
@media (max-width: 768px) {
  .custom-nights-selector {
    width: 100% !important;
  }

  .custom-select-display {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
  }

  .custom-select-display:hover {
    background-color: rgba(205, 159, 58, 0.05);
  }

  .custom-dropdown-menu {
    left: -12px;
    right: -12px;
  }
}

/* Animation for smooth transitions */
.custom-nights-selector,
.custom-nights-selector-mobile {
  position: relative;
  overflow: visible;
}

/* Enhanced styling for label */
/* .labelnuit {
  color: #666;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
} */

/* Selected value styling */
.selected-value,
.selected-value-mobile {
  font-weight: 600;
  color: #333;
}

/* Overlay for mobile when dropdown is open */
.dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
}

.dropdown-overlay.show {
  display: block;
}

/* Loading state */
.custom-dropdown-item.loading,
.custom-dropdown-item-mobile.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Success state animation */
/* @keyframes successPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(205, 159, 58, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(205, 159, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(205, 159, 58, 0);
  }
}

.custom-select-display.success,
.custom-select-display-mobile.success {
  animation: successPulse 0.6s ease-out;
} */