#mapa {
  height: 100vh;
  width: 100%;
}

html,
body {
  font-family: 'Lato', sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
}

#map {
  height: 100%;
  width: 100%;
}

/* Contenedor del menú */
.menu-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  text-align: center;
}

.menu-button {
  background-color: #878787;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
}

.dropdown {
  display: none;
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  min-width: 160px;
  z-index: 1001;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-decoration: none;
  color: #333;
  height: 50px;
  white-space: nowrap;
  /* <- Esto evita que el texto se divida */
  overflow: hidden;
  text-overflow: ellipsis;
  /* <- Opcional, para cortar con "..." si es demasiado largo */
}

.dropdown a img.icon {
  height: 80%;
  width: auto;
}

#btn-directions {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  background: #878787;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: none;
}

#btn-directions:hover {
  background: #1565c0;
}

/* En móviles (pantallas <= 768px) se muestra arriba */
@media (max-width: 768px) {
  #btn-directions {
    top: 20px;
    /* lo mandamos arriba */
    bottom: auto;
    /* quitamos el bottom */
  }
}

#btn-ubicacion {
  position: absolute;
  bottom: 160px;
  /* distancia desde abajo */
  right: 10px;
  /* distancia desde la derecha */
  z-index: 1000;
  /* asegurarse que queden encima del mapa */
  background: #fff;
  color: #fff;
  border: 1px solid #ccc;
  padding: 7px 7px;
  border-radius: 15px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
}

.titulo-pago {
  color: #878787;
}

/* Layout de los checks en fila */
.checks-movil {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;  
}

/* Cuadro con la imagen de fondo */
.cuadro-fondo {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 390px;
  height: 540px;
  background-image: url("images/Web_fondo.svg");
  background-size: contain;
  /* Ajusta la imagen */
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  /* Sombra (opcional) */
  z-index: 10000;
  /* Asegura que quede por encima del mapa */
  padding: 20px;
  color: white;
  backdrop-filter: brightness(0.8);
}

.cuadro-fondo h2 {
  font-size: 18px;
  font-weight: bold;
  text-align: left;
  margin: 10px 0 5px 0px;
  /* top 10px, bottom 5px, left 20px */
  color: black !important;
}

.cuadro-fondo label {
  font-size: 14px;
  color: black !important;
  font-weight: bold;

}

.cuadro-fondo select {
  font-size: 14px;
}

.cuadro-fondo .overlay {
  background: rgba(211, 211, 211, 0.6);
  /* gris claro con transparencia */
  /* negro transparente */
  padding: 5px;
  border-radius: 10px;
  margin-left: 0px;
  margin-right: 0px;
}

/* Cuadro móvil inicialmente oculto */
#filtro-movil {
  position: absolute;
  left: 5%;
  right: 50px;
  width: 320px;
  height: 185px;
  display: none;
  bottom: 10px;
  background-image: url("images/App_fondo.svg");
  border-radius: 15px;
  background-size: cover;
  /* ajusta al tamaño sin cortar */
  background-repeat: no-repeat;
  background-position: center;
  /* centra la imagen */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  font-size: 14px;
}

.filtro-movil h2 {
  font-size: 18px;
  font-weight: bold;
  text-align: left;
  margin: 10px 0 5px 20px;
  /* top 10px, bottom 5px, left 20px */
  color: black !important;
}

.filtro-movil label {
  font-size: 14px;
  color: black !important;
  font-weight: bold;

}

.filtro-movil select {
  font-size: 14px;
}

.filtro-movil .overlay {
  background: rgba(211, 211, 211, 0.6);
  /* gris claro con transparencia */
  /* negro transparente */
  padding: 12px;
  border-radius: 10px;
  margin-left: 20px;
  margin-right: 20px;
}

 #filtro-web .checks-movil label {
    margin-right: 20px;
  }