/* ── Team Hotspots Frontend ───────────────────────────────────────────── */

.th-map-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    user-select: none;
}

.th-img-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.th-base-image {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Greyscale overlay image (replaces canvas approach) ── */
/* Styles injected inline via JS; nothing needed here. */

/* ── SVG polygon layer (hover hit areas) ── */
.th-svg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 1;
}

.th-hotspot-poly {
    fill: transparent;
    stroke: transparent;
    cursor: pointer;
}

/* ── Border SVG layer — sits above all image layers ── */
.th-border-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 3;
}

.th-hotspot-border {
    fill: none;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2px;
    opacity: 0;
    transition: opacity .18s ease;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

/* ── Tooltip ── */
.th-tooltip {
    position: fixed;
    background: rgba(15, 15, 25, 0.92);
    color: #fff;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 9999;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
    line-height: 1.4;
}

.th-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.th-tooltip-name {
    display: block;
}

.th-tooltip-cta {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,.55);
    margin-top: 2px;
}
