/* ═══ TARGETPARK PREMIUM REDESIGN — Override Layer ═══
   Load AFTER styles.css. Does NOT modify existing variable names.
   Keeps all class names intact. Adds premium feel. */

/* ── 1. TYPOGRAPHY ── */
/* Google Fonts loaded via <link> in index.html for non-blocking rendering */

:root {
  --fd: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --fd-mono: 'Space Mono', 'JetBrains Mono', monospace;
  --err: #dc2626;
  --err-bg: #fef2f2;
  --err-border: #fecaca;
}

body {
  font-family: var(--fd);
  letter-spacing: -0.01em;
}

/* Heading typography — tighter, heavier */
.hero-h,
.hub-section-title,
.hub-b2b-title,
.hub-help-main h3,
.footer-logo {
  font-family: var(--fd);
  letter-spacing: -0.03em;
}

/* Mono for numbers/data */
.stv,
.gp,
.hero-stat-num,
.fp-lot-price,
.hub-event-price,
.cd-num,
.sr.tot span:last-child,
.sip {
  font-family: var(--fd-mono);
  letter-spacing: -0.02em;
}


/* ── 2. HEADER — Near-black with red accent stroke ── */
.hdr {
  background: #111113;
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 24px;
}

.hdr h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  color: #fff;
}

/* Red underline accent on the wordmark */
.hdr h1::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--pr);
}

.hdr h1 span {
  color: #C8102E;
  font-weight: 700;
}

#city-pill {
  background: none;
  border: none;
  padding: 0;
}

.city-pill-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 0;
  border: none;
  background: none;
  color: #fff !important;
  cursor: pointer;
  white-space: nowrap;
}

.city-pill-inner:hover {
  opacity: 0.8;
}

.hdr-signin {
  border-color: rgba(255,255,255,0.15);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.hdr-signin:hover {
  background: rgba(255,255,255,0.08);
}

.dark-toggle {
  border-color: rgba(255,255,255,0.1);
  opacity: 0.6;
}

.dark-toggle:hover {
  opacity: 1;
}

/* Dark mode header — same base, just tweak border */
.dark .hdr {
  background: #0a0a0c;
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.dark .hdr h1 span {
  color: #C8102E;
}


/* ── 3. NAVIGATION TABS — Pill/chip active state ── */
.nav-inner button {
  border-bottom: none;
  border-radius: 6px;
  padding: 8px 16px;
  margin: 6px 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s;
  color: var(--g500);
}

.nav-inner button:hover {
  background: var(--g50);
  color: var(--nv);
}

.nav-inner button.act {
  background: var(--pr);
  color: #fff;
  border-bottom-color: transparent;
}

.dark .nav-inner button:hover {
  background: rgba(255,255,255,0.05);
}

.dark .nav-inner button.act {
  background: var(--pr);
  color: #fff;
}

/* Find parking tabs — same pill treatment */
.fp-tab {
  border-bottom: none;
  border-radius: 6px;
  padding: 8px 18px;
  margin-bottom: 0;
  transition: all 0.15s;
}

.fp-tab:hover {
  background: var(--g50);
}

.fp-tab.act {
  background: var(--pr);
  color: #fff;
  border-bottom-color: transparent;
}

.fp-tabs {
  border-bottom: none;
  gap: 4px;
  padding: 4px;
  background: var(--g50);
  border-radius: 8px;
}

.dark .fp-tabs {
  background: rgba(255,255,255,0.04);
}

.dark .fp-tab:hover {
  background: rgba(255,255,255,0.06);
}

.dark .fp-tab.act {
  background: var(--pr);
  color: #fff;
}

/* Auth tabs — pill style */
.auth-tab {
  border-bottom: none;
  border-radius: 6px;
  margin: 4px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.auth-tab.act {
  background: var(--pr);
  color: #fff;
  border-bottom-color: transparent;
}

/* My Account tabs — pill */
.ma-tab {
  border-bottom: none;
  border-radius: 6px;
  padding: 8px 14px;
}

.ma-tab.act {
  background: var(--pr);
  color: #fff;
  border-bottom-color: transparent;
}

/* Admin tabs — pill */
.admin-tab-btn {
  border-bottom: none;
  border-radius: 6px;
  padding: 7px 14px;
}

.admin-tab-btn.act {
  background: var(--pr);
  color: #fff;
  border-bottom-color: transparent;
}


/* ── 4. HERO — Asymmetric layout, diagonal cut, offset search ── */
.hero {
  text-align: left;
  padding: 100px 24px 90px;
  min-height: 500px;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  contain: layout style paint;
  z-index: 1;
}

/* Darker, moodier background */
.hero-bg {
  background: #18181b;
  overflow: hidden;
  will-change: transform;
}

.hero-bg::before {
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(200,16,46,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(200,16,46,0.04) 0%, transparent 50%);
}

/* Diagonal cut at the bottom — uses transform instead of clip-path for scroll perf */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -1px;
  right: -1px;
  height: 80px;
  background: var(--g50);
  transform-origin: 100% 0;
  transform: skewY(-2.5deg);
  z-index: 3;
}

.dark .hero::before {
  background: #0d1117;
}

.hero::after {
  background: radial-gradient(ellipse at 80% 20%, rgba(200,16,46,0.12) 0%, transparent 50%);
}

.hero-inner {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  z-index: 4;
}

/* Badge — hidden (replaced by scope tabs) */
.hero-badge {
  display: none !important;
}

/* Subtitle — hidden (replaced by scope tabs) */
.hero-sub {
  display: none !important;
}

/* Headline — bigger, left-aligned, angular */
.hero-h {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
  max-width: 560px;
}

/* ── Hero Background — single layer per city, swapped via JS ── */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.7)),
    url('/img/hero-parking.jpg?v=2');
  transition: opacity 0.3s ease;
  opacity: 1;
  z-index: 0;
  will-change: opacity;
}
.hero-bg-layer.fading {
  opacity: 0;
}

/* ── Scope Tabs ── */
.hero-scope-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.scope-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 18px;
  border-radius: 20px;
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.scope-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.scope-tab.active {
  background: #fff;
  color: var(--nv);
  border-color: #fff;
}
.dark .scope-tab {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}
.dark .scope-tab.active {
  background: var(--pr);
  color: #fff;
  border-color: var(--pr);
}

/* Search box — offset to the left, not centered */
.hero-search-wrap {
  margin: 0;
  max-width: 520px;
}

.hero-search {
  border-radius: 10px;
  padding: 4px 4px 4px 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-search:focus-within {
  box-shadow: 0 2px 16px rgba(0,0,0,0.25), 0 0 0 2px rgba(200,16,46,0.5);
  border-color: transparent;
}

.hero-search-btn {
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* Stats — left-aligned, not centered */
.hero-stats {
  justify-content: flex-start;
  margin-top: 40px;
}

.hero-stat-num {
  font-family: var(--fd-mono);
  font-size: 26px;
}

.hero-stat-lbl {
  font-size: 10px;
  letter-spacing: 1.5px;
}

/* Tablet hero headline */
@media (max-width: 768px) {
  .hero-h { font-size: 40px; }
}

/* Mobile hero fallback */
@media (max-width: 600px) {
  .hero {
    text-align: left;
    padding: 60px 16px 70px;
    min-height: auto;
  }

  .hero-h {
    font-size: 32px;
    max-width: 100%;
  }

  .hero::before {
    height: 50px;
  }

  .hero-stats {
    justify-content: flex-start;
  }
}


/* ── 5. CARDS — Subtle inset shadow, left-border accent hover ── */
.sc {
  border: 1px solid var(--g200);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.dark .sc {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 1px 2px rgba(0,0,0,0.2);
}

/* Game cards — left accent on hover */
.gc {
  border: 1px solid var(--g200);
  border-left: 3px solid transparent;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  transition: border-color 0.2s, border-left-color 0.2s, box-shadow 0.2s;
}

.gc:hover {
  border-color: var(--g200);
  border-left-color: var(--pr);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 8px rgba(0,0,0,0.05);
  transform: none;
}

.dark .gc {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.dark .gc:hover {
  border-color: #30363d;
  border-left-color: var(--pr);
}

/* Hub tiles — refined, no lift on hover */
.hub-tile {
  border: 1px solid var(--g200);
  border-radius: 12px;
  padding: 24px 14px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: border-left-color 0.2s, box-shadow 0.2s;
  border-left: 3px solid transparent;
}

.hub-tile:hover {
  transform: none;
  border-color: var(--g200);
  border-left-color: var(--pr);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 8px rgba(0,0,0,0.04);
}

.dark .hub-tile {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.dark .hub-tile:hover {
  border-color: #30363d;
  border-left-color: var(--pr);
  transform: none;
}

/* Event cards — left border accent */
.hub-event-card {
  border: 1px solid var(--g200);
  border-left: 3px solid transparent;
  border-radius: 10px;
  transition: border-left-color 0.2s, box-shadow 0.2s;
}

.hub-event-card:hover {
  border-color: var(--g200);
  border-left-color: var(--pr);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transform: none;
}

/* Venue cards — same treatment */
.venue-card {
  border: 1px solid var(--g200);
  border-left: 3px solid transparent;
  border-radius: 12px;
  transition: border-left-color 0.2s, box-shadow 0.2s;
}

.venue-card:hover {
  border-color: var(--g200);
  border-left-color: var(--pr);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transform: none;
}


/* ── 6. STAT CARDS — Differentiated, left-aligned, colored top-border ── */
.stg {
  gap: 14px;
}

.stc {
  text-align: left;
  padding: 18px 20px;
  border-top: 3px solid var(--g200);
  border-radius: 2px 2px 10px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.stc:hover {
  border-color: var(--g300);
  border-top-color: var(--g300);
}

.stv {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2px;
}

.stl {
  font-size: 11px;
  margin-bottom: 2px;
  order: -1;
}

/* Color-coded top borders per card type via nth-child */
.stc:nth-child(1) { border-top-color: var(--pr); }
.stc:nth-child(2) { border-top-color: var(--gn); }
.stc:nth-child(3) { border-top-color: var(--am); }
.stc:nth-child(4) { border-top-color: #3b82f6; }
.stc:nth-child(5) { border-top-color: #8b5cf6; }
.stc:nth-child(6) { border-top-color: #ec4899; }

.dark .stc {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}


/* ── 7. MISC REFINEMENTS ── */

/* Buttons — slightly tighter radius, more weight */
.btn {
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.bp {
  box-shadow: 0 1px 3px rgba(200,16,46,0.2);
}

.bp:hover {
  box-shadow: 0 2px 8px rgba(200,16,46,0.25);
}

/* Trust row — tighter */
.trust-row {
  background: #111113;
  padding: 14px 24px;
}

.trust-item {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.dark .trust-row {
  background: #0a0a0c;
}

/* Hub section labels — tracked, small caps feel */
.hub-section-label {
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 700;
}

/* Footer — match the dark header feel */
.site-footer {
  background: #111113;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-logo span {
  color: #C8102E;
}
.footer-cols-wrap {
  display: flex;
  gap: 56px;
  flex: 3;
}

/* B2B section — match dark tones */
.hub-b2b-bg {
  background: #111113;
}

/* Filter pills — when active, use pill filled state */
.hub-filter-pill.active {
  border-radius: 6px;
}

/* Admin nav items — pill active */
.ani.act {
  background: rgba(200,16,46,0.08);
  border-radius: 6px;
}

/* Lot picker cards */
.lot-card {
  border-left: 3px solid transparent;
  transition: border-left-color 0.2s;
}

.lot-card:hover {
  border-left-color: var(--pr);
  box-shadow: none;
}

.lot-card.selected {
  border-left-color: var(--pr);
}

/* Search input focus — consistent */
.sbx:focus-within {
  border-color: var(--pr);
  box-shadow: 0 0 0 2px rgba(200,16,46,0.08);
}

/* Nav wrap — remove the border, use subtle shadow instead */
.nav-wrap {
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.dark .nav-wrap {
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* B2B cards — less rounded for premium feel */
.hub-b2b-card {
  border-radius: 10px;
}

/* Hero how-section background fix */
.hub-how-section {
  background: var(--g50) !important;
}


/* ── MOBILE NAV OVERRIDE ── */
@media (max-width: 768px) {
  .nav-inner button.act {
    background: var(--pr);
    color: #fff;
    border-bottom: none;
  }

  .hdr {
    padding: 12px 16px;
  }

  .hdr h1 {
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .hdr h1::after {
    bottom: -4px;
    height: 1.5px;
  }

  /* Hide gate/car/camera animation on mobile */
  .hero-search::before,
  .hero-search::after,
  .gate-car,
  .gate-car-rear,
  .gate-person,
  .gate-paystation,
  .gate-receipt,
  .lpr-cam,
  .lpr-cam::before,
  .lpr-cam::after,
  .hero-search-btn::before,
  .hero-search-btn::after {
    display: none !important;
    content: none !important;
  }

  /* Footer columns — 3 across on mobile */
  .footer-cols-wrap {
    display: flex;
    gap: 12px;
  }
  .footer-col {
    flex: 1;
    min-width: 0;
  }
}

/* ── Legal pages (terms, privacy, refund) ── */
.legal-page {
  padding: 20px 0 40px;
}

.legal-page h2 {
  font-family: var(--fd);
  font-size: 28px;
  color: var(--nv);
  margin: 0 0 4px;
  text-align: center;
}

.legal-page .legal-updated {
  font-size: 13px;
  color: var(--g400);
  text-align: center;
  margin: 0 0 32px;
}

.legal-page h3 {
  font-family: var(--fd);
  font-size: 16px;
  color: var(--nv);
  margin: 28px 0 8px;
}

.legal-page h3:first-of-type {
  margin-top: 0;
}

.legal-page p {
  font-size: 14px;
  color: var(--g500);
  line-height: 1.7;
  margin: 0 0 4px;
}

/* ── About page ── */
.about-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.about-svc-card {
  background: var(--of);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}

.about-svc-card svg {
  margin-bottom: 12px;
}

.about-svc-card h4 {
  font-family: var(--fd);
  font-size: 15px;
  color: var(--nv);
  margin: 0 0 6px;
}

.about-svc-card p {
  font-size: 13px;
  color: var(--g400);
  line-height: 1.5;
  margin: 0;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.about-val {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--of);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nv);
}

@media (max-width: 768px) {
  .about-services {
    grid-template-columns: 1fr;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 8. THE DETAIL — Parking gate barrier on search focus ── */
/*
   A striped red/white barrier arm with a gate post housing.
   Pivots open from the left hinge on focus — like a real parking gate.
*/

.hero-search {
  position: relative;
  overflow: visible;
}

/* The gate arm — red/white diagonal stripes, positioned above Find Parking btn */
.hero-search-btn {
  position: relative;
}

.hero-search::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 6px;
  width: 90px;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--pr) 0px,
    var(--pr) 6px,
    #fff 6px,
    #fff 12px
  );
  border-radius: 3px 0 0 3px;
  transform-origin: 100% 50%;
  transform: rotate(0deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Gate post housing — right side */
.hero-search::after {
  content: '';
  position: absolute;
  top: -12px;
  right: 0;
  width: 14px;
  height: 18px;
  background: #333;
  border-radius: 3px 3px 2px 2px;
  border: 1.5px solid #555;
  z-index: 12;
  pointer-events: none;
  transition: border-color 0.3s, background 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Small indicator light on the gate post — anchored to the Find Parking button */
.hero-search-btn::after {
  content: '';
  position: absolute;
  top: -20px;
  right: 4px;
  width: 5px;
  height: 5px;
  background: var(--pr);
  border-radius: 50%;
  z-index: 13;
  pointer-events: none;
  transition: background 0.3s;
  box-shadow: 0 0 4px rgba(200,16,46,0.6);
}

.hero-search-wrap {
  position: relative;
}

/* Dark mode post */
.dark .hero-search::after {
  background: #222;
  border-color: #444;
}

/* ── Gate opens on focus — arm swings up from right hinge ── */
.hero-search:focus-within::before {
  transform: rotate(75deg);
}

/* Indicator light turns green when open */
.hero-search:focus-within .hero-search-btn::after {
  background: var(--gn);
  box-shadow: 0 0 6px rgba(5,150,105,0.8);
}

/* Post gets a subtle green tint when open */
.hero-search:focus-within::after {
  border-color: rgba(5,150,105,0.4);
}


/* ── 9. THE CAR — drives through the gate on "Find Parking" click ── */
/*
   A tiny car silhouette starts at the gate post, then drives across the
   search bar and exits right. Triggered by adding .gate-go to .hero-search.
   Requires a small JS snippet on the button click.
*/

/* ── Full parking story animation (4.5s total) ──
   Timeline:
   0.0-0.5s  Gate opens, car approaches
   0.3-0.6s  LPR camera flashes
   0.5-1.5s  Car drives through gate, parks in spot
   1.5-3.0s  Car stays parked, person walks to paystation
   3.0-3.5s  Person taps paystation, receipt appears
   3.5-4.5s  Everything fades out
*/

/* 1a. CAR SIDE — drives in, squishes as it turns into the spot */
@keyframes carDriveSide {
  0%   { right: -60px; opacity: 0; transform: scaleX(-1) scale(0.9); }
  5%   { opacity: 1; transform: scaleX(-1) scale(1); }
  12%  { right: 20px; transform: scaleX(-1) scale(1); }
  30%  { right: calc(30%); opacity: 1; transform: scaleX(-1) scaleY(1); }
  36%  { right: calc(30%); opacity: 1; transform: scaleX(-0.05) scaleY(0.95); }
  37%  { right: calc(30%); opacity: 0; transform: scaleX(0) scaleY(0.9); }
  100% { right: calc(30%); opacity: 0; transform: scaleX(0); }
}

.gate-car {
  position: absolute;
  top: -26px;
  right: -50px;
  width: 42px;
  height: 21px;
  z-index: 11;
  pointer-events: none;
  opacity: 0;
  transform-origin: center center;
  /* Silver luxury sedan — side profile for driving */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 60 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 16 h3 l2-3 l4-5 c2-2 4-3 7-3 h10 c3 0 5 1 6.5 2.5 L41 11 l4 5 h10 a4 4 0 0 1 4 3.5 v1.5 H1 v-1.5 A4 4 0 0 1 5 16z' fill='%23A0A8B0'/%3E%3Cpath d='M14 8 c2-2 4-3 7-3 h10 c3 0 5 1 6.5 2.5 L41 11' stroke='%23B8C0C8' stroke-width='.5' fill='none'/%3E%3Cpath d='M14 8.5 l4-4.5 h9 v5.5 h-12z' fill='%23D0E0F0' opacity='.45'/%3E%3Cpath d='M28 4 h3 c2 0 4 1 5.5 2.5 L39 9.5 H28z' fill='%23D0E0F0' opacity='.35'/%3E%3Cpath d='M27 4.5 v5.5 h-12 l3.5-4 c1-1.5 2.5-2 5-2z' fill='%23C0D0E0' opacity='.25'/%3E%3Cpath d='M5 16.5 h50' stroke='%23C0C8D0' stroke-width='.4'/%3E%3Cellipse cx='13' cy='21' rx='5' ry='4.5' fill='%23222'/%3E%3Cellipse cx='13' cy='21' rx='3' ry='2.8' fill='%23444'/%3E%3Cellipse cx='13' cy='21' rx='1.2' ry='1.2' fill='%23666'/%3E%3Cellipse cx='44' cy='21' rx='5' ry='4.5' fill='%23222'/%3E%3Cellipse cx='44' cy='21' rx='3' ry='2.8' fill='%23444'/%3E%3Cellipse cx='44' cy='21' rx='1.2' ry='1.2' fill='%23666'/%3E%3Crect x='2' y='14' width='4' height='2.5' rx='1' fill='%23ffdd57' opacity='.9'/%3E%3Crect x='50' y='14' width='5' height='2' rx='1' fill='%23C8102E' opacity='.9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.hero-search.gate-go .gate-car {
  animation: carDriveSide 4.5s ease forwards;
}

/* 1b. CAR REAR — expands from sliver as car turns into spot */
@keyframes carParkRear {
  0%, 34%  { opacity: 0; transform: scaleX(0) scaleY(0.9); }
  35%      { opacity: 1; transform: scaleX(0.05) scaleY(0.92); }
  42%      { opacity: 1; transform: scaleX(1) scaleY(1); }
  85%      { opacity: 1; transform: scaleX(1) scaleY(1); }
  100%     { opacity: 0; transform: scaleX(1) scaleY(1); }
}

.gate-car-rear {
  position: absolute;
  top: -24px;
  right: calc(30% + 6px);
  width: 28px;
  height: 22px;
  z-index: 11;
  pointer-events: none;
  opacity: 0;
  transform-origin: center center;
  /* Silver sedan rear view — taillights, plate, rear window */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='6' width='24' height='14' rx='2.5' fill='%23A0A8B0'/%3E%3Crect x='2' y='6' width='24' height='14' rx='2.5' stroke='%23B8C0C8' stroke-width='.4'/%3E%3Cpath d='M5 6 Q6 1 14 1 Q22 1 23 6' fill='%23A0A8B0'/%3E%3Cpath d='M5 6 Q6 1 14 1 Q22 1 23 6' stroke='%23B8C0C8' stroke-width='.4' fill='none'/%3E%3Crect x='6' y='2' width='16' height='5' rx='1.5' fill='%23C8D8E8' opacity='.4'/%3E%3Crect x='2.5' y='9' width='5' height='2.5' rx='1' fill='%23C8102E' opacity='.9'/%3E%3Crect x='20.5' y='9' width='5' height='2.5' rx='1' fill='%23C8102E' opacity='.9'/%3E%3Crect x='9' y='14' width='10' height='3' rx='1' fill='%23888' stroke='%23999' stroke-width='.3'/%3E%3Ctext x='14' y='16.5' font-size='3' fill='%23ddd' text-anchor='middle' font-family='sans-serif' font-weight='bold'%3EPARK%3C/text%3E%3Ccircle cx='8' y='18' cy='18' r='1' fill='%23999'/%3E%3Ccircle cx='20' cy='18' r='1' fill='%23999'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.hero-search.gate-go .gate-car-rear {
  animation: carParkRear 4.5s ease forwards;
}

/* 2. PERSON — exits car and walks to paystation */
@keyframes personWalk {
  0%, 38%  { opacity: 0; left: calc(68% - 40px); }
  42%      { opacity: 1; left: calc(68% - 40px); } /* appear at car */
  60%      { left: calc(55%); opacity: 1; } /* walk to paystation */
  70%      { left: calc(55%); opacity: 1; } /* tapping paystation */
  85%      { left: calc(55%); opacity: 1; }
  100%     { left: calc(55%); opacity: 0; }
}

.gate-person {
  position: absolute;
  top: -26px;
  left: calc(68% - 40px);
  width: 16px;
  height: 24px;
  z-index: 11;
  pointer-events: none;
  opacity: 0;
  /* Filled human silhouette — walking left, solid body */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3C!-- Head --%3E%3Cellipse cx='8' cy='3.2' rx='2.6' ry='2.8' fill='%23fff'/%3E%3C!-- Torso — solid filled shape --%3E%3Cpath d='M5.5 6 C5.5 5.8 6 5.5 8 5.5 c2 0 2.5 0.3 2.5 0.5 l0.8 7.5 c0 0.3-0.2 0.6-0.5 0.6 H5.2 c-0.3 0-0.5-0.3-0.5-0.6 z' fill='%23fff'/%3E%3C!-- Left arm — swung forward --%3E%3Cpath d='M5.8 6.5 c-0.5 0.3-1.5 2-2.5 4.5' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C!-- Right arm — swung back --%3E%3Cpath d='M10.2 6.5 c0.5 0.3 1.2 1.8 1.8 3.5' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C!-- Left leg — forward stride --%3E%3Cpath d='M6.5 13.5 l-2.5 5 l-0.5 3' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C!-- Right leg — back stride --%3E%3Cpath d='M9.5 13.5 l2 4.5 l1 3' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C!-- Shoes --%3E%3Cellipse cx='3.2' cy='21.8' rx='1.8' ry='1' fill='%23fff'/%3E%3Cellipse cx='12.8' cy='21.3' rx='1.8' ry='1' fill='%23fff'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.hero-search.gate-go .gate-person {
  animation: personWalk 4.5s ease forwards;
}

/* 3. PAYSTATION — appears at the left side */
@keyframes paystationAppear {
  0%, 35%  { opacity: 0; }
  40%      { opacity: 1; }
  85%      { opacity: 1; }
  100%     { opacity: 0; }
}

.gate-paystation {
  position: absolute;
  top: -30px;
  left: calc(53%);
  width: 16px;
  height: 28px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  /* Paystation kiosk — tall slim box with screen and card slot */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='2' width='10' height='22' rx='1.5' fill='%23555'/%3E%3Crect x='3' y='2' width='10' height='22' rx='1.5' stroke='%23777' stroke-width='.5'/%3E%3C!-- Screen --%3E%3Crect x='4.5' y='4' width='7' height='5' rx='1' fill='%23222'/%3E%3C!-- P symbol on screen --%3E%3Ctext x='8' y='8.5' font-size='4.5' fill='%2300cc66' text-anchor='middle' font-family='sans-serif' font-weight='bold'%3EP%3C/text%3E%3C!-- Card reader slot --%3E%3Crect x='5.5' y='11' width='5' height='1.5' rx='.5' fill='%23333'/%3E%3C!-- Buttons --%3E%3Ccircle cx='6.5' cy='15' r='.8' fill='%2300cc66'/%3E%3Ccircle cx='9.5' cy='15' r='.8' fill='%23C8102E'/%3E%3C!-- Post --%3E%3Crect x='6' y='24' width='4' height='4' fill='%23555'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.hero-search.gate-go .gate-paystation {
  animation: paystationAppear 4.5s ease forwards;
}

/* 4. RECEIPT — pops up after payment */
@keyframes receiptPop {
  0%, 65%  { opacity: 0; transform: translateY(4px) scale(0.5); }
  72%      { opacity: 1; transform: translateY(0) scale(1); }
  85%      { opacity: 1; transform: translateY(0) scale(1); }
  100%     { opacity: 0; transform: translateY(-4px) scale(0.8); }
}

.gate-receipt {
  position: absolute;
  top: -42px;
  left: calc(53% + 2px);
  width: 12px;
  height: 12px;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  /* Green checkmark in circle */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='6' cy='6' r='5.5' fill='%2300cc66'/%3E%3Cpath d='M3.5 6l2 2 3-3.5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.hero-search.gate-go .gate-receipt {
  animation: receiptPop 4.5s ease forwards;
}

/* ── LPR Camera — fixed position above the search bar, near the gate ── */
.lpr-cam {
  position: absolute;
  top: -44px;
  right: 28%;
  width: 28px;
  height: 30px;
  z-index: 14;
  pointer-events: none;
  /* Camera side profile — facing right toward the gate */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='10' y1='0' x2='10' y2='9' stroke='%23999' stroke-width='.8' stroke-dasharray='2 1'/%3E%3Crect x='7' y='8' width='6' height='4' rx='1' fill='%23888'/%3E%3Crect x='4' y='11' width='18' height='10' rx='2' fill='%23777'/%3E%3Crect x='4' y='11' width='18' height='10' rx='2' stroke='%23999' stroke-width='.6'/%3E%3Crect x='20' y='13' width='6' height='6' rx='1.5' fill='%23666'/%3E%3Crect x='20' y='13' width='6' height='6' rx='1.5' stroke='%23888' stroke-width='.5'/%3E%3Ccircle cx='25' cy='16' r='2' fill='%23555'/%3E%3Ccircle cx='25' cy='16' r='1' fill='%23889' opacity='.8'/%3E%3Ccircle cx='24' cy='14' r='.6' fill='%23C8102E' opacity='.9'/%3E%3Ccircle cx='24' cy='18' r='.6' fill='%23C8102E' opacity='.7'/%3E%3Ccircle cx='7' cy='16' r='.8' fill='%23C8102E'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* IR flash when car drives through */
@keyframes lprFlash {
  0%, 8%  { opacity: 0; }
  10%     { opacity: 1; }
  12%     { opacity: 0; }
  14%     { opacity: 1; }
  16%     { opacity: 0; }
  100%    { opacity: 0; }
}

.lpr-cam::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 10px;
  background: radial-gradient(ellipse, rgba(200,16,46,0.5) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.lpr-cam.flash::after {
  animation: lprFlash 1.4s ease forwards;
}

/* Dark mode */
.dark .gate-car {
  filter: brightness(0.9);
}

/* ── Icon color switching: Micro Solid + Accent ── */
/* Trust row always sits on dark background — always white */
.trust-item svg {
  color: rgba(255, 255, 255, 0.85);
}

/* Hub tile icons: uniform Micro Solid + Accent — no multi-color */
.hub-tile-icon {
  background: rgba(26, 26, 46, 0.06) !important;
  color: rgba(26, 26, 46, 0.45) !important;
}
.dark .hub-tile-icon {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

/* B2B icons */
.hub-b2b-icon svg {
  color: rgba(255, 255, 255, 0.85);
}

/* General icon elements on light background: 45% */
.hub-help-link svg {
  color: rgba(26, 26, 46, 0.45);
}
.dark .hub-help-link svg {
  color: #fff;
}

/* ── Search dropdown — absolute on body to escape hero overflow:hidden ── */
.hero-search-dd {
  position: absolute;
  margin-top: 0;
  max-height: 460px;
  z-index: 9999;
}
@media (max-width: 600px) {
  .hero-search-dd {
    max-height: 60vh;
  }
}

/* Mobile Find Parking — address search mode */
.fp-addr-mode .fp-lots-panel {
  display: none !important;
}
.fp-addr-mode .fp-map-area {
  flex: 1;
  min-height: 0;
  height: 100%;
}

/* Horizontal card strip above map */
.fp-mobile-strip {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-bottom: 1px solid var(--g200);
}
.fp-mobile-strip::-webkit-scrollbar { display: none }
.fp-mcard {
  flex-shrink: 0;
  width: 250px;
  background: var(--bg);
  border-radius: 10px;
  border: 1.5px solid var(--g200);
  padding: 10px 12px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all .15s;
}
.fp-mcard:active { transform: scale(.97) }
.fp-mcard:hover { border-color: #C8102E }
.dark .fp-mcard {
  border-color: #30363d;
}

/* Mobile addr mode — compact toolbar to fit everything on one screen */
.fp-mobile-addr .fp-toolbar {
  padding: 6px 10px;
  gap: 4px;
}
.fp-mobile-addr .fp-toolbar h2 {
  font-size: 13px;
}
.fp-mobile-addr .fp-sort-wrap { display: none }
.fp-mobile-addr .fp-tabs {
  gap: 0;
}
.fp-mobile-addr .fp-tab {
  padding: 6px 10px;
  font-size: 11px;
}

/* ═══ MONTHLY CHECKOUT — Two-Column Page Layout ═══ */

.mco-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.mco-header {
  margin-bottom: 24px;
}

.mco-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.mco-step {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.dark .mco-step {
  background: var(--fg);
}

.mco-step-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.mco-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pr);
  color: #fff;
  font-family: var(--fd-mono);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mco-step-title {
  font-family: var(--fd);
  font-size: 16px;
  font-weight: 700;
  color: #18181b;
  letter-spacing: -0.01em;
}

.dark .mco-step-title {
  color: #e6edf3;
}

.mco-summary {
  position: sticky;
  top: 100px;
}

.mco-summary-card {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: 12px;
  padding: 24px;
}

.dark .mco-summary-card {
  background: var(--fg);
}

.mco-summary-title {
  font-family: var(--fd);
  font-size: 15px;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--g200);
}

.dark .mco-summary-title {
  color: #e6edf3;
}

.mco-lot-name {
  font-weight: 700;
  font-size: 15px;
  color: #18181b;
}

.dark .mco-lot-name {
  color: #e6edf3;
}

.mco-lot-addr {
  font-size: 13px;
  color: var(--g400);
  margin-top: 2px;
}

.mco-summary-pay {
  margin-top: 20px;
}

.mco-summary-pay .btn {
  width: 100%;
  font-size: 16px;
  padding: 14px;
}

.mco-plan-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--g200);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 6px;
}

.dark .mco-plan-card {
  background: var(--fg);
}

.mco-plan-card.active {
  border-color: var(--pr);
  border-width: 2px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(200,16,46,0.1);
}

.dark .mco-plan-card.active {
  background: rgba(200,16,46,0.1);
}

.mco-plan-price {
  font-family: var(--fd-mono);
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

@media (max-width: 768px) {
  .mco-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mco-summary {
    position: relative;
    top: auto;
    order: -1;
    margin-bottom: 20px;
  }
  #pg-dailyparking .mco-summary {
    order: unset;
    margin-bottom: 0;
    margin-top: 20px;
  }
  .mco-wrap {
    padding: 16px 16px 100px;
    overflow-x: hidden;
  }
  .mco-wrap h1 {
    font-size: 20px !important;
  }
  .mco-step {
    padding: 18px 12px;
    overflow: hidden;
    word-break: break-word;
  }
  .mco-plan-card {
    padding: 10px 12px;
    gap: 8px;
  }
  .mco-plan-price {
    font-size: 14px;
    white-space: nowrap;
  }
}

/* Collapsible rates arrow rotation */
details:not([open]) > summary span:first-child {
  transform: rotate(-90deg);
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Reset transform from page-fade animation so position:fixed works inside */
#pg-monthlycheckout.page-fade,
#pg-dailyparking.page-fade {
  animation-fill-mode: none;
}

@media (max-width: 600px) {
  .mco-summary-pay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    border-top: 1px solid var(--g200);
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  }
  .dark .mco-summary-pay {
    background: var(--fg);
    border-color: #30363d;
  }
  .mco-summary-pay {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── PREMIUM SEASON PASS STYLES ── */
.sp-premium-card {
  background: linear-gradient(135deg, var(--nv) 0%, #0d0d1a 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 12px 30px rgba(26,26,46,0.15);
  position: relative;
  overflow: hidden;
}

.sp-premium-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(200,16,46,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sp-ticket-insert {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  color: var(--nv);
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

.sp-vip-promo {
  background: linear-gradient(to right, rgba(200,16,46,0.03), transparent);
  border-left: 3px solid var(--pr);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.sp-row-refined {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid var(--g100);
  transition: background 0.2s;
  border-radius: 8px;
}
.sp-row-refined:hover { background: var(--g50); }

.dark .sp-premium-card { background: linear-gradient(135deg, #161b22 0%, #0d1117 100%); border: 1px solid #30363d; }
.dark .sp-ticket-insert { background: #0d1117; border: 1px solid #30363d; color: #e6edf3; }
.dark .sp-vip-promo { background: rgba(200,16,46,0.05); }
.dark .sp-row-refined { border-color: #30363d; }
.dark .sp-row-refined:hover { background: rgba(255,255,255,0.02); }
