/* ============================================================
   ParkZilla design system v1 — shared by all five surfaces.
   Brand-neutral blue family per spec §5.4; real brand assets land
   in /assets/brand/ later (Addendum §L) and only these tokens change.
   ============================================================ */

:root {
  /* Brand palette — ParkZilla Brand Guidelines 2026 (exact hex) */
  --pz-navy: #131e46;   /* logo navy */
  --pz-blue: #239ff5;          /* brand blue — backgrounds/gradients/large fills only, see --pz-blue-deep for text/UI */
  --pz-blue-deep: #2166cc;     /* text, links, button fills — passes WCAG AA on white (5.47:1); raw --pz-blue does not (2.86:1) */
  --pz-teal: #51c4d8;          /* signature accent from the logo pin */
  --pz-blue-city: #5ba7f7;     /* city parking (lighter blue) */
  --pz-blue-soft: #e8f0fe;
  --pz-gold: #f5b301;          /* premium badge */
  --pz-green: #1f9d55;
  --pz-red: #d93025;
  --pz-grey: #9aa3ae;          /* unavailable */

  --pz-bg: #f4f6fa;
  --pz-surface: #ffffff;
  --pz-ink: #17222f;
  --pz-ink-soft: #5b6875;
  --pz-line: #e1e6ee;

  --pz-radius: 12px;
  --pz-radius-lg: 20px;
  --pz-shadow: 0 1px 2px rgba(13, 43, 82, .06), 0 4px 16px rgba(13, 43, 82, .08);
  --pz-shadow-lg: 0 8px 40px rgba(13, 43, 82, .22);
  --pz-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pz-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pz-font: var(--pz-font-body); /* alias kept for anything still reading --pz-font directly */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--pz-font-body);
  background: var(--pz-bg);
  color: var(--pz-ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pz-blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.2; font-family: var(--pz-font-heading); }

/* ---------- Buttons ---------- */
.pz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; font-family: inherit;
  background: var(--pz-blue-deep); color: #fff; cursor: pointer;
  transition: filter .15s, transform .12s var(--pz-ease-out, cubic-bezier(.23,1,.32,1));
  text-decoration: none !important;
}
.pz-btn:hover { filter: brightness(1.08); }
.pz-btn:active { transform: scale(.97); }
.pz-btn:disabled { opacity: .5; cursor: default; }
.pz-btn.secondary { background: var(--pz-surface); color: var(--pz-blue-deep); border-color: var(--pz-line); }
.pz-btn.ghost { background: transparent; color: var(--pz-blue-deep); }
.pz-btn.danger { background: var(--pz-red); }
.pz-btn.dark { background: var(--pz-navy); }
.pz-btn.small { padding: 6px 14px; font-size: 13px; }
.pz-btn.block { width: 100%; }

/* ---------- Cards / panels ---------- */
.pz-card {
  background: var(--pz-surface); border: 1px solid var(--pz-line);
  border-radius: var(--pz-radius); box-shadow: var(--pz-shadow); padding: 18px;
}
.pz-stat { padding: 16px 18px; }
.pz-stat .num { font-size: 28px; font-weight: 700; color: var(--pz-navy); }
.pz-stat .lbl { font-size: 12.5px; color: var(--pz-ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.pz-grid { display: grid; gap: 14px; }
.pz-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pz-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pz-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .pz-grid.cols-3, .pz-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Badges ---------- */
.pz-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px;
  background: var(--pz-blue-soft); color: var(--pz-blue-deep);
}
.pz-badge.city { background: #e3f1ff; color: #1668b6; }
.pz-badge.premium { background: #fff6dc; color: #8a6400; }
.pz-badge.ev { background: #e5f8ec; color: #14713c; }
.pz-badge.grey { background: #eef0f3; color: var(--pz-ink-soft); }
.pz-badge.green { background: #e5f8ec; color: #14713c; }
.pz-badge.red { background: #fdeceb; color: #a52117; }

/* ---------- Forms ---------- */
.pz-field { margin-bottom: 14px; }
.pz-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--pz-ink-soft); }
.pz-input, .pz-select {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--pz-line); border-radius: 10px; background: #fff; color: var(--pz-ink);
}
.pz-input:focus, .pz-select:focus { outline: none; border-color: var(--pz-blue-deep); }

/* ---------- Tables ---------- */
.pz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pz-table th, .pz-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--pz-line); }
.pz-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--pz-ink-soft); }

/* ---------- Toasts & demo banner ---------- */
#pz-toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.pz-toast {
  background: var(--pz-navy); color: #fff; border-radius: 999px; padding: 10px 20px;
  font-size: 14px; box-shadow: var(--pz-shadow-lg); animation: pz-pop .18s ease-out;
}
.pz-toast.error { background: var(--pz-red); }
@keyframes pz-pop { from { opacity: 0; transform: translateY(8px); } }

.pz-demo-banner {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  background: #fff6dc; color: #6d4f00; border: 1px dashed #e3bb4d;
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin: 10px 0;
}
.pz-demo-banner b { font-size: 18px; letter-spacing: 3px; color: #4a3600; }

/* ---------- Modal ---------- */
.pz-modal-backdrop {
  position: fixed; inset: 0; background: rgba(13, 43, 82, .5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: pz-fade .15s ease-out;
}
.pz-modal {
  background: #fff; border-radius: var(--pz-radius-lg); box-shadow: var(--pz-shadow-lg);
  width: 100%; max-width: 400px; max-height: 92vh; overflow: auto; padding: 24px;
  animation: pz-pop .18s ease-out;
}
.pz-modal h2 { font-size: 20px; }
@keyframes pz-fade { from { opacity: 0; } }

/* Sweetalert-style confirm dialog (PZ.confirm) — replaces browser confirm() */
.pz-confirm { max-width: 340px; text-align: center; }
.pz-confirm .icon { font-size: 40px; margin-bottom: 6px; }
.pz-confirm h2 { margin: 0 0 8px; }
.pz-confirm p { font-size: 14px; color: var(--pz-ink-soft); margin: 0; line-height: 1.5; }
.pz-confirm .buttons { display: flex; gap: 10px; margin-top: 20px; }
.pz-confirm .buttons .pz-btn { flex: 1; }

/* Mock OAuth account picker */
.pz-picker-account {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border: 1px solid var(--pz-line); border-radius: 10px;
  background: #fff; cursor: pointer; font-family: inherit; font-size: 14px; margin-bottom: 8px; text-align: left;
}
.pz-picker-account:hover { background: var(--pz-blue-soft); }
.pz-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pz-blue-deep); color: #fff; font-weight: 700; font-size: 15px;
}

/* ============================================================
   Portal layout (portal / cities / admin / demo)
   ============================================================ */
.pz-portal { display: flex; min-height: 100vh; }
.pz-sidebar {
  width: 232px; flex: none; background: var(--pz-navy); color: #cdd9ec;
  display: flex; flex-direction: column; padding: 18px 12px;
}
.pz-sidebar .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; padding: 6px 10px 18px; }
.pz-sidebar a.nav {
  display: flex; align-items: center; gap: 10px; color: #cdd9ec; padding: 10px 12px;
  border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none;
}
.pz-sidebar a.nav:hover { background: rgba(255, 255, 255, .08); }
.pz-sidebar a.nav.active { background: var(--pz-blue-deep); color: #fff; }
.pz-sidebar .soon { margin-left: auto; font-size: 10px; background: rgba(255,255,255,.14); border-radius: 999px; padding: 2px 7px; }
.pz-sidebar .foot { margin-top: auto; padding: 10px; font-size: 12px; color: #8fa5c4; }
.pz-main { flex: 1; padding: 26px 30px; max-width: 1200px; }
.pz-topline { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.pz-topline h1 { font-size: 22px; margin: 0; }
.pz-topline .spacer { flex: 1; }
@media (max-width: 800px) {
  .pz-portal { flex-direction: column; }
  .pz-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .pz-sidebar .foot { display: none; }
  .pz-main { padding: 18px; }
}

/* Centered auth screen for portals */
.pz-authwall { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(160deg, var(--pz-navy), #123c7a 60%, var(--pz-blue-deep)); }
.pz-authwall .pz-modal { max-width: 380px; }

/* Impersonation ribbon */
.pz-impersonating {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  background: var(--pz-gold); color: #4a3600; font-size: 13px; font-weight: 600;
  text-align: center; padding: 5px 10px;
}
body.has-ribbon { padding-top: 28px; }

/* ============================================================
   Seeker app (/app): phone bezel on desktop, native feel on mobile
   ============================================================ */
body.pz-app-body { background: linear-gradient(160deg, #0d2b52, #123c7a 55%, #0f47ab); }
.pz-phone {
  position: relative; width: 100%; height: 100dvh; background: #fff; overflow: hidden;
  display: flex; flex-direction: column;
}
@media (min-width: 768px) {
  body.pz-app-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 28px 0; }
  .pz-phone {
    width: 393px; height: 830px; max-height: calc(100vh - 56px);
    border-radius: 46px; border: 10px solid #10151c; box-shadow: var(--pz-shadow-lg);
  }
  .pz-phone::after { /* notch */
    content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 110px; height: 22px; background: #10151c; border-radius: 999px; z-index: 60;
  }
}
.pz-app-screen { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.pz-tab-pane { flex: 1; overflow-y: auto; padding: 16px; padding-top: 46px; }
.pz-tab-pane.no-pad { padding: 0; }

/* Bottom tab bar */
.pz-tabbar {
  flex: none; display: flex; border-top: 1px solid var(--pz-line); background: #fff;
  padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); z-index: 50;
}
.pz-tabbar button {
  flex: 1; background: none; border: none; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; font-weight: 600; color: var(--pz-ink-soft); padding: 4px 0;
}
.pz-tabbar button .ico { font-size: 21px; line-height: 1; }
.pz-tabbar button.active { color: var(--pz-blue-deep); }

/* App header over the map */
.pz-app-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  padding: 14px 12px 8px; padding-top: calc(14px + env(safe-area-inset-top));
  display: flex; gap: 8px; align-items: center; pointer-events: none;
}
@media (min-width: 768px) { .pz-app-head { padding-top: 38px; } }
.pz-app-head > * { pointer-events: auto; }
.pz-searchbar {
  flex: 1; display: flex; align-items: center; gap: 8px; background: #fff;
  border-radius: 999px; box-shadow: var(--pz-shadow); padding: 10px 16px; font-size: 14px; color: var(--pz-ink-soft);
  border: none; cursor: pointer;
}
.pz-iconbtn {
  width: 42px; height: 42px; border-radius: 50%; border: none; background: #fff;
  box-shadow: var(--pz-shadow); cursor: pointer; font-size: 17px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Mode selector pills */
.pz-modes {
  position: absolute; top: 66px; left: 0; right: 0; z-index: 39;
  display: flex; justify-content: center; gap: 6px;
}
@media (min-width: 768px) { .pz-modes { top: 92px; } }
.pz-modes button {
  border: none; background: #fff; box-shadow: var(--pz-shadow); cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--pz-ink-soft);
  border-radius: 999px; padding: 7px 14px;
}
.pz-modes button.active { background: var(--pz-blue-deep); color: #fff; }

/* Map */
#pz-map { position: absolute; inset: 0; }
.pz-map-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #dfe7f3, #dfe7f3 14px, #e9eff8 14px, #e9eff8 28px);
  padding: 30px; text-align: center; color: var(--pz-ink-soft);
}

/* Listing preview bottom sheet */
.pz-sheet {
  position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 45;
  background: #fff; border-radius: var(--pz-radius-lg); box-shadow: var(--pz-shadow-lg);
  padding: 16px; animation: pz-slide .2s ease-out;
}
@keyframes pz-slide { from { transform: translateY(30px); opacity: 0; } }
.pz-sheet .close { position: absolute; top: 10px; right: 12px; border: none; background: #eef0f3; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; }
.pz-sheet h3 { font-size: 16px; margin: 0 0 4px; padding-right: 28px; }
.pz-sheet .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.pz-sheet .price { font-size: 18px; font-weight: 800; color: var(--pz-navy); }

/* Minimized to a bottom bar while walking directions are shown (spec
   §6.1 event mode) — just title, tags, and walk time, map stays visible. */
.pz-sheet.mini { padding: 12px 34px 10px 16px; cursor: pointer; }
.pz-sheet.mini .mini-title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-sheet.mini .meta { margin: 5px 0 0; }
.pz-sheet.mini .mini-walk { font-size: 12.5px; font-weight: 600; color: var(--pz-blue-deep); margin-top: 6px; }
.pz-sheet.mini .mini-hint { font-size: 10.5px; color: var(--pz-ink-soft); text-align: center; margin-top: 6px; }

/* Splash */
#pz-splash {
  position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; color: #fff;
  background: linear-gradient(160deg, var(--pz-navy), var(--pz-blue-deep));
  transition: opacity .45s;
}
#pz-splash.gone { opacity: 0; pointer-events: none; }
#pz-splash .mark { width: 96px; animation: pz-bounce 1s ease infinite alternate; }
#pz-splash .word { font-size: 26px; font-weight: 800; letter-spacing: .5px; }
@keyframes pz-bounce { to { transform: translateY(-8px); } }

/* Hamburger drawer */
.pz-drawer-backdrop { position: absolute; inset: 0; z-index: 55; background: rgba(13,43,82,.45); animation: pz-fade .15s; }
.pz-drawer {
  position: absolute; top: 0; bottom: 0; left: 0; width: 78%; max-width: 300px; z-index: 56;
  background: #fff; box-shadow: var(--pz-shadow-lg); padding: 20px 14px calc(14px + env(safe-area-inset-bottom));
  overflow-y: auto; animation: pz-drawer-in .2s ease-out;
  border-radius: 0 18px 18px 0;
}
@keyframes pz-drawer-in { from { transform: translateX(-40px); opacity: .4; } }
.pz-drawer .who { padding: 26px 10px 14px; border-bottom: 1px solid var(--pz-line); margin-bottom: 8px; }
.pz-drawer .who .nm { font-weight: 700; font-size: 16px; }
.pz-drawer .who .em { font-size: 12.5px; color: var(--pz-ink-soft); }
.pz-drawer button.item, .pz-drawer a.item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 10px;
  background: none; border: none; font-family: inherit; font-size: 14.5px; color: var(--pz-ink);
  border-radius: 8px; cursor: pointer; text-decoration: none;
}
.pz-drawer button.item:hover, .pz-drawer a.item:hover { background: var(--pz-blue-soft); }

/* Simple list rows (events, placeholders) */
.pz-row { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--pz-line); }
.pz-row .ico { font-size: 22px; width: 40px; height: 40px; border-radius: 10px; background: var(--pz-blue-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.pz-row .thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.pz-row .t { font-weight: 600; font-size: 14px; }
.pz-row .s { font-size: 12.5px; color: var(--pz-ink-soft); }
.pz-row-tap { cursor: pointer; border-radius: 10px; }
.pz-row-tap:hover { background: var(--pz-blue-soft); }

.pz-empty { text-align: center; color: var(--pz-ink-soft); padding: 40px 20px; }
.pz-empty .big { font-size: 40px; margin-bottom: 8px; }

/* Events tab mini map (spec §24.3) */
#pz-events-map {
  height: 380px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--pz-line); box-shadow: var(--pz-shadow); position: relative;
}

/* Marketing site (index.php) rules live in /assets/css/landing.css,
   loaded only on that page — see lib/View.php pz_head($title, $extraCss). */

/* =====================================================================
   Phase 1: booking UI — bottom sheets, checkout, meter bar, chips, QR
   ===================================================================== */

.pz-bsheet-backdrop {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(11, 28, 51, .45);
  display: flex; align-items: flex-end;
}
.pz-bsheet {
  background: #fff; width: 100%; max-height: 86%;
  border-radius: 18px 18px 0 0; box-shadow: var(--pz-shadow-lg);
  display: flex; flex-direction: column;
  animation: pz-sheet-up .22s ease;
}
@keyframes pz-sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.pz-bsheet .head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 10px;
}
.pz-bsheet .head h3 { flex: 1; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-bsheet .head .close {
  border: 0; background: var(--pz-surface); border-radius: 999px;
  width: 30px; height: 30px; cursor: pointer; font-size: 13px;
}
.pz-bsheet .body { padding: 4px 18px 20px; overflow-y: auto; }

.pz-note { font-size: 13px; color: var(--pz-ink-soft); margin-bottom: 12px; }
.pz-payerr { color: var(--pz-red); font-size: 13px; margin-top: 8px; min-height: 16px; }

.pz-quotebox {
  background: var(--pz-surface); border: 1px solid var(--pz-line);
  border-radius: 12px; padding: 12px 14px; font-size: 14px;
}
.pz-quotebox .line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.pz-quotebox .line.soft { color: var(--pz-ink-soft); font-size: 12.5px; }
.pz-quotebox .line.total { font-weight: 700; border-top: 1px solid var(--pz-line); margin-top: 6px; padding-top: 8px; }

.pz-qrimg {
  width: min(240px, 70vw); border-radius: 14px;
  border: 1px solid var(--pz-line); box-shadow: var(--pz-shadow);
  margin: 6px auto 10px;
}

.pz-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.pz-chip {
  border: 1px solid var(--pz-line); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--pz-ink);
}
.pz-chip.active { background: var(--pz-blue-deep); border-color: var(--pz-blue-deep); color: #fff; }

.pz-rowbtn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 1px solid var(--pz-line); background: #fff; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px; font-size: 14.5px; cursor: pointer;
}
.pz-rowbtn:hover { background: var(--pz-blue-soft); }

.pz-checkrow {
  display: flex; align-items: center; gap: 10px; font-size: 14.5px;
  padding: 8px 0; cursor: pointer;
}
.pz-checkrow input { width: 18px; height: 18px; }

#pz-meterbar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 55;
  background: var(--pz-navy); color: #fff; border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--pz-shadow-lg);
}
#pz-meterbar .dot {
  width: 9px; height: 9px; border-radius: 999px; background: #37d67a;
  animation: pz-pulse 1.4s ease infinite;
}
@keyframes pz-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

#pz-reservebar {
  position: absolute; top: 96px; left: 10px; right: 10px; z-index: 40;
  display: flex; gap: 8px;
  background: #fff; border-radius: 12px; padding: 8px;
  box-shadow: var(--pz-shadow);
}
#pz-reservebar .pz-input, #pz-reservebar .pz-select { padding: 8px 10px; font-size: 13px; }

/* Event parking mode banner (spec §24.4-§24.6) — sits where the reserve
   bar normally lives; pushes the reserve bar down when both are shown. */
#pz-eventbanner {
  position: absolute; top: 96px; left: 10px; right: 10px; z-index: 41;
  display: flex; align-items: center; gap: 10px;
  background: #eef4ff; border: 1px solid #cfe0fb; color: var(--pz-navy);
  border-radius: 12px; padding: 10px 12px;
  box-shadow: var(--pz-shadow);
}
#pz-eventbanner .t { font-weight: 700; font-size: 13.5px; }
#pz-eventbanner .s { font-size: 12px; color: var(--pz-ink-soft); }
#pz-eventbanner ~ #pz-reservebar { top: 152px; }

/* Event mode decluttering: search/locate/filters and the mode pills
   hide (hamburger + notifications stay), freeing the space for the
   event banner + reserve bar to move up to the top of the screen. */
#tab-park.pz-event-mode #btn-search,
#tab-park.pz-event-mode #btn-locate,
#tab-park.pz-event-mode #btn-filters { display: none; }
#tab-park.pz-event-mode .pz-app-head .pz-bell { margin-left: auto; }
#tab-park.pz-event-mode .pz-modes { display: none; }
#tab-park.pz-event-mode #pz-eventbanner { top: 66px; }
#tab-park.pz-event-mode #pz-eventbanner ~ #pz-reservebar { top: 122px; }
@media (min-width: 768px) {
  #tab-park.pz-event-mode #pz-eventbanner { top: 92px; }
  #tab-park.pz-event-mode #pz-eventbanner ~ #pz-reservebar { top: 148px; }
}

/* Host tab (Phase 1) */
.pz-hostbanner {
  display: flex; align-items: center; gap: 12px;
  background: #fff6dc; border: 1px solid #efdfa8; color: #6b5200;
  border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin: 10px 0;
}
.pz-hostbanner.ok { background: #e5f8ec; border-color: #bde8cd; color: #14713c; }
.pz-minimap {
  height: 180px; border-radius: 12px; border: 1px solid var(--pz-line);
  background: var(--pz-surface); display: flex; align-items: center;
  justify-content: center; color: var(--pz-ink-soft); font-size: 13px;
}

/* Comms (Phase 1): bell, scanner, chat */
.pz-bell { position: relative; }
.pz-bell.has-unread::after {
  content: attr(data-count);
  position: absolute; top: -4px; right: -6px;
  background: var(--pz-red); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 999px; min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; text-align: center;
}
.pz-scanvideo { width: 100%; border-radius: 12px; background: #0b1c33; max-height: 240px; object-fit: cover; }
.pz-scanresult {
  display: flex; gap: 12px; align-items: center;
  border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 14px;
}
.pz-scanresult.ok  { background: #e5f8ec; border: 1px solid #bde8cd; }
.pz-scanresult.bad { background: #fdeceb; border: 1px solid #f3c1bd; }
.pz-scanresult .s { font-size: 12.5px; color: var(--pz-ink-soft); }
.pz-chatlog {
  max-height: 300px; overflow-y: auto; display: flex; flex-direction: column;
  gap: 8px; padding: 4px 0;
}
.pz-chatmsg { max-width: 82%; align-self: flex-start; }
.pz-chatmsg.mine { align-self: flex-end; text-align: right; }
.pz-chatmsg .who { font-size: 11px; color: var(--pz-ink-soft); margin-bottom: 2px; }
.pz-chatmsg .txt {
  display: inline-block; background: var(--pz-surface); border: 1px solid var(--pz-line);
  border-radius: 12px; padding: 8px 12px; font-size: 14px; text-align: left;
}
.pz-chatmsg.mine .txt { background: var(--pz-blue-deep); border-color: var(--pz-blue-deep); color: #fff; }

/* ---------- numbered-space picker (spec §3.3) ---------- */
.pz-spacepick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pz-space-overlay { z-index: 60; }   /* rides above the reserve sheet so its state survives */
.pz-space-legend {
  display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--pz-ink-soft);
  margin: 6px 0 12px;
}
.pz-space-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pz-space-legend .sw { width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--pz-line); display: inline-block; }
.pz-space-legend .sw.free { background: #fff; }
.pz-space-legend .sw.taken { background: #eef0f3; border-color: #dfe3ea; }
.pz-space-legend .sw.premium { background: #fff6dc; border-color: #e7cf86; }
.pz-space-legend .sw.ev { background: #e5f8ec; border-color: #a6e0bd; }
.pz-space-sec {
  font-size: 13px; font-weight: 700; color: var(--pz-ink); margin: 14px 0 8px;
  padding-bottom: 5px; border-bottom: 1px solid var(--pz-line);
}
.pz-space-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
@media (max-width: 340px) { .pz-space-grid { grid-template-columns: repeat(3, 1fr); } }
.pz-space {
  position: relative; aspect-ratio: 1 / 1; min-height: 46px;
  border: 1.5px solid var(--pz-line); border-radius: 10px; background: #fff;
  color: var(--pz-ink); font-weight: 700; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .06s ease, border-color .1s ease, background .1s ease;
}
.pz-space:hover:not(.taken) { border-color: var(--pz-blue-deep); background: var(--pz-blue-soft); }
.pz-space:active:not(.taken) { transform: scale(0.94); }
.pz-space.taken {
  background: #eef0f3; color: var(--pz-grey); border-color: #e6e9ef;
  cursor: not-allowed; font-weight: 600;
}
.pz-space.premium { background: #fffaf0; border-color: #e7cf86; }
.pz-space.premium.taken { background: #f3f0e8; border-color: #e3ddce; }
.pz-space.ev { border-color: #a6e0bd; }
.pz-space .n { line-height: 1; }
.pz-space .tag {
  position: absolute; top: 3px; right: 4px; font-size: 9px; letter-spacing: -1px;
}
