/* Mapa */
#map {
    height: 600px;
    width: 98%;
    position: relative;
    margin: auto;
}

/* Fondo dinámico */
#infoOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Inicialmente oculto */
    z-index: 10;
    color: white;
    text-align: center;
    align-items: center;
    justify-content: center;
}

/* Estilo del texto dentro del overlay */
#cityName {
    font-size: 36px;
    margin: 0;
    text-align: center;
}

/* Botón para cerrar el overlay (CORREGIDO) */
.back-button {
    position: absolute;
    top: 15px; /* Lo coloca en la esquina superior izquierda */
    left: 15px;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 20; /* Asegura que esté sobre el overlay */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Efecto hover */
.back-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Marcadores */
.custom-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
    position: relative;
}

/* Efecto al pasar el cursor sobre los marcadores */
.custom-marker:hover {
    transform: scale(1.5);
}

/* Botón de información dentro del marcador */
.info-button {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

/* Mostrar el botón de información al pasar el cursor */
.custom-marker:hover .info-button {
    display: block;
}

/* Contenedor adicional para descripción y galería */
.additional-content {
    padding: 20px;
    background-color: white;
}

/* Galería de imágenes */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* Estilos de las imágenes dentro de la galería */
.image-gallery img {
    width: calc(33.33% - 10px); /* Tres imágenes por fila */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Descripción de la ciudad */
.city-description-outside {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
}

