:root {
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --brand-soft: #eff4ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, .06);
  --shadow-hover: 0 10px 30px rgba(37, 99, 235, .15);
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  margin-bottom: 60px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Navbar ---------- */
.navbar.app-nav {
  background: #fff !important;
  box-shadow: 0 1px 0 var(--line);
  padding-top: .6rem;
  padding-bottom: .6rem;
}

.navbar.app-nav .navbar-brand {
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.navbar.app-nav .nav-link {
  color: var(--ink) !important;
  font-weight: 500;
  border-radius: 8px;
  padding: .4rem .75rem !important;
}

.navbar.app-nav .nav-link:hover {
  background: var(--brand-soft);
  color: var(--brand) !important;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: .5rem 1.1rem;
}

.btn-primary, .btn-success {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover, .btn-success:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-sm { padding: .3rem .7rem; border-radius: 8px; }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}

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

.property-card .card-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--brand) 0%, #60a5fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--brand) 55%, #3b82f6 100%);
  color: #fff;
  border-radius: 20px;
  padding: 3.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.hero h1 { font-weight: 800; }
.hero .lead { opacity: .92; }

/* ---------- Tables ---------- */
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-card .table { margin-bottom: 0; }

.table-card .table thead th {
  background: #f8fafc;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 1px solid var(--line);
}

.table-card .table td, .table-card .table th {
  padding: .85rem 1rem;
  vertical-align: middle;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 560px;
}

.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--line);
  padding: .6rem .8rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15);
}

.form-label { font-weight: 600; font-size: .9rem; }

/* ---------- Misc ---------- */
.page-title { font-weight: 700; margin-bottom: .25rem; }
.page-subtitle { color: var(--muted); margin-bottom: 1.5rem; }

.badge-soft {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  padding: .35rem .7rem;
  border-radius: 999px;
}

.price-tag { color: var(--brand); font-weight: 700; }

footer.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
