
/* de rode hotspot */
.hotspot {
    position: relative;
    display: inline-block;
    width: 42px;      /* ← BELANGRIJK */
    height: 22px;     /* ← BELANGRIJK */
    z-index: 50;

    background: rgba(255, 0, 0, 0.0);

    color: white;
    font-size: 12px;
    font-weight: bold;
    font-family: "Open Sans", sans-serif;

    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: 6px solid blue;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

#coord-display {
    pointer-events: none;
}
.hotspot.show-tooltip::after {

    opacity: 1;
    pointer-events: none;
}

/* De tooltip boven de rode hotspot */
.hotspot::after {
    content: attr(data-title); 
    position: absolute;
    top: -30px;
    left: 0%;
    transform: translateX(-10px);
    background: rgba(0,0,0,0.8);
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 110;
}

/* Desktop hover */
.hotspot:hover::after {
    opacity: 1;
}

/* Mobiel tap */
.hotspot.show-tooltip::after {
    opacity: 1;
}

/* De rode hotspot voor desktop */
@media (min-width: 768px) {
    .hotspot {
        width: 42px;
        height: 22px;
    }
}




