/* Hotspot Image Widget — hotspot.css */

.hsw-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 16px;
    -webkit-user-select: none;
    user-select: none;
}

.hsw-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 40%;
    pointer-events: none;
    z-index: 1;
}

/* ── Pin ───────────────────────────── */
.hsw-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hsw-pin-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 0 6px rgba(255,255,255,0.08);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}

/* Pulse ring */
.hsw-pin-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.35);
    animation: hsw-pulse 2.2s ease-out infinite;
}

@keyframes hsw-pulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

.hsw-pin:hover .hsw-pin-dot,
.hsw-pin.hsw-active .hsw-pin-dot {
    transform: scale(1.18);
    background: rgba(255,255,255,0.32);
    box-shadow: 0 0 0 8px rgba(255,255,255,0.12);
}

.hsw-pin-label {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 5px rgba(0,0,0,0.85);
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* ── Tooltip ───────────────────────── */
.hsw-tooltip {
    position: absolute;
    background: rgba(10,12,20,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 14px 16px;
    width: 210px;
    z-index: 30;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.hsw-tooltip.hsw-tip-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hsw-tooltip-arrow {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(10,12,20,0.92);
    border-left: 1px solid rgba(255,255,255,0.15);
    border-top: 1px solid rgba(255,255,255,0.15);
    left: 50%;
    margin-left: -5px;
}

.hsw-tooltip-arrow.arrow-above {
    bottom: -5px;
    transform: rotate(45deg);
    border-left: 1px solid rgba(255,255,255,0.15);
    border-top: 1px solid rgba(255,255,255,0.15);
    border-right: none;
    border-bottom: none;
}

.hsw-tooltip-arrow.arrow-below {
    top: -5px;
    transform: rotate(225deg);
    border-left: 1px solid rgba(255,255,255,0.15);
    border-top: 1px solid rgba(255,255,255,0.15);
    border-right: none;
    border-bottom: none;
}

.hsw-tooltip-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.hsw-tooltip-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* ── Mobile responsive ─────────────── */
@media (max-width: 767px) {
    .hsw-wrap {
        height: 320px;
        border-radius: 10px;
    }

    .hsw-pin-dot {
        width: 30px;
        height: 30px;
        font-size: 13px;
        box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
    }

    .hsw-pin-label {
        font-size: 9px;
        margin-top: 5px;
    }

    .hsw-tooltip {
        width: 175px;
        padding: 11px 13px;
    }

    .hsw-tooltip-title {
        font-size: 12px;
    }

    .hsw-tooltip-desc {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hsw-wrap {
        height: 280px;
    }

    .hsw-pin-dot {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .hsw-pin-label {
        display: none;
    }

    .hsw-tooltip {
        width: 155px;
        padding: 10px 12px;
    }
}
