/* Styles for PictureShowDialog and OpenSeadragon Peak Overlay */

.peak-label {
    pointer-events: auto; /* Enable hover and touch/click */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.peak-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e53935;
    box-shadow: 0 0 2px white;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    cursor: pointer;
    position: relative;
}

/* Touch hit-area expansion without enlarging the visible 8px dot */
.peak-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: transparent;
    pointer-events: auto;
}

.peak-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(20, 20, 20, 0.92);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100;
    cursor: default;
}

/* Tooltip arrow pointing down towards the marker */
.peak-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(20, 20, 20, 0.92) transparent transparent transparent;
}

/* Desktop hover or mobile/click active state */
.peak-label:hover .peak-tooltip,
.peak-tooltip.peak-tooltip-visible {
    opacity: 1;
    visibility: visible;
}

.peak-label.peak-active .peak-marker,
.peak-label:hover .peak-marker {
    transform: scale(1.35);
    box-shadow: 0 0 4px 1px white, 0 0 8px rgba(255, 152, 0, 0.8);
}
