/* hidden until JS initialises */
.uroc-panorama-pending {
    display: none;
}

/* no-JS fallback: horizontally scrollable */
.uroc-panorama-noscript {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: #000;
    -webkit-overflow-scrolling: touch;
}

.uroc-panorama-noscript-img {
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
}

.uroc-panorama-noscript-notice {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 4px;
    white-space: nowrap;
    margin: 0;
    pointer-events: none;
}

.uroc-panorama-block {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #000;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.uroc-panorama-block.uroc-panorama-dragging {
    cursor: grabbing;
}

.uroc-panorama-img {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    display: block;
    max-width: none;
    max-height: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* Scroll hint overlay */
.uroc-panorama-scroll-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.uroc-panorama-scroll-hint.is-visible {
    opacity: 1;
}

/* Reset-to-fit button */
.uroc-panorama-reset {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
}

.uroc-panorama-reset:hover {
    background: rgba(0, 0, 0, 0.75);
}

/* Editor states */
.uroc-panorama-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    color: #888;
    font-size: 14px;
}

.uroc-panorama-editor-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 3px;
    pointer-events: none;
    white-space: nowrap;
}
