/* We Buy Houses KC — dispo board
   Theme: subtle black & yellow. Near-black ink, one refined yellow accent,
   lots of white space. Deliberately understated. */

:root {
  --ink: #131315;         /* near-black */
  --ink-soft: #3a3a3f;
  --muted: #71717a;
  --line: #e9e9ec;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --accent: #f5c518;      /* subtle gold-yellow */
  --accent-deep: #e0af00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17,17,20,.05), 0 8px 24px rgba(17,17,20,.06);
  --shadow-hover: 0 2px 4px rgba(17,17,20,.08), 0 18px 40px rgba(17,17,20,.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---- top bar ---- */
.topbar {
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 66px; gap: 16px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand-mark .accent { color: var(--accent); }
.brand-sub { font-size: 11.5px; color: #b9b9c0; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; margin-top: 2px; }

/* ---- hero ---- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.hero h1 {
  margin: 0 0 8px; font-size: clamp(28px, 5vw, 40px); letter-spacing: -.02em;
  font-weight: 800;
}
.hero h1::after {
  content: ""; display: block; width: 54px; height: 4px; margin-top: 12px;
  background: var(--accent); border-radius: 3px;
}
.lede { margin: 14px 0 0; max-width: 640px; color: var(--muted); font-size: 16px; }

/* ---- banner / errors ---- */
.banner {
  margin: 24px 0 0; padding: 14px 16px; border-radius: 10px;
  background: #fff8e1; border: 1px solid #f4e2a1; color: #715c00; font-size: 14px;
}

/* ---- card grid ---- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  padding: 32px 0 8px;
}
.card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #dcdce0; }
.card-photo { position: relative; aspect-ratio: 16 / 10; background: #f1f1f3; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #a1a1aa; font-size: 14px; background: repeating-linear-gradient(45deg,#f4f4f5,#f4f4f5 10px,#efeff1 10px,#efeff1 20px);
}
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.addr { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.loc { color: var(--muted); font-size: 14px; }
.cta {
  margin-top: 12px; align-self: flex-start;
  font-weight: 700; font-size: 14px; color: var(--ink);
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
  transition: color .15s ease;
}
.card:hover .cta { color: var(--accent-deep); }
.cta .arrow { transition: transform .16s ease; display: inline-block; }
.card:hover .cta .arrow { transform: translateX(3px); }
.card-nolink { cursor: default; }
.card-nolink:hover { transform: translateY(-3px); }
.cta-soon { color: var(--muted); border-bottom-color: var(--line); font-weight: 600; }

/* ---- empty state ---- */
.empty { text-align: center; padding: 72px 20px 84px; color: var(--muted); }
.empty-mark { font-size: 40px; color: var(--accent-deep); margin-bottom: 8px; }
.empty h2 { margin: 0 0 6px; color: var(--ink); font-size: 22px; }
.empty p { margin: 0; }

/* ---- footer ---- */
.foot {
  margin-top: 48px; border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 22px 0; font-size: 13px; color: var(--muted);
}
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot-dim { color: #a1a1aa; }

/* =======================================================================
   ADMIN
   ======================================================================= */
.ghost-btn {
  color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 8px;
  padding: 8px 12px; font-size: 13px; font-weight: 600;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }

.admin-wrap { padding-top: 26px; padding-bottom: 60px; }

.flash { padding: 12px 15px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.flash-ok { background: #f1faef; border: 1px solid #cce9c0; color: #2f6b1e; }
.flash-error { background: #fdf1f1; border: 1px solid #f0c8c8; color: #9b2222; }

.panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 22px 24px; margin-bottom: 22px;
}
.panel h2 { margin: 0 0 16px; font-size: 18px; letter-spacing: -.01em; }
.count {
  display: inline-block; background: var(--ink); color: #fff; font-size: 12px;
  font-weight: 700; border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: middle;
}

.add-form { display: flex; flex-direction: column; gap: 15px; }
.add-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.add-form small { font-weight: 400; color: var(--muted); font-size: 12px; }
.add-form input[type="text"],
.add-form input[type="url"],
.add-form input[type="file"] {
  font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-family: var(--font); background: #fff; color: var(--ink);
}
.add-form input:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(245,197,24,.25); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row .grow { flex: 1 1 240px; }
.row .narrow { width: 90px; }

.btn {
  align-self: flex-start; margin-top: 4px;
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 10px;
  border-bottom: 3px solid var(--accent); transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }

.deals { width: 100%; border-collapse: collapse; font-size: 14px; }
.deals th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 10px; }
.deals td { border-bottom: 1px solid var(--line); padding: 12px 10px; vertical-align: middle; }
.muted-row { opacity: .55; }
.thumb-cell { width: 64px; }
.thumb-cell img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.no-thumb { color: #c4c4cc; }
.dim { color: var(--muted); }
.link { color: var(--accent-deep); font-weight: 600; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill-live { background: #fff7d6; color: #7a5c00; border: 1px solid #f0d894; }
.pill-off { background: #f1f1f3; color: #71717a; border: 1px solid #e2e2e6; }
.opt { font-weight: 400; color: var(--muted); font-size: 12px; }
.link-cell { min-width: 220px; }
.link-form { display: flex; gap: 5px; align-items: center; margin-bottom: 4px; }
.link-form input { font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; width: 160px; font-family: var(--font); }
.link-form input:focus { outline: none; border-color: var(--accent-deep); }
.nolink-tag { font-size: 11px; font-style: italic; }
.actions-col { white-space: nowrap; }
.actions-col form { display: inline; }
.mini {
  cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 6px 11px; margin-left: 4px;
  border: 1px solid var(--line); background: #fff; border-radius: 8px; color: var(--ink-soft);
}
.mini:hover { border-color: #cfcfd4; }
.mini-accent { border-color: var(--accent-deep); color: var(--accent-deep); }
.mini-danger:hover { border-color: #e0b4b4; color: #b02525; }

@media (max-width: 560px) {
  .foot .wrap { flex-direction: column; }
  .deals thead { display: none; }
  .deals, .deals tbody, .deals tr, .deals td { display: block; width: 100%; }
  .deals tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 6px; }
  .deals td { border: none; padding: 6px 10px; }
  .actions-col { padding-top: 8px; }
}
