/* US Map Interactive Styles */
#mapwrapper {
    max-width: 700px;
    margin: 0 auto 20px;
}

#mapbase {
    position: relative;
}

#mapbase svg {
    width: 100%;
    height: auto;
}

/* State path styles - target paths with usmap IDs */
#mapbase svg path[id^="usmap"] {
    fill: #36648B;
    stroke: #FFFFFF;
    stroke-width: 1px;
    cursor: pointer;
    transition: fill 0.2s ease;
}

#mapbase svg path[id^="usmap"]:hover {
    fill: #4E78A0;
}

#mapbase svg path[id^="usmap"]:active,
#mapbase svg path[id^="usmap"].active {
    fill: #45b6fe;
}

/* Lakes should stay white/light */
#mapbase svg #lakes path {
    fill: #EBECED;
    cursor: default;
}

#mapbase svg #lakes path:hover {
    fill: #EBECED;
}

/* State tooltip */
.map-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -100%);
    margin-top: -10px;
    display: none;
}

.map-tooltip.visible {
    display: block;
}

.map-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

/* Territory badges */
.territory-badges {
    margin-top: 15px;
}

.territory-badges b {
    background: #36648b;
    padding: 4px 5px;
    color: #fff;
    border-radius: 4px;
    box-shadow: 1px 1px 3px rgb(0 0 0 / 40%);
    transition: background-color 0.2s ease;
    display: inline-block;
    margin-right: 5px;
}

.territory-badges b:hover {
    background: #4E78A0;
}

.territory-badges b a {
    color: #ffffff !important;
    text-decoration: none;
}
