/* assets/css/map.css */

/* Container for the map */
#interactive-map-container-unique {
    width: 100%;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

/* Styling for the map legend */
.map-legend-unique {
    padding: 8px 12px;
    font-family: "Manrope", sans-serif;
    background: rgba(25, 27, 23, 0.8); /* Matches --bg-component-color with transparency */
    color: #e5e7eb;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 0.5rem;
    border: 1px solid #4b5563;
}

.map-legend-unique h4 {
    margin: 0 0 8px;
    color: #ffffff;
    font-weight: 700;
}

.map-legend-unique i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    border-radius: 4px;
    opacity: 0.9;
}

/* Custom Tooltip Styling (for hover highlight) */
.map-tooltip-custom {
  background-color: rgba(25, 27, 23, 0.9); /* Matches legend background for consistency */
  border-radius: 0.5rem;                    /* Matches legend border-radius */
  border: 1px solid #4b5563;              /* Adds a border that matches the legend */
  box-shadow: none;                         /* Removes the default drop shadow */
  color: #ffffff;                           /* Sets the main text color to white */
  font-family: "Manrope", sans-serif;       /* Uses your project's font */
  padding: 8px 12px;                        /* Adds some internal spacing */
}

/* Style for the h4 title inside the tooltip */
.map-tooltip-custom h4 {
  font-size: 16px;
  margin: 0 0 8px 0;
  padding: 0;
  font-weight: bold;
  color: #ffffff; /* Ensures title is white */
}

/* Style for the 'b' tags (labels) */
.map-tooltip-custom b {
  font-weight: 600;
  color: #a0bba4; /* A lighter green for the labels, for contrast */
}

/* This removes the little arrow on the tooltip for a cleaner, box-like appearance */
.leaflet-tooltip-top.map-tooltip-custom::before,
.leaflet-tooltip-bottom.map-tooltip-custom::before,
.leaflet-tooltip-left.map-tooltip-custom::before,
.leaflet-tooltip-right.map-tooltip-custom::before {
  border: none;
}