.vm360-viewer-wrapper {
    width: 100%;
    position: relative;
}

.vm360-viewer-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    cursor: crosshair;
    user-select: none;
    line-height: 0;
}

/* Remove cursor in single screen or disabled rotation mode */
[data-single-screen="1"] .vm360-viewer-container,
[data-disable-rotation="1"] .vm360-viewer-container {
    cursor: default;
}

@media (max-width: 768px) {
    .vm360-viewer-container {
        cursor: grab;
    }
    
    /* Remove cursor in single screen mode on mobile too */
    [data-single-screen="1"] .vm360-viewer-container {
        cursor: default;
    }

    .vm360-viewer-container:active {
        cursor: grabbing;
    }
    
    [data-single-screen="1"] .vm360-viewer-container:active {
        cursor: default;
    }
}

/* Image layers */
.vm360-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: opacity;
}

.vm360-image-layer:first-child {
    position: relative;
    height: auto;
}

.vm360-image-layer.active {
    opacity: 1;
    pointer-events: auto;
}

.vm360-image-layer img {
    width: 100%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.vm360-image-layer:first-child img {
    height: auto;
}

.vm360-image-layer:not(:first-child) img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Video overlay */
.vm360-video-overlay {
    position: absolute !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.vm360-video-rotator {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform-style: preserve-3d !important;
    -webkit-transform-style: preserve-3d !important;
}

.vm360-crop-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.vm360-video-iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    pointer-events: none !important;
}

/* Hover indicator */
.vm360-hover-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    pointer-events: none;
    animation: vm360FadeInOut 2s ease-in-out infinite;
    z-index: 10;
    transition: opacity 0.3s ease;
    direction: rtl;
}

.vm360-hover-text-mobile {
    display: none;
}

@media (max-width: 768px) {
    .vm360-hover-text-desktop {
        display: none;
    }

    .vm360-hover-text-mobile {
        display: inline;
    }
}

@keyframes vm360FadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Navigation dots */
.vm360-nav-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.vm360-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.vm360-nav-dot:hover {
    transform: scale(1.2);
}

.vm360-nav-dot.active {
    background: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
    .vm360-viewer-container {
        border-radius: 0;
    }

    .vm360-nav-dots {
        bottom: 20px;
        padding: 6px 12px;
        gap: 10px;
    }

    .vm360-nav-dot {
        width: 10px;
        height: 10px;
    }
}

/* Loading state */
.vm360-viewer-wrapper.loading .vm360-viewer-container {
    background: #f5f5f5;
}

.vm360-viewer-wrapper.loading .vm360-hover-indicator::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vm360Spin 0.8s linear infinite;
}

@keyframes vm360Spin {
    to { transform: rotate(360deg); }
}

/* Mobile fix - prevent content from covering the image */
@media (max-width: 768px) {
    .vm360-static-wrapper {
        position: relative;
        z-index: 10 !important;
        margin-bottom: 50px !important;
    }
    
    .vm360-viewer-wrapper {
        position: relative;
        z-index: 10 !important;
        margin-bottom: 50px !important;
    }
}

/* Responsive adjustments for different screen sizes */
@media (min-width: 1400px) {
    .vm360-viewer-container {
        max-width: 900px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .vm360-viewer-container {
        max-width: 800px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .vm360-viewer-container {
        max-width: 700px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .vm360-viewer-container {
        max-width: 600px;
    }
}

@media (max-width: 767px) {
    .vm360-viewer-container {
        max-width: 100%;
        padding: 0 15px;
    }
}
