/* RentVerified - Shared Styles */
:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --primary-light: #ebf5ff;
  --accent: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 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);
  --radius: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.nav-logo span { color: var(--dark); }

.nav-logo svg { width: 32px; height: 32px; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--gray-700); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }

.nav-cta { display: flex; gap: 0.75rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); color: white; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; text-decoration: none; }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 10px; }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-verified { background: #d1fae5; color: #065f46; }
.badge-available { background: #dbeafe; color: #1e40af; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-rented { background: var(--gray-200); color: var(--gray-600); }

/* ── CARDS ── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body { padding: 1.5rem; }

/* ── SECTION ── */
.section { padding: 5rem 2rem; }
.section-sm { padding: 3rem 2rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--gray-600);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color 0.15s;
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 3rem 1rem; }
  .section-title { font-size: 1.6rem; }
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 3rem 2rem 2rem;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}
footer h4 { color: white; font-size: 0.9rem; margin-bottom: 1rem; }
footer a { color: var(--gray-400); font-size: 0.875rem; display: block; margin-bottom: 0.5rem; }
footer a:hover { color: white; text-decoration: none; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-700);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── CHAT WIDGET ── */
#chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform 0.2s;
}
#chat-bubble:hover { transform: scale(1.08); }
#chat-bubble svg { width: 26px; height: 26px; color: white; }

#chat-window {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 360px;
  height: 500px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

#chat-window.open { display: flex; }

.chat-header {
  background: var(--primary);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.chat-title { font-weight: 700; font-size: 0.95rem; }
.chat-status { font-size: 0.75rem; opacity: 0.85; }
.chat-close { cursor: pointer; opacity: 0.8; }
.chat-close:hover { opacity: 1; }

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg {
  max-width: 82%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.chat-msg.ai {
  background: var(--gray-100);
  color: var(--dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 0.5rem;
}
.chat-input-area input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.875rem;
}
.chat-input-area input:focus { outline: none; border-color: var(--primary); }
.chat-send {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── ALERTS ── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.alert-info { background: #eff6ff; color: #1e40af; border-left: 4px solid var(--primary); }
.alert-success { background: #f0fdf4; color: #166534; border-left: 4px solid var(--success); }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid var(--warning); }

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-zone svg { color: var(--gray-400); margin-bottom: 0.5rem; }

/* ── TABS ── */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 2rem;
}
.tab {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  font-size: 0.9rem;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── STAT CARDS ── */
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.stat-card.green { border-left-color: var(--success); }
.stat-card.yellow { border-left-color: var(--warning); }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--dark); }
.stat-card .stat-label { color: var(--gray-600); font-size: 0.85rem; margin-top: 2px; }

/* ── PROPERTY CARD ── */
.property-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.property-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}
.property-info { padding: 1.25rem; }
.property-price { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.property-address { color: var(--gray-600); font-size: 0.9rem; margin-top: 2px; }
.property-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.property-meta span { display: flex; align-items: center; gap: 4px; }

/* ── PRICING TABLE ── */
.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  border: 2px solid var(--gray-200);
  transition: border-color 0.2s;
}
.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
}
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--dark); }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--gray-600); }
.pricing-features { list-style: none; margin: 1.5rem 0; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.pricing-features li svg { color: var(--success); flex-shrink: 0; }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  background: var(--gray-100);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--gray-100); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-100); }

/* ── MISC ── */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-gray { color: var(--gray-600); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.fw-700 { font-weight: 700; }
.divider { height: 1px; background: var(--gray-200); margin: 1.5rem 0; }
