/* ── Theme: light (default) ───────────────────────── */
:root {
  --bg-page: #f5f5f5;
  --bg-card: #fff;
  --bg-header: #fff;
  --text-primary: #262626;
  --text-secondary: #555;
  --text-muted: #888;
  --border-color: #e0e0e0;
  --border-light: #f0f0f0;
  --input-bg: #f8f8f8;
  --brand: #033f38;
  --brand-light: #f0f8f6;
  --brand2: #05605a;
  --shadow: 0 4px 24px rgba(3,63,56,.10);
  --radius: 16px;
  --green-bg: #033f38;
  --green-text: #fff;
}

/* ── DARK MODE (fallback — injected JS does the heavy lift) ─── */
[data-theme="dark"] {
  --bg-page: #0d1117;
  --bg-card: #050505;
  --bg-header: #0a0a0a;
  --text-primary: #d0d0d0;
  --text-secondary: #8b949e;
  --text-muted: #5a6372;
  --border-color: #1a1a1a;
  --border-light: #111;
  --input-bg: #050505;
  --brand: #79AE6F;
  --brand-light: #0f1a0e;
  --brand2: #6a9a5e;
  --shadow: 0 4px 24px rgba(0,0,0,.6);
  --green-bg: #79AE6F;
  --green-text: #000;
}

/* ── Generic ──────────────────────────────────────── */
body { background: var(--bg-page); color: var(--text-primary); }

/* ── Fixed top bar (light mode) ───────────────────── */
.fixed-top {
  background: #79AE6F !important;
}

/* ── Green address cards (light mode) ─────────────── */
.card-address,
[class*="address-card"],
[class*="location-card"],
.branch-info,
.restaurant-address {
  background: var(--green-bg) !important;
  color: var(--green-text) !important;
  border: none !important;
  border-radius: 12px;
}
.card-address *,
[class*="address-card"] *,
[class*="location-card"] *,
.branch-info *,
.restaurant-address * {
  color: var(--green-text) !important;
}

/* ── Theme toggle button ──────────────────────────── */
.theme-toggle-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: .15s;
  line-height: 1;
}
.theme-toggle-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.theme-toggle-btn:active {
  transform: scale(.92);
}
