:root {
  --ink: #12201c;
  --ink-2: #3b4a45;
  --muted: #6d7a75;
  --line: #e6e0d4;
  --line-2: #efe9de;
  --bg: #faf7f1;
  --card: #ffffff;
  --brand: #0f3d33;
  --brand-2: #155445;
  --brand-3: #1f6f5c;
  --brand-tint: #e7f0ec;
  --gold: #c99a3f;
  --gold-2: #d4a24c;
  --gold-tint: #f8efdc;
  --danger: #b4412f;
  --danger-tint: #fbeae6;
  --ok: #1e7a4f;
  --ok-tint: #e3f3ea;
  --warn: #9a6b0c;
  --warn-tint: #fdf2d8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(18, 32, 28, .06), 0 2px 6px rgba(18, 32, 28, .04);
  --shadow: 0 10px 30px -12px rgba(15, 61, 51, .22), 0 2px 6px rgba(18, 32, 28, .05);
  --shadow-lg: 0 30px 60px -20px rgba(15, 61, 51, .35);
  --font: 'Anek Bangla', 'Noto Sans Bengali', system-ui, sans-serif;
  --serif: 'Noto Serif Bengali', 'Tiro Bangla', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .4em; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#app { min-height: 70vh; outline: none; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 241, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.topbar.scrolled { border-color: var(--line); background: rgba(250, 247, 241, .94); }
.topbar.on-hero:not(.scrolled) { background: transparent; }
.topbar.on-hero:not(.scrolled) .brand, .topbar.on-hero:not(.scrolled) .nav a, .topbar.on-hero:not(.scrolled) .btn-ghost { color: #f6efe2; }
.topbar.on-hero:not(.scrolled) .burger span { background: #f6efe2; }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #f6efe2; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.topbar.on-hero:not(.scrolled) .brand-mark { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { font-family: 'Tiro Bangla', var(--serif); font-size: 28px; line-height: 1; padding-top: 4px; }
.nav { display: flex; gap: 26px; font-weight: 500; }
.nav a { color: var(--ink-2); position: relative; padding: 6px 0; transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--brand); }
.nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); border-radius: 2px; }
.pill-soon { font-size: 11px; background: var(--gold-tint); color: var(--warn); border-radius: 999px; padding: 1px 8px; margin-left: 4px; font-weight: 600; vertical-align: 2px; }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; margin-left: 8px; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; font-size: 15.5px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(15,61,51,.5); }
.btn-primary:hover { background: var(--brand-2); }
.btn-gold { background: linear-gradient(135deg, #d9ac55, #c38f33); color: #1c1407; box-shadow: 0 8px 20px -8px rgba(201,154,63,.7); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(15,61,51,.06); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand-3); color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: -72px; padding: 150px 0 110px; color: #f6efe2; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=70') center/cover; transform: scale(1.04); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 10% 0%, rgba(15,61,51,.55), transparent 60%), linear-gradient(180deg, rgba(9,35,29,.82) 0%, rgba(9,35,29,.72) 55%, rgba(9,35,29,.92) 100%); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 14px; letter-spacing: .02em; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(212,162,76,.25); }
.hero h1 { font-size: clamp(36px, 5.6vw, 66px); font-weight: 800; margin: 22px 0 16px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; color: rgba(246,239,226,.82); margin: 0 0 36px; }
.searchbox { background: #fff; color: var(--ink); border-radius: 22px; padding: 10px; display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 6px; box-shadow: var(--shadow-lg); max-width: 920px; }
.sb-field { padding: 8px 16px; border-radius: 14px; position: relative; }
.sb-field + .sb-field::before { content: ''; position: absolute; left: -3px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.sb-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.sb-field select { width: 100%; border: 0; background: transparent; font-size: 16.5px; font-weight: 500; padding: 2px 0; outline: none; cursor: pointer; appearance: none; }
.sb-field:hover { background: #faf7f1; }
.searchbox .btn { height: auto; border-radius: 16px; padding: 0 28px; font-size: 17px; }
.hero-quick { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14.5px; color: rgba(246,239,226,.75); }
.hero-quick a { padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: #f6efe2; transition: background .15s; }
.hero-quick a:hover { background: rgba(255,255,255,.12); }
.hero-stats { display: flex; gap: 44px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 34px; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: 14px; color: rgba(246,239,226,.7); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); margin: 0; }
.kicker { color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .08em; margin-bottom: 6px; display: block; }
.link-arrow { color: var(--brand); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { gap: 10px; }

/* ---------- AI teaser ---------- */
.ai-card { margin-top: -54px; position: relative; z-index: 2; background: linear-gradient(135deg, #10392f 0%, #174f42 60%, #1d5c4d 100%); color: #f1ebdf; border-radius: 26px; padding: 30px 34px; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; box-shadow: var(--shadow-lg); overflow: hidden; }
.ai-card::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,.35), transparent 70%); }
.ai-orb { width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; }
.ai-orb svg { width: 32px; height: 32px; color: var(--gold-2); }
.ai-card h3 { font-family: var(--serif); font-size: 23px; margin: 0 0 4px; color: #fff; }
.ai-card p { margin: 0; color: rgba(241,235,223,.75); }
.badge-dev { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgba(212,162,76,.18); color: #f2d39a; border: 1px solid rgba(212,162,76,.35); font-weight: 600; margin-bottom: 8px; }
.badge-dev::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #f2d39a; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: linear-gradient(135deg, #e9e3d6, #ddd4c3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.93); color: var(--brand); backdrop-filter: blur(6px); }
.tag-gold { background: linear-gradient(135deg, #e0b765, #c38f33); color: #1c1407; }
.tag-new { background: var(--brand); color: #fff; }
.card-media .photos { position: absolute; right: 12px; bottom: 12px; font-size: 12.5px; color: #fff; background: rgba(0,0,0,.5); padding: 2px 9px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-price { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--brand); }
.card-price small { font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--muted); }
.card-title { font-weight: 600; font-size: 17px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-loc { color: var(--muted); font-size: 14.5px; display: flex; align-items: center; gap: 5px; }
.card-specs { display: flex; gap: 14px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.card-specs span { display: inline-flex; gap: 5px; align-items: center; }
.card-specs .icon { width: 16px; height: 16px; color: var(--brand-3); }
.card-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.area-tile { padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; transition: border-color .15s, transform .15s; }
.area-tile:hover { border-color: var(--brand-3); transform: translateY(-2px); }
.area-tile b { font-weight: 600; }
.area-tile span { font-size: 13.5px; color: var(--muted); background: var(--brand-tint); padding: 2px 10px; border-radius: 999px; }

/* ---------- How ---------- */
.how { background: linear-gradient(180deg, #f3eee3, var(--bg)); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line-2); position: relative; }
.step-n { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-family: var(--serif); font-size: 21px; font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

.cta { border-radius: 28px; background: linear-gradient(120deg, #0f3d33, #1a5a4a); color: #f6efe2; padding: 52px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: auto -80px -120px auto; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(212,162,76,.12); }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta p { color: rgba(246,239,226,.78); margin: 0; }
.cta-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; position: relative; }
.cta .btn-outline { background: transparent; color: #f6efe2; border-color: rgba(255,255,255,.3); }

/* ---------- Listings page ---------- */
.page-head { padding: 40px 0 26px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 4px; }
.layout { display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start; padding-bottom: 80px; }
.filters { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.filters h3 { font-size: 18px; margin: 0; display: flex; justify-content: space-between; align-items: center; }
.filters h3 button { font-size: 13.5px; color: var(--brand-3); background: none; border: 0; cursor: pointer; font-weight: 500; }
.fgroup label.lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15.5px; }
textarea.input { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input:focus { border-color: var(--brand-3); box-shadow: 0 0 0 4px rgba(31,111,92,.12); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236d7a75' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segs { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; transition: all .15s; }
.seg:hover { border-color: var(--brand-3); }
.seg.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.results-bar select { width: auto; height: 40px; }
.filter-toggle { display: none; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pager button { min-width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; padding: 70px 20px; background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }
.empty svg { width: 60px; height: 60px; color: var(--gold); margin: 0 auto 12px; }

/* ---------- Detail ---------- */
.detail { padding: 28px 0 80px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; border-radius: 24px; overflow: hidden; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; background: #e9e3d6; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button:first-child { grid-row: span 2; }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2 { grid-template-columns: 2fr 1fr; }
.gallery.n2 button:nth-child(2) { grid-row: span 2; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n4 button:nth-child(4) { grid-column: span 2; }
.detail-grid { display: grid; grid-template-columns: 1fr 370px; gap: 40px; margin-top: 32px; align-items: start; }
.detail h1 { font-size: clamp(26px, 3vw, 36px); }
.detail-loc { color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 18px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 30px; }
.spec { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; }
.spec small { display: block; color: var(--muted); font-size: 13px; }
.spec b { font-size: 17px; font-weight: 600; }
.block { margin-bottom: 30px; }
.block h3 { font-size: 20px; font-family: var(--serif); margin-bottom: 12px; }
.facs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.fac { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); font-weight: 500; font-size: 15px; }
.fac .icon { color: var(--brand-3); }
.desc { white-space: pre-line; color: var(--ink-2); }
.side-card { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line-2); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.side-price { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--brand); line-height: 1.1; }
.side-price small { font-family: var(--font); font-size: 15px; color: var(--muted); font-weight: 400; }
.cost-rows { margin: 18px 0; border-top: 1px solid var(--line-2); }
.cost-rows div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.cost-rows div b { font-weight: 600; }
.owner { display: flex; gap: 12px; align-items: center; margin: 18px 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-tint); color: var(--warn); display: grid; place-items: center; font-weight: 700; font-size: 19px; flex: none; }
.side-card .btn { margin-top: 10px; }
.verified { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ok); background: var(--ok-tint); padding: 8px 12px; border-radius: 10px; margin-top: 14px; }
.lightbox { position: fixed; inset: 0; background: rgba(8,20,17,.94); z-index: 200; display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-count { position: absolute; bottom: 24px; color: #fff; font-size: 14px; }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: linear-gradient(180deg, rgba(9,35,29,.55), rgba(9,35,29,.9)), url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1400&q=70') center/cover; color: #f6efe2; padding: 60px; display: flex; flex-direction: column; justify-content: flex-end; }
.auth-art h2 { color: #fff; font-size: 34px; max-width: 16ch; }
.auth-art p { color: rgba(246,239,226,.8); max-width: 44ch; }
.auth-form { display: grid; place-items: center; padding: 40px 20px; }
.auth-form form { width: min(420px, 100%); }
.auth-form h1 { font-size: 32px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.demo-box { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--gold-tint); font-size: 14px; color: #5e4510; }
.demo-box button { background: none; border: 0; color: var(--brand); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
.form-err { background: var(--danger-tint); color: var(--danger); padding: 10px 14px; border-radius: 10px; font-size: 14.5px; margin-bottom: 14px; }

/* ---------- Dashboard / Admin ---------- */
.dash { padding: 34px 0 80px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-head h1 { font-size: 32px; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.kpi { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 20px 22px; }
.kpi small { color: var(--muted); font-size: 14px; }
.kpi b { display: block; font-family: var(--serif); font-size: 32px; color: var(--brand); line-height: 1.2; }
.kpi.warn b { color: var(--warn); }
.tabs { display: flex; gap: 4px; background: #efe9dd; padding: 5px; border-radius: 14px; margin-bottom: 22px; overflow-x: auto; width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 10px; cursor: pointer; font-weight: 500; white-space: nowrap; color: var(--ink-2); }
.tabs button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); font-weight: 600; }
.tabs .count { background: var(--warn-tint); color: var(--warn); border-radius: 999px; font-size: 12px; padding: 1px 8px; margin-left: 4px; }
.table-wrap { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: #fcfaf6; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-pending { background: var(--warn-tint); color: var(--warn); }
.s-approved { background: var(--ok-tint); color: var(--ok); }
.s-rejected { background: var(--danger-tint); color: var(--danger); }
.s-rented { background: #e8e9f3; color: #3d4580; }
.mylist { display: flex; flex-direction: column; gap: 14px; }
.myitem { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center; }
.myitem img, .myitem .ph { width: 150px; height: 110px; object-fit: cover; border-radius: 12px; background: #e9e3d6; }
.myitem h3 { font-size: 17px; margin: 4px 0; }
.myitem .meta { font-size: 14px; color: var(--muted); }
.myitem .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.reason { margin-top: 8px; font-size: 14px; background: var(--danger-tint); color: var(--danger); padding: 8px 12px; border-radius: 10px; }
.review-card { background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 18px; display: grid; grid-template-columns: 260px 1fr; gap: 22px; margin-bottom: 16px; }
.review-card .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.review-card .thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.review-card .thumbs img:first-child { grid-column: span 3; aspect-ratio: 4/3; }
.review-card h3 { font-size: 19px; margin: 6px 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 18px; font-size: 14.5px; margin: 12px 0; }
.kv span { color: var(--muted); }
.review-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.activity { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 8px 20px; }
.activity div { padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; display: flex; justify-content: space-between; gap: 12px; }
.activity div:last-child { border: 0; }

/* ---------- Post form ---------- */
.form-card { background: #fff; border: 1px solid var(--line-2); border-radius: 22px; padding: 30px; margin-bottom: 20px; }
.form-card h2 { font-size: 21px; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.form-card h2 .n { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-tint); color: var(--brand); font-size: 15px; display: grid; place-items: center; font-family: var(--font); }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid .span2 { grid-column: span 2; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; transition: all .15s; user-select: none; }
.check input { accent-color: var(--brand); width: 17px; height: 17px; }
.check:has(input:checked) { border-color: var(--brand-3); background: var(--brand-tint); }
.uploader { display: block; border: 2px dashed var(--line); border-radius: 16px; padding: 26px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.uploader:hover, .uploader.drag { border-color: var(--brand-3); background: var(--brand-tint); }
.uploader svg { width: 40px; height: 40px; color: var(--brand-3); margin: 0 auto 6px; }
.thumbs-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.thumbs-edit div { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eee; }
.thumbs-edit img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-edit button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.thumbs-edit .cover { position: absolute; left: 6px; bottom: 6px; font-size: 11px; background: var(--gold-2); color: #1c1407; padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.thumbs-edit .loading { display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; position: sticky; bottom: 0; padding: 16px 0; background: linear-gradient(transparent, var(--bg) 30%); }

/* ---------- Smart search (coming soon) ---------- */
.ai-page { padding: 50px 0 90px; }
.ai-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ai-shell h1 { font-size: clamp(32px, 4vw, 50px); }
.ai-shell h1 em { font-style: normal; color: var(--gold); }
.ai-features { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.ai-features li { display: flex; gap: 12px; align-items: flex-start; }
.ai-features .icon { color: var(--brand-3); margin-top: 4px; }
.chat-mock { background: #fff; border-radius: 26px; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
.chat-top { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; gap: 12px; align-items: center; }
.chat-top .ai-orb { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); border: 0; }
.chat-top .ai-orb svg { width: 22px; height: 22px; }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 340px; filter: blur(.4px); }
.bubble { max-width: 82%; padding: 11px 16px; border-radius: 18px; font-size: 15px; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: #f3efe6; border-bottom-left-radius: 6px; }
.mini-cards { display: flex; gap: 8px; }
.mini-cards div { flex: 1; height: 70px; border-radius: 12px; background-size: cover; background-position: center; }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line-2); }
.chat-input input { flex: 1; }
.dev-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(250,247,241,.92) 62%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 30px; text-align: center; }
.dev-overlay .badge-dev { background: var(--gold-tint); color: var(--warn); border-color: #ecd6a6; }
.dev-overlay .badge-dev::before { background: var(--warn); }
.dev-overlay h3 { font-family: var(--serif); font-size: 22px; margin: 4px 0; }

/* ---------- Toast & modal ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 300; font-size: 15px; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }
.modal { position: fixed; inset: 0; background: rgba(10,25,21,.55); z-index: 250; display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px); }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 22px; padding: 26px; width: min(480px, 100%); box-shadow: var(--shadow-lg); }
.modal-card h3 { font-family: var(--serif); font-size: 21px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.skeleton { background: linear-gradient(90deg, #eee8dc 0%, #f6f2ea 50%, #eee8dc 100%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0 } }
.sk-card { height: 360px; }

/* ---------- Footer ---------- */
.footer { background: #0c2f28; color: #d9d2c4; padding: 60px 0 24px; margin-top: 40px; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer a, .footer span { display: block; padding: 3px 0; font-size: 15px; }
.footer a:hover { color: var(--gold-2); }
.footer .muted { color: #9fb1aa; }
.brand-foot { color: #f6efe2; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(360px, 100%); z-index: 120; border-radius: 0; overflow-y: auto; transform: translateX(100%); transition: transform .25s; top: 0; }
  .filters.open { transform: none; box-shadow: var(--shadow-lg); }
  .filter-toggle { display: inline-flex; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .ai-shell, .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .cta { grid-template-columns: 1fr; padding: 36px; }
  .cta-actions { justify-content: flex-start; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .review-card { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; color: var(--ink) !important; border-bottom: 1px solid var(--line-2); }
  .burger { display: block; }
  .nav-actions .hide-m { display: none; }
  .searchbox { grid-template-columns: 1fr 1fr; }
  .sb-field + .sb-field::before { display: none; }
  .sb-field:first-child { grid-column: span 2; }
  .searchbox .btn { grid-column: span 2; height: 50px; }
  .ai-card { grid-template-columns: 1fr; text-align: left; padding: 26px; }
  .gallery { grid-template-columns: 1fr 1fr !important; grid-template-rows: 240px 120px; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
  .gallery.n1 button:first-child, .gallery.n2 button:first-child { grid-row: span 2; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid .span2 { grid-column: 1 / -1; }
  .myitem { grid-template-columns: 96px 1fr; }
  .myitem img, .myitem .ph { width: 96px; height: 86px; }
  .myitem .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .form-card { padding: 22px 18px; }
  .hero { padding: 130px 0 90px; }
  .hero-stats { gap: 28px; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand-text { font-size: 25px; }
  .nav-actions .btn { padding: 0 14px; }
  .fgrid { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}

/* ---------- Refinements ---------- */
.nav a { white-space: nowrap; }
.nav .m-extra { display: none; }
@media (max-width: 820px) { .nav .m-extra { display: block; } }
.burger span { width: 22px; }
.footer .brand-text { font-size: 30px; display: inline; }
.footer-bottom span { display: inline; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.ph-img { position: absolute; inset: 0; display: grid; place-items: center; color: #b9ad95; }
.ph-img svg { width: 54px; height: 54px; }
.myitem .ph { display: grid; place-items: center; color: #b9ad95; }
