/* ===============================
   📁 sections/section_guide.css
   🔹 Section4: 가이드맵 섹션
================================ */

#guide {
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #2c3e50;
    /* Default text color for light background */
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #eef2f7;
    /* Fallback color */
}

#guide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../assets/images/map/mapbg.jpg') no-repeat center center;
    background-attachment: fixed;
    background-size: cover;
    filter: blur(3px) brightness(1.1);
    z-index: 1;
}

/* Position content above the pseudo-element */
#guide .section-header,
#guide .map-container,
#guide .download-button {
    position: relative;
    z-index: 2;
}


/* --- Section Header --- */
#guide .section-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#guide .section-overline {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #5b7282;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

#guide .section-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

/* --- Mobile Styles for Header --- */
@media (max-width: 768px) {
    #guide .section-header {
        margin-bottom: 2rem;
    }

    #guide .section-overline {
        font-size: 0.7rem;
    }

    #guide .section-title {
        font-size: 1.6rem;
    }
}

.map-container {
    max-width: 900px;
    margin: 0 auto 30px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#guide-map-image {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

/* Download Button Styling */
.download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #1c1c1c;
    /* Dark text for light button */
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.download-button:hover {
    background-color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.download-button svg {
    width: 1em;
    height: 1em;
}

/* Modal for Zoomed Image */
.map-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    cursor: zoom-out;
}

.map-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
    cursor: default;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 2001;
}

.close-modal:hover {
    color: #ccc;
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}