/* ── Editor Link-Hotspot ───────────────────────────────────────────────── */

.marzipano-tool__hotspotTooltip {
    display: none;
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 12px 10px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    margin-top: 6px;
}

.marzipano-tool__linkHotspotMain:hover .marzipano-tool__hotspotTooltip {
    display: block;
}

.marzipano-tool__linkHotspot {
    position: relative;
    display: none;
    width: 48px;
    height: 48px;
}

.marzipano-tool__linkHotspotMain {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 0;
    display: block;
    width: 48px;
    height: 48px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.marzipano-tool__linkHotspotMain:active {
    cursor: grabbing !important;
}

.marzipano-tool__linkHotspotIcon {
    width: 60px;
    height: 60px;
    display: block;
    pointer-events: none;
}

/* ── Controls (edit / delete / rotate) ─────────────────────────────────── */

.marzipano-tool__linkHotspotControls {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    margin-left: 5px;
    gap: 5px;
    padding: 4px 4px;
    border-radius: 4px;
    white-space: nowrap;
}

.marzipano-tool__linkHotspot.is-hovered .marzipano-tool__linkHotspotControls {
    display: flex;
}

.marzipano-tool__linkHotspot.is-selected .marzipano-tool__linkHotspotControls {
    display: flex;
}

/* ── Scene-picker editor panel ─────────────────────────────────────────── */

.marzipano-tool__linkHotspotEditor {
    display: none;
    position: absolute;
    top: calc(100% + 34px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    max-height: 320px;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 0;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
}

.marzipano-tool__linkHotspot.is-selected.is-editing .marzipano-tool__linkHotspotEditor {
    display: flex;
}

.marzipano-tool__linkHotspotEditorTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 6px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    background: rgb(58, 58, 58);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
}

.marzipano-tool__linkHotspotEditorClose {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 0;
}

.marzipano-tool__linkHotspotEditorClose:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.marzipano-tool__linkHotspotSceneItem {
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
    text-align: left;
    padding: 0 10px;
    border: none;
    border-bottom: 1px solid rgb(102, 102, 102);
    border-radius: 0;
    background: rgb(39, 39, 39);
    color: #e0e0e0;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    outline: none;
}

.marzipano-tool__linkHotspotSceneItem:last-child {
    border-bottom: none;
}

.marzipano-tool__linkHotspotSceneItem:focus,
.marzipano-tool__linkHotspotSceneItem:focus-visible {
    outline: none;
    box-shadow: none;
}

.marzipano-tool__linkHotspotSceneItem:hover {
    background: rgb(55, 55, 55);
}

.marzipano-tool__linkHotspotSceneItem.is-active {
    background: #f26522;
    position: relative;
    z-index: 1;
    margin-top: -1px;
    border-bottom-color: transparent;
    color: #ffffff;
    font-weight: 600;
}

/* ── Action buttons ────────────────────────────────────────────────────── */

.marzipano-tool__linkHotspotAction {
    width: 24px;
    height: 24px;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marzipano-tool__linkHotspotAction:hover {
    background: rgba(0, 0, 0, 0.7);
}

.marzipano-tool__linkHotspotAction_icon {
    width: 16px;
    height: 16px;
}

