/* ============================================================
   Availify — styles.css
   Mobile-first app shell + DMV checker components.
   Brand accent #007aff, DM Sans. Status colors kept (green/red/amber).
   ============================================================ */

/* ── Design tokens ───────────────────────────────────── */
:root {
  --brand:       #007AFF;   /* iOS-blue Availify accent */
  --brand-dark:  #0062CC;
  --brand-light: #E5F1FF;
  --green:       #10B981;
  --green-bg:    #ECFDF5;
  --red:         #EF4444;
  --red-bg:      #FEF2F2;
  --amber:       #F59E0B;
  --amber-bg:    #FFFBEB;
  --gold:        #F59E0B;
  --bg:          #F1F5F9;
  --card:        #FFFFFF;
  --border:      #E2E8F0;
  --text:        #1E293B;
  --muted:       #64748B;
  --radius:      16px;
  --radius-sm:   10px;
  --nav-h:       64px;
  --maxw:        520px;
  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:   0 4px 16px rgba(15, 23, 42, 0.08);
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh;
  /* Clear the fixed bottom nav (plus iOS home-indicator inset) */
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}

/* ── Persistent top app-bar ──────────────────────────── */
.appbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  position: sticky; top: 0; z-index: 20;
}
.appbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; flex-direction: column; }
.brand-mark {
  font-size: 22px; font-weight: 800; letter-spacing: -0.6px; color: var(--brand);
}
.brand-tag { font-size: 12px; color: var(--muted); margin-top: 1px; }
.api-dot {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; transition: background 0.3s; }
.dot.online  { background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.dot.offline { background: var(--red);   box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }

/* ── Views (tab screens) ─────────────────────────────── */
.view { display: none; }
.view.active { display: block; animation: viewFade 0.28s ease; }
@keyframes viewFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.explore-wrap {
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 16px;
}

/* ── Search hero ─────────────────────────────────────── */
.search-hero { padding: 8px 2px 0; }
.hero-q {
  font-size: 26px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.5px; color: var(--text); margin-bottom: 14px;
}
.search-trigger {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 54px; padding: 0 18px; cursor: pointer; text-align: left;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 99px; box-shadow: var(--shadow-sm);
  font-size: 16px; color: var(--muted); font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}
.search-trigger:hover { border-color: #CBD5E1; box-shadow: var(--shadow-md); }
.search-trigger:active { transform: scale(0.99); }
.search-trigger .si { font-size: 18px; }

/* ── Category chips (horizontal scroll) ──────────────── */
.cat-row {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-row { scrollbar-width: none; }
.category {
  scroll-snap-align: start; flex: 0 0 auto; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-width: 78px; height: 78px; padding: 10px 12px;
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  transition: border-color 0.18s, background 0.18s, transform 0.1s, color 0.18s;
}
.category:active { transform: scale(0.96); }
.category .cat-ico { font-size: 22px; line-height: 1; }
.category.selected {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: var(--shadow-md);
}
.category:not(.selected):not([data-active="true"]) { color: var(--muted); }
.category .soon-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); opacity: 0.8;
}

/* ── "I Need Something Today" ─────────────────────────── */
.btn-today {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  height: 54px; padding: 0 20px; cursor: pointer; font-family: inherit;
  font-size: 16px; font-weight: 700; color: #fff; border: none; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 6px 18px rgba(0,122,255,0.28); transition: transform 0.1s, box-shadow 0.2s;
}
.btn-today:hover { box-shadow: 0 8px 22px rgba(0,122,255,0.34); }
.btn-today:active { transform: scale(0.98); }

/* ── Section heading inside Explore ──────────────────── */
.explore-section-h {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding: 4px 2px 0;
}

/* Subtle flash to draw the eye to the checker after a scroll */
#dmvChecker { display: flex; flex-direction: column; gap: 16px; border-radius: var(--radius); }
#dmvChecker.flash { animation: flashHi 1.1s ease; }
@keyframes flashHi {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,122,255,0); }
  30%      { box-shadow: 0 0 0 4px rgba(0,122,255,0.18); }
}

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.card-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px;
}

/* ── Form controls ───────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14px; font-weight: 600; color: var(--text); }
select, input[type="text"], input[type="email"], input[type="date"] {
  height: 48px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; color: var(--text); background: var(--card);
  width: 100%; outline: none; transition: border-color 0.2s; font-family: inherit;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
select:focus, input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,122,255,0.12); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 50px; padding: 0 20px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 700; border: none; cursor: pointer; font-family: inherit;
  transition: opacity 0.15s, transform 0.1s, background 0.15s; width: 100%;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-outline:hover:not(:disabled) { background: var(--brand-light); }
.btn-danger { background: transparent; color: var(--red); border: 1.5px solid #FECACA; }
.btn-danger:hover:not(:disabled) { background: var(--red-bg); }
.btn-ghost { background: var(--bg); color: var(--muted); border: 1.5px solid var(--border); font-size: 13px; height: 40px; }
.btn-ghost:hover:not(:disabled) { border-color: var(--muted); }
.btn-save { background: var(--green-bg); color: #065F46; border: 1.5px solid #A7F3D0; }
.btn-save:hover:not(:disabled) { background: #D1FAE5; }
.btn-upgrade { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; border: none; }
.btn-upgrade:hover:not(:disabled) { opacity: 0.9; }
.inline-upgrade {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--brand-dark); color: #fff; border: none; border-radius: 6px;
  padding: 7px 12px; font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: none; vertical-align: middle; font-family: inherit;
}
.inline-upgrade:hover { background: #004ea3; }

/* ── Pro badge ───────────────────────────────────────── */
.badge-pro {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px;
}

/* ── Auto-refresh ────────────────────────────────────── */
.refresh-controls { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: end; }
.status-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 5px 11px; border-radius: 99px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--border);
}
.pill.active { background: var(--brand-light); color: var(--brand); border-color: #BFDBFE; }

/* ── Banners ─────────────────────────────────────────── */
.banner {
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 14px; font-weight: 600; display: flex;
  align-items: center; gap: 10px; flex-wrap: wrap;
}
.banner-green  { background: var(--green-bg); color: #065F46; border: 1.5px solid #A7F3D0; }
.banner-red    { background: var(--red-bg);   color: #991B1B; border: 1.5px solid #FECACA; }
.banner-blue   { background: var(--brand-light); color: var(--brand); border: 1.5px solid #BFDBFE; }
.banner-amber  { background: var(--amber-bg); color: #92400E; border: 1.5px solid #FDE68A; }

/* ── Results ─────────────────────────────────────────── */
#results { display: flex; flex-direction: column; gap: 14px; }
.hero-card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 22px 20px;
  position: relative; overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; right: -20px; top: -20px;
  width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.07);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 99px; margin-bottom: 10px;
}
.hero-time   { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.hero-date   { font-size: 16px; font-weight: 500; opacity: 0.85; margin-top: 4px; }
.hero-office { font-size: 13px; opacity: 0.7; margin-top: 8px; }
.hero-book {
  display: flex; align-items: center; justify-content: center;
  margin-top: 16px; padding: 13px 18px;
  background: #fff; color: var(--brand);
  font-size: 15px; font-weight: 700; text-decoration: none;
  border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}
.hero-book:hover  { background: #F0F7FF; }
.hero-book:active { transform: scale(0.98); }
.hero-book-note   { font-size: 11px; opacity: 0.78; text-align: center; margin-top: 8px; }

.section-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.slots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.slot-card.is-new { border-color: var(--green); background: var(--green-bg); animation: pulse-new 1.5s ease; }
@keyframes pulse-new {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.slot-time   { font-size: 18px; font-weight: 800; }
.slot-date   { font-size: 12px; color: var(--muted); }
.slot-office { font-size: 11px; color: var(--brand); font-weight: 600; }
.slot-new-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green); background: rgba(16,185,129,0.12);
  padding: 1px 7px; border-radius: 99px; align-self: flex-start;
}

/* ── Loading skeletons ───────────────────────────────── */
.skeleton-wrap { display: flex; flex-direction: column; gap: 14px; }
.skel { background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }
.skel-hero { height: 96px; border-radius: var(--radius); }
.skel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.skel-card { height: 78px; }
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Debug toggle ────────────────────────────────────── */
details { margin-top: 4px; }
summary {
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
  padding: 11px 14px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border); list-style: none;
  display: flex; align-items: center; gap: 6px;
}
summary::before { content: "▶"; font-size: 10px; transition: transform 0.2s; }
details[open] summary::before { transform: rotate(90deg); }
pre {
  background: #0F172A; color: #94A3B8; padding: 14px; border-radius: var(--radius-sm);
  overflow-x: auto; font-size: 12px; line-height: 1.6; margin-top: 8px;
  white-space: pre-wrap; word-break: break-all;
}

/* ── Auth ────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-signed-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.auth-user { font-size: 14px; color: var(--muted); }
.auth-user strong { color: var(--text); font-weight: 700; }
.plan-row {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; margin-top: 12px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.plan-label { font-size: 13px; color: var(--muted); flex: 1; }

/* ── Saved alerts ────────────────────────────────────── */
.alert-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border); gap: 12px;
}
.alert-item:last-child { border-bottom: none; }
.alert-info { flex: 1; min-width: 0; }
.alert-office { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-meta   { font-size: 12px; color: var(--muted); margin-top: 2px; }
.alert-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-icon {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 16px; padding: 6px 8px; border-radius: 6px; line-height: 1;
  transition: color 0.15s;
}
.btn-icon:hover { color: var(--red); }

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #CBD5E1; border-radius: 99px; transition: 0.2s; }
.toggle-slider::before {
  content: ""; position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Spinner ─────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty / placeholder views ───────────────────────── */
.placeholder {
  max-width: var(--maxw); margin: 0 auto; min-height: 60vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 28px; gap: 12px;
}
.placeholder .ph-ico {
  width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center;
  font-size: 36px; background: var(--brand-light); margin-bottom: 4px;
}
.placeholder h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.placeholder p { font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 320px; }
.ph-soon {
  margin-top: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand); background: var(--brand-light); padding: 6px 14px; border-radius: 99px;
}

/* ── Toast ───────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  background: #0F172A; color: #fff; font-size: 14px; font-weight: 600;
  padding: 12px 18px; border-radius: 99px; box-shadow: var(--shadow-md);
  z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.22s, transform 0.22s;
  max-width: 88%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Fixed bottom navigation ─────────────────────────── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--nav-h); min-width: 0; cursor: pointer; background: none; border: none;
  font-family: inherit; color: var(--muted); transition: color 0.15s;
}
.nav-item .nav-ico { font-size: 20px; line-height: 1; transition: transform 0.15s; }
.nav-item .nav-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em; }
.nav-item:active .nav-ico { transform: scale(0.86); }
.nav-item.active { color: var(--brand); }
.nav-item.active .nav-ico { transform: translateY(-1px); }

/* ── Footer ──────────────────────────────────────────── */
footer {
  text-align: center; padding: 20px 20px 28px;
  font-size: 12px; color: var(--muted); line-height: 1.6;
  max-width: var(--maxw); margin: 0 auto;
}
footer a { color: var(--brand); text-decoration: none; }

/* ── Utilities ───────────────────────────────────────── */
.hidden     { display: none !important; }
.mt-8       { margin-top: 8px; }
.gap-12     { display: flex; flex-direction: column; gap: 12px; }
.muted-text { font-size: 13px; color: var(--muted); }

/* ============================================================
   STAGE B — Discovery (Map + List)
   ============================================================ */
.discover { max-width: var(--maxw); margin: 0 auto; padding: 14px 16px 8px; }

/* Controls row: category filter + list/map toggle */
.discover-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.discover-filter {
  display: flex; gap: 8px; overflow-x: auto; flex: 1; padding-bottom: 2px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.discover-filter::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto; cursor: pointer; font-family: inherit;
  border: 1.5px solid var(--border); background: var(--card); color: var(--muted);
  font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 99px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.seg {
  display: inline-flex; flex: 0 0 auto; background: var(--bg);
  border: 1px solid var(--border); border-radius: 99px; padding: 3px;
}
.seg-btn {
  border: none; background: none; font-family: inherit; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 13px; border-radius: 99px;
  transition: background 0.15s, color 0.15s;
}
.seg-btn.active { background: var(--card); color: var(--brand); box-shadow: var(--shadow-sm); }

/* Sample-data disclaimer */
.mock-note {
  background: var(--amber-bg); color: #92400E; border: 1px solid #FDE68A;
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px;
  font-size: 12.5px; font-weight: 600; line-height: 1.45;
}

.discover-body { min-height: 40vh; }

/* Map */
.map-wrap {
  width: 100%; height: calc(100dvh - 250px); min-height: 340px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
#leafletMap { width: 100%; height: 100%; }
.leaflet-container { font-family: "DM Sans", -apple-system, sans-serif; background: #e8eef4; }
.leaflet-popup-content { margin: 12px 14px; min-width: 168px; }
.map-pop-name { font-size: 14px; font-weight: 800; letter-spacing: -0.2px; margin-bottom: 4px; }
.map-pop-stat { font-size: 12px; font-weight: 700; margin-bottom: 9px; }
.map-pop .btn-mini { width: 100%; }

/* Business list */
.biz-list { display: flex; flex-direction: column; gap: 12px; }
.biz-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm); animation: viewFade 0.3s ease;
}
.biz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.biz-name { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.biz-addr { font-size: 13px; color: var(--muted); margin-top: 6px; }
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 13px 0; }
.biz-kv { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border-radius: var(--radius-sm); padding: 9px 11px; }
.biz-kv .k { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.biz-kv .v { font-size: 14px; font-weight: 700; }
.biz-actions { display: flex; gap: 8px; }
.biz-book { width: 100%; margin-top: 8px; }

/* Status badges */
.stat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; white-space: nowrap; }
.stat-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stat-available { background: var(--green-bg); color: #047857; }
.stat-limited   { background: var(--amber-bg); color: #B45309; }
.stat-booked    { background: #F1F5F9; color: #64748B; }

/* Mini action buttons */
.btn-mini {
  flex: 1 1 auto; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  border: 1.5px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: transform 0.1s, background 0.15s;
}
.btn-mini:active { transform: scale(0.97); }
.btn-mini-primary { background: var(--brand); color: #fff; }
.btn-mini-primary:hover { background: var(--brand-dark); }
.btn-mini-outline { background: var(--brand-light); color: var(--brand); border-color: #BFDBFE; }
.btn-mini-ghost   { background: var(--bg); color: var(--text); border-color: var(--border); }

/* Discovery skeletons */
.skel-bizlist { display: flex; flex-direction: column; gap: 12px; }
.skel-biz { height: 156px; border-radius: var(--radius); }

/* Detail bottom-sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 70; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 71;
  max-width: var(--maxw); margin: 0 auto;
  background: var(--card); border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 44px rgba(15,23,42,0.20);
  transform: translateY(100%); transition: transform 0.27s cubic-bezier(0.4,0,0.2,1);
  max-height: 88vh; overflow-y: auto;
}
.sheet.open { transform: translateY(0); }
.sheet-handle { width: 42px; height: 4px; border-radius: 99px; background: var(--border); margin: 8px auto 14px; }
.sheet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-name { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; }
.sheet-cat { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sheet-blurb { font-size: 14.5px; color: var(--text); line-height: 1.5; margin: 14px 0; }
.sheet-rows { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin: 14px 0; }
.sheet-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--border); }
.sheet-row:last-child { border-bottom: none; }
.sheet-row span { color: var(--muted); }
.sheet-row b { text-align: right; font-weight: 700; }
.sheet-dmv-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; background: var(--bg); border-radius: var(--radius-sm); padding: 11px 13px; margin: 14px 0; }
.sheet-actions { display: flex; gap: 10px; margin-top: 6px; }
.sheet-actions .btn { flex: 1; }

/* ============================================================
   STAGE C — Booking distinction layer
   ============================================================ */
/* Three visually distinct booking buttons (work on .btn and .btn-mini).
   Full `border` shorthand so the look is consistent on both bases. */
.book-native   { background: var(--brand); color: #fff;        border: 1.5px solid var(--brand); }
.book-native:hover   { background: var(--brand-dark); border-color: var(--brand-dark); }
.book-official { background: #0F172A;      color: #fff;        border: 1.5px solid #0F172A; }
.book-official:hover { background: #1E293B; border-color: #1E293B; }
.book-external { background: var(--card);   color: var(--brand); border: 1.5px solid var(--border); }
.book-external:hover { background: var(--bg); border-color: #CBD5E1; }

/* Native (Availify) mock booking flow — rendered inside the bottom-sheet */
.book-steps { display: flex; gap: 6px; margin: 4px 0 14px; }
.book-step-dot { flex: 1; height: 4px; border-radius: 99px; background: var(--border); transition: background 0.2s; }
.book-step-dot.active { background: var(--brand); }
.book-native-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-light); color: var(--brand);
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: 99px;
}
.slot-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot-pick-btn {
  min-height: 50px; border: 1.5px solid var(--border); background: var(--card);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--text); cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.slot-pick-btn:hover  { border-color: var(--brand); background: var(--brand-light); }
.slot-pick-btn:active { transform: scale(0.97); }
.book-summary {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 4px 0 14px;
}
.book-summary .bk-time { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; margin-top: 2px; }
.book-back {
  background: none; border: none; color: var(--muted); font-family: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; padding: 12px 0 2px;
}
.book-sent { text-align: center; padding: 6px 0 2px; }
.book-sent-ico {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; background: var(--brand-light); margin: 4px auto 12px;
}
.book-status-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--amber-bg); color: #B45309;
  font-size: 13px; font-weight: 700; padding: 7px 15px; border-radius: 99px;
}
.book-status-chip .stat-dot { background: currentColor; }
