/* ======== FOOTER BASE ======== */
.site-footer {
    background: linear-gradient(90deg, var(--sg-primary), var(--sg-accent));
    color: #fff;
    padding: 30px 20px;
    font-family: 'Segoe UI', sans-serif;
}

/* ======== FOOTER LAYOUT ======== */
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info,
.footer-map {
    flex: 1 1 300px;
}

/* Section Titles */
.footer-info h4,
.footer-map h4 {
    font-weight: bold;
    font-size: 20px;
    color: var(--sg-on-primary);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Contact Info */
.footer-info p {
    margin: 6px 0;
    line-height: 1.6;
    color: #fff;
    font-weight: 500;
}

/* ======== MAP PREVIEW ======== */
.map-preview {
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid var(--sg-on-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
}

.map-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.map-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.map-preview:hover .map-overlay {
    background: rgba(0,0,0,0.8);
}

/* ======== MODAL ======== */
.map-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);

    /* Flexbox centering */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Modal Content */
.map-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    animation: modalZoom 0.3s ease;
}

/* Responsive Map */
.map-modal-content iframe {
    width: 100%;
    height: 60vh; /* dynamic height */
    min-height: 300px;
    border: 0;
}

/* Zoom Animation */
@keyframes modalZoom {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Close Button */
.map-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.map-close:hover {
    color: var(--sg-accent);
}

/* ======== FOOTER COPY ======== */
.footer-copy {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info,
    .footer-map {
        flex: 1 1 100%;
    }

    .map-modal-content {
        width: 95%;
    }
}
