/* ============================================
   CSS Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --success-color: #10b981;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* ============================================
   Login Page Styles
   ============================================ */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   Form Styles
   ============================================ */
.login-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--surface);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

/* ============================================
   Button Styles
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-hover);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
    margin-top: 16px;
}

/* ============================================
   Demo Credentials
   ============================================ */
.demo-credentials {
    margin-top: 30px;
    padding: 20px;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.demo-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.demo-info {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

.flash-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

/* ============================================
   Header Styles
   ============================================ */
.main-header {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.main-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.welcome-text strong {
    color: var(--text-primary);
}

/* ============================================
   Properties Grid
   ============================================ */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.property-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.property-address {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-address svg {
    flex-shrink: 0;
}

.property-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.property-details {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-item svg {
    flex-shrink: 0;
}

.property-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 18px;
}

/* ============================================
   Mobile Responsive Styles
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .login-card {
        padding: 30px 24px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .main-header h1 {
        font-size: 24px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-content {
        padding: 20px;
    }
    
    .property-title {
        font-size: 18px;
    }
    
    .property-price {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px 20px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
    
    .form-group input {
        padding: 10px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .property-details {
        gap: 12px;
    }
    
    .detail-item {
        font-size: 13px;
    }
}

/* ============================================
   Tablet Styles
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus-visible,
.form-group input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   Property Detail Page Styles
   ============================================ */
.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 8px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-color);
}

.property-detail-container {
    margin-top: 20px;
}

.property-main-image {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.property-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.property-info-card,
.property-description-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.property-info-card h2,
.property-description-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.price-highlight {
    color: var(--primary-color);
    font-size: 18px;
}

.property-description-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.ai-enhanced-section {
    margin-top: 20px;
    padding: 16px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.ai-enhanced-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* ============================================
   360 Tour Section Styles
   ============================================ */
.tour-section {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.tour-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.panorama-viewer {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
    position: relative;
}

.tour-controls {
    margin-bottom: 24px;
    text-align: center;
}

.tour-highlights,
.tour-notes {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.tour-highlights h3,
.tour-notes h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tour-highlights ul {
    list-style: none;
    padding: 0;
}

.tour-highlights li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.tour-highlights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.tour-notes p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.no-tour-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 8px;
    color: var(--text-secondary);
}

.no-tour-message p {
    margin-bottom: 20px;
    font-size: 16px;
}

.detected-objects-section,
.detected-objects-display {
    margin-top: 24px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.detected-objects-section h3,
.detected-objects-display h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.objects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.object-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.object-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Video Analysis Results Styles */
.video-analysis-results {
    margin-top: 20px;
}

.analysis-summary {
    background: #d1fae5;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid var(--success-color);
}

.items-with-photos {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.detected-item-card {
    background: var(--surface);
    padding: 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.detected-item-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.detection-count {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-secondary);
}

.item-photos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.item-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.item-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Clean Text List Styles */
.clean-object-list {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.text-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.object-list-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.object-list-main {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.object-count {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.object-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.object-color {
    color: var(--text-secondary);
    font-size: 14px;
    font-style: italic;
}

.item-color-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.object-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.object-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.object-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Admin Tour Panel Styles
   ============================================ */
.admin-tour-container {
    margin-top: 20px;
}

.admin-panel {
    display: grid;
    gap: 30px;
}

.ai-camera-section {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.ai-camera-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.camera-container {
    margin-top: 20px;
}

.camera-placeholder {
    width: 100%;
    height: 300px;
    background: #f8fafc;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.camera-placeholder svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

#camera-preview {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #000;
}

.camera-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.recorded-media {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.recorded-media img,
.recorded-media video {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.tour-setup-form {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.tour-setup-form h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.tour-setup-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
    background: var(--surface);
    color: var(--text-primary);
}

.tour-setup-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tour-setup-form small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.tour-setup-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.tour-setup-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tour-points-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.tour-points-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

#tour-points-list {
    margin-bottom: 16px;
}

.tour-point-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: grid;
    gap: 12px;
}

.tour-point-item .point-name {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.tour-point-item .point-description {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
}

.btn-remove-point {
    padding: 6px 12px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove-point:hover {
    background: #dc2626;
}

.ai-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.ai-actions h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.ai-status-active {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.ai-status-inactive {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.ai-status-active .status-indicator {
    background: var(--success-color);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.ai-status-inactive .status-indicator {
    background: #f59e0b;
}

.ai-actions .btn {
    margin-right: 12px;
    margin-bottom: 12px;
}

.ai-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-results {
    margin-top: 20px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.ai-result h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.ai-result h4:first-child {
    margin-top: 0;
}

.ai-result p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.ai-result ul {
    list-style: none;
    padding: 0;
}

.ai-result li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.ai-result li:before {
    content: "✨";
    position: absolute;
    left: 0;
}

/* Real-time AI Recognition Status */
.realtime-ai-status {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    animation: pulse 2s ease-in-out infinite;
}

.realtime-ai-status strong {
    color: #1e40af;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.realtime-ai-status #realtime-recognized {
    color: #1e293b;
    font-size: 14px;
    line-height: 1.6;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

.video-inspection-info {
    background: #f0f9ff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: #1e293b;
}

.video-inspection-info strong {
    color: #1e40af;
}

/* Recognition Details Section */
.recognition-details-section {
    margin-top: 24px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
}

.recognition-details-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recognition-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.recognition-controls .btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.recognition-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.recognition-details-content {
    margin-top: 16px;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.recognition-log {
    max-height: 600px;
    overflow-y: auto;
    padding: 8px;
}

.recognition-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.object-summary-card {
    background: #f0f9ff;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.object-summary-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.object-counts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.object-count-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.object-count-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.object-count-item .object-name {
    font-weight: 500;
    color: var(--text-primary);
}

.object-count-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.recognition-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recognition-events h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.recognition-event {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #e2e8f0;
    transition: var(--transition);
}

.recognition-event.has-objects {
    border-left-color: var(--success-color);
    background: #f0fdf4;
}

.recognition-event.no-objects {
    border-left-color: #cbd5e1;
    opacity: 0.7;
}

.event-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.event-time {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.event-ago {
    font-size: 12px;
    color: var(--text-secondary);
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.event-frame {
    font-size: 12px;
    color: var(--text-secondary);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.event-objects {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.event-thumbnail {
    flex-shrink: 0;
}

.frame-thumbnail {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: var(--transition);
}

.frame-thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.event-objects-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-object-tag {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.event-empty {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 14px;
    padding: 8px;
}

.event-error {
    color: var(--error-color);
    font-size: 14px;
    padding: 8px;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 3px solid var(--error-color);
}

/* Scrollbar styling for recognition log */
.recognition-log::-webkit-scrollbar {
    width: 8px;
}

.recognition-log::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.recognition-log::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.recognition-log::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 768px) {
    .recognition-summary {
        grid-template-columns: 1fr;
    }
    
    .object-counts-grid {
        grid-template-columns: 1fr;
    }
    
    .event-objects {
        flex-direction: column;
    }
    
    .frame-thumbnail {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .recognition-controls {
        flex-direction: column;
    }
    
    .recognition-controls .btn-small {
        width: 100%;
    }
}

.form-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

/* ============================================
   Mobile Responsive - New Components
   ============================================ */
@media (max-width: 768px) {
    .property-main-image {
        height: 250px;
    }
    
    .property-info-grid {
        grid-template-columns: 1fr;
    }
    
    .panorama-viewer {
        height: 300px;
    }
    
    .camera-placeholder {
        height: 200px;
    }
    
    .camera-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .camera-controls .btn {
        width: 100%;
        margin: 0;
    }
    
    #flip-camera {
        background: #64748b;
    }
    
    #flip-camera:hover {
        background: #475569;
    }
    
    .tour-point-item {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .ai-actions .btn {
        width: 100%;
        margin-right: 0;
    }
}

