/* Hiresting — shared styles (mobile first) */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1d1b16;
  --muted: #6b6860;
  --line: #e6e3db;
  --brand: #1a3c8f;
  --brand-soft: #e8edf9;
  --hiring: #166534;   --hiring-soft: #dcfce7;
  --maybe: #4ade80;    --maybe-soft: #dcfce7;   --maybe-ink: #166534;
  --walkin: #facc15;   --walkin-soft: #fef9c3;  --walkin-ink: #854d0e;
  --chain: #8a8a93;    --chain-soft: #eeeef1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.45; font-size: 16px;
}
a { color: var(--brand); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding-top: 40px; padding-bottom: 26px; text-align: center; }
.logo { font-weight: 800; letter-spacing: -.02em; font-size: 15px; color: var(--brand);
        display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hiring); box-shadow: 0 0 0 4px var(--hiring-soft); }
.hero h1 { font-size: clamp(32px, 6.5vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 18px 0 10px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { color: var(--muted); font-size: 18px; margin: 0 auto 28px; max-width: 620px; }
.stats { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 18px; box-shadow: var(--shadow); text-align: center; }
.stat .num { font-size: clamp(30px, 4.5vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.stat .lbl { color: var(--muted); font-size: 14px; }
.stat.accent .num { color: var(--hiring); }

/* ── Filters ─────────────────────────────────────── */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
           padding: 14px; box-shadow: var(--shadow); margin: 18px 0 12px; display: grid; gap: 12px; }
.frow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flabel { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
          width: 100%; }
@media (min-width: 720px) { .flabel { width: auto; min-width: 118px; } }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line);
         border-radius: 999px; cursor: pointer; user-select: none; font-size: 14px; background: #fff; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.check .sw { width: 10px; height: 10px; border-radius: 50%; }
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.search { flex: 1 1 220px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px;
          font: inherit; font-size: 15px; background: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 999px;
       border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600;
       cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.hiring { background: var(--hiring); border-color: var(--hiring); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.count { color: var(--muted); font-size: 14px; }

/* ── Map + list ──────────────────────────────────── */
.layout { display: grid; gap: 16px; margin-bottom: 40px; }
#map { height: 62vh; min-height: 380px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 0; }
@media (min-width: 960px) { #map { height: 72vh; min-height: 560px; } }
.list { display: grid; gap: 10px; align-content: start; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.list .more, .list .empty { grid-column: 1 / -1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer;
        display: grid; gap: 4px; transition: border-color .15s; }
.card:hover, .card.active { border-color: var(--brand); }
.card .top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.card .name { font-weight: 700; }
.card .meta { color: var(--muted); font-size: 13px; }
.card .jobs { font-size: 13px; }
.more { text-align: center; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px;
         border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-hiring { color: #fff; background: var(--hiring); }
.b-maybe { color: var(--maybe-ink); background: #bbf7d0; }
.b-maybe::before { background: var(--maybe); box-shadow: 0 0 0 1px var(--maybe-ink); }
.b-walk_in { color: var(--walkin-ink); background: var(--walkin-soft); }
.b-walk_in::before { background: var(--walkin); box-shadow: 0 0 0 1px var(--walkin-ink); }
.b-chain { color: var(--chain); background: var(--chain-soft); }

/* markers */
.pin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin.hiring { background: var(--hiring); width: 20px; height: 20px; }
.pin.maybe { background: var(--maybe); }
.pin.walk_in { background: var(--walkin); }
.pin.chain { background: var(--chain); width: 12px; height: 12px; }
.leaflet-tooltip.tip, .leaflet-popup-content { font-family: inherit; }
.tipbox { min-width: 200px; max-width: 260px; white-space: normal; display: grid; gap: 4px; font-size: 13px; }
.tipbox .t { font-weight: 700; font-size: 14px; }
.tipbox .m { color: var(--muted); }
.tipbox .go { margin-top: 6px; }

/* ── Detail page ─────────────────────────────────── */
.back { display: inline-block; margin: 20px 0 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.dhead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.dhead h1 { margin: 10px 0 4px; font-size: clamp(26px, 5vw, 38px); letter-spacing: -.02em; line-height: 1.1; }
.dhead .sub { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.grid2 { display: grid; gap: 14px; margin: 14px 0 40px; align-items: start; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1.4fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.job { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 6px; }
.job:first-of-type { border-top: 0; padding-top: 0; }
.job .jt { font-weight: 700; font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.quote { font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; margin: 2px 0; }
.quote details.orig { margin-top: 4px; }
.quote details.orig summary { cursor: pointer; font-size: 12px; color: var(--brand); list-style: none; }
.quote details.orig summary::-webkit-details-marker { display: none; }
.quote details.orig[open] summary { margin-bottom: 2px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 700; }
#minimap { height: 220px; border-radius: 10px; margin-top: 12px; z-index: 0; }
.small { font-size: 13px; color: var(--muted); }
.note { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
footer { color: var(--muted); font-size: 13px; padding: 24px 0 40px; border-top: 1px solid var(--line); }
.empty { color: var(--muted); padding: 20px; text-align: center; }

/* neutral cluster bubbles so they don't look like a status colour */
.cl { background: rgba(26,60,143,.18); border-radius: 50%; display: grid; place-items: center; }
.cl span { background: var(--brand); color: #fff; font-weight: 700; font-size: 12px; border-radius: 50%;
           width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #fff; }
.pin.maybe { border-color: #fff; box-shadow: 0 0 0 1px var(--maybe-ink), 0 1px 4px rgba(0,0,0,.35); }
.pin.walk_in { box-shadow: 0 0 0 1px var(--walkin-ink), 0 1px 4px rgba(0,0,0,.35); }
