/* Navigate Image Hotspot Stylesheet */

.nih-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    line-height: 0;
}

.nih-image {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Pin Base */
.nih-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    line-height: 1;
}

.nih-pin-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nih-dot {
	width: 10px;
    height: 10px;
    background-color: rgba(52, 103, 246, 0.99) !important;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(52, 103, 246, 0.99) !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
    z-index: 2;
}

.nih-pulse {
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: #42e66f;
    border-radius: 50%;
    animation: nih-pulse-anim 2s infinite ease-out;
    z-index: 1;
}

@keyframes nih-pulse-anim {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.nih-pin:hover .nih-dot {
    transform: scale(1.3);
    background-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

/* Tooltip Styling */
.nih-tooltip {
    position: absolute;
    width: 200px;
    background-color: #161616;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    z-index: 100;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-align: left;
}

.nih-tooltip-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.nih-tooltip-desc {
    margin: 0;
    font-size: 12px;
    color: #a0a0a0;
    line-height: 1.4;
    font-weight: 400;
}

/* Tooltip Positions */
.nih-tooltip-top {
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -10px) scale(0.95);
    margin-bottom: 12px;
}

.nih-tooltip-bottom {
    top: 100%;
    left: 50%;
    transform: translate(-50%, 10px) scale(0.95);
    margin-top: 12px;
}

.nih-tooltip-left {
    right: 100%;
    top: 50%;
    transform: translate(-10px, -50%) scale(0.95);
    margin-right: 12px;
}

.nih-tooltip-right {
    left: 100%;
    top: 50%;
    transform: translate(10px, -50%) scale(0.95);
    margin-left: 12px;
}

/* Active Hover State */
.nih-pin:hover .nih-tooltip {
    opacity: 1;
    visibility: visible;
}

.nih-pin:hover .nih-tooltip-top {
    transform: translate(-50%, 0) scale(1);
}

.nih-pin:hover .nih-tooltip-bottom {
    transform: translate(-50%, 0) scale(1);
}

.nih-pin:hover .nih-tooltip-left {
    transform: translate(0, -50%) scale(1);
}

.nih-pin:hover .nih-tooltip-right {
    transform: translate(0, -50%) scale(1);
}

/* Responsive Touch Devices Adjustment */
@media (max-width: 768px) {
    .nih-tooltip {
        width: 170px;
        padding: 10px 14px;
    }
    .nih-tooltip-title {
        font-size: 13px;
    }
    .nih-tooltip-desc {
        font-size: 11px;
    }
}
