@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary: #0B2D42;
  --primary-mid: #134560;
  --primary-light: #1A5578;
  --primary-dark: #061E2E;
  --gold: #C9A227;
  --gold-light: #E8C56A;
  --gold-dark: #A6851F;
  --accent: var(--gold);
  --accent-light: var(--gold-light);
  --success: #0D7A4E;
  --success-bg: #E8F5EE;
  --danger: #C0392B;
  --danger-bg: #FDEDED;
  --warning: #B7791F;
  --warning-bg: #FEF6E7;
  --info: #1A6B8A;
  --info-bg: #E8F4FA;
  --bg: #F7F9FC;
  --bg-elevated: #FFFFFF;
  --bg-warm: #FBF9F6;
  --bg-subtle: #EEF2F6;
  --card: #FFFFFF;
  --text: #0F1C2E;
  --text-secondary: #3D4F63;
  --text-muted: #6B7C8F;
  --border: #E2E8F0;
  --border-light: #EEF2F6;
  --shadow-xs: 0 1px 2px rgba(11, 45, 66, 0.04);
  --shadow-sm: 0 2px 8px rgba(11, 45, 66, 0.06);
  --shadow: 0 4px 20px rgba(11, 45, 66, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 45, 66, 0.12);
  --shadow-xl: 0 20px 60px rgba(11, 45, 66, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --sidebar-w: 272px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --banner-h: 38px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

::selection { background: rgba(201, 162, 39, 0.25); color: var(--primary-dark); }

/* ── Demo banner ── */
.demo-banner {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 9px 20px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  position: relative;
  z-index: 200;
}
.demo-banner strong { color: var(--gold-light); font-weight: 700; }
.demo-banner a { color: var(--gold-light); font-weight: 600; }
.demo-banner a:hover { color: #fff; }

/* ── Brand ── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.brand:hover { opacity: 0.92; }
.brand-static { pointer-events: none; }

.brand-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.brand-img-lg {
  height: 64px;
  max-width: 280px;
}
.brand-img-sm {
  height: 36px;
  max-width: 180px;
}

/* Logo on dark backgrounds (sidebar, hero) */
.sidebar .brand,
.demo-hub-hero .brand,
.brand-on-dark {
  display: inline-flex;
}
.sidebar .brand-img,
.demo-hub-hero .brand-img,
.brand-on-dark .brand-img {
  background: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  height: 48px;
  max-width: 200px;
}
.demo-hub-hero .brand-img-lg {
  height: 72px;
  max-width: 260px;
  padding: 12px 18px;
}

/* Legacy icon fallback — hidden when using image logo */
.brand-icon {
  display: none;
}
.brand span, .brand em { color: var(--gold); font-style: normal; font-weight: 800; }
.brand-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── App shell ── */
.app-shell {
  display: flex;
  min-height: calc(100vh - var(--banner-h));
  background: var(--bg);
}

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--primary-dark) 0%, #0A3048 100%);
  color: #fff;
  padding: 24px 0;
  flex-shrink: 0;
  position: sticky;
  top: var(--banner-h);
  height: calc(100vh - var(--banner-h));
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar .brand {
  padding: 0 22px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.sidebar .brand-img {
  margin: 0;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  margin: 2px 0;
}
.sidebar-nav li a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.sidebar-nav li a.active {
  background: linear-gradient(90deg, rgba(201,162,39,0.15) 0%, transparent 100%);
  color: #fff;
  border-left-color: var(--gold);
  font-weight: 600;
}
.sidebar-section {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.38);
  padding: 20px 22px 8px;
  font-weight: 600;
}

.main-content {
  flex: 1;
  padding: 32px 40px;
  overflow-x: hidden;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Public header ── */
.public-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  position: sticky;
  top: var(--banner-h);
  z-index: 100;
  box-shadow: var(--shadow-xs);
}
.public-nav { display: flex; gap: 8px; align-items: center; }
.public-nav a:not(.btn) {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.public-nav a:not(.btn):hover {
  color: var(--primary);
  background: var(--bg-subtle);
}

/* ── Page header ── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.page-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 6px;
  max-width: 520px;
}

/* ── Section titles ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}
.section-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}
.section-header a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.card-header h2, .card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

/* ── Stat cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.stat-card.accent::before { background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); }
.stat-card.success::before { background: linear-gradient(90deg, #0D7A4E, #1A9D68); }
.stat-card.warning::before { background: linear-gradient(90deg, #B7791F, #D4A017); }
.stat-card.danger::before { background: linear-gradient(90deg, #A93226, #E74C3C); }
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 8px 0 4px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-change { font-size: 0.82rem; font-weight: 500; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 45, 66, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary-light) 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11, 45, 66, 0.3);
}
.btn-accent {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
  font-weight: 700;
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.45);
  color: var(--primary-dark);
}
.btn-outline {
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--bg-subtle);
}
.btn-success {
  background: linear-gradient(135deg, #0A6E47, var(--success));
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 122, 78, 0.3);
}
.btn-danger {
  background: linear-gradient(135deg, #A93226, var(--danger));
  color: #fff;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; border-radius: var(--radius-sm); }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--transition);
  background: var(--card);
  color: var(--text);
}
.form-control:hover { border-color: #CBD5E1; }
.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(26, 85, 120, 0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th {
  background: var(--bg-subtle);
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text-secondary);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(11, 45, 66, 0.02); }
td strong { color: var(--text); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-pending { background: var(--warning-bg); color: #92600A; }
.badge-approved, .badge-active, .badge-success { background: var(--success-bg); color: #0A5C3A; }
.badge-rejected, .badge-danger { background: var(--danger-bg); color: #922B21; }
.badge-info { background: var(--info-bg); color: #0E5068; }
.badge-gold { background: #FDF6E3; color: #7D6318; }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
  transition: all var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover { color: var(--primary); background: var(--bg-subtle); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--gold);
  background: transparent;
}
.tab-panel { display: none; animation: fadeUp 0.3s ease; }
.tab-panel.active { display: block; }

/* Hero tabs (dark background) */
.hero-tabs .tabs { border-bottom-color: rgba(255,255,255,0.15); justify-content: center; }
.hero-tabs .tab-btn { color: rgba(255,255,255,0.65); }
.hero-tabs .tab-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.hero-tabs .tab-btn.active { color: #fff; border-bottom-color: var(--gold-light); }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Property cards ── */
.property-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.property-card-img {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.property-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,30,46,0.75) 0%, transparent 50%);
  z-index: 1;
}
.property-card-img.img-residential {
  background: linear-gradient(135deg, #4A6B7C 0%, #2C4A5E 50%, #1A3545 100%);
}
.property-card-img.img-rent {
  background: linear-gradient(135deg, #5B7A8C 0%, #3D5A6E 50%, #2A4555 100%);
}
.property-card-img.img-staycation {
  background: linear-gradient(135deg, #3D7A4A 0%, #2A5C38 50%, #1A4028 100%);
}
.property-card-img.img-villa {
  background: linear-gradient(135deg, #6B5B4A 0%, #4A3D32 50%, #2E2520 100%);
}
.property-card-img.img-farmhouse {
  background: linear-gradient(135deg, #4A7A52 0%, #2E5C38 50%, #1E4028 100%);
}
.property-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.property-card-tag.gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #fff;
}
.property-card-body { padding: 18px 20px 20px; }
.property-card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}
.property-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 6px 0 10px;
  color: var(--text);
  line-height: 1.4;
}
.property-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.property-card-meta span {
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* ── Hero ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, var(--primary-mid) 100%);
  color: #fff;
  padding: 80px 40px 88px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,162,39,0.12) 0%, transparent 60%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(201,162,39,0.06) 0%, transparent 35%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.4), transparent);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero h1 span { color: var(--gold-light); }
.hero .hero-sub {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.6;
}
.search-box {
  background: rgba(255,255,255,0.98);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}
.search-box input, .search-box select {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}
.search-box input:focus, .search-box select:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--primary-light);
}
.search-box .btn { flex-shrink: 0; padding: 14px 28px; }

/* ── Trust strip ── */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 28px 40px;
  background: var(--card);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}
.trust-item { text-align: center; }
.trust-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}
.trust-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(201,162,39,0.15) 0%, transparent 50%);
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin-bottom: 12px;
}
.cta-section p { opacity: 0.88; margin-bottom: 28px; font-size: 1.05rem; }

/* ── Footer ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 40px 28px;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--gold-light); }
.site-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ── Kanban ── */
.kanban { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 16px; }
.kanban-col {
  min-width: 270px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 14px;
  flex: 1;
  border: 1px solid var(--border-light);
}
.kanban-col-header {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--primary-dark);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kanban-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border-light);
  cursor: grab;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  border-left: 3px solid var(--primary-light);
}
.kanban-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}
.kanban-card:active { cursor: grabbing; }
.kanban-card h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.kanban-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.45; }

/* ── Calendar ── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}
.cal-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cal-day {
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1.3;
}
.cal-day small { display: block; font-size: 0.62rem; opacity: 0.85; margin-top: 2px; }
.cal-day:hover:not(.booked):not(.blocked) {
  border-color: var(--primary-light);
  transform: scale(1.05);
}
.cal-day.available { background: var(--success-bg); color: #0A5C3A; }
.cal-day.booked { background: var(--danger-bg); color: #922B21; cursor: not-allowed; opacity: 0.85; }
.cal-day.blocked { background: var(--bg-subtle); color: var(--text-muted); cursor: not-allowed; }
.cal-day.selected {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(11,45,66,0.3);
}
.cal-day.weekend-premium { position: relative; }
.cal-day.weekend-premium::after {
  content: '₹+';
  position: absolute;
  top: 2px; right: 3px;
  font-size: 0.55rem;
  color: var(--gold-dark);
  font-weight: 800;
}

/* ── Map ── */
.map-placeholder {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 30%),
    linear-gradient(135deg, #B8D4C8 0%, #8FBC9E 30%, #6BA37E 60%, #4A8C68 100%);
  border-radius: var(--radius);
  height: 420px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 60px rgba(11,45,66,0.08);
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}
.map-pin {
  position: absolute;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #E74C3C, #C0392B);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform var(--transition);
  z-index: 2;
}
.map-pin:hover { transform: rotate(-45deg) scale(1.15); }
.map-pin.primary { background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.map-pin.gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.map-pin::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.map-radius {
  position: absolute;
  border: 2px dashed var(--primary);
  border-radius: 50%;
  background: rgba(11, 45, 66, 0.06);
  pointer-events: none;
  z-index: 1;
}
.map-overlay {
  position: absolute;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  box-shadow: var(--shadow);
  z-index: 3;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ── Account cards ── */
.account-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.account-card {
  background: var(--card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.account-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.account-card:hover, .account-card.selected {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.account-card.selected::before, .account-card:hover::before { opacity: 1; }
.account-card .icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: var(--bg-subtle);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.account-card h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
}
.account-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* ── Privacy wall ── */
.privacy-wall {
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-warm) 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.privacy-wall .locked {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  background: var(--card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ── AI box ── */
.ai-box {
  background: linear-gradient(135deg, #F0F7FF 0%, #E8F2FC 100%);
  border: 1.5px solid #B8D4F0;
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.ai-box::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(26,85,120,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.ai-box .ai-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.ai-box .ai-label::before {
  content: '✦';
  color: var(--gold);
  font-size: 1rem;
}

/* ── Mobile frame ── */
.mobile-frame {
  width: 390px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 44px;
  border: 10px solid #1C1C1E;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1) inset;
  min-height: 780px;
  position: relative;
}
.mobile-status {
  background: var(--primary-dark);
  color: #fff;
  padding: 14px 24px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.mobile-content { padding: 18px; }
.mobile-nav-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  padding: 12px 0 20px;
  border-radius: 0 0 34px 34px;
}
.mobile-nav-item {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
}
.mobile-nav-item.active { color: var(--primary); }

/* ── Demo hub ── */
.demo-hub-hero {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-mid) 100%);
  color: #fff;
  padding: 56px 40px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.demo-hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(201,162,39,0.2) 0%, transparent 55%);
}
.demo-hub-hero > * { position: relative; z-index: 1; }
.demo-hub-hero .brand { justify-content: center; color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.demo-hub-hero .brand span { color: var(--gold-light); }
.demo-hub-hero h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 20px 0 10px;
  letter-spacing: -0.02em;
}
.demo-hub-hero .subtitle {
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1rem;
}
.demo-hub-hero .btn-accent { margin-top: 8px; }

.demo-hub {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 28px 64px;
}
.demo-section { margin-bottom: 44px; }
.demo-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.demo-section-num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.demo-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}
.demo-section h2 small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}
.demo-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.demo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  color: var(--text);
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.demo-link:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--primary-dark);
}
.demo-link .dl-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--bg-subtle), var(--bg));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}
.demo-link:hover .dl-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  border-color: transparent;
  filter: grayscale(1) brightness(2);
}
.demo-link .dl-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.demo-link .dl-text small {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ── Landmarks ── */
.landmark-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.landmark-item:last-child { border-bottom: none; }
.landmark-icon {
  width: 42px; height: 42px;
  background: var(--bg-subtle);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Checkout ── */
.checkout-summary {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border-light);
}
.checkout-line {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.checkout-line.total {
  font-weight: 800;
  font-size: 1.15rem;
  border-top: 2px solid var(--border);
  margin-top: 10px;
  padding-top: 14px;
  color: var(--primary-dark);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--primary-dark);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  display: none;
  max-width: 380px;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 4px solid var(--gold);
  line-height: 1.45;
}
.toast.show { display: block; animation: toastIn 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes toastIn {
  from { transform: translateX(110%) scale(0.95); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

/* ── Doc preview ── */
.doc-preview {
  background: var(--bg-subtle);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  gap: 6px;
  transition: all var(--transition);
  cursor: pointer;
}
.doc-preview:hover {
  border-color: var(--primary-light);
  background: var(--info-bg);
  color: var(--primary);
}

/* ── Gallery placeholder ── */
.gallery-hero {
  height: 400px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.gallery-hero.img-residential {
  background: linear-gradient(135deg, #4A6B7C 0%, #2C4A5E 50%, #1A3545 100%);
}
.gallery-hero.img-farmhouse {
  background: linear-gradient(135deg, #3D7A4A 0%, #2A5C38 50%, #1A4028 100%);
}
.gallery-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,30,46,0.4) 0%, transparent 40%);
}
.gallery-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ── Spec pills ── */
.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  padding: 20px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
}
.spec-pill {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--border);
}
.spec-pill:last-child { border-right: none; }
.spec-pill strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.spec-pill span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Alert boxes ── */
.alert-box {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
  border: 1px solid;
}
.alert-box.info { background: var(--info-bg); border-color: #B8D4E8; color: #0E5068; }
.alert-box.success { background: var(--success-bg); border-color: #A8DCC4; color: #0A5C3A; }
.alert-box.warning { background: var(--warning-bg); border-color: #F0D9A8; color: #7D6318; }

/* ── Page container ── */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px;
}
.page-container.narrow { max-width: 900px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .grid-2, .grid-3, .grid-4, .form-row, .account-cards { grid-template-columns: 1fr; }
  .main-content, .page-container { padding: 20px; }
  .public-header { padding: 0 20px; }
  .hero { padding: 48px 20px 56px; }
  .search-box { flex-direction: column; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .trust-strip { gap: 24px; }
}

@media (max-width: 600px) {
  .site-footer-inner { grid-template-columns: 1fr; }
  .public-nav a:not(.btn) { display: none; }
}
