/* ──────────────────────────────────────────
   RealEstate Pro — Application Styles
   Upgraded Premium Visual Experience
   ──────────────────────────────────────── */

:root {
  /* Real-estate palette (Premium brand style) */
  --primary: #C3991C;            /* Nugget Gold */
  --primary-2: #E2B52B;          /* Light Gold */
  --primary-light: rgba(195, 153, 28, 0.08);
  --accent: #55CD6C;             /* Emerald Green */
  --accent-light: rgba(85, 205, 108, 0.08);

  /* Status badges */
  --status-ongoing: #D97706;     /* Amber */
  --status-completed: #10B981;   /* Emerald */
  --status-upcoming: #3B82F6;    /* Blue */

  /* Land status */
  --land-available: #10B981;
  --land-contract: #D97706;

  /* Gradients */
  --hero-gradient: linear-gradient(135deg, rgba(195,153,28,.85), rgba(27,29,29,.90));
  --card-gradient: linear-gradient(145deg, rgba(195, 153, 28, 0.05), rgba(255, 255, 255, 0.02));

  /* Refinements */
  --radius: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 4px rgba(27,29,29,.02);
  --shadow: 0 8px 24px rgba(27,29,29,.06);
  --shadow-md: 0 12px 32px rgba(27,29,29,.1);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.15);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary-light: rgba(195, 153, 28, 0.18);
  --accent-light: rgba(85, 205, 108, 0.18);
  --surface-3: #222930;
  --border: #2C353F;
}

/* ── Typography & Global Reset ── */
body { 
  background: var(--surface-2); 
  color: var(--text-primary);
  background-image:
    radial-gradient(ellipse at 10% 20%, rgba(195,153,28,.04) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 80%, rgba(85,205,108,.03) 0%, transparent 60%);
}

/* Hide desktop bg gradient when app is themed dark */
[data-theme="dark"] body::before { opacity: .45; }

/* ── Header ── */
.app-header { 
  border-bottom-color: var(--border);
  padding: 0 24px;
}

.logo { 
  display: flex; align-items: center; gap: 10px; 
  font-size: 19px; font-weight: 800; color: var(--text-primary);
  font-family: var(--font);
  letter-spacing: -0.5px;
}
.logo-icon { 
  color: var(--primary); 
  font-size: 20px;
  display: flex;
  align-items: center;
}
.logo span { color: var(--primary); font-weight: 900; }

.header-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  pointer-events: none;
  font-family: var(--font);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.header-back {
  left: 20px; position: absolute; 
  background: var(--surface-3); border: 1px solid var(--border);
  width: 36px; height: 36px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; color: var(--text-secondary);
  transition: all var(--transition);
}
.header-back:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Hero ── */
.hero {
  position: relative; height: 210px; margin: 16px 16px 14px;
  border-radius: var(--radius-lg);
  overflow: hidden; color: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(195,153,28,0.15);
}
.hero::before {
  content: ""; display: block; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(27,29,29,0.2) 0%, rgba(27,29,29,0.9) 100%),
              url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?q=80&w=600&auto=format&fit=crop') center/cover no-repeat;
  filter: saturate(1.1);
  z-index: 1;
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; gap: 8px;
  z-index: 2;
}
.hero h1 { 
  font-size: 24px; 
  font-weight: 800; 
  line-height: 1.1; 
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
}
.hero p { font-size: 13px; opacity: .88; max-width: 90%; font-weight: 300; }
.hero .chip { 
  align-self: flex-start; 
  background: var(--primary); 
  color: #fff; 
  border-color: var(--primary); 
  font-size: 11px;
  padding: 6px 14px;
  margin-top: 4px;
}
.hero .chip:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}

/* ── Search Bar ── */
.search-bar {
  display: flex; gap: 8px; margin: 0 16px 16px;
}
.search-bar input {
  flex: 1; padding: 14px 18px; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-full);
  background: var(--surface); color: var(--text-primary);
  outline: none; transition: all var(--transition);
  font-family: var(--font);
  box-shadow: var(--shadow-sm);
}
.search-bar input:focus { 
  border-color: var(--primary); 
  box-shadow: 0 0 0 3px var(--primary-light), var(--shadow); 
}
.search-bar .icon-btn { 
  width: 46px; height: 46px;
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
}
.search-bar .icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ── Chips / Filters ── */
.chip-group {
  display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto;
  scrollbar-width: none;
}
.chip-group::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 18px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary); white-space: nowrap;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.chip:hover { 
  background: var(--surface-3); 
  color: var(--text-primary);
}
.chip.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 10px var(--primary-light);
}

/* ── Section headers ── */
.section-title { 
  font-size: 18px; 
  font-weight: 800; 
  color: var(--text-primary);
  font-family: var(--font-serif);
  letter-spacing: 0.3px;
}
.section-subtitle { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }

.section-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px 8px;
}
.section-head .view-all { 
  font-size: 12px; 
  font-weight: 600; 
  color: var(--primary); 
  text-decoration: none;
  transition: color var(--transition);
}
.section-head .view-all:hover {
  color: var(--primary-2);
  text-decoration: underline;
}

/* ── Project Cards ── */
.project-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  padding: 0 16px 24px;
}
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  display: flex; flex-direction: column; cursor: pointer;
  position: relative;
}
.project-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-md); 
  border-color: rgba(195,153,28,0.3);
}
.project-img {
  width: 100%; height: 120px; object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-img {
  transform: scale(1.05);
}
.project-body { flex: 1; display: flex; flex-direction: column; padding: 14px; gap: 4px; }
.project-body .project-title { 
  font-size: 14px; 
  font-weight: 700; 
  color: var(--text-primary); 
  line-height: 1.3;
}
.project-body .project-location {
  font-size: 10px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 4px;
}
.project-price { 
  font-size: 14px; 
  font-weight: 800; 
  color: var(--primary); 
  margin-top: auto; 
  letter-spacing: -0.3px;
}
.project-unit { font-size: 10px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 6px; margin-top: 4px; }

.status-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(23, 28, 33, 0.85); color: #fff;
  backdrop-filter: blur(4px);
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.status-badge.ongoing { color: #fff; background: rgba(217, 119, 6, 0.90); }
.status-badge.completed { color: #fff; background: rgba(16, 185, 129, 0.90); }
.status-badge.upcoming { color: #fff; background: rgba(59, 130, 246, 0.90); }

.project-card-inner { position: relative; overflow: hidden; }

/* ── Green Index Score ── */
.green-score-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 8px; border-radius: var(--radius-full);
  font-size: 9px; font-weight: 700;
  background: rgba(85, 205, 108, 0.90); color: #fff;
  z-index: 10;
  display: flex; align-items: center; gap: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── Quick Actions ── */
.quick-actions {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 12px;
  padding: 0 16px 20px;
}
.quick-action {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 6px 12px; text-align: center; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center;
}
.quick-action:hover { 
  transform: translateY(-3px); 
  box-shadow: var(--shadow); 
  border-color: var(--primary);
}
.quick-action:hover .qa-icon-svg {
  color: var(--primary);
  transform: scale(1.1);
}
.qa-icon-svg { 
  width: 24px; height: 24px; 
  color: var(--text-secondary); 
  margin-bottom: 8px; 
  transition: all var(--transition);
}
.qa-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); }

/* ── Details Navigation Tabs ── */
.detail-tabs-nav {
  display: flex; border-bottom: 1px solid var(--border);
  margin: 16px 0 8px; padding: 0 8px;
}
.detail-tab-btn {
  flex: 1; padding: 12px 4px; text-align: center;
  background: none; border: none; font-size: 12px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all var(--transition);
  border-bottom: 2px solid transparent;
  font-family: var(--font);
}
.detail-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.detail-tab-content { display: none; }
.detail-tab-content.active { display: block; }

/* ── Property Detail & Spec layouts ── */
.detail-body { padding: 20px 24px; }
.detail-title { 
  font-size: 22px; 
  font-weight: 800; 
  color: var(--text-primary); 
  font-family: var(--font-serif);
  line-height: 1.2;
}
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-muted); margin: 8px 0 16px;
  align-items: center;
}
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta .dot { width: 3px; height: 3px; background: var(--text-muted); border-radius: 999px; }

.detail-price { 
  font-size: 22px; 
  font-weight: 900; 
  color: var(--primary); 
  letter-spacing: -0.5px;
}
.detail-price small { font-size: 12px; color: var(--text-secondary); font-weight: 400; margin-left: 4px; }

.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 20px 0;
}
.spec-item {
  text-align: center; background: var(--surface-3);
  border-radius: var(--radius); padding: 12px 6px;
  border: 1px solid var(--border);
}
.spec-item .spec-val { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.spec-item .spec-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; margin-top: 2px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.type-badge {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 5px 12px;
  border-radius: var(--radius-full); background: var(--surface-3); color: var(--text-secondary);
  border: 1px solid var(--border);
}

.amenity-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0;
}
.amenity-item {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary);
}
.amenity-item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

.map-box {
  height: 150px; border-radius: var(--radius-md);
  background: var(--surface-3);
  border: 1px solid var(--border); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; margin: 16px 0;
  box-shadow: var(--shadow-sm);
}
.map-box .map-icon { font-size: 26px; color: var(--primary); }
.map-box .map-lbl { font-size: 13px; color: var(--text-primary); font-weight: 700; }

/* ── Interactive 3D Virtual Tour ── */
.virtual-tour-container {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
}
.virtual-tour-panorama {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 50% 50%;
  transition: background-position 0.1s ease-out;
}
.virtual-tour-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  color: #fff;
}
.tour-badge {
  align-self: flex-start;
  background: rgba(0,0,0,0.6);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tour-badge::before {
  content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: #ef4444;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
.tour-help-text {
  text-align: center;
  font-size: 11px;
  opacity: 0.8;
  background: rgba(0,0,0,0.5);
  padding: 4px 8px;
  border-radius: var(--radius);
}
.tour-control-slider {
  margin: 14px 0;
}
.tour-control-slider input {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  outline: none;
}
.tour-control-slider input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border: 2px solid #fff;
  transition: transform var(--transition);
}
.tour-control-slider input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ── Mortgage Calculator ── */
.calculator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin: 8px 0;
}
.calc-field { margin-bottom: 16px; }
.calc-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.calc-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.calc-val-text { font-size: 14px; font-weight: 700; color: var(--primary); }
.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid #fff;
}
.calc-result-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px;
  border-top: 1px solid var(--border); padding-top: 16px;
}
.calc-res-card {
  text-align: center;
  background: var(--surface-3);
  border-radius: var(--radius);
  padding: 12px 6px;
}
.calc-res-num { font-size: 15px; font-weight: 800; color: var(--primary); }
.calc-res-lbl { font-size: 9px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }

/* ── VIP Royal Club Dashboard ── */
.vip-card {
  background: linear-gradient(135deg, #1A2229 0%, #101418 100%);
  border: 1px solid rgba(195,153,28,0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}
.vip-card::before {
  content: ""; position: absolute; top: -50%; right: -50%; width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(195,153,28,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.vip-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px;
}
.vip-logo {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 4px;
}
.vip-badge {
  background: linear-gradient(90deg, #D5AD36 0%, #C3991C 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(195,153,28,0.3);
}
.vip-id { font-size: 11px; opacity: 0.6; font-family: monospace; }
.vip-points-container { margin-top: 14px; }
.vip-points-val { font-size: 28px; font-weight: 900; color: var(--primary); line-height: 1; }
.vip-points-lbl { font-size: 10px; text-transform: uppercase; opacity: 0.5; font-weight: 600; margin-top: 4px; letter-spacing: 0.5px; }

.vip-perk-item {
  display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; align-items: flex-start;
}
.vip-perk-item:last-child { border-bottom: none; }
.vip-perk-item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* ── Visit Booking / Site Inquiry Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(17,20,24,0.6);
  backdrop-filter: blur(4px); z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
  display: flex; align-items: flex-end;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-container {
  width: 100%; max-width: 430px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg); transform: translateY(100%);
  transition: transform var(--transition-slow);
  padding: 24px; max-height: 85%; overflow-y: auto;
  border-top: 1px solid rgba(195,153,28,0.15);
}
.modal-overlay.show .modal-container { transform: translateY(0); }
.modal-close-bar {
  width: 40px; height: 5px; background: var(--border); border-radius: var(--radius-full);
  margin: 0 auto 18px; cursor: pointer;
}
.rep-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 16px;
}
.rep-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px;
  text-align: center; cursor: pointer; transition: all var(--transition);
  background: var(--surface-3);
}
.rep-card:hover { border-color: var(--primary); }
.rep-card.active {
  border-color: var(--primary); background: var(--primary-light);
  box-shadow: 0 4px 10px var(--primary-light);
}
.rep-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-bottom: 6px;
  border: 2px solid transparent;
}
.rep-card.active .rep-avatar { border-color: var(--primary); }
.rep-name { font-size: 11px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.rep-role { font-size: 9px; color: var(--text-muted); }

/* ── Success Booking Screen inside Modal ── */
.booking-success-view {
  text-align: center; padding: 24px 12px;
}
.success-icon-wrap {
  width: 60px; height: 60px; border-radius: 50%; background: var(--accent-light);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px;
  border: 1px solid rgba(85,205,108,0.2);
}
.success-title { font-family: var(--font-serif); font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.success-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 20px; }

/* ── Land Search ── */
.land-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; margin-bottom: 14px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.land-card:hover { 
  transform: translateY(-3px); 
  box-shadow: var(--shadow-md); 
  border-color: rgba(195,153,28,0.2);
}
.land-img { width: 100%; height: 140px; object-fit: cover; }
.land-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.land-body .land-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.land-loc { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.land-specs { display: flex; justify-content: space-between; font-size: 11px; margin: 8px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px 0; }
.land-specs .spec { display: flex; flex-direction: column; align-items: center; flex: 1; }
.land-specs .spec:not(:last-child) { border-right: 1px solid var(--border); }
.land-specs .spec .v { font-size: 13px; font-weight: 800; color: var(--text-primary); }
.land-price { font-size: 16px; font-weight: 900; color: var(--primary); margin-top: 4px; }
.land-badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
}
.land-badge.available { background: var(--accent-light); color: var(--accent); }
.land-badge.under-contract { background: var(--primary-light); color: var(--primary); }

.land-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 18px;
  scroll-behavior: smooth;
}
.land-scroll::-webkit-scrollbar { display: none; }
.land-hcard {
  flex: 0 0 180px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: all var(--transition); display: flex; flex-direction: column;
}
.land-hcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(195,153,28,0.2); }
.land-hcard img { width: 100%; height: 95px; object-fit: cover; display: block; }
.land-hcard .lhc-body { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.land-hcard .lhc-title { font-size: 12px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.land-hcard .lhc-loc { font-size: 9px; color: var(--text-muted); margin-bottom: 4px; flex: 1; }
.land-hcard .lhc-price { font-size: 13px; font-weight: 800; color: var(--primary); }

/* ── Client Investment List ── */
.investment-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.investment-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.investment-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface-3);
}
.investment-header .ih-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.investment-header .ih-status { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--primary); }
.investment-flats { padding: 8px 16px; }
.flat-row {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 13px;
  cursor: pointer; transition: background var(--transition);
}
.flat-row:hover { background: rgba(0,0,0,0.01); }
.flat-row:last-child { border-bottom: none; }
.flat-row-meta {
  display: flex; justify-content: space-between; align-items: center;
}
.flat-row .flat-name { font-weight: 700; color: var(--text-primary); }
.flat-row .flat-status { font-size: 11px; color: var(--text-muted); }
.progress-bar-wrap {
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
}
.progress-bar {
  height: 6px; flex: 1; background: var(--surface-3); border-radius: var(--radius-full);
  overflow: hidden; margin: 0;
}
.progress-bar > span { display: block; height: 100%; border-radius: var(--radius-full); background: var(--primary); }
.progress-bar-num { font-size: 10px; font-weight: 700; color: var(--primary); }

.payment-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12px; }
.payment-table th, .payment-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.payment-table th { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.payment-table td { color: var(--text-secondary); }

.doc-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 12px;
}
.doc-item:last-child { border-bottom: none; }
.doc-item .doc-name { font-weight: 600; color: var(--text-primary); }
.doc-item .doc-status {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--accent-light); color: var(--accent);
}

/* ── About Leadership & Contact ── */
.team-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px; padding: 0 16px 12px;
}
.team-member {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; text-align: center; box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.team-member:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow); }
.member-img {
  width: 90px; height: 90px; border-radius: var(--radius-full); margin: 0 auto 12px;
  object-fit: cover; border: 3px solid var(--primary-light);
}
.member-name { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-bottom: 2px; font-family: var(--font-serif); }
.member-role { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.contact-item {
  display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; align-items: center;
}
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-icon {
  width: 38px; height: 38px; min-width: 38px; border-radius: 50%;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 15px; flex-shrink: 0;
}
.contact-item .ci-text { flex: 1; }
.contact-item .ci-text .ci-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.contact-item .ci-text .ci-val { font-weight: 700; color: var(--text-primary); margin-top: 2px; }

.social-list { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 0; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 16px; text-decoration: none; color: var(--text-secondary); flex-shrink: 0;
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 10px var(--primary-light); }

/* FAQ Summary style override */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 13px;
  list-style: none; position: relative; padding-right: 24px;
  color: var(--text-primary);
}
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: var(--text-muted); transition: transform var(--transition);
  font-weight: 300;
}
.faq-item[open] summary { color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }

/* Emojis to SVGs helpers */
.inline-icon {
  width: 14px; height: 14px; display: inline-block; vertical-align: middle; margin-right: 4px; fill: currentColor;
}
.btn-icon {
  width: 18px; height: 18px; display: inline-block; fill: currentColor; margin-right: 6px;
}
.bottom-nav {
  box-shadow: 0 -4px 16px rgba(0,0,0,0.02);
}
.nav-item .nav-icon svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2;
  transition: all var(--transition);
}
.nav-item.active .nav-icon svg {
  color: var(--primary);
  transform: translateY(-2px);
}
.nav-item.active .nav-icon {
  background: var(--primary-light);
}

.welcome-bar {
  padding: 24px 20px 14px;
}
.avatar {
  width: 50px; height: 50px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}
.welcome-text h2 { font-family: var(--font-serif); font-size: 18px; }

/* Micro transition pages */
.screen {
  opacity: 0;
  transform: scale(0.99) translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.screen.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}
