/* Image Upload Styles */
.image-upload-container {
    position: relative;
}

.image-preview-area {
    min-height: 120px;
    border: 2px dashed #e1e1e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcfcfc;
    transition: all 0.2s;
}

.image-preview-area.multiple {
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.image-upload-container:hover .image-preview-area {
    border-color: #ff6f0f;
    background: #fff5f0;
}

.upload-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #868e96;
    font-size: 12px;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: #f8f9fa;
    flex-shrink: 0;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e1e1e1;
    flex-shrink: 0;
    background: white;
    cursor: -webkit-grab !important;
    cursor: grab !important;
    -webkit-user-select: none;
    user-select: none;
}

.preview-item:active {
    cursor: -webkit-grabbing !important;
    cursor: grabbing !important;
}

.preview-item.dragging {
    opacity: 0.5;
    cursor: -webkit-grabbing !important;
    cursor: grabbing !important;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 111, 15, 0.9);
    color: white;
    font-size: 11px;
    text-align: center;
    padding: 2px 0;
    font-weight: 600;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #ff6f0f;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 9999;
}

.submit-upload-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #ff6f0f;
    animation: spin 0.9s ease-in-out infinite;
}

.submit-upload-text {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

/* Uploading state: same as Review/Business gallery */
.preview-item.uploading {
    opacity: 0.9;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.preview-item .spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.preview-item .spinner-overlay .spinner {
    flex-shrink: 0;
}

.preview-item .spinner-overlay .uploading-text {
    font-size: 11px;
    color: #868e96;
    font-weight: 500;
}

/* Hide camera button in PC mode */
@media (min-width: 767px) {
    .camera-only {
        display: none !important;
    }
}