/* FindItGhana – one stylesheet, no framework. Mobile first. */
:root {
  --ink: #14281F;
  --ink-2: #3D4F46;
  --muted: #64746C;
  --line: #DCE4DF;
  --surface: #F3F6F4;
  --card: #FFFFFF;
  --green: #0B7A52;
  --green-dk: #08603F;
  --green-lt: #E3F2EB;
  --gold: #F2B705;
  --gold-lt: #FFF4CC;
  --red: #C8312B;
  --red-lt: #FCE9E8;
  --blue: #1F5FA8;
  --kente: repeating-linear-gradient(90deg, #F2B705 0 14px, #0B7A52 14px 22px, #F2B705 22px 30px, #C8312B 30px 34px, #14281F 34px 38px);
  --r-img: 10px;
  --r-box: 14px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--body); color: var(--ink); background: var(--surface); padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 750; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack > * + * { margin-top: 12px; }
.hide { display: none !important; }
.seo-pre ul { padding-left: 18px; } .seo-pre li { padding: 2px 0; } .seo-pre:empty { display: none; }

/* ---------- header ---------- */
.site-top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); }
.site-top::after { content: ""; display: block; height: 5px; background: var(--kente); }
.site-top .bar { display: flex; align-items: center; gap: 14px; height: 58px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: -.02em; white-space: nowrap; }
.logo span { color: var(--gold); }
.logo:hover { text-decoration: none; }
.site-top nav { display: none; gap: 4px; margin-left: 8px; }
.site-top nav a { color: #D5E2DB; padding: 8px 12px; border-radius: 8px; font-weight: 550; }
.site-top nav a.on, .site-top nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.site-top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.site-top .icon-btn { color: #fff; }
.btn-post { background: var(--gold); color: var(--ink); font-weight: 750; border-radius: 999px; padding: 8px 18px; border: 0; cursor: pointer; display: none; }
.btn-post:hover { text-decoration: none; filter: brightness(1.05); }
.announce { background: var(--gold-lt); color: var(--ink); font-size: .9rem; padding: 8px 16px; text-align: center; }

/* ---------- bottom tab bar (phones) ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .72rem; color: var(--muted); font-weight: 600; position: relative; }
.tabs a svg { width: 24px; height: 24px; }
.tabs a.on { color: var(--green); }
.tabs a:hover { text-decoration: none; }
.tabs .post-tab span.dot { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; margin-top: -18px; box-shadow: 0 2px 0 var(--ink); }
.badge { position: absolute; top: 6px; right: calc(50% - 22px); background: var(--red); color: #fff; border-radius: 999px; font-size: .68rem; min-width: 18px; padding: 0 5px; line-height: 18px; text-align: center; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabs { display: none; }
  .site-top nav { display: flex; }
  .btn-post { display: inline-block; }
}

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; background: var(--green); color: #fff;
  font-weight: 650; padding: 11px 18px; border-radius: 10px; cursor: pointer; min-height: 46px; text-align: center; }
.btn:hover { background: var(--green-dk); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { filter: brightness(1.04); }
.btn.wa { background: #1DA851; }
.btn.danger { background: #fff; color: var(--red); border-color: #F0C4C1; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .875rem; border-radius: 8px; }
.btn.block { width: 100%; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.link { background: none; border: 0; color: var(--green); padding: 0; cursor: pointer; font-weight: 600; }

label.f { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
label.f > span.hint { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.input, select.input, textarea.input { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; min-height: 46px; }
.input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-lt); }
textarea.input { min-height: 130px; resize: vertical; }
.grid2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 7px; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--green-lt); color: var(--green-dk); }

/* ---------- search hero ---------- */
.hero { background: var(--ink); color: #fff; padding: 22px 0 26px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero p { color: #C4D4CB; max-width: 52ch; }
.searchbox { display: flex; background: #fff; border-radius: 12px; overflow: hidden; margin-top: 14px; max-width: 760px; }
.searchbox input { flex: 1; border: 0; padding: 14px 16px; min-width: 0; color: var(--ink); }
.searchbox input:focus { outline: none; }
.searchbox select { border: 0; border-left: 1px solid var(--line); padding: 0 10px; background: #fff; color: var(--ink); max-width: 38%; }
.searchbox button { border: 0; background: var(--gold); color: var(--ink); font-weight: 750; padding: 0 18px; cursor: pointer; }
.modes { margin-top: 14px; display: flex; gap: 8px; }
.modes button { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 600; cursor: pointer; }
.modes button.on { background: #fff; color: var(--ink); }
.stats-line { margin-top: 14px; color: #A9BDB2; font-size: .9rem; }

/* ---------- sections ---------- */
section.block { padding: 22px 0 6px; }
section.block > .spread { margin-bottom: 12px; }
section.block h2 { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(7, 1fr); } }
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-box); padding: 12px 6px; text-align: center; color: var(--ink); font-size: .8rem; font-weight: 600; line-height: 1.25; }
.cat .ic { font-size: 1.7rem; display: block; margin-bottom: 4px; }
.cat:hover { border-color: var(--green); text-decoration: none; }

/* listing cards: image-forward, no shadows */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.lc { background: #fff; border-radius: var(--r-box); overflow: hidden; border: 1px solid var(--line); position: relative; color: var(--ink); display: flex; flex-direction: column; }
.lc:hover { text-decoration: none; border-color: #B7C6BE; }
.lc .ph { aspect-ratio: 4/3; background: var(--green-lt); position: relative; overflow: hidden; }
.lc .ph img { width: 100%; height: 100%; object-fit: cover; }
.lc .ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; opacity: .6; }
.lc .count { position: absolute; left: 8px; bottom: 8px; background: rgba(20,40,31,.75); color: #fff; font-size: .72rem; border-radius: 6px; padding: 2px 6px; }
.lc .body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.lc .price { font-family: var(--display); font-weight: 750; font-size: 1.08rem; color: var(--green-dk); }
.lc .t { font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc .loc { font-size: .78rem; color: var(--muted); margin-top: auto; padding-top: 4px; }
.lc.top { border-color: var(--gold); }
.lc.top::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 4px; background: var(--kente); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.tag.top { background: var(--gold); color: var(--ink); }
.tag.ver { background: var(--green-lt); color: var(--green-dk); }
.tag.sold { background: var(--red); color: #fff; }
.tag.pend { background: var(--gold-lt); color: #7A5B00; }
.tag.grey { background: var(--surface); color: var(--ink-2); }
.lc .tags { position: absolute; top: 10px; left: 8px; display: flex; gap: 4px; z-index: 3; }
.fav { position: absolute; top: 6px; right: 6px; z-index: 3; background: rgba(255,255,255,.92); border-radius: 50%; width: 34px; height: 34px; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.fav.on { color: var(--red); }
.fav svg { width: 18px; height: 18px; }

/* business rows: horizontal, distinct from ad cards */
.blist { display: grid; gap: 10px; }
@media (min-width: 900px) { .blist.two { grid-template-columns: 1fr 1fr; } }
.bc { display: grid; grid-template-columns: 92px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-box); padding: 10px; color: var(--ink); }
.bc:hover { text-decoration: none; border-color: #B7C6BE; }
.bc .ph { width: 92px; height: 92px; border-radius: var(--r-img); background: var(--green-lt); overflow: hidden; display: grid; place-items: center; font-size: 2rem; }
.bc .ph img { width: 100%; height: 100%; object-fit: cover; }
.bc h3 { margin: 0 0 2px; }
.bc .meta { font-size: .84rem; color: var(--muted); }
.bc.feat { border-left: 5px solid var(--gold); }
.stars { color: #E2A400; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #D4DCD7; }
.open { color: var(--green); font-weight: 650; }
.closed { color: var(--red); font-weight: 650; }

.region-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .region-strip { grid-template-columns: repeat(4, 1fr); } }
.region-strip a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); font-weight: 600; display: flex; justify-content: space-between; gap: 6px; font-size: .9rem; }
.region-strip a small { color: var(--muted); font-weight: 400; }

/* ---------- browse layout ---------- */
.browse { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 30px; }
@media (min-width: 900px) { .browse { grid-template-columns: 270px 1fr; align-items: start; } }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r-box); padding: 16px; }
.filters h3 { margin-top: 4px; }
@media (max-width: 899px) {
  .filters { position: fixed; inset: 0; z-index: 80; border-radius: 0; overflow-y: auto; padding-bottom: 100px; display: none; }
  .filters.open { display: block; }
}
.filters .close-f { display: block; }
@media (min-width: 900px) { .filters .close-f, .only-mobile { display: none !important; } }
.subcats a { display: block; padding: 6px 0; color: var(--ink); font-size: .93rem; }
.subcats a.on { color: var(--green); font-weight: 700; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.result-bar h1 { font-size: 1.35rem; margin: 0; }
.pager { display: flex; justify-content: center; gap: 10px; padding: 20px 0; }
.empty { text-align: center; padding: 40px 16px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-box); }
.empty .big { font-size: 2.6rem; }

/* ---------- detail pages ---------- */
.detail { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 40px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1fr 360px; align-items: start; } .detail .side { position: sticky; top: 80px; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-box); padding: 16px; }
.panel + .panel { margin-top: 14px; }
.gallery { background: #0E1D16; border-radius: var(--r-box); overflow: hidden; position: relative; }
.gallery .main { aspect-ratio: 4/3; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .main::-webkit-scrollbar { display: none; }
.gallery .main img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.gallery .noimg { flex: 0 0 100%; display: grid; place-items: center; font-size: 4rem; color: #fff; }
.gallery .idx { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: 3px 9px; border-radius: 999px; }
.thumbs { display: flex; gap: 6px; padding: 8px 0 0; overflow-x: auto; }
.thumbs img { width: 64px; height: 52px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .7; border: 2px solid transparent; }
.thumbs img.on { opacity: 1; border-color: var(--gold); }
.big-price { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--green-dk); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.specs div { background: #fff; padding: 9px 12px; }
.specs dt { font-size: .76rem; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.desc { white-space: pre-line; }
.seller { display: flex; gap: 12px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--green-lt); color: var(--green-dk); display: grid; place-items: center; font-weight: 800; font-family: var(--display); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.contact-btns { display: grid; gap: 8px; margin-top: 14px; }
.safety { background: var(--gold-lt); border-radius: 12px; padding: 14px 16px; font-size: .9rem; }
.safety ul { margin: 6px 0 0; padding-left: 18px; }
.cover { height: 200px; background: var(--ink) center/cover; border-radius: var(--r-box); position: relative; overflow: hidden; }
@media (min-width: 700px) { .cover { height: 300px; } }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10,20,15,.75)); }
.cover .over { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.cover .over h1 { color: #fff; margin: 0 0 4px; }
.cover .logo-sq { width: 64px; height: 64px; border-radius: 12px; border: 3px solid #fff; background: #fff; overflow: hidden; margin-bottom: 8px; }
.cover .logo-sq img { width: 100%; height: 100%; object-fit: cover; }
.action-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.action-row a, .action-row button { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .78rem; font-weight: 650; color: var(--ink); cursor: pointer; }
.action-row a:hover, .action-row button:hover { border-color: var(--green); text-decoration: none; }
.action-row svg { width: 22px; height: 22px; color: var(--green); }
.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours td { padding: 4px 0; }
.hours tr.today td { font-weight: 700; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; cursor: pointer; }
.rating-sum { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.rating-sum .avg { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.dist-row { display: grid; grid-template-columns: 14px 1fr 30px; gap: 8px; align-items: center; font-size: .8rem; }
.dist-row .barbg { height: 8px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.dist-row .barbg i { display: block; height: 100%; background: #E2A400; }
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; }
.reply { background: var(--surface); border-left: 3px solid var(--green); padding: 8px 12px; border-radius: 0 8px 8px 0; margin-top: 8px; font-size: .92rem; }
.star-input { display: flex; gap: 4px; font-size: 2rem; }
.star-input button { background: none; border: 0; cursor: pointer; color: #D4DCD7; padding: 0 2px; line-height: 1; }
.star-input button.on { color: #E2A400; }
.mini-map { height: 220px; border-radius: 12px; overflow: hidden; background: var(--green-lt); }

/* ---------- map ---------- */
.map-page { position: relative; height: calc(100vh - 63px - var(--tabbar)); height: calc(100dvh - 63px - var(--tabbar) - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .map-page { height: calc(100vh - 63px); } }
#bigmap { position: absolute; inset: 0; }
.map-tools { position: absolute; z-index: 500; top: 12px; left: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.map-tools > * { pointer-events: auto; }
.map-tools .searchbox { margin: 0; box-shadow: 0 2px 10px rgba(20,40,31,.18); }
.pin { font-size: 22px; width: 36px; height: 36px; display: grid; place-items: center; background: #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid var(--green); box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.pin span { transform: rotate(45deg); font-size: 17px; }
.pin.feat { border-color: var(--gold); background: var(--gold-lt); }
.region-bubble { background: var(--green); color: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: .78rem; white-space: nowrap; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); }

/* ---------- forms / steps ---------- */
.narrow { max-width: 720px; margin: 0 auto; padding: 18px 16px 50px; }
.steps { display: flex; gap: 6px; margin: 4px 0 18px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--green); }
.pick-list { display: grid; gap: 8px; }
.pick-list button { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; text-align: left; cursor: pointer; font-weight: 600; }
.pick-list button:hover { border-color: var(--green); }
.pick-list .ic { font-size: 1.5rem; }
.photo-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-picker .tile { aspect-ratio: 1; border-radius: 10px; overflow: hidden; position: relative; background: var(--surface); }
.photo-picker .tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-picker .tile button { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.65); color: #fff; border: 0; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; }
.photo-picker .tile .first { position: absolute; left: 4px; bottom: 4px; background: var(--gold); font-size: .68rem; font-weight: 700; border-radius: 4px; padding: 1px 5px; }
.photo-picker label.add { aspect-ratio: 1; border: 2px dashed #B7C6BE; border-radius: 10px; display: grid; place-items: center; text-align: center; cursor: pointer; color: var(--green); font-weight: 700; font-size: .85rem; background: #fff; }
.err { color: var(--red); font-size: .88rem; margin-top: -8px; margin-bottom: 12px; }
.input.bad { border-color: var(--red); }
.plans { display: grid; gap: 10px; }
.plan { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; text-align: left; }
.plan.on { border-color: var(--gold); background: var(--gold-lt); }
.plan .p { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.otp { letter-spacing: .5em; font-size: 1.5rem; text-align: center; font-family: var(--display); }

/* ---------- chat ---------- */
.threads a { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px; background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); }
.threads a:hover { text-decoration: none; background: #FAFCFB; }
.threads .th { width: 52px; height: 52px; border-radius: 10px; background: var(--green-lt); overflow: hidden; display: grid; place-items: center; }
.threads .th img { width: 100%; height: 100%; object-fit: cover; }
.threads .preview { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.threads .unread { background: var(--green); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; font-weight: 700; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 63px - var(--tabbar) - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; background: #fff; }
@media (min-width: 900px) { .chat { height: calc(100vh - 63px); border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.chat .head { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.chat .head img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.chat .msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.bubble.mine { align-self: flex-end; background: var(--green); color: #fff; border-color: var(--green); }
.bubble time { display: block; font-size: .68rem; opacity: .7; margin-top: 2px; }
.chat form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat form textarea { flex: 1; min-height: 46px; max-height: 120px; margin: 0; resize: none; }
.quick { display: flex; gap: 6px; padding: 8px 10px 0; overflow-x: auto; }

/* ---------- account ---------- */
.menu-list a, .menu-list button { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; background: #fff; border: 0; border-bottom: 1px solid var(--line); width: 100%; color: var(--ink); font-weight: 600; text-align: left; cursor: pointer; }
.menu-list a:hover { text-decoration: none; background: #FAFCFB; }
.menu-list { border: 1px solid var(--line); border-radius: var(--r-box); overflow: hidden; }
.my-ad { display: grid; grid-template-columns: 84px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-box); padding: 10px; }
.my-ad .ph { width: 84px; height: 84px; border-radius: 8px; background: var(--green-lt); overflow: hidden; display: grid; place-items: center; font-size: 1.8rem; }
.my-ad .ph img { width: 100%; height: 100%; object-fit: cover; }
.my-ad .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- toast + modal ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 200; opacity: 0; transition: .2s; pointer-events: none; max-width: 90vw; font-weight: 550; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.bad { background: var(--red); }
@media (min-width: 900px) { #toast { bottom: 24px; } }
.modal-bg { position: fixed; inset: 0; background: rgba(10,20,15,.55); z-index: 150; display: grid; place-items: end center; }
@media (min-width: 600px) { .modal-bg { place-items: center; } }
.modal { background: #fff; width: 100%; max-width: 480px; border-radius: 18px 18px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; animation: up .18s ease-out; }
@media (min-width: 600px) { .modal { border-radius: 18px; } }
@keyframes up { from { transform: translateY(30px); opacity: .6; } }
.lightbox { position: fixed; inset: 0; background: #000; z-index: 300; display: grid; place-items: center; }
.lightbox img { max-height: 100vh; object-fit: contain; }
.lightbox button { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; color: #fff; background: rgba(255,255,255,.15); border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }
.skeleton { background: linear-gradient(90deg, #E9EFEB 25%, #F4F7F5 50%, #E9EFEB 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-box); }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.offline { background: var(--red); color: #fff; text-align: center; font-size: .85rem; padding: 6px; }

footer.foot { background: var(--ink); color: #A9BDB2; padding: 28px 0 32px; margin-top: 30px; font-size: .9rem; }
footer.foot a { color: #fff; }
footer.foot .cols { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { footer.foot .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
footer.foot h3 { color: #fff; font-size: .95rem; }
footer.foot ul { list-style: none; padding: 0; margin: 0; }
footer.foot li { padding: 3px 0; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }

/* ---------- admin ---------- */
.admin { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 40px; }
@media (min-width: 900px) { .admin { grid-template-columns: 210px 1fr; align-items: start; } }
.admin-nav { display: flex; gap: 6px; overflow-x: auto; }
@media (min-width: 900px) { .admin-nav { flex-direction: column; position: sticky; top: 80px; } }
.admin-nav a { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; white-space: nowrap; display: flex; justify-content: space-between; gap: 8px; }
.admin-nav a.on { background: var(--ink); color: #fff; }
.admin-nav a:hover { text-decoration: none; background: var(--green-lt); }
.admin-nav a.on:hover { background: var(--ink); }
.admin-nav .n { background: var(--red); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 7px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi b { display: block; font-family: var(--display); font-size: 1.6rem; }
.kpi span { color: var(--muted); font-size: .85rem; }
.kpi.alert { border-color: var(--gold); background: var(--gold-lt); }
.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: .78rem; color: var(--muted); font-weight: 600; background: var(--surface); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tbl img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.spark i { flex: 1; background: var(--green); border-radius: 3px 3px 0 0; min-height: 2px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* sticky contact bar on ad pages (phones) */
.contact-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); z-index: 55; background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 8px 12px; }
.contact-bar .btn { min-height: 44px; padding: 8px; font-size: .9rem; }
.has-cbar { padding-bottom: 70px; }
@media (min-width: 900px) { .contact-bar { display: none; } .has-cbar { padding-bottom: 0; } }

/* printable QR sticker */
.sticker { max-width: 420px; margin: 0 auto; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff; text-align: center; }
.sticker .st-top { background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.6rem; padding: 14px 0 12px; position: relative; }
.sticker .st-top span { color: var(--gold); }
.sticker .st-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--kente); }
.sticker .st-body { padding: 26px 24px 22px; }
.sticker .st-lead { font-weight: 700; color: var(--green-dk); margin: 0 0 4px; }
.sticker h1 { font-size: 1.7rem; margin: 0 0 14px; }
.sticker .st-qr svg { width: 240px; height: 240px; display: block; margin: 0 auto; }
.sticker .st-cta { margin: 14px 0 6px; }
.sticker .st-url { font-size: .8rem; color: var(--muted); word-break: break-all; margin: 0; }
@media print {
  .site-top, .tabs, #foot, #announce, .no-print, #toast { display: none !important; }
  body { background: #fff; padding: 0; }
  .sticker { border-width: 2px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
