/* MAP UI  */

#minimap-wrapper {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 250px;
    height: 180px;
    z-index: 100;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out; 
}

#minimap, .leaflet-container {
    width: 100%;
    height: 100%;
    background: transparent !important; 
}

.leaflet-marker-pane {
    z-index: 9999 !important;
}

#minimap-wrapper.tour-started {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; 
}

#minimap-wrapper.map-expanded {
    width: 100vw;
    height: 100vh;
    bottom: 0;
    left: 0;
    transform: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, 0.6);
}

#minimap-wrapper.map-expanded #toggle-map-btn {
    top: auto;
    left: auto;
    bottom: 30px;
    right: 30px;   
    font-size: 16px; 
    padding: 0px 0px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

#toggle-map-btn {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 400;
    background-color: transparent;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    border: none;
    padding: 5px 10px;
    font-size: 32px; 
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.2s ease;
}

#toggle-map-btn:hover {
    transform: scale(1.1); 
}

.user-location-pin {
    width: 24px;
    height: 24px;
}

.user-dot {
    width: 14px;
    height: 14px;
    background-color: #0078ff;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.map-icon-btn {
    display: none; 
}



.custom-pin-label {
    background-color: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    
    color: #ffffff !important; 
    font-size: 15px !important;
    font-weight: 800 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
    
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0px  3px 5px rgba(0,0,0,0.8) !important;
    
    pointer-events: none; 
}

.leaflet-tooltip.custom-pin-label::before {
    display: none !important; 
}




@media (max-width: 768px) {
    .map-icon-btn {
        display: flex !important; 
        justify-content: center;
        align-items: center;
        position: absolute;
        z-index: 9999999 !important;
        pointer-events: auto !important; 
        bottom: 87px;
        top: auto; 
        right: auto; 
        left: calc(50% - 80px);
        padding: 5px; 
        background-color: #3c3c3c7e;
        border: 2px solid #8383827e;
        border-radius: 30px;
        font-size: 27px;
        cursor: pointer;
        color: white;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.5s ease-in-out; 
    }

    .map-icon-btn.tour-started{
        opacity: 1;
        visibility: visible;
        pointer-events: auto; 
        transition: opacity 0.5s ease-in-out; 
    }

    .map-icon-btn:active {
        transform: scale(0.95);
        background-color: #8a8888;
    }
}

@media screen and (max-width: 768px) {
    
    #minimap-wrapper:not(.map-expanded) {
        display: none !important; 
    }

    #minimap-wrapper.map-expanded {
        display: block !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 99999999 !important;
    }

    #minimap-wrapper.map-expanded #toggle-map-btn {
        position: fixed !important; 
        bottom: 87px !important; 
        right: 20px !important;  
        top: auto !important;
        left: auto !important;
        transform: none !important; 
    }
}


.custom-pin-label-mobile{
    background-color: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    color: #ffffff !important; 
    font-size: 8px !important;
    font-weight: 800 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
    
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0px  3px 5px rgba(0,0,0,0.8) !important;
    
    pointer-events: none; 
}

.leaflet-tooltip.custom-pin-label::before {
    display: none !important; 
}

/* leaflet-tooltip.custom-pin-label::before,
.leaflet-tooltip.custom-pin-label-mobile::before {
    display: block !important;
    border-top-color: #ffffff !important; 
    margin-bottom: -2px !important;
    filter: drop-shadow(0px 3px 2px rgba(0,0,0,0.8)); 
} */