/* Legend control styles */
/* 1. Mobile first for small screens in portrait mode */
.legend-control {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important; /* Allow height to adjust based on content */
    margin: 0 !important;  /* Remove auto margins */
    /* padding: 2px 2px 0px 2px !important; */
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid #000000 !important;
    border-radius: 0 !important; /* Remove border radius at top */
    overflow-y: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}
.legend-control {
  background: rgba(255, 255, 255, 0.5);
  /* backdrop-filter: blur(4px); */
}

.legend-control img {
    display: block !important;
    /* margin: 0 5px 5px 5px !important; */
    width: 100% !important; 
    /* max-width: 200px !important; */
    height: auto !important;
    max-height: 10px !important; /* Limit height for better visibility */
    image-rendering: crisp-edges;   /* For Chrome, Edge, Safari */
    image-rendering: pixelated;      /* For Firefox, Chrome */
}
