/* ================================================================
   Rova Marketplace — Main Stylesheet
   ================================================================ */
:root {
  --rova-green: #16a34a;
  --rova-green-dark: #15803d;
  --rova-green-light: #dcfce7;
  --rova-earth: #ca8a04;
  --rova-shadow: 0 2px 16px rgba(0,0,0,0.07);
  --rova-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --rova-radius: 1rem;
  --rova-radius-sm: 0.75rem;
  --transition: all 0.2s ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.5; color: #1f2937; background: #f5f5f5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--rova-green); }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: #111827; }
.trust-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-size: 0.65rem; font-weight: 700; white-space: nowrap; }
.trust-badge.trusted { background: linear-gradient(135deg,#fef9c3,#fef08a); color: #713f12; border: 1px solid #facc15; }
.trust-badge.verified { background: linear-gradient(135deg,#dcfce7,#bbf7d0); color: #14532d; border: 1px solid #4ade80; }
.trust-badge.basic { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.badge-type { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.badge-type.sale { background: rgba(220,38,38,0.85); color: white; }
.badge-type.rent { background: rgba(37,99,235,0.85); color: white; }
.badge-country { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; background: rgba(255,255,255,0.85); color: #1f2937; }
.badge-featured { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; background: rgba(234,179,8,0.9); color: #1f2937; }
.property-card { background: white; border-radius: var(--rova-radius); overflow: hidden; box-shadow: var(--rova-shadow); transition: var(--transition); cursor: pointer; border: 1px solid #f1f5f9; }
.property-card:hover { transform: translateY(-4px); box-shadow: var(--rova-shadow-lg); }
.property-card .card-image { position: relative; height: 200px; overflow: hidden; background: #f1f5f9; }
.property-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .card-image img { transform: scale(1.05); }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: var(--rova-green); color: white; border-radius: var(--rova-radius-sm); font-weight: 600; font-size: 0.875rem; transition: var(--transition); border: none; cursor: pointer; text-decoration: none; }
.btn-primary:hover { background: var(--rova-green-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,163,74,0.35); }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: white; color: var(--rova-green); border-radius: var(--rova-radius-sm); font-weight: 600; font-size: 0.875rem; transition: var(--transition); border: 2px solid var(--rova-green); cursor: pointer; text-decoration: none; }
.btn-secondary:hover { background: var(--rova-green-light); }
.btn-danger { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: #dc2626; color: white; border-radius: var(--rova-radius-sm); font-weight: 600; font-size: 0.875rem; transition: var(--transition); border: none; cursor: pointer; }
.btn-danger:hover { background: #b91c1c; }
.form-input { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #e5e7eb; border-radius: var(--rova-radius-sm); font-size: 0.875rem; color: #374151; background: white; transition: var(--transition); outline: none; }
.form-input:focus { border-color: var(--rova-green); box-shadow: 0 0 0 3px rgba(22,163,74,0.1); }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: #4b5563; margin-bottom: 0.35rem; }
.card { background: white; border-radius: var(--rova-radius); box-shadow: var(--rova-shadow); overflow: hidden; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid #f1f5f9; font-weight: 700; font-size: 0.95rem; color: #1f2937; display: flex; align-items: center; gap: 0.5rem; }
.card-body { padding: 1.5rem; }
nav { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; background: #1e293b; color: white; border-radius: var(--rova-radius-sm); font-size: 0.875rem; font-weight: 500; box-shadow: var(--rova-shadow-lg); animation: toastIn 0.25s ease; min-width: 260px; max-width: 400px; }
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.warning { background: #d97706; }
.toast.info { background: #2563eb; }
@keyframes toastIn { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(80px); } }
.skeleton { background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: 0.5rem; }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid #e5e7eb; border-radius: 0 0 0.75rem 0.75rem; box-shadow: var(--rova-shadow-lg); z-index: 50; max-height: 200px; overflow-y: auto; }
.autocomplete-item { padding: 0.6rem 1rem; font-size: 0.875rem; cursor: pointer; transition: background 0.1s; display: flex; align-items: center; gap: 0.5rem; }
.autocomplete-item:hover { background: #f0fdf4; color: var(--rova-green); }
.gallery-thumbs { display: flex; gap: 0.5rem; padding: 0.75rem; overflow-x: auto; }
.gallery-thumb { flex-shrink: 0; width: 80px; height: 60px; object-fit: cover; border-radius: 0.5rem; cursor: pointer; opacity: 0.7; transition: var(--transition); border: 2px solid transparent; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--rova-green); }
.stat-number { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { text-align: left; padding: 0.75rem 1rem; background: #f8fafc; color: #6b7280; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #e5e7eb; }
.data-table td { padding: 0.875rem 1rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #374151; }
.data-table tr:hover td { background: #f0fdf4; }
.data-table tr:last-child td { border-bottom: none; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: capitalize; }
.status-pill.active { background: #dcfce7; color: #166534; }
.status-pill.pending { background: #fef9c3; color: #713f12; }
.status-pill.sold { background: #e0e7ff; color: #3730a3; }
.status-pill.suspended { background: #fee2e2; color: #991b1b; }
.status-pill.open { background: #fee2e2; color: #991b1b; }
.status-pill.resolved { background: #dcfce7; color: #166534; }
.status-pill.approved { background: #dcfce7; color: #166534; }
.status-pill.rejected { background: #fee2e2; color: #991b1b; }
.dash-sidebar { width: 240px; flex-shrink: 0; }
.dash-nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--rova-radius-sm); font-size: 0.875rem; color: #4b5563; transition: var(--transition); cursor: pointer; }
.dash-nav-item:hover, .dash-nav-item.active { background: #f0fdf4; color: var(--rova-green); font-weight: 600; }
.dash-nav-item .icon { width: 32px; height: 32px; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; background: #f1f5f9; font-size: 0.875rem; }
.dash-nav-item.active .icon { background: var(--rova-green-light); color: var(--rova-green); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: #374151; border: 1px solid #e5e7eb; background: white; transition: var(--transition); cursor: pointer; text-decoration: none; }
.page-btn:hover { border-color: var(--rova-green); color: var(--rova-green); }
.page-btn.active { background: var(--rova-green); color: white; border-color: var(--rova-green); }
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fav-btn { transition: var(--transition); }
.fav-btn.active { color: #ef4444; }
.whatsapp-float { position: fixed; bottom: 1.5rem; left: 1.5rem; width: 52px; height: 52px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 100; transition: var(--transition); text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); }
.map-placeholder { width: 100%; height: 280px; border-radius: var(--rova-radius); background: linear-gradient(135deg,#dcfce7,#d1fae5); display: flex; align-items: center; justify-content: center; border: 2px dashed #86efac; color: #16a34a; font-size: 0.875rem; font-weight: 600; flex-direction: column; gap: 0.5rem; }
.alert { padding: 0.875rem 1rem; border-radius: var(--rova-radius-sm); font-size: 0.875rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.alert.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert.warning { background: #fffbeb; color: #713f12; border: 1px solid #fde68a; }
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert.info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
@media (max-width: 768px) { .dash-sidebar { width: 100%; } .stat-number { font-size: 1.5rem; } }
@media print { nav, footer, .whatsapp-float, .toast-container { display: none !important; } }
.fade-in { animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
*:focus-visible { outline: 2px solid var(--rova-green); outline-offset: 2px; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
