:root {
    --bg: #f0f2f5;
    --card: #ffffff;
    --accent: #2563eb;
    --diff: #fef2f2;
    --diff-text: #dc2626;
}

body { font-family: system-ui, sans-serif; background: var(--bg); padding: 20px; }
.container { max-width: 1200px; margin: 0 auto; }

/* Drag and Drop Zone */
#drop-zone {
    border: 3px dashed #cbd5e1;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: white;
    transition: all 0.3s;
    margin-bottom: 20px;
}
#drop-zone.dragover { border-color: var(--accent); background: #eff6ff; }

.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* One-Card Design */
.photo-card {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.preview-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 15px;
}

.section-title { font-weight: bold; font-size: 0.8rem; text-transform: uppercase; color: #64748b; margin-top: 15px; border-bottom: 1px solid #f1f5f9; }

.data-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 4px 0; }
.data-label { color: #64748b; }
.data-value { font-weight: 500; text-align: right; }

/* Highlight for comparison */
.highlight-diff { background: var(--diff); color: var(--diff-text); border-radius: 4px; }

.btn-primary { background: var(--accent); color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; }
.btn-secondary { background: #64748b; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; margin-left: 10px; }
.hidden { display: none; }

/* Tab Navigation Styling */
.card-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Raw JSON View Styling */
.raw-json {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.75rem;
    background: #1e293b;
    color: #f8fafc;
    width: auto;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    max-width: 520px;
    max-height: 400px;
}

.hidden { display: none !important; }

#comparison-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

/* 1 Photo: Centered and sized comfortably */
.single-view {
    grid-template-columns: minmax(300px, 600px);
    justify-content: center;
}

/* 2 Photos: Side by Side */
.dual-view {
    grid-template-columns: 1fr 1fr;
}

/* Map Button Colors */
.map-links {
    display: flex !important;
    gap: 10px !important;
    margin-top: 15px !important;
}
.map-btn {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    color: white !important;
    text-decoration: none;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
}
.gmaps { background-color: #4285F4; }
.osm { background-color: #7eb61a; }

/* Dynamic Grid */
#comparison-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

/* When only one photo is present */
.single-view {
    grid-template-columns: minmax(300px, 600px); /* Keeps it from getting too wide */
    justify-content: center; /* Centers the single card */
}

/* When two photos are present */
.dual-view {
    grid-template-columns: 1fr 1fr;
}

/* Mobile responsive fallback */
@media (max-width: 768px) {
    .dual-view {
        grid-template-columns: 1fr;
    }
}

.non-image-placeholder {
    width: 100%;
    height: 200px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #475569;
    text-align: center;
    line-height: 1.5;
}

.no-data {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 10px;
    font-style: italic;
}