/* Info Balloon Styles */
.info-balloon {
    position: absolute;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 250px;
    line-height: 1.4;
}

.info-balloon.show {
    opacity: 1;
    transform: translateY(0);
}

.info-balloon::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #764ba2;
}

.info-balloon.top::before {
    bottom: auto;
    top: -8px;
    border-top: none;
    border-bottom: 8px solid #667eea;
    transform: rotate(180deg);
}

.info-balloon-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: background 0.2s ease;
}

.info-balloon-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Pulse animation for target elements */
@keyframes balloon-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0);
    }
}

.balloon-highlight {
    animation: balloon-pulse 2s ease-in-out 3;
    position: relative;
}
