/* Contenedor principal */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  height: 48px;
}

/* Caja visible del selector */
.custom-select-trigger {
  position: relative;
  font-size: 1rem;
  background-color: white;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.custom-select-trigger::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transition: transform 0.2s ease;
}

.custom-select-origen.open .custom-select-trigger::after {
  transform: translateY(-25%) rotate(225deg);
}
.custom-select-origen{
  padding-top: 3px;
}
/* Panel de opciones */
.custom-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #dbe1e6;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  padding: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
}

.custom-option .option-text{
  color: #6b7280;
}


.custom-select-origen.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 999;
}

/* INICIO: NUEVOS ESTILOS */

/* Estilo para el título "Ciudades" */
.custom-option[data-type='title'] {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00abc8; /* Color azulino del ejemplo */
  padding: 0.6rem 1rem;
}

/* Estilo para cada opción */
.custom-option {
  display: flex; /* Usamos flexbox para alinear contenido */
  justify-content: space-between; /* Espacio entre texto y código */
  align-items: center;
  padding: 0.2rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 6px;
}

.custom-option:hover>.option-text {
  color: #00abc8;
}

.custom-option.selected {
  font-weight: bold;
  
}

/* Estilo para el código a la derecha */
.option-code {
  color: #888;
  font-size: 0.9em;
}

/* FIN: NUEVOS ESTILOS */

.container-modal .custom-select-wrapper{
  margin-bottom: 20px;
  width: 100%;
}

/* Estilos para las divs de carga de destinos */
.loading-destinos-wrapper {
  position: relative;
  width: 100%;
  height: 48px;
  background-color: white;
  border: 0px solid #dbe1e6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.loading-destinos-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #00abc8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}