/* Azjur Image Hotspots - Frontend Styles */

.azjur-hotspot-container {
    max-width: 100%;
    margin: 20px 0;
    position: relative;
    padding: 80px 20px;
}

.azjur-hotspot-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    width: 100%;
}

.azjur-hotspot-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.azjur-hotspot-point {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.azjur-hotspot-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: transparent;
    color: #2271b1;
    border: none;
    border-radius: 0;
    font-size: 36px;
    font-weight: bold;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-ring 2s infinite;
}

.azjur-hotspot-point:hover .azjur-hotspot-marker {
    transform: scale(1.15);
    color: #135e96;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 113, 177, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(34, 113, 177, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 113, 177, 0);
    }
}

.azjur-hotspot-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #1d2327;
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 200px;
    max-width: 300px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border: 1px solid #dcdcde;
    z-index: 1000;
    white-space: normal;
    word-wrap: break-word;
}

/* Tooltip positioning variants */
.azjur-hotspot-tooltip.tooltip-left {
    left: 0;
    transform: translateX(0);
}

.azjur-hotspot-tooltip.tooltip-left::before {
    left: 27px;
    transform: translateX(0);
}

.azjur-hotspot-tooltip.tooltip-right {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.azjur-hotspot-tooltip.tooltip-right::before {
    left: auto;
    right: 27px;
    transform: translateX(0);
}

.azjur-hotspot-tooltip.tooltip-bottom {
    bottom: auto;
    top: calc(100% + 15px);
}

.azjur-hotspot-tooltip.tooltip-bottom::before {
    top: auto;
    bottom: 100%;
    border-top: none;
    border-bottom: 10px solid #ffffff;
}

.azjur-hotspot-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
}

.azjur-hotspot-point:hover .azjur-hotspot-tooltip,
.azjur-hotspot-point.hovering .azjur-hotspot-tooltip,
.azjur-hotspot-point.active .azjur-hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.azjur-hotspot-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2327;
}

.azjur-hotspot-content {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #50575e;
}

.azjur-hotspot-link {
    display: inline-block;
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.azjur-hotspot-link:hover {
    color: #333333;
    text-decoration: underline;
}

/* Mobile optimering */
@media (max-width: 768px) {
    .azjur-hotspot-container {
        padding: 60px 15px;
    }
    
    .azjur-hotspot-marker {
        width: 48px;
        height: 48px;
        font-size: 32px;
    }
    
    .azjur-hotspot-tooltip {
        max-width: 250px;
        min-width: 180px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .azjur-hotspot-label {
        font-size: 14px;
    }
    
    .azjur-hotspot-content {
        font-size: 13px;
    }
}

/* Tablet optimering */
@media (min-width: 769px) and (max-width: 1024px) {
    .azjur-hotspot-tooltip {
        max-width: 280px;
    }
}

/* Positionering for hotspots nær kanten */
.azjur-hotspot-point[style*="left: 0%"] .azjur-hotspot-tooltip,
.azjur-hotspot-point[style*="left: 1%"] .azjur-hotspot-tooltip,
.azjur-hotspot-point[style*="left: 2%"] .azjur-hotspot-tooltip {
    left: 0;
    transform: translateX(0);
}

.azjur-hotspot-point[style*="left: 98%"] .azjur-hotspot-tooltip,
.azjur-hotspot-point[style*="left: 99%"] .azjur-hotspot-tooltip,
.azjur-hotspot-point[style*="left: 100%"] .azjur-hotspot-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.azjur-hotspot-point[style*="top: 0%"] .azjur-hotspot-tooltip,
.azjur-hotspot-point[style*="top: 1%"] .azjur-hotspot-tooltip,
.azjur-hotspot-point[style*="top: 2%"] .azjur-hotspot-tooltip {
    bottom: auto;
    top: calc(100% + 15px);
}

.azjur-hotspot-point[style*="top: 0%"] .azjur-hotspot-tooltip::before,
.azjur-hotspot-point[style*="top: 1%"] .azjur-hotspot-tooltip::before,
.azjur-hotspot-point[style*="top: 2%"] .azjur-hotspot-tooltip::before {
    top: auto;
    bottom: 100%;
    border-top: none;
    border-bottom: 10px solid rgba(29, 35, 39, 0.98);
}
