:root{
  --bg0:#050607;
  --bg1:#0b0d10;
  --card:#0f1218;
  --card2:#0c0f14;
  --stroke:#232a35;
  --text:#e9edf2;
  --muted:#aeb7c4;
  --accent:#f5c937;
  --good:#39d98a;
  --bad:#ff6b6b;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, #1a1f2b 0%, rgba(0,0,0,0) 60%),
              radial-gradient(900px 600px at 90% 0%, #161b24 0%, rgba(0,0,0,0) 55%),
              linear-gradient(180deg, var(--bg1), var(--bg0));
  overflow-x:hidden;
}

.bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(700px 450px at 30% 40%, rgba(245,201,55,0.08), rgba(0,0,0,0) 60%),
    radial-gradient(700px 450px at 70% 55%, rgba(0,160,255,0.06), rgba(0,0,0,0) 62%);
  opacity: 1;
}

.topbar{
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 14px 16px;
  background: rgba(15,18,24,0.78);
  border: 1px solid rgba(35,42,53,0.9);
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 260px;
}

.brand-logo{
  width:46px;
  height:46px;
  object-fit:contain;
  border-radius: 10px;
}

.brand-name{
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-sub{
  font-size: 12px;
  color: var(--muted);
  margin-top:2px;
}

.nav{
  display:flex;
  gap:10px;
}

.nav-btn{
  text-decoration:none;
  color: var(--text);
  border: 1px solid rgba(35,42,53,0.95);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(9,12,16,0.4);
}

.nav-btn.active{
  border-color: rgba(245,201,55,0.9);
  box-shadow: 0 0 0 2px rgba(245,201,55,0.12) inset;
}

.wrap{
  max-width: 1080px;
  margin: 18px auto 50px;
  padding: 0 14px;
}

.card{
  background: rgba(15,18,24,0.82);
  border: 1px solid rgba(35,42,53,0.9);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(10px);
}

h1{
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.3px;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 860px;
}

.filters{
  display:grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items:end;
  margin-top: 10px;
}

.filter label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(35,42,53,0.95);
  background: rgba(9,12,16,0.6);
  color: var(--text);
  outline:none;
}

button{
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(245,201,55,0.9);
  background: rgba(245,201,55,0.92);
  color: #111;
  font-weight: 800;
  cursor:pointer;
}

button:disabled{
  opacity: 0.6;
  cursor:not-allowed;
}

.meta{
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.error{
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,107,107,0.5);
  background: rgba(255,107,107,0.12);
  color: #ffd7d7;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

/* =========================
   RESULTS LIST (PRO LOOK)
   Works with your .result markup
   ========================= */

.results{
  margin-top: 16px;
  display:grid;
  gap: 10px;
}

/* Your JS creates <div class="result"> ... */
.result{
  position: relative;
  border: 1px solid rgba(35,42,53,0.9);
  border-radius: 16px;
  background: rgba(9,12,16,0.55);
  padding: 12px 14px 12px 18px;
}

/* bullet accent */
.result::before{
  content: "•";
  position: absolute;
  left: 10px;
  top: 13px;
  color: rgba(245,201,55,0.95);
  font-size: 16px;
  line-height: 1;
}

/* header row */
.result-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

/* ONLY business name is bold */
.biz-name{
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1px;
  margin: 0;
}

/* status pill */
.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(35,42,53,0.9);
  background: rgba(12,15,20,0.7);
  font-size: 12px;
  white-space: nowrap;
  font-weight: 700;
}

.pill-ok{
  border-color: rgba(57,217,138,0.45);
  background: rgba(57,217,138,0.12);
  color: #bff4dc;
}

.pill-off{
  border-color: rgba(255,107,107,0.5);
  background: rgba(255,107,107,0.12);
  color: #ffd7d7;
}

/* address line smaller + not bold */
.result-sub{
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

/* positions line smaller + not bold */
.result-pos{
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(35,42,53,0.55);
  color: rgba(236, 205, 29, 0.92);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.result-pos .label{
  color: rgba(233, 193, 17, 0.9);
  font-weight: 700;
}

/* If you ever render a UL for positions later */
.result-pos ul{
  margin: 8px 0 0;
  padding: 0 0 0 18px;
}

/* =========================
   Backward compatibility:
   If any old markup still uses .row/.biz/.sub/.positions
   ========================= */
.row{
  border: 1px solid rgba(35,42,53,0.9);
  border-radius: 16px;
  background: rgba(9,12,16,0.55);
  padding: 14px;
}

.row-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.biz{
  font-weight: 800;
  font-size: 15px;
  margin: 0;
}

.sub{
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.positions{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(35,42,53,0.55);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.positions ul{
  margin: 8px 0 0;
  padding: 0 0 0 18px;
}

/* =========================
   Optional group styles
   (cleaned, no duplicates)
   ========================= */
.group{
  margin-top: 14px;
}

.group-title{
  font-weight: 800;
  margin: 10px 0;
  opacity: 0.95;
  font-size: 13px;
  color: rgba(211, 23, 23, 0.95);
}

.biz-divider{
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 10px 0 0 22px;
}

.footer-note{
  margin-top: 18px;
  text-align:center;
  color: var(--muted);
  font-size: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(35,42,53,0.55);
}

@media (max-width: 820px){
  .filters{ grid-template-columns: 1fr; }
  .brand{ min-width: unset; }
}