body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  text-align: center;
}

html, body {
  background-color: #ffffff !important;
  color: #000000 !important;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
}



#map {
  height: 50vh;
  width: 100%;
}

.titulo {
  display: block;
  margin: 15px auto 10px auto; /* la centra y da espacio abajo */
  max-width: 600px; /* ajustá el tamaño */
}

.spinner {
  padding: 10px;
  font-size: 30px;
  border: 2px solid #3f51b5;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  margin: 15px auto;
  display: block;
}

#toast {
  visibility: hidden;
  min-width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 12px;
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}


/* Modal especial para mapa */
.modal-mapa {
  width: 95%;
  height: 90vh;          /* 🔹 casi toda la altura de la pantalla */
  max-width: none;       /* 🔹 sin límite de ancho */
  padding: 10px;
  display: flex;
  flex-direction: column;
}

#mapaModal {
  flex: 1;               /* 🔹 ocupa todo el espacio disponible */
  width: 100%;
  height: 100%;
  border-radius: 12px;
}



#marcadorCentro {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%); /* ajustar para que la punta quede en el centro */
  width: 100px;
  height: 100px;
  background: url("https://maps.google.com/mapfiles/ms/icons/red-dot.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
  z-index: 2000; /* por encima del mapa */
}




#publicaciones {
  margin: 15px;
}

.publicacion {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center; /* Centra la imagen y el texto */
  background: #f9f9f9;
}

.publicacion img.pub-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
  display: block;
  margin-left: auto;  /* asegura el centrado horizontal */
  margin-right: auto; /* asegura el centrado horizontal */
}

.publicacion p.pub-msg {
  font-size: 15px;
  color: #333;
  margin: 0;
  word-wrap: break-word;
}

.publicacion p.pub-msg2 {
  font-size: 35px;
  color: #333;
  margin: 0;
  word-wrap: break-word;
}


.pub-msg2 {
  font-size: 35px;
  color: #333;
  margin: 0;
  word-wrap: break-word;
}


.pub-msg3 {
  font-size: 35px;
  max-height: 0;              /* oculto */
  overflow: hidden;           /* no se ve el texto */
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  margin: 0;                  /* evita saltos al ocultar */
}

.pub-msg3.visible {
  font-size: 35px;
  max-height: 2000px;          /* ajusta según lo largo de los textos */
  opacity: 1;
  margin-top: 10px;           /* espacio cuando aparece */
}



.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* Fondo semi-transparente */
}

.modal-contenido {
  background: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 12px;
  width: 80%;
  max-width: 800px;
  text-align: center;

  max-height: 80vh;   /* 🔹 límite de alto relativo a la pantalla */
  overflow-y: auto;   /* 🔹 scroll interno del modal */
}

.modal-contenido select.spinner {
  max-height: 200px;  /* 🔹 límite para el select */
  overflow-y: auto;   /* 🔹 su propio scroll si hay muchos ítems */
}

.modal-contenido h2 {
  font-size: 60px;   /* 🔹 más grande */
  text-align: center;
  margin-bottom: 12px;
  font-weight: bold;
  color: #333;
}

.cerrar {
  float: right;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


/* Botón menú hamburguesa */
#menu-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 45px;
  cursor: pointer;
  z-index: 1100;
  color: #000000;
  background: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  box-shadow: 0 2px 5px rgba(25, 0, 255, 0.2);
}

/* Sidebar oculto por defecto */
#sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #1100ff;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 1050;
}

/* Items del sidebar */
#sidebar a {
  padding: 12px 24px;
  text-decoration: none;
  font-size: 40px;
  color: #fff;
  display: block;
  transition: 0.2s;
}

#sidebar a:hover {
  background-color: #3d1cfc;
}



.imagen-aviso {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}



.fondo-ciudad {
  width: 50%;              /* 👉 mitad del ancho de la pantalla */
  margin: 10px auto;       /* 👉 centrado horizontal */
  max-height: 0;           /* inicia oculto */
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  display: block;          /* asegura que se centre con auto */
}

.fondo-ciudad.visible {
  max-height: 1000px;      /* ajusta según el alto de tu imagen */
  opacity: 1;
}




.input-texto {
  width: 90%;
  padding: 12px;
  margin: 12px auto;
  display: block;
  font-size: 30px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.btn-buscar {
  background: #3f51b5;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 30px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-buscar:hover {
  background: #2c3e9d;
}





#resultadosPersonas {
  margin-top: 20px;
  text-align: left;
}

.resultado-item {
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #f5f5f5;
}

.resultado-item p {
  margin: 4px 0;
  font-size: 30px;
}



/* Opcional: estilo de la imagen de la tienda */
  .tienda-item {
    flex: 0 0 auto;
    width: 300px;
    text-align: center;
  }
  .tienda-img {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
  }



.producto-item p {
  font-size: 25px;   /* más grande */
  margin: 4px 0;     /* menos espacio entre líneas */
}




.grid-ciudades {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  gap: 15px;
  margin-top: 10px;
}

.item-ciudad {
  text-align: center;
  padding: 10px;
  box-sizing: border-box; /* 🔹 asegura que no se salga del modal */
}

.item-ciudad img {
  width: 100%;          /* 🔹 ocupa todo el ancho del grid */
  height: auto;         /* 🔹 mantiene proporción */
  max-width: 100%;      /* 🔹 nunca más grande que el contenedor */
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: block;       /* 🔹 elimina espacio raro abajo */
}

.item-ciudad p {
  margin-top: 5px;
  font-weight: bold;
  font-size: 18px;
}





.texto-ciudad {
  font-size: 45px;
  font-weight: bold;
  color: #333;
  margin: 10px 0;
  text-align: center;
}



