.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

#map-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#map {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.hud-top #map {
    width: 80%;
}

.county {
    fill: #ffffff;
    stroke: rgba(0, 0, 0, 0.1);
    stroke-width: 0.5;
    transition: fill 0.4s ease, stroke 0.3s ease;
    cursor: pointer;
}

.county:hover {
    stroke: #e42020;
    stroke-width: 1.5;
    filter: brightness(0.95);
    z-index: 10;
}

.tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    color: #1a1a1a;
    padding: 12px 18px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
    max-width: 280px;
    z-index: 1000;
    border-left: 3px solid #e42020;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', sans-serif;
}

.tooltip strong {
    color: #1a1a1a;
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.county-label {
    font-size: 7px;
    fill: #808080;
    pointer-events: none;
    text-anchor: middle;
    alignment-baseline: central;
    font-weight: 500;
}

/* Legend Styles */
.map-legend {
    margin-top: 15px;
    width: 100%;
    max-width: 240px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.legend-title {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-align: center;
}

.legend-gradient {
    height: 8px;
    width: 100%;
    background: linear-gradient(to right, #ffb6c1, #e42020);
    border-radius: 2px;
    margin-bottom: 6px;
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}