.leaflet-popup-content-wrapper {
    background: #ffffff; /* White background for a clean look */
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    border: 1px solid #dcdcdc; /* Light grey border */
    padding: 6px;      /* reduce white space at bottom */
    padding-bottom: 0px !important;
}

.leaflet-popup-content {
    margin: 0;
    padding: 6px; /* Consistent padding */
    margin-bottom: 0 !important;
    font-family: "GDS Transport", Arial, sans-serif; /* GOV.UK font */
    font-size: 16px; /* GOV.UK font size */
    color: #0b0c0c; /* GOV.UK text color */
    box-sizing: border-box;     /* Keep padding inside width */
}

.leaflet-popup-tip-container {
    width: 30px;
    height: 15px;
}

.leaflet-popup-tip {
    background: #ffffff; /* Match popup background */
    border: none;
}

.leaflet-popup-close-button {
    color: #0b0c0c; /* GOV.UK text color */
    font-size: 20px; /* GOV.UK font size */
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.leaflet-popup-close-button::before {
    content: "Close";
    font-family: "GDS Transport", Arial, sans-serif; /* GOV.UK font */
    font-size: 14px;
    color: #000;
    margin-left: -35px;
}

.govuk-heading-m {
    font-size: 1.25em; /* Medium heading size */
    margin-bottom: 10px; /* Space below heading */
}

.govuk-body {
    margin-bottom: 10px; /* Space below paragraphs */
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
}

.map-legend-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: antiquewhite;
}

.map-legend svg text {
  font-size: clamp(8px, 2.8vw, 14px);
}