* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #111;
}

#map {
    height: 100vh;
    width: 100vw;
    z-index: 1;
}

/* Lightbox Styling */
#lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox.hidden {
    display: none;
}

.lightbox-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10000;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 4px;
}

#lightbox-info {
    margin-top: 15px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    width: 100%;
}

.nav-btn, .close-btn {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    user-select: none;
    transition: opacity 0.3s;
}

.nav-btn:hover, .close-btn:hover { opacity: 0.7; }
.close-btn { top: 20px; right: 30px; font-size: 50px; }
.prev-btn { left: 20px; top: 50%; transform: translateY(-50%); }
.next-btn { right: 20px; top: 50%; transform: translateY(-50%); }

.leaflet-popup-content img {
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
}

.leaflet-popup-content p {
    margin: 5px 0 0 0;
    text-align: center;
    font-size: 12px;
}