.dropdown-container {
  display: flex;
  gap: 10px;
  max-width: 678px;
  width: 678px;
  margin: 0 auto;
  position: relative;
  /* Added position relative */
}

.select-wrapper {
  flex: 1;
}

/* Fixed Select2 styling to prevent disappearing */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 46px;
  border-radius: 6px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding: 9px;
  padding-left: 16px;
  padding-right: 9px;
  color: #999;
  line-height: 28px;
  /* Added proper line height */
  font-size: 14px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered
  svg {
  margin-right: 12px;
  vertical-align: middle;
  /* Better alignment */
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 44px;
  right: 10px;
}

/* Critical fix: ensure dropdown appears above other elements */
.select2-dropdown {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  z-index: 9999 !important;
  /* Added important z-index */
}

/* Fix for the dropdown container */
.select2-container--open .select2-dropdown {
  display: block !important;
  /* Force display */
}

.select2-results__option {
  padding: 10px;
  border-bottom: 1px solid #f5f5f5;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #f0f0f0;
  color: #333;
}

/* Custom option styling */
.option-container {
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.selection-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #999;
}

.location-image {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  margin-right: 10px;
  /* aspect-ratio: 1/1; */
  aspect-ratio: 3/2;
  object-fit: cover;
}

.location-info {
  display: flex;
  flex-direction: column;
}

.location-name {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.location-details {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

@media (max-width: 767px) {
  .dropdown-container {
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    /*width: 100%;*/
  }
}

