/* NaijaHomes — green & gold theme */
:root {
  --green-950:#052e21; --green-900:#064e3b; --green-800:#065f46; --green-100:#d1fae5; --green-50:#ecfdf5;
  --gold:#f59e0b; --gold-dark:#b45309;
  --ink:#1c1917; --muted:#78716c; --line:#e7e5e4; --bg:#f5f5f4; --card:#ffffff;
  --red:#dc2626; --amber-bg:#fffbeb; --amber-line:#fde68a; --amber-ink:#92400e;
}
* { box-sizing:border-box; }
body { margin:0; font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif; background:var(--bg); color:var(--ink); font-size:15px; line-height:1.55; }
a { color:var(--green-900); }
.wrap { max-width:1080px; margin:0 auto; padding:0 16px; }

/* top bar */
.topbar { background:var(--green-950); position:sticky; top:0; z-index:10; }
.topbar-in { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; flex-wrap:wrap; }
.brand { font-family:Georgia,serif; font-weight:700; font-size:20px; color:#fff; text-decoration:none; }
.nav { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.navlink { color:#d1fae5; text-decoration:none; padding:6px 10px; border-radius:8px; font-size:14px; }
.navlink:hover { background:var(--green-900); color:#fff; }
.who { color:#a7f3d0; font-size:13px; padding:0 6px; }
.role-pill { background:var(--green-800); color:#fff; border-radius:999px; padding:1px 8px; font-size:12px; text-transform:capitalize; }
.badge-count { background:var(--gold); color:#1c1917; border-radius:999px; padding:0 7px; font-size:12px; font-weight:700; }

/* layout bits */
main { padding:24px 16px 40px; }
.flash { margin-top:14px; background:#111; color:#fff; padding:10px 16px; border-radius:10px; font-size:14px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:18px; margin-bottom:16px; }
.card h2, .card h3 { margin-top:0; }
.grid { display:grid; gap:14px; }
.grid-3 { grid-template-columns:repeat(3,1fr); }
.grid-4 { grid-template-columns:repeat(4,1fr); }
.grid-2 { grid-template-columns:2fr 1fr; }
@media (max-width:860px){ .grid-3{grid-template-columns:repeat(2,1fr);} .grid-4{grid-template-columns:repeat(2,1fr);} .grid-2{grid-template-columns:1fr;} }
@media (max-width:560px){ .grid-3{grid-template-columns:1fr;} }
.muted { color:var(--muted); font-size:13px; }
.small { font-size:13px; }

/* hero */
.hero { background:var(--green-950); color:#fff; border-radius:18px; padding:34px 28px; margin-bottom:20px; }
.hero h1 { font-family:Georgia,serif; font-size:30px; margin:0 0 8px; max-width:560px; line-height:1.25; }
.hero p { color:#a7f3d0; max-width:520px; margin:0 0 18px; font-size:14px; }
.hero form { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; }
.hero label { color:#a7f3d0; font-size:13px; display:block; margin-bottom:4px; }

/* forms */
input[type=text],input[type=email],input[type=password],input[type=number],select,textarea {
  width:100%; padding:9px 11px; border:1px solid #d6d3d1; border-radius:9px; font:inherit; background:#fff; color:var(--ink);
}
input:focus,select:focus,textarea:focus { outline:2px solid var(--green-800); border-color:var(--green-800); }
label b { display:block; font-size:13px; margin-bottom:4px; color:#44403c; }
.field { margin-bottom:14px; }
.form-row { display:flex; gap:12px; flex-wrap:wrap; }
.form-row > * { flex:1; min-width:160px; }

/* buttons */
.btn { display:inline-block; border:0; cursor:pointer; font:inherit; font-weight:600; border-radius:9px; padding:9px 16px; text-decoration:none; font-size:14px; }
.btn-primary { background:var(--green-800); color:#fff; } .btn-primary:hover { background:var(--green-900); }
.btn-gold { background:var(--gold); color:#1c1917; } .btn-gold:hover { background:#fbbf24; }
.btn-ghost { background:transparent; color:var(--green-900); border:1px solid #a7f3d0; }
.btn-danger { background:var(--red); color:#fff; }
.btn-subtle { background:#e7e5e4; color:#292524; }
.btn-sm { padding:6px 11px; font-size:13px; }

/* listing cards */
.listing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media (max-width:860px){ .listing-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .listing-grid{grid-template-columns:1fr;} }
.lcard { background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; text-decoration:none; color:inherit; display:block; transition:border-color .15s; }
.lcard:hover { border-color:var(--green-800); }
.lcard-img { height:120px; display:flex; align-items:center; justify-content:center; font-size:44px; background:linear-gradient(135deg,var(--green-800),var(--green-950)); }
.lcard-body { padding:13px 14px; }
.lcard .loc { color:var(--muted); font-size:12.5px; }
.lcard .title { font-weight:600; margin:3px 0 8px; }
.price { color:var(--green-900); font-weight:700; }
.chip { display:inline-block; background:#f5f5f4; border-radius:999px; padding:2px 10px; font-size:12px; color:#57534e; }
.chip-green { background:var(--green-50); color:var(--green-900); border:1px solid #a7f3d0; }

/* tabs */
.tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.tab { padding:7px 13px; border-radius:9px; font-size:14px; text-decoration:none; background:#fff; border:1px solid #d6d3d1; color:#44403c; font-weight:500; }
.tab.active { background:var(--green-800); color:#fff; border-color:var(--green-800); }

/* stats */
.stat { background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px 16px; }
.stat .v { font-size:20px; font-weight:700; }
.stat .l { color:var(--muted); font-size:12.5px; }

/* status pills */
.pill { display:inline-block; border-radius:999px; padding:2px 10px; font-size:12px; font-weight:600; }
.pill-green { background:var(--green-50); color:var(--green-900); border:1px solid #a7f3d0; }
.pill-amber { background:var(--amber-bg); color:var(--amber-ink); border:1px solid var(--amber-line); }
.pill-red { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }

/* chat */
.chatbox { display:flex; flex-direction:column; height:520px; background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.chat-head { padding:12px 16px; background:#fafaf9; border-bottom:1px solid var(--line); }
.chat-msgs { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
.bubble { max-width:75%; padding:8px 12px; border-radius:14px; font-size:14px; }
.bubble .meta { font-size:11px; opacity:.7; margin-top:3px; }
.bubble.mine { align-self:flex-end; background:var(--green-800); color:#fff; border-bottom-right-radius:4px; }
.bubble.theirs { align-self:flex-start; background:#f5f5f4; border-bottom-left-radius:4px; }
.bubble .warn { font-size:11.5px; color:var(--gold); margin-top:3px; }
.bubble.theirs .warn { color:var(--gold-dark); }
.chat-send { display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); background:#fafaf9; }
.chat-send input { flex:1; }
.chat-list a { display:block; padding:11px 14px; border-bottom:1px solid #f5f5f4; text-decoration:none; color:inherit; }
.chat-list a:hover { background:var(--green-50); }

/* notices & tables */
.notice { background:var(--amber-bg); border:1px solid var(--amber-line); color:var(--amber-ink); border-radius:10px; padding:10px 14px; font-size:13.5px; }
.notice-green { background:var(--green-50); border-color:#a7f3d0; color:var(--green-900); }
table.tbl { width:100%; border-collapse:collapse; font-size:14px; }
table.tbl th, table.tbl td { text-align:left; padding:9px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
table.tbl th { font-size:12.5px; color:var(--muted); font-weight:600; }

.footer { color:#a8a29e; font-size:12.5px; padding:10px 16px 30px; }

/* auth pages */
.auth-bg { min-height:100vh; background:var(--green-950); display:flex; align-items:center; justify-content:center; padding:20px; }
.auth-card { background:#fff; border-radius:16px; padding:26px; width:100%; max-width:420px; }
.auth-brand { text-align:center; color:#fff; margin-bottom:18px; }
.auth-brand .b { font-family:Georgia,serif; font-size:26px; font-weight:700; }
.auth-brand p { color:#a7f3d0; font-size:13.5px; }
.demo-tip { background:var(--green-50); border:1px solid #a7f3d0; border-radius:10px; padding:10px 12px; font-size:13px; margin-bottom:14px; color:var(--green-900); }
