/* --- FORMULARIO RESPONSIVE Y ANCHO COMPLETO --- */
.search-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

.input-fields {
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.destination-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.input-field {
  flex: 1 1 200px;
  min-width: 120px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.add-destination-button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  color: #fff;
  background-color: #333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.next-button {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  color: #fff;
  background-color: #0d2f4e;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.bus-premium-control, .passenger-item {
  border-radius: 12px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 200px;
  max-width: 100vw;
  width: 100%;
  padding: 0!important;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .search-container {
    padding: 10px;
    border-radius: 0;
  }

  .options-bar {
    flex-direction: column;
    gap: 10px;
  }

  .destination-group {
    flex-direction: column;
    gap: 8px;
  }

  .input-field {
    font-size: 15px;
    min-width: 0;
  }

  .add-destination-button, .next-button {
    font-size: 16px;
    padding: 12px;
  }

  .dropdown-menu {
    min-width: 120px;
    width: 100vw;
    left: 0;
    border-radius: 0;
  }
}
/* --- FIN FORMULARIO RESPONSIVE --- */

.search-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 1200px;
}

/* Selects y botón añadir destino 100% ancho en 375px */
@media (max-width: 600px) {
  .search-container {
    padding: 8px;
    border-radius: 0;
    max-width: 100vw;
    overflow-x: hidden;
  }
  select,
  .input-field,
  .add-destination-button {
    width: 100%!important;
    min-width: 0 !important;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }
  .destination-group {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Barra de Opciones */
.options-bar {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  position: relative;
  background: #f5f5f5;
  border: 2px solid #0d2f4e;
  border-radius: 8px;
  padding: 10px 18px;
  margin-bottom: 8px;
  transition: background 0.2s, border 0.2s;
  box-shadow: 0 2px 8px rgba(255,159,0,0.07);
}

.option-item:hover, .option-item.active {
  background: #2892a3;
  border-color: #0d2f4e;
}

.option-item > span {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.option-item i {
  font-size: 16px;
  color: #333;
}

.dropdown-menu {
  display: none; /* Ocultar las listas de opciones por defecto */
  position: absolute;
  top: calc(100% + 5px); /* Posicionar debajo del botón */
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Asegurar que esté encima de otros elementos */
}

.dropdown-menu li {
  list-style: none;
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  cursor: pointer;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li:hover {
  background-color: #f0f0f0;
}

/* Campos de Entrada */
.input-fields {
  margin-bottom: 20px;
}

.destination-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.input-field {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
}

.return-field {
  display: none; /* Ocultar el campo "Rereso" por defecto */
}

.remove-button {
  padding: 10px;
  font-size: 16px;
  color: #fff;
  background-color: #333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-destination-button {
  width: 25%;
  padding: 10px;
  font-size: 16px;
  color: #fff;
  background-color: #333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-destination-button:hover {
  background-color: #555;
}

/* Mensaje Adicional */
.additional-message {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.additional-message a {
  color: #0d2f4e;
  text-decoration: underline;
}

/* Botón de Acción */
.next-button {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  color: #fff;
  background-color: #0d2f4e;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.next-button:hover {
  background-color: #2892a3;
}
/* --- MEJORAS PARA SELECTS DE BUSES Y PASAJEROS --- */
.bus-premium-control, .passenger-item {
  border-radius: 12px;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.passenger-control {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f7f7f7;
  border-radius: 20px;
  padding: 2px 8px;
}

.decrement-button, .increment-button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}

.decrement-button:hover, .increment-button:hover {
  background-color: #e0e0e0;
}

.quantity-input {
  width: 4rem !important;
  text-align: center;
  font-size: 16px;
  border: none;
  background: transparent;
  outline: none;
}

/* Ajuste para el menú desplegable */
.dropdown-menu {
  min-width: 260px;
  padding: 18px 0 18px 0 !important;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.13);
}

/* --- FIN MEJORAS --- */
.passenger-control,
.bus-premium-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fas {
  color: #333;
  font-size: 16px;
}

.quantity-control {
  display: flex;
  align-items: center;
}

.decrement-button,
.increment-button {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.decrement-button:hover,
.increment-button:hover {
  background-color: #e0e0e0;
}

.quantity-input {
  width: 4rem !important;
  text-align: center;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
}

.passenger-control {
  display: flex;
  flex-direction: column;
}

.passenger-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fas {
  color: #333;
  font-size: 16px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quantity-input {
  width: 4rem !important;
  text-align: center;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
}

.option-item {
  position: relative; /* Para posicionar el menú desplegable */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  color: #333;
}

.dropdown-menu {
  display: none; /* Ocultar el menú por defecto */
  position: absolute;
  top: calc(100% + 5px); /* Posicionar debajo del botón */
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Asegurar que esté encima de otros elementos */
  width: 250px; /* Ancho fijo para el menú */
  padding: 0!important;
}

.dropdown-menu li {
  list-style: none;
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  cursor: pointer;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li:hover {
  background-color: #f0f0f0;
}

.dropdown-menu label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-menu input[type="radio"] {
  accent-color: #0d2f4e; /* Color del botón de radio */
  margin-right: 5px;
}

.dropdown-menu small {
  font-size: 12px;
  color: #666;
}

.w-10 {
  width: 10rem;
}

.w-15 {
  width: 15rem;
}

.w-20 {
  width: 20rem;
}

.title-container {
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* --- MEJORA SUBMENÚ PMR SIN CAMBIAR FONT-SIZE --- */
.dropdown-menu.w-15 li[data-title*="diversidad"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-bottom: 0;
  font-size: 14px;
}

.dropdown-menu.w-15 .pmr-submenu {
  margin-left: 28px;
  margin-top: 2px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #444;
}

.dropdown-menu.w-15 .pmr-submenu label {
  font-size: 13px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu.w-15 .pmr-submenu input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: #0d2f4e;
  margin-right: 2px;
}

.dropdown-menu.w-15 li {
  font-size: 14px;
  padding: 12px 18px;
}

/* --- FIN MEJORA SUBMENÚ PMR --- */
