body { 
    margin: 0; 
    padding: 0; 
}

#map { 
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

.legend {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-family: 'GTAmerica-Md', sans-serif;
}

.legend-item {
    margin-top: 0;
    margin-bottom: 2px;
    line-height: 1.2; /* Adjust this value to reduce spacing */
    font-size: 14px;
    }

.legend-subhed {
    font-family: 'GTAmerica-Th', sans-serif;
    font-size: 12px;
    line-height: 1.2; 

}


.tick-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    font-weight: bold;
    color: rgba(25, 25, 25, 0.75);
    margin: 5px 0;
}

.tick {
    position: absolute;
    transform: translateX(-50%);
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    font-weight: bold;
    color: rgba(25, 25, 25, 0.75);
    margin-top: 5px;
}

.label-left, .label-right {
    margin: 0;
}

.map-tooltip {
    position: absolute;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    max-width: 300px;
    font-family: 'GTAmerica-Md', sans-serif;
    color: #333;
    transition: opacity 0.2s ease;
}

.button {
    font-family: 'GTAmerica-Md', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background-color: #003E6D;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button:hover {
    background-color: #002847;
}

#resetMap {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none;
}

.small-note-box {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9999;
}

.info-icon {
    position: relative;
    display: inline-block;
    color: #2c3e50;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #fff;
    font-family: 'GT-America', sans-serif;
    font-size: 0.8em;
    color: #333;
    text-align: left;
    border-radius: 4px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    top: 125%;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 600px) {
    .legend {
        bottom: 10px;
        right: 10px;
        padding: 5px;
        font-size: 12px;
        width: auto;
    }

    .mapboxgl-ctrl-geocoder {
        width: 90%;
        max-width: 150px;
        max-height: 50px;
        font-size: 14px;
    }

    .map-tooltip {
        max-width: 90%;
        font-size: 12px;
    }
}