/* Legend
   ====== */

.legend-container {
    position: absolute;
    bottom: 30px;
    left: 20px;
    /* min-height: 330px; */
    overflow-y: auto;
    min-width: 300px;
}

/* Scrollbar styling for legend container */
.legend-container::-webkit-scrollbar {
    width: 6px;
}

.legend-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.legend-container::-webkit-scrollbar-thumb {
    background: rgba(67, 100, 93, 0.5);
    border-radius: 3px;
}

.legend-container::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 100, 93, 0.8);
}


.legend {
    /* position: absolute;
    bottom: 40px;
    left: 20px; */
    background: #0A1B19;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* drop-shadow: 0 2px 10px rgba(0,0,0,0.1); */
    z-index: 1000;
    min-width: 280px;
    border: 1px solid rgba(255,255,255,0.3);
    /* margin-bottom: 0.75rem; */
}

.legend h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #5B8E83;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #43645D;
    justify-content: space-between;
    min-height: 32px;
    padding: 0.25rem 0;
}

.legend-item span:not(.legend-color) {
    flex: 1;
    line-height: 1.3;
    word-wrap: break-word;
}

.line-divider {
    border-bottom: 1px solid rgba(255,255,255,0.3);
    margin: 1rem 0;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    opacity: 0.6;
}

