/* ============================================================
   Modern US Map - CSS
   Customize via CSS custom properties or data-state selectors
   ============================================================ */

.us-map-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
}

.us-map {
    width: 100%;
    height: auto;
    display: block;
}

/* ── State groups ─────────────────────────────────────────── */

.us-map-state {
    cursor: default;
}

.us-map-state.enabled {
    cursor: pointer;
}

/* ── State paths ──────────────────────────────────────────── */

.us-map-state:focus,
.us-map-state:focus-within,
.us-map-path:focus {
    outline: none;
}

.us-map-path {
    stroke: var(--map-stroke, #ffffff);
    stroke-width: var(--map-stroke-width, 1);
    stroke-linejoin: round;
    transition: fill 0.15s ease, opacity 0.15s ease;
}

.us-map-state.disabled .us-map-path {
    cursor: default;
    
}

.us-map-state.enabled:hover .us-map-path,
.us-map-state.enabled:focus-within .us-map-path {
    /* Override via --state-hover-color or data-state CSS below */
}

/* ── State labels (abbreviations) ────────────────────────── */

.us-map-label {
    font-size: 11px;
    font-weight: 700;
    fill: var(--map-label-color, #ffffff);
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.3px;
}

.us-map-state.disabled .us-map-label {
    opacity: 0.6;
}

/* ── Tooltip ─────────────────────────────────────────────── */

.us-map-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.15s ease;
    transform: translate(-50%, -110%);
}

.us-map-tooltip.visible {
    opacity: 1;
}

/* ── Per-state color overrides via data attribute ────────── */
/* Example: [data-state="TX"] .us-map-path { fill: #e74c3c; } */

/* ── Responsive adjustments ──────────────────────────────── */

@media (max-width: 600px) {
    .us-map-label {
        font-size: 15px;
    }
}
