/* ---
File: landmark_style.css
Description: Dedicated stylesheet for the single landmark page.
--- */

/* --- 1. General & Animations --- */
.landmark-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}


/* --- 2. Loading Screen --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #001C3D;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}
.loader-logo {
    animation: pulse 1.5s infinite ease-in-out;
}
.loader-logo img {
    max-width: 100px;
    height: auto;
}


/* --- 3. Landmark Hero Section --- */
.landmark-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}
.landmark-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 28, 61, 0.6); /* Dark blue overlay */
}
.landmark-hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}
.landmark-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin: 0;
}


/* --- 4. Main Content Area --- */
.landmark-main-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: -80px; /* Pulls content up over the hero image */
    position: relative;
    z-index: 3;
}
.landmark-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}


/* --- 5. Audio Player --- */
.audio-player-container {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}
.audio-player-container h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #001C3D;
}
.landmark-audio-player {
    width: 100%;
}


/* --- 6. Image Gallery --- */
.landmark-gallery {
    margin-top: 50px;
}
.landmark-gallery h3 {
    text-align: center;
    color: #001C3D;
    margin-bottom: 30px;
    font-size: 1.8rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}


/* --- 7. Lightbox (Image Viewer) --- */
.lightbox-overlay {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}
.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    animation: zoomIn 0.3s;
}
.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.lightbox-close-btn:hover {
    color: #bbb;
}


/* --- 8. Responsive Adjustments --- */
@media (max-width: 768px) {
    .landmark-hero {
        height: 40vh; /* Shorter height on mobile */
        background-size: contain; /* Fix: Show full image */
        background-repeat: no-repeat;
        background-color: #e_e_e; /* Fallback color for empty spaces */
    }
    .landmark-title {
        font-size: 2.5rem;
    }
    .landmark-main-content {
        padding: 25px;
        margin-top: -60px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 10px;
    }
    .gallery-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 column on small phones */
    }
    .gallery-item img {
        height: 200px;
    }
}

