/* =========================================
   GENIUS GIS - CUSTOM CSS
   ========================================= */


/* 1. LOGOTIPI NA KARTAMA */

#map {
    position: relative;
}

#municipality-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 180px;
    height: 100px;
    object-fit: contain;
    z-index: 1000;
    pointer-events: none;
}


/* 2. VELICINA IDENTIFY POPUPA */

.ol-popup-content .mapstore-identify-viewer {
    width: 450px !important;
    max-width: 85vw !important;
    box-sizing: border-box !important;
}

.ol-popup-content .mapstore-identify-viewer .panel {
    width: 100% !important;
    max-width: 450px !important;
    max-height: 450px !important;
    height: auto !important;
    box-sizing: border-box !important;
}


/* 3. SADRZAJ POPUPA */

.ol-popup-content .mapstore-identify-viewer .panel-body {
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
}


/* 4. HTML TEMPLATE */

.ol-popup-content .ms-template-viewer,
.ol-popup-content .ms-template-viewer div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
}

.ol-popup-content .ms-template-viewer {
    padding: 0 10px !important;
}


/* 5. FOTOGRAFIJE */

.ol-popup-content .ms-template-viewer img {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
    margin: 10px auto !important;
    padding: 0 !important;
    float: none !important;
    object-fit: contain !important;
    object-position: center !important;
    box-sizing: border-box !important;
}

.ol-popup-content .ms-template-viewer figure {
    max-width: 100% !important;
    margin: 10px auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}


/* 6. SCROLLBAR */

.ol-popup-content div:has(> .ms-template-viewer) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable both-edges;
    box-sizing: border-box !important;
}
