/* Estilos generales */
@import url("https://fonts.googleapis.com/css?family=Kalam:200,300,400,500,600,700,800,900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kalam", sans-serif;
  scroll-behavior: smooth;
}

body,html {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    text-align: center;
    margin: 0;
    padding: 0;
 
    height: 100%;
    /* margin: 0; */
    display: flex;
    flex-direction: column;
}

h1 {
    margin-top: 30px;
    font-size: 2em;
}

input[type="text"] {
    margin-top: 20px;
    padding: 10px;
    font-size: 16px;
    width: 80%;
    max-width: 400px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#search-city {
    display: block;
    margin: 10px auto;
    padding: 10px;
    font-size: 16px;
    width: 80%;
    max-width: 400px;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: center;
}


#mapid {
    /* margin-top: 30px; */
    flex-grow: 1;
}

/* Estilos para la galería flotante */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: black;
    display: none; /* Inicialmente oculta */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    padding: 20px;
}

#close-gallery {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

#close-gallery:hover {
    background-color: #555;
}
/* 
#photo-container {
    margin-bottom: 20px;
}

#photo {
    max-width: 80%;
    max-height: 80vh;
    margin: 10px auto;
    display: block;
    border: 10px 40px solid white;
    padding: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
} */


#photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;

}

#photo.polaroid {
    background-color: white !important; /* Asegura que el fondo sea blanco */
    display: block;
    width: 100%;
    position: relative;
    
}

#photo.polaroid::after {
    content: attr(data-description);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    color: black;
    padding: 10px;
    font-size: 14px;
    text-align: center;
}

#photo {
    max-width: 80%;
    max-height: 80vh;
    display: block;
    border: 10px solid white;
    padding: 10px;
    padding-bottom: 40px; /* Aumentar el padding inferior para espacio de descripción */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

#photo-description {
    position: absolute;
    bottom: 15px; /* Lo posiciona dentro del borde inferior */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    font-size: 14px;
    color: black;
    font-weight: bold;
}


#photo-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#prev-photo, #next-photo {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

#prev-photo:hover, #next-photo:hover {
    background-color: #555;
}

/* Animaciones */
#gallery.show {
    display: flex;
}

/* Responsividad */
@media (max-width: 768px) {
    #mapid {
        height: 400px;
    }

    input[type="text"] {
        width: 90%;
    }

    #photo-container {
        max-width: 100%;
    }

    #photo {
        width: 100%;
    }
}
