.usim-map-wrap {
    position: relative;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.usim-svg-map {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.15));
}

.usim-state-path {
    cursor: pointer;
    transition: fill 0.2s ease, filter 0.2s ease;
}
.usim-state-path:hover {
    filter: brightness(1.05);
}

/* Tooltip */
.usim-tooltip {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    pointer-events: none;
    max-width: 280px;
    min-width: 140px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    transition: opacity 0.15s ease;
}
.usim-tooltip-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    color: #1d2327;
}
.usim-tooltip-info {
    color: #50575e;
}
.usim-tooltip-info:empty {
    display: none;
}
.usim-tooltip-link-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #2271b1;
    font-style: italic;
}

/* Legend overlay */
.usim-legend {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    padding: 10px 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    z-index: 10;
    pointer-events: none;
}
.usim-legend-bottom-right {
    bottom: 12px;
    right: 12px;
}
.usim-legend-bottom-left {
    bottom: 12px;
    left: 12px;
}
.usim-legend-top-right {
    top: 12px;
    right: 12px;
}
.usim-legend-top-left {
    top: 12px;
    left: 12px;
}
.usim-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    white-space: nowrap;
}
.usim-legend-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.usim-legend-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 1.3;
}
