﻿/* =========================================
       REFRESH BUTTON
       ========================================= */
.map-refresh {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
}

.map-refresh:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}


/* =========================================
       MAP CONTAINER
       ========================================= */

.map-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 250px);
    min-height: 600px;
    overflow: hidden;
}

    .map-wrapper iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }


/* =========================================
       MAP LOADING
       ========================================= */

.map-loading {
    position: absolute;
    z-index: 10;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    transition: opacity 0.3s ease;
}

    .map-loading.hidden {
        opacity: 0;
        pointer-events: none;
    }

.map-loading-content {
    text-align: center;
    color: #6c757d;
}

.map-loading-icon {
    display: block;
    margin-bottom: 8px;
    font-size: 28px;
}

.map-loading-text {
    font-size: 12px;
    font-weight: 500;
}


/* =========================================
       RESPONSIVE
       ========================================= */

@@media (max-width: 992px) {

    .map-wrapper {
        height: calc(100vh - 230px);
        min-height: 550px;
    }
}


@@media (max-width: 768px) {

    .map-refresh {
        padding: 5px 10px;
        font-size: 11px;
    }

    .map-wrapper {
        height: calc(100vh - 270px);
        min-height: 500px;
    }
}


@@media (max-width: 480px) {

    .map-refresh {
        padding: 5px 9px;
        font-size: 11px;
    }

        .map-refresh span {
            display: none;
        }

    .map-wrapper {
        height: calc(100vh - 285px);
        min-height: 450px;
    }
}
