/* ============================================================
   NaijaHomes - Public seller profile styles
   ============================================================ */
:root {
  --g: #0b6b3a;
  --g2: #12894b;
  --g-dark: #063d21;
  --g-soft: #eaf6ef;
  --gold: #f5b82e;
  --bg: #f2f6f3;
  --text: #16251c;
  --muted: #62716a;
  --line: #e3eae6;
  --radius: 18px;
  --shadow: 0 4px 18px rgba(8, 40, 22, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; padding-bottom: 40px;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
h1, h3, p { margin: 0; }
.muted { color: var(--muted); }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--g); }
.logo {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--g2), var(--g-dark)); font-weight: 800; font-size: 20px;
}
.pill-link { border: 1px solid var(--line); background: #fff; padding: 9px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.pill-link:hover { border-color: var(--g); color: var(--g); }

/* cover */
.cover {
  height: 170px; overflow: hidden;
  background: linear-gradient(135deg, #063d21 0%, #0b6b3a 55%, #14a05c 100%);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.state-msg { text-align: center; color: var(--muted); padding: 60px 10px; font-size: 16px; }

/* header card */
.card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.head {
  margin-top: -64px; position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
.avatar {
  width: 112px; height: 112px; border-radius: 50%; overflow: hidden; margin-top: -62px;
  display: grid; place-items: center; font-size: 44px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--g2), var(--g-dark));
  border: 5px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.head h1 { font-size: 26px; line-height: 1.2; }
.vbadge {
  display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 800; padding: 4px 10px;
  border-radius: 999px; background: #d7f5e3; color: var(--g);
}
.tagline { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.4; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.mchip { font-size: 13px; font-weight: 600; background: var(--g-soft); color: var(--g); padding: 6px 12px; border-radius: 999px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  padding: 11px 18px; border: 2px solid var(--g); border-radius: 12px; background: var(--g); color: #fff;
  font-weight: 700; font-size: 15px;
}
.btn-outline { background: #fff; color: var(--g); }
.btn-wa { background: #1faa55; border-color: #1faa55; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #3a2a00; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: #fff; border-radius: 16px; padding: 14px 6px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 22px; color: var(--g); }
.stat span { font-size: 12.5px; color: var(--muted); }

/* tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab {
  flex: 1; padding: 12px; border: 2px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 14px; font-weight: 700; font-size: 15px; cursor: pointer;
}
.tab.active { border-color: var(--g); background: var(--g-soft); color: var(--g); }

/* listings */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.prop { padding: 0; overflow: hidden; display: block; margin: 0; transition: transform .15s, box-shadow .15s; }
.prop:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .12); }
.card-img {
  position: relative; height: 180px; display: grid; place-items: center; font-size: 48px;
  background: linear-gradient(135deg, #cfe3d6, #a9c9b6);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--gold); color: #3a2a00; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.card-body { padding: 14px; }
.price { font-size: 20px; font-weight: 800; color: var(--g); }
.loc { color: var(--muted); font-size: 14px; margin: 4px 0; }
.pmeta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.ctitle { font-weight: 700; font-size: 15px; }
.grid-msg { text-align: center; color: var(--muted); padding: 24px 0; }

/* about */
.card h3 { font-size: 17px; margin-bottom: 10px; }
.bio { white-space: pre-wrap; word-break: break-word; line-height: 1.6; font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--g-soft); color: var(--g); font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 999px; }
.links { display: flex; flex-direction: column; gap: 8px; }
.linkrow { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; word-break: break-all; }
.linkrow:hover { border-color: var(--g); color: var(--g); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #16251c; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 90;
  max-width: 90vw; text-align: center; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 640px) {
  .cover { height: 230px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .head { flex-direction: row; text-align: left; align-items: flex-end; gap: 20px; padding: 20px 22px; }
  .head-main { flex: 1; padding-bottom: 4px; }
  .meta, .actions { justify-content: flex-start; }
  .actions { align-self: flex-end; justify-content: flex-end; max-width: 320px; }
  .avatar { margin-top: -78px; width: 128px; height: 128px; font-size: 52px; flex: none; }
  .head h1 { font-size: 30px; }
}
@media (min-width: 900px) {
  .cover { height: 280px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
