﻿#map-container {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid #2c3e50;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 0 !important;
    cursor: default;
}

#offline-mode-badge {
    position: absolute; 
    z-index: 1; 
    right: 0; 
    left: 0; 
    margin: auto;
}

#map-tool-panel {
    position: absolute;
    width: 450px;
    height: 100%;
    right: 0;
    top: 0;
    z-index: 1;
    background-color: #ecf0f1;
    border-left: 1px solid #7f8c8d;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#map-tool-content {
    flex: 1;
    overflow: hidden;
}

#map-shape-details-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

#map-shape-edit-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

#map-msg-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 7px;
}

#map-msgs-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

#map-marker-filter-container {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding-bottom: 7px;
}

#map-marker-symbol-container {
    height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

.map-marker-symbol-item {
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 14px;
    margin-bottom: 7px;
    background-color: #95a5a680;
    width: 100%;
    padding: 7px;
}

    .map-marker-symbol-item:hover {
        background-color: #3498db80;
    }

.map-marker {
    padding: 4px;
    text-align: center;
}

.map-marker:hover {
    cursor: pointer;
    background-color: #bdc3c7;
    border-radius: 7px;
}

.leaflet-control-attribution {
    visibility: hidden !important;
}

img.leaflet-tile.leaflet-tile-loaded {
    color: #2c3e50;
    border: 1px solid;
}

#cancel-draw-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    background-color: #c0392b;
    color: white;
    height: 50px;
    width: 50px;
    z-index: 1;
    border-radius: 50%;
    cursor: pointer;
    top: 10px;
    left: 56px;
}

    #cancel-draw-btn:hover {
        background-color: #e74c3c;
    }

.map-statistic-item-container {
    display: flex;
    gap: 21px;
    align-items: center;
    justify-content: space-between;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

.map-statistic-item-amount {
    width: 50px;
    text-align: right;
    font-weight: bold;
}

@media (max-width: 768px) {
    #map-tool-panel {
        width: 100vw;
    }

    #map-marker-symbol-container {
        height: 300px;
    }
}
