/* Map Styles */
path {
    stroke: #ffffff;
    stroke-width: 1;
    transition: fill .4s ease, stroke-width .2s ease;
    cursor: pointer;
}

path:hover {
    stroke-width: 2;
    filter: brightness(1.1);
}

#us-map {
    width: 100%;
    height: auto;
    max-width: 1000px;
    display: block;
    margin: 0 auto;
}

#details-box {
    padding: 1rem;
    border-radius: 8px;
    font-size: 16px;
    position: fixed;
    color: white;
    font-family: "Roboto", sans-serif;
    background-color: rgba(25, 118, 210, 0.95);
    width: 200px;
    height: 200px;
    transition: opacity .4s ease;
    z-index: 1;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tooltip-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 500;
    width: 60px;
}

.metric-visual {
    width: 80px;
    height: 20px;
    border-radius: 10px;
    border: 2px solid white;
}

.score-display {
    text-align: center;
    margin-top: 0.5rem;
}

.score-number {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.score-label {
    font-size: 10px;
    color: #e0e0e0;
    text-transform: uppercase;
}

/* Legend styles are now handled in the interactive_map.html file */