.insta360-map-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.insta360-map-viewer {
    width: 100%;
    height: 100%;
    position: relative;
}

.insta360-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 1000;
}

.insta360-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.insta360-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 1000;
    padding: 20px;
    text-align: center;
}

.insta360-product-info {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    z-index: 100;
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.insta360-close-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 101;
    transition: background 0.3s;
}

.insta360-close-info:hover {
    background: rgba(0, 0, 0, 0.8);
}

.insta360-product-content {
    padding: 20px;
}

.insta360-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.insta360-product-name {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.insta360-product-description {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.insta360-product-price {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

/* Product Marker Styles */
.insta360-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.3s, filter 0.3s;
    z-index: 10;
    pointer-events: auto;
}

.insta360-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    filter: brightness(1.2);
}

.insta360-marker svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.insta360-marker-pulse {
    animation: pulse 2s infinite;
}

.insta360-marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    margin-bottom: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.insta360-marker:hover .insta360-marker-tooltip {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .insta360-map-container {
        height: 400px;
    }
    
    .insta360-product-info {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .insta360-product-content {
        padding: 15px;
    }
    
    .insta360-product-image {
        height: 150px;
    }
    
    .insta360-product-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .insta360-map-container {
        height: 300px;
    }
    
    .insta360-product-info {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .insta360-product-content {
        padding: 10px;
    }
    
    .insta360-product-image {
        height: 120px;
    }
}

/* Controls */
.insta360-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 50;
    display: flex;
    gap: 10px;
}

.insta360-control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.insta360-control-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.insta360-control-btn:active {
    transform: scale(0.95);
}
