/* Hide Google Maps iframes by default */
iframe[src*="google.com/maps"],
iframe[src*="maps.google.com"] {
    display: none !important;
}

/* Show Google Maps iframes inside the popup */
.map-popup-content iframe[src*="google.com/maps"],
.map-popup-content iframe[src*="maps.google.com"] {
    display: block !important;
}

/* Floating Map Button */
.floating-map-btn {
    position: fixed;
    bottom: 67px;
    left: 10px;
    width: 60px;
    height: 60px;
    background-color: #007cba;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    flex-flow: column;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
    display: none;
}

.floating-map-btn:hover {
    background-color: #005a87;
    transform: scale(1.1);
}

.floating-map-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
    max-width: unset !important;
    margin: 5px auto -2px auto;
}

/* Map Popup Modal */
.map-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.map-popup-modal {
    background: white;
    border-radius: 8px;
    padding: 10px;
    width: 97%;
    max-width: 1340px;
    max-height: 70vh;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
}

.map-popup-close {
    position: absolute;
    top: -37px;
    right: 0;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    background: #666;
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.map-popup-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.map-popup-content iframe {
    border: none;
    border-radius: 4px;
    height: 800px;
    max-height: 67vh;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-map-btn {
        width: 50px;
        height: 50px;
        bottom: 73px;
        font-size: 12px;
    }

    .floating-map-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 1600px) {
    .floating-map-btn {
        left: calc(50% - 820px);
    }
}