/* ===== Jerk Alert — Website UI kit styles ===== */
@import url('colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--fg1); background: var(--bg); -webkit-font-smoothing: antialiased; }
#root { min-height: 100vh; display: flex; flex-direction: column; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.ico { display: inline-flex; align-items: center; justify-content: center; }
.ico svg { display: block; }

/* ---- layout ---- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-5{gap:20px}.gap-6{gap:24px}.gap-8{gap:32px}
.grow { flex: 1; }
.wrapw { flex-wrap: wrap; }

/* ---- buttons ---- */
.btn { font-family: var(--font-display); font-weight: 800; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r-pill); transition: transform var(--dur-fast) var(--ease-pop), box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out); white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-lg { font-size: 16px; padding: 13px 24px; }
.btn-md { font-size: 14px; padding: 10px 18px; }
.btn-sm { font-size: 13px; padding: 7px 14px; }
.btn-primary { background: var(--ja-alert); color: #fff; box-shadow: var(--sh-alert); }
.btn-primary:hover { background: var(--ja-alert-ink); box-shadow: 0 10px 26px rgba(251,77,26,.4); }
.btn-secondary { background: var(--ja-teal); color: #fff; }
.btn-secondary:hover { background: var(--ja-teal-deep); }
.btn-ghost { background: #fff; color: var(--fg1); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--fg3); box-shadow: var(--sh-sm); }
.btn-subtle { background: var(--ja-alert-tint); color: var(--ja-alert-ink); }
.btn-subtle:hover { background: #ffd9cc; }
.btn-ink { background: var(--ja-ink); color: #fff; }
.btn-ink:hover { background: var(--ja-ink-soft); }

/* ---- pills ---- */
.pill { font-family: var(--font-display); font-weight: 800; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: #fff; color: var(--fg1); cursor: pointer; transition: all var(--dur) var(--ease-out); }
.pill:hover { border-color: var(--fg3); transform: translateY(-1px); }
.pill.on { background: var(--ja-ink); color: #fff; border-color: var(--ja-ink); }

/* ---- badges ---- */
.badge { font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .05em; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-pill); white-space: nowrap; }
.badge svg { width: 13px; height: 13px; }
.badge-verified { background: var(--ja-ink); color: #fff; }
.badge-cleared { background: var(--awesome-tint); color: var(--awesome); }
.badge-offender { background: var(--ja-alert-tint); color: var(--ja-alert-ink); }
.badge-trending { background: var(--ja-yellow-tint); color: var(--ja-yellow-deep); }
.badge-photos { background: var(--ja-teal-tint); color: var(--ja-teal-deep); }

/* ---- avatar ---- */
.avatar { border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; color: #fff; flex: none; }

/* ---- jerk meter ---- */
.meter { display: inline-flex; align-items: center; gap: 3px; }
.meter .ico svg { display: block; }

/* ---- cards ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.listing { display: flex; gap: 16px; padding: 16px; cursor: pointer; transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.listing:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.thumb { border-radius: var(--r-md); flex: none; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thumb .ph { color: #fff; opacity: .85; }

/* ---- inputs ---- */
.field { width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: 12px 14px; font-family: var(--font-body); font-size: 15px; color: var(--fg1); background: #fff; outline: none; transition: border-color var(--dur), box-shadow var(--dur); }
.field:focus { border-color: var(--ja-teal); box-shadow: 0 0 0 3px var(--ja-teal-tint); }

/* ---- reason picker (icon buttons) ---- */
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.reason-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px;
  padding: 12px 7px 11px; min-height: 104px; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); background: #fff; cursor: pointer; text-align: center;
  transition: border-color .12s, background .12s, transform .12s, box-shadow .12s;
}
.reason-btn:hover { border-color: var(--fg3); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.reason-btn img { width: 54px; height: 54px; object-fit: contain; display: block; pointer-events: none; }
.reason-btn .rlucide { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; }
.reason-btn .rlabel { font-family: var(--font-display); font-weight: 700; font-size: 11.5px; line-height: 1.18; color: var(--fg2); text-wrap: balance; }
.reason-btn.on { box-shadow: 0 0 0 1.5px currentColor inset; }
.reason-btn.disabled { opacity: .4; pointer-events: none; }

/* ---- top nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { height: 68px; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.logo img { height: 38px; width: auto; }
.logo-word { font-family: var(--font-display); font-weight: 900; font-size: 24px; letter-spacing: -.02em; line-height: 1; }
.navsearch { flex: 1; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; max-width: 520px; }
.navsearch .seg { display: flex; align-items: center; gap: 8px; padding: 9px 14px; flex: 1; }
.navsearch input { border: none; outline: none; font-family: var(--font-body); font-size: 14px; font-weight: 500; width: 100%; background: transparent; color: var(--fg1); }
.navsearch .divider { width: 1px; align-self: stretch; background: var(--line-strong); margin: 7px 0; }
.navsearch .go { background: var(--ja-alert); color: #fff; border: none; margin: 4px; border-radius: var(--r-pill); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.navlink { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--fg2); cursor: pointer; }
.navlink:hover { color: var(--fg1); }

/* ---- incident map ---- */
.map-layout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; }
.map-panel {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1.5px solid var(--line-strong); box-shadow: var(--sh-sm);
  aspect-ratio: 16 / 10; background: #FBF4E9; cursor: crosshair;
}
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin {
  position: absolute; transform: translate(-50%,-50%); border: none; background: none;
  padding: 0; cursor: pointer; transition: transform var(--dur) var(--ease-pop);
}
.map-pin-dot {
  width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--pin);
  border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(30,45,51,.28);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.map-pin-dot img { width: 30px; height: 30px; object-fit: contain; display: block; }
.map-pin:hover { transform: translate(-50%,-50%) scale(1.14); }
.map-pin.on { transform: translate(-50%,-50%) scale(1.22); }
.map-pin.on .map-pin-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pin) 30%, transparent), 0 4px 10px rgba(30,45,51,.3); }
.map-card {
  position: absolute; width: 232px; background: #fff; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 13px; z-index: 50;
  display: flex; flex-direction: column; gap: 7px; cursor: default;
}
.map-card-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 2px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--ja-teal);
}
.map-card-link:hover { color: var(--ja-alert); }
.map-list { display: flex; flex-direction: column; min-height: 0; }
.map-list-scroll { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 460px; padding-right: 4px; }
.map-row {
  display: flex; align-items: center; gap: 11px; padding: 10px; cursor: pointer;
  border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; transition: all var(--dur-fast) var(--ease-out);
}
.map-row:hover { border-color: var(--line-strong); }
.map-row.on { border-color: var(--ja-alert); background: var(--ja-alert-tint); }
.map-row-ico {
  width: 42px; height: 42px; flex: none; border-radius: var(--r-sm); padding: 5px;
  background: #fff; border: 1.5px solid; display: flex; align-items: center; justify-content: center;
}
.map-row-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 820px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-list-scroll { max-height: 320px; }
}

/* ---- hero ---- */
.hero { background: var(--bg-warm); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 32px; align-items: center; }
.hero-mascot { position: relative; }
.hero-mascot img { width: 100%; max-width: 440px; height: auto; display: block;
  filter: drop-shadow(0 18px 30px rgba(217,77,26,.18)); animation: mascotFloat 5s ease-in-out infinite; }
@keyframes mascotFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-1.2deg); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mascot { order: -1; }
  .hero-mascot img { max-width: 280px; margin: 0 auto 8px; animation: none; }
}
.hero-search { display: flex; align-items: center; background: #fff; border: 2px solid var(--ja-ink); border-radius: var(--r-pill); box-shadow: var(--sh-md); overflow: hidden; }
.hero-search .seg { display: flex; align-items: center; gap: 10px; padding: 16px 20px; flex: 1; }
.hero-search input { border: none; outline: none; font-family: var(--font-body); font-size: 16px; font-weight: 500; width: 100%; background: transparent; }
.hero-search .divider { width: 1px; align-self: stretch; background: var(--line-strong); margin: 12px 0; }
.hero-search .go { background: var(--ja-alert); color: #fff; border: none; margin: 6px; border-radius: var(--r-pill); height: 52px; padding: 0 26px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 16px; box-shadow: var(--sh-alert); }

/* ---- category tile ---- */
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; cursor: pointer; transition: all var(--dur) var(--ease-out); box-shadow: var(--sh-xs); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: transparent; }
.cat-ico { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; }

/* ---- section ---- */
.section { padding: 56px 0; }
.section.warm { background: var(--bg-warm); }
.eyebrow { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ja-alert); }

/* ---- footer ---- */
.footer { background: var(--ja-ink); color: var(--fg-on-dark); margin-top: auto; padding: 48px 0 32px; }
.footer a { color: rgba(255,248,240,.72); font-size: 14px; display: block; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer h5 { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 8px; }

/* ---- detail ---- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; border-radius: var(--r-lg); overflow: hidden; height: 320px; }
.gallery > div { position: relative; display: flex; align-items: center; justify-content: center; color: #fff; }
.breakdown-bar { height: 10px; border-radius: var(--r-pill); background: var(--jerk-track); overflow: hidden; }
.breakdown-bar > div { height: 100%; border-radius: var(--r-pill); }

/* ---- map panel ---- */
.mappanel { background: #E9EDE9; border-radius: var(--r-lg); position: relative; overflow: hidden; border: 1px solid var(--line); }
.mappin { position: absolute; transform: translate(-50%,-100%); cursor: pointer; }

/* ---- modal ---- */
.scrim { position: fixed; inset: 0; background: rgba(30,45,51,.5); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ja-ink); color: #fff; padding: 14px 22px; border-radius: var(--r-pill); box-shadow: var(--sh-lg); font-family: var(--font-display); font-weight: 800; font-size: 15px; z-index: 200; display: flex; align-items: center; gap: 10px; animation: toastin .4s var(--ease-pop); }
@keyframes toastin { from { transform: translate(-50%,20px); opacity: 0; } }

@media (max-width: 900px) {
  .results-grid { grid-template-columns: 1fr !important; }
  .map-col { display: none !important; }
  .detail-grid { grid-template-columns: 1fr !important; }
  .navsearch { display: none !important; }
}

/* ---- license plate tag ---- */
.plate {
  font-family: var(--font-display); font-weight: 900; letter-spacing: .08em;
  font-size: 15px; color: var(--ja-ink); white-space: nowrap; flex: none;
  background: #FFFDF7; border: 2px solid var(--ja-ink); border-radius: 7px;
  padding: 3px 9px; line-height: 1.15;
  box-shadow: inset 0 0 0 1.5px #fff;
}
.plate.lg { font-size: 30px; letter-spacing: .1em; padding: 7px 16px; border-radius: 11px; border-width: 3px; }
.plate-field {
  font-family: var(--font-display); font-weight: 900; letter-spacing: .14em;
  text-transform: uppercase; text-align: center; font-size: 22px;
}

/* ---- state pulldown inside search bars ---- */
.hero-search select, .navsearch select {
  border: none; outline: none; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; color: var(--ja-ink);
  letter-spacing: .04em; padding-right: 2px; -webkit-appearance: none; appearance: none;
}
.hero-search select { font-size: 16px; }
.navsearch select { font-size: 14px; }
.hero-search .state-seg, .navsearch .state-seg { flex: none; }
