/* ==========================================================================
   Botswana Housing Corporation — Property & Customer Portal Prototype
   Shared Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* Brand palette — matched to the real Botswana Housing Corporation logo:
     a terracotta-brick wordmark, mustard-gold roofline and a green baseline
     ("accommodating your future"). --blue-* names are kept for low-risk
     reuse across the stylesheet but now hold brick/terracotta values. */
  --blue-900:#4d1b10;
  --blue-800:#6e2818;
  --blue-700:#93341f;
  --blue-600:#b3452a;
  --blue-500:#c9552f;
  --blue-100:#fbe9e0;
  --ink-900:#0b0e14;
  --ink-800:#161b24;
  --gold-500:#d9a441;
  --gold-400:#e8bd68;
  --gold-100:#fbf1de;
  --green-700:#1c7a52;
  --green-600:#239563;
  --green-100:#e4f6ee;
  --red-500:#d84c3e;
  --red-100:#fbeae8;
  --amber-500:#e8a53a;
  --amber-100:#fdf1de;

  --bg:#f7f5f3;
  --surface:#ffffff;
  --surface-alt:#f2eeea;
  --border:#e5ded8;
  --text:#1c1410;
  --text-muted:#6b5d54;
  --text-faint:#a3948a;

  --radius-sm:8px;
  --radius:14px;
  --radius-lg:22px;
  --radius-xl:32px;

  --shadow-sm:0 1px 3px rgba(77,27,16,.08);
  --shadow:0 8px 24px rgba(77,27,16,.10);
  --shadow-lg:0 20px 48px rgba(77,27,16,.16);
  --shadow-hover:0 24px 56px rgba(77,27,16,.22);

  --gradient-hero: linear-gradient(120deg, rgba(30,12,8,.92) 0%, rgba(110,40,24,.84) 45%, rgba(201,85,47,.68) 100%);
  --gradient-brand: linear-gradient(135deg, var(--blue-700), var(--ink-900));
  --gradient-gold: linear-gradient(135deg, var(--gold-400), var(--gold-500));

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --topbar-h: 76px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}
h1,h2,h3,h4,h5{ font-family:var(--font-head); margin:0 0 .5em; line-height:1.2; color:var(--ink-900); font-weight:700; }
p{ margin:0 0 1em; color:var(--text-muted); }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; font-size:14px; }

.container{ width:100%; max-width:1280px; margin:0 auto; padding:0 24px; }
.container-narrow{ width:100%; max-width:880px; margin:0 auto; padding:0 24px; }

.section{ padding:88px 0; }
.section-tight{ padding:56px 0; }
.section-alt{ background:var(--surface-alt); }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color:var(--blue-700); background:var(--blue-100);
  padding:7px 14px; border-radius:999px; margin-bottom:16px;
}
.eyebrow.gold{ color:#7a5714; background:var(--gold-100); }
.eyebrow.navy{ color:var(--ink-900); background:#e9edf2; }
.eyebrow.green{ color:var(--green-700); background:var(--green-100); }

.section-head{ max-width:640px; margin-bottom:44px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(26px,3.4vw,38px); }
.section-head p{ font-size:16px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius:12px; padding:13px 24px; font-weight:600; font-size:14.5px;
  transition:all .18s ease; white-space:nowrap;
}
.btn-lg{ padding:16px 30px; font-size:15.5px; border-radius:14px; }
.btn-sm{ padding:9px 16px; font-size:13px; border-radius:9px; }
.btn-primary{ background:var(--gradient-brand); color:#fff; box-shadow:0 10px 24px rgba(10,61,104,.30); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 30px rgba(10,61,104,.38); }
.btn-gold{ background:var(--gradient-gold); color:#4a3305; box-shadow:0 10px 24px rgba(217,164,65,.32); }
.btn-gold:hover{ transform:translateY(-2px); }
.btn-outline{ background:transparent; border:1.5px solid var(--border); color:var(--ink-900); }
.btn-outline:hover{ border-color:var(--blue-700); background:#fff; }
.btn-white{ background:#fff; color:var(--ink-900); }
.btn-white:hover{ transform:translateY(-2px); box-shadow:var(--shadow); }
.btn-ghost{ background:rgba(255,255,255,.14); color:#fff; border:1.5px solid rgba(255,255,255,.4); backdrop-filter:blur(6px); }
.btn-ghost:hover{ background:rgba(255,255,255,.24); }
.btn-danger{ background:var(--red-100); color:var(--red-500); }
.btn-danger:hover{ background:#f8d6d2; }
.btn-block{ width:100%; }
.btn-icon{ width:40px; height:40px; padding:0; border-radius:10px; }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none !important; }

/* ---------- Top Navigation (public site) ---------- */
.topnav{
  position:fixed; top:0; left:0; right:0; z-index:200;
  height:var(--topbar-h);
  display:flex; align-items:center;
  transition:background .25s ease, box-shadow .25s ease, height .25s ease;
}
.topnav.is-solid{ background:rgba(255,255,255,.94); backdrop-filter:blur(14px); box-shadow:0 2px 18px rgba(6,43,74,.08); height:70px; }
.topnav .container{ display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand{ display:flex; align-items:center; gap:11px; font-family:var(--font-head); font-weight:700; font-size:17px; color:#fff; }
.topnav.is-solid .brand{ color:var(--ink-900); }
.brand-mark{
  width:42px; height:42px; border-radius:10px; flex:none;
  background:#fff; position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  padding:5px; box-shadow:0 1px 4px rgba(0,0,0,.18);
}
.brand-mark img{ width:100%; height:100%; object-fit:contain; }
.brand-sub{ display:block; font-family:var(--font-body); font-weight:500; font-size:11px; letter-spacing:.04em; opacity:.75; text-transform:uppercase; }

.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-links a{
  padding:10px 15px; border-radius:9px; font-size:14.5px; font-weight:600;
  color:rgba(255,255,255,.88); transition:.15s;
}
.topnav.is-solid .nav-links a{ color:var(--text-muted); }
.nav-links a:hover, .nav-links a.active{ background:rgba(255,255,255,.14); color:#fff; }
.topnav.is-solid .nav-links a:hover, .topnav.is-solid .nav-links a.active{ background:var(--blue-100); color:var(--blue-700); }

.nav-actions{ display:flex; align-items:center; gap:10px; }
.nav-burger{ display:none; }

@media (max-width: 1040px){
  .nav-links{ display:none; }
  .nav-burger{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center;
  padding-top:var(--topbar-h);
  background:
    var(--gradient-hero),
    url('../images/property-01.jpg') center/cover fixed;
  color:#fff; overflow:hidden;
}
.hero::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
.hero-inner{ position:relative; z-index:2; padding:80px 0 60px; }
.hero h1{ color:#fff; font-size:clamp(34px,5.4vw,60px); max-width:800px; letter-spacing:-.01em; }
.hero h1 span{ color:var(--gold-400); }
.hero p.lead{ color:rgba(255,255,255,.86); font-size:18px; max-width:560px; margin-bottom:28px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:56px; }

.hero-stats{ display:flex; gap:0; flex-wrap:wrap; margin-top:20px; }
.hero-stats .stat{ padding-right:36px; margin-right:36px; border-right:1px solid rgba(255,255,255,.22); }
.hero-stats .stat:last-child{ border-right:none; }
.hero-stats .stat b{ display:block; font-family:var(--font-head); font-size:28px; color:#fff; }
.hero-stats .stat span{ font-size:13px; color:rgba(255,255,255,.72); }

/* Search card */
.search-card{
  position:relative; z-index:3;
  background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg);
  padding:22px; margin-top:-64px;
  display:grid; grid-template-columns:1.2fr 1.1fr 1fr 1fr auto; gap:14px; align-items:end;
}
.search-field label{ display:block; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-faint); margin-bottom:7px; }
.search-field select, .search-field input{
  width:100%; border:1.5px solid var(--border); border-radius:10px; padding:12px 13px;
  background:var(--surface-alt); color:var(--text); outline:none; transition:.15s;
}
.search-field select:focus, .search-field input:focus{ border-color:var(--blue-500); background:#fff; }
@media (max-width: 980px){
  .search-card{ grid-template-columns:1fr 1fr; margin-top:24px; }
}

/* ---------- Property Cards ---------- */
.grid{ display:grid; gap:26px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:1080px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .grid-3,.grid-4,.grid-2{ grid-template-columns:1fr; } }

.property-card{
  background:var(--surface); border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); border:1px solid var(--border);
  transition:transform .25s ease, box-shadow .25s ease; display:flex; flex-direction:column;
}
.property-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-hover); }
.property-media{ position:relative; height:210px; overflow:hidden; background:var(--surface-alt); }
.property-media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.property-card:hover .property-media img{ transform:scale(1.08); }
.property-badges{ position:absolute; top:12px; left:12px; display:flex; gap:6px; z-index:2; }
.property-fav{ position:absolute; top:12px; right:12px; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.92); display:flex; align-items:center; justify-content:center; z-index:2; box-shadow:var(--shadow-sm); }
.property-360-tag{ position:absolute; bottom:12px; right:12px; background:rgba(6,43,74,.8); color:#fff; font-size:11.5px; font-weight:700; padding:6px 10px; border-radius:999px; display:flex; align-items:center; gap:5px; z-index:2; backdrop-filter:blur(4px); }
.property-body{ padding:20px; flex:1; display:flex; flex-direction:column; }
.property-scheme{ font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--blue-700); margin-bottom:6px; }
.property-title{ font-size:17px; font-weight:700; color:var(--ink-900); margin-bottom:4px; }
.property-loc{ font-size:13px; color:var(--text-muted); display:flex; align-items:center; gap:5px; margin-bottom:14px; }
.property-meta{ display:flex; gap:16px; padding:14px 0; border-top:1px solid var(--border); font-size:13px; color:var(--text-muted); flex-wrap:wrap; }
.property-meta span{ display:flex; align-items:center; gap:6px; }
.property-footer{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; padding-top:14px; gap:10px; }
.property-price{ font-family:var(--font-head); font-weight:700; font-size:19px; color:var(--ink-900); }
.property-price small{ font-family:var(--font-body); font-weight:500; font-size:12px; color:var(--text-faint); }

/* Badges / pills */
.badge{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; padding:5px 10px; border-radius:999px; text-transform:uppercase; letter-spacing:.03em; }
.badge-green{ background:var(--green-100); color:var(--green-700); }
.badge-gold{ background:var(--gold-100); color:#7a5714; }
.badge-navy{ background:#e9edf2; color:var(--ink-900); }
.badge-blue{ background:var(--blue-100); color:var(--blue-700); }
.badge-red{ background:var(--red-100); color:var(--red-500); }
.badge-gray{ background:#eef1f5; color:var(--text-muted); }
.badge-dot{ width:7px; height:7px; border-radius:50%; background:currentColor; }

.status-pill{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:5px 12px; border-radius:999px; }
.status-available{ background:var(--green-100); color:var(--green-700); }
.status-occupied{ background:#eef1f5; color:var(--text-muted); }
.status-reserved{ background:var(--gold-100); color:#7a5714; }
.status-maintenance{ background:var(--red-100); color:var(--red-500); }
.status-pending{ background:var(--gold-100); color:#7a5714; }
.status-approved{ background:var(--green-100); color:var(--green-700); }
.status-rejected{ background:var(--red-100); color:var(--red-500); }
.status-sold{ background:#eef1f5; color:var(--text-muted); }
.status-closed{ background:#eef1f5; color:var(--text-muted); }
.status-open{ background:var(--green-100); color:var(--green-700); }

/* ---------- Cards / Panels ---------- */
.panel{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:24px; }
.panel-title{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; flex-wrap:wrap; gap:10px; }
.panel-title h3{ font-size:16px; margin:0; }

.icon-box{ width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex:none; }
.icon-box svg{ width:22px; height:22px; }

.feature-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:26px; transition:.2s; }
.feature-card:hover{ box-shadow:var(--shadow); transform:translateY(-4px); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink-900); color:rgba(255,255,255,.7); padding:64px 0 24px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.12); }
.footer-grid h4{ color:#fff; font-size:14px; margin-bottom:16px; }
.footer-grid a{ display:block; padding:6px 0; font-size:14px; color:rgba(255,255,255,.62); transition:.15s; }
.footer-grid a:hover{ color:var(--gold-400); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:22px; font-size:13px; flex-wrap:wrap; gap:10px; }
.social-row{ display:flex; gap:10px; }
.social-row a{ width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; }
.social-row a:hover{ background:var(--blue-600); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }

/* ---------- Forms ---------- */
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; font-weight:600; color:var(--ink-900); margin-bottom:7px; }
.field .hint{ font-size:12px; color:var(--text-faint); margin-top:5px; }
.input, select.input, textarea.input{
  width:100%; border:1.5px solid var(--border); border-radius:10px; padding:12px 14px;
  background:#fbfcfe; outline:none; transition:.15s; color:var(--text);
}
.input:focus{ border-color:var(--blue-500); background:#fff; box-shadow:0 0 0 4px rgba(31,128,209,.12); }
.input-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:600px){ .input-row{ grid-template-columns:1fr; } }
.checkline{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--text-muted); }
.file-drop{
  border:2px dashed var(--border); border-radius:var(--radius); padding:26px; text-align:center;
  background:var(--surface-alt); cursor:pointer; transition:.15s;
}
.file-drop:hover{ border-color:var(--blue-500); background:var(--blue-100); }

/* ---------- Auth ---------- */
.auth-shell{ min-height:100vh; display:grid; grid-template-columns:1fr 1fr; }
.auth-visual{
  position:relative; background:var(--gradient-hero), url('../images/property-07.jpg') center/cover;
  color:#fff; display:flex; flex-direction:column; justify-content:space-between; padding:44px;
}
.auth-form-side{ display:flex; align-items:center; justify-content:center; padding:40px; }
.auth-box{ width:100%; max-width:420px; }
@media (max-width:900px){ .auth-shell{ grid-template-columns:1fr; } .auth-visual{ display:none; } }

/* ---------- Tabs ---------- */
.tabbar{ display:flex; gap:4px; border-bottom:1.5px solid var(--border); margin-bottom:24px; overflow-x:auto; }
.tabbar button{ background:none; border:none; padding:13px 18px; font-size:14px; font-weight:600; color:var(--text-muted); border-bottom:2.5px solid transparent; white-space:nowrap; transition:.15s; }
.tabbar button.active{ color:var(--blue-700); border-color:var(--blue-600); }
.tabbar button:hover{ color:var(--ink-900); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; animation:fadeIn .25s ease; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:none;} }

/* ---------- Dashboard shell (customer + admin) ---------- */
.dash-shell{ display:grid; grid-template-columns:264px 1fr; min-height:100vh; }
.dash-sidebar{
  background:var(--ink-900); color:rgba(255,255,255,.82); padding:22px 16px;
  position:sticky; top:0; height:100vh; overflow-y:auto; display:flex; flex-direction:column;
}
.dash-sidebar .brand{ padding:8px 10px 22px; }
.dash-nav-group{ margin-top:14px; }
.dash-nav-group .group-label{ font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.35); padding:0 12px 8px; font-weight:700; }
.dash-nav a{
  display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:10px; font-size:14px; font-weight:600;
  color:rgba(255,255,255,.72); margin-bottom:3px; transition:.15s; cursor:pointer;
}
.dash-nav a svg{ width:18px; height:18px; flex:none; opacity:.85; }
.dash-nav a:hover{ background:rgba(255,255,255,.06); color:#fff; }
.dash-nav a.active{ background:var(--gradient-brand); color:#fff; box-shadow:0 6px 16px rgba(19,103,173,.35); }
.dash-nav a .count{ margin-left:auto; background:rgba(255,255,255,.14); font-size:11px; padding:2px 8px; border-radius:999px; }
.sidebar-footer{ margin-top:auto; padding:14px 10px 4px; border-top:1px solid rgba(255,255,255,.1); }

.dash-main{ min-width:0; }
.dash-topbar{
  height:74px; background:#fff; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; padding:0 28px;
  position:sticky; top:0; z-index:50;
}
.dash-search{ display:flex; align-items:center; gap:10px; background:var(--surface-alt); border-radius:10px; padding:9px 14px; width:340px; border:1px solid var(--border); }
.dash-search input{ border:none; background:none; outline:none; width:100%; font-size:13.5px; }
.dash-user{ display:flex; align-items:center; gap:12px; }
.avatar{ width:38px; height:38px; border-radius:50%; background:var(--gradient-brand); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex:none; }
.dash-content{ padding:28px; }
@media (max-width:1080px){
  .dash-shell{ grid-template-columns:1fr; }
  .dash-sidebar{ position:fixed; left:-280px; top:0; width:264px; z-index:300; transition:left .25s; box-shadow:var(--shadow-lg); }
  .dash-sidebar.open{ left:0; }
  .dash-search{ display:none; }
}

/* KPI widgets */
.kpi-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:26px; }
@media (max-width:1080px){ .kpi-row{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .kpi-row{ grid-template-columns:1fr; } }
.kpi-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:20px; position:relative; overflow:hidden; }
.kpi-card .icon-box{ margin-bottom:14px; }
.kpi-value{ font-family:var(--font-head); font-size:26px; font-weight:700; color:var(--ink-900); }
.kpi-label{ font-size:12.5px; color:var(--text-muted); margin-top:2px; }
.kpi-trend{ position:absolute; top:20px; right:18px; font-size:11.5px; font-weight:700; padding:3px 8px; border-radius:999px; }
.kpi-trend.up{ background:var(--green-100); color:var(--green-700); }
.kpi-trend.down{ background:var(--red-100); color:var(--red-500); }

/* Simple bar charts (CSS/SVG driven, no external lib) */
.chart-box{ height:230px; display:flex; align-items:flex-end; gap:10px; padding-top:10px; }
.chart-bar-col{ flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; }
.chart-bar-track{ height:180px; width:100%; display:flex; align-items:flex-end; justify-content:center; }
.chart-bar{ width:100%; max-width:34px; border-radius:8px 8px 3px 3px; background:var(--gradient-brand); transition:height .6s ease; }
.chart-bar-label{ font-size:11px; color:var(--text-faint); }

/* Tables */
.table-wrap{ overflow-x:auto; }
table.data-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.data-table th{ text-align:left; padding:12px 14px; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-faint); border-bottom:1.5px solid var(--border); white-space:nowrap; }
.data-table td{ padding:14px; border-bottom:1px solid var(--border); vertical-align:middle; }
.data-table tr:hover td{ background:var(--surface-alt); }
.row-property{ display:flex; align-items:center; gap:12px; }
.row-property img{ width:46px; height:46px; border-radius:9px; object-fit:cover; }
.table-actions{ display:flex; gap:8px; }
.icon-btn{ width:32px; height:32px; border-radius:8px; border:1px solid var(--border); background:#fff; display:flex; align-items:center; justify-content:center; transition:.15s; }
.icon-btn:hover{ background:var(--surface-alt); }
.icon-btn svg{ width:15px; height:15px; }

/* Kanban */
.kanban{ display:grid; grid-template-columns:repeat(5,minmax(230px,1fr)); gap:16px; overflow-x:auto; padding-bottom:10px; }
.kanban-col{ background:var(--surface-alt); border-radius:var(--radius); padding:14px; min-width:230px; }
.kanban-col-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; padding:0 4px; }
.kanban-col-head h4{ font-size:12.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-muted); margin:0; }
.kanban-count{ background:#fff; border:1px solid var(--border); font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; }
.kanban-card{ background:#fff; border-radius:12px; padding:13px; margin-bottom:10px; box-shadow:var(--shadow-sm); border:1px solid var(--border); cursor:grab; }
.kanban-card:active{ cursor:grabbing; }
.kanban-card h5{ font-size:13.5px; margin:0 0 6px; color:var(--ink-900); }
.kanban-card p{ font-size:12px; margin:0 0 8px; }
.kanban-card .meta{ display:flex; align-items:center; justify-content:space-between; }

/* Modal */
.modal-overlay{ position:fixed; inset:0; background:rgba(6,20,35,.55); backdrop-filter:blur(3px); z-index:500; display:none; align-items:center; justify-content:center; padding:20px; }
.modal-overlay.open{ display:flex; }
.modal{ background:#fff; border-radius:var(--radius-lg); width:100%; max-width:560px; max-height:88vh; overflow-y:auto; box-shadow:var(--shadow-lg); }
.modal.modal-lg{ max-width:820px; }
.modal-head{ display:flex; align-items:center; justify-content:space-between; padding:22px 26px; border-bottom:1px solid var(--border); position:sticky; top:0; background:#fff; z-index:2; }
.modal-body{ padding:26px; }
.modal-foot{ padding:18px 26px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.modal-close{ width:34px; height:34px; border-radius:9px; border:1px solid var(--border); background:#fff; display:flex; align-items:center; justify-content:center; }

/* Toast */
.toast-stack{ position:fixed; bottom:24px; right:24px; z-index:900; display:flex; flex-direction:column; gap:10px; }
.toast{ background:var(--ink-900); color:#fff; padding:14px 18px; border-radius:12px; box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:10px; font-size:13.5px; min-width:260px; animation:slideIn .25s ease; }
.toast.success{ background:var(--green-700); }
.toast.error{ background:var(--red-500); }
@keyframes slideIn{ from{ transform:translateX(40px); opacity:0;} to{ transform:none; opacity:1; } }

/* 360 / Panorama viewer */
.viewer360{ position:relative; height:460px; border-radius:var(--radius-lg); overflow:hidden; background:#081521; cursor:grab; user-select:none; }
.viewer360:active{ cursor:grabbing; }
.viewer360 .pano-img{ position:absolute; top:0; left:0; height:100%; width:auto; max-width:none; pointer-events:none; }
.viewer360-hint{ position:absolute; left:50%; bottom:18px; transform:translateX(-50%); background:rgba(6,43,74,.72); color:#fff; font-size:12.5px; padding:8px 16px; border-radius:999px; display:flex; align-items:center; gap:8px; pointer-events:none; backdrop-filter:blur(4px); }
.viewer360-badge{ position:absolute; top:16px; left:16px; background:rgba(217,164,65,.94); color:#4a3305; font-weight:700; font-size:12px; padding:6px 12px; border-radius:999px; display:flex; align-items:center; gap:6px; }
.viewer360-controls{ position:absolute; top:16px; right:16px; display:flex; gap:8px; }
.viewer360-controls button{ width:38px; height:38px; border-radius:10px; border:none; background:rgba(255,255,255,.92); display:flex; align-items:center; justify-content:center; }
.viewer360-controls button.active{ background:var(--gold-500); }
.viewer360-compass{ position:absolute; bottom:16px; right:16px; width:52px; height:52px; border-radius:50%; background:rgba(255,255,255,.14); border:1.5px solid rgba(255,255,255,.4); display:flex; align-items:center; justify-content:center; }
.viewer360-compass::before{ content:'N'; position:absolute; top:5px; color:#fff; font-size:9px; font-weight:700; }
.viewer360-needle{ width:2px; height:18px; background:var(--gold-500); border-radius:2px; transition:transform .1s linear; }

/* Gallery */
.gallery-main{ position:relative; border-radius:var(--radius-lg); overflow:hidden; height:460px; }
.gallery-main img{ width:100%; height:100%; object-fit:cover; }
.gallery-thumbs{ display:grid; grid-template-columns:repeat(6,1fr); gap:10px; margin-top:12px; }
.gallery-thumbs img{ height:70px; width:100%; object-fit:cover; border-radius:9px; cursor:pointer; opacity:.65; transition:.15s; border:2px solid transparent; }
.gallery-thumbs img:hover{ opacity:1; }
.gallery-thumbs img.active{ opacity:1; border-color:var(--blue-600); }

/* Misc utils */
.flex{ display:flex; }
.flex-between{ display:flex; align-items:center; justify-content:space-between; }
.flex-center{ display:flex; align-items:center; justify-content:center; }
.gap-8{ gap:8px; } .gap-10{ gap:10px; } .gap-14{ gap:14px; } .gap-20{ gap:20px; }
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.text-muted{ color:var(--text-muted); }
.text-sm{ font-size:13px; }
.divider{ height:1px; background:var(--border); margin:20px 0; }
.empty-state{ text-align:center; padding:60px 20px; color:var(--text-faint); }
.empty-state svg{ width:52px; height:52px; margin-bottom:14px; opacity:.5; }
.progress{ height:8px; background:var(--surface-alt); border-radius:999px; overflow:hidden; }
.progress > div{ height:100%; background:var(--gradient-brand); border-radius:999px; transition:width .5s ease; }
.rating{ color:var(--gold-500); font-size:13px; }
.map-placeholder{ height:280px; border-radius:var(--radius); background:
    linear-gradient(rgba(6,43,74,.06),rgba(6,43,74,.06)),
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(6,43,74,.06) 39px),
    repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(6,43,74,.06) 39px),
    var(--surface-alt);
  position:relative; overflow:hidden; }
.map-pin{ position:absolute; width:34px; height:34px; border-radius:50% 50% 50% 0; background:var(--gradient-brand); transform:rotate(-45deg); box-shadow:var(--shadow); display:flex; align-items:center; justify-content:center; }
.map-pin span{ transform:rotate(45deg); color:#fff; font-size:14px; }

/* Steps (wizard) */
.steps{ display:flex; align-items:center; justify-content:center; gap:6px; margin-bottom:36px; flex-wrap:wrap; }
.step{ display:flex; align-items:center; gap:6px; }
.step-num{ width:34px; height:34px; border-radius:50%; background:var(--surface-alt); border:1.5px solid var(--border); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; color:var(--text-faint); transition:.2s; }
.step.active .step-num{ background:var(--gradient-brand); color:#fff; border-color:transparent; }
.step.done .step-num{ background:var(--green-100); color:var(--green-700); border-color:var(--green-600); }
.step-label{ font-size:12.5px; font-weight:600; color:var(--text-faint); }
.step.active .step-label{ color:var(--ink-900); }
.step-line{ width:44px; height:2px; background:var(--border); }
@media (max-width:640px){ .step-label{ display:none; } .step-line{ width:20px; } }

/* Tender-specific */
.tender-row{ display:grid; grid-template-columns:1fr auto; gap:18px; align-items:center; padding:20px; border:1px solid var(--border); border-radius:var(--radius); margin-bottom:14px; background:#fff; transition:.2s; }
.tender-row:hover{ box-shadow:var(--shadow); border-color:var(--blue-500); }
.tender-cat{ font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--blue-700); margin-bottom:6px; }
@media (max-width:640px){ .tender-row{ grid-template-columns:1fr; } }
