:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #121212;
  --text: #f5f5f5;
  --muted: #b9b9b9;
  --accent: #ff5f2d;
  --accent-2: #ff8c42;
  --border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--accent);
  color: #140b03;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.hero {
  padding: 24px 0 48px;
}

.top-nav {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.top-nav a:hover {
  color: var(--accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  max-width: 700px;
}

h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
}

.card-title-large {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
}

.hero-text,
.card p,
.card li,
.section-heading p {
  color: var(--muted);
}

.cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #140b03;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
}

.cta-secondary {
  background: transparent;
  border: 1px solid rgba(255, 138, 69, 0.75);
  color: #ffb86c;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  min-height: 387px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 95, 45, 0.16), rgba(255, 255, 255, 0.02));
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 387px;
  object-fit: cover;
  border-radius: 24px;
}

.section {
  padding: 40px 0 24px;
}

.section-heading {
  margin-bottom: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.card-large {
  grid-column: span 2;
}

.card ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 24px;
}

.card ul:last-child {
  margin-bottom: 0;
}

.card li {
  position: relative;
  padding-left: 34px;
  margin-top: 14px;
  color: var(--text);
}

.card li:first-child {
  margin-top: 0;
}

.card li::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 0.35em;
  font-size: 1rem;
  color: #ff8b3f;
  text-shadow: 0 0 14px rgba(255, 139, 63, 0.45);
}

.icon-theft::before {
  content: "🛍️";
}

.icon-property::before {
  content: "🏠";
}

.icon-homelessness::before {
  content: "🏚️";
}

.icon-fraud::before {
  content: "🕵️";
}

.icon-scam::before {
  content: "💻";
}

.metric {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: #ffd08f;
  margin: 8px 0 10px;
  text-shadow: 0 0 28px rgba(255, 159, 54, 0.55);
}

.card h3 {
  color: white;
}

.card.highlight-card {
  border-color: rgba(255, 141, 44, 0.35);
  background: radial-gradient(circle at top left, rgba(255, 116, 45, 0.14), rgba(18, 18, 18, 0.95));
}

.card.highlight-card .metric {
  color: #ffb84f;
}

.card.highlight-card p,
.card.highlight-card li {
  color: #f2f0eb;
}

.quote-card {
  margin-top: 20px;
}

.highlight {
  color: var(--accent-2);
  font-weight: 700;
}

.solution-card {
  background: linear-gradient(135deg, rgba(255, 95, 45, 0.18), rgba(255, 255, 255, 0.03));
}

.paypal-button-wrap {
  margin-top: 20px;
}

.source {
  color: #ffb86c;
  margin-top: 12px;
  font-size: 0.95rem;
}

.source a {
  color: #ffb86c;
  text-decoration: underline;
}

.source-link {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.8rem;
  color: #ffb86c;
  text-decoration: underline;
  white-space: nowrap;
}

.chart-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: 12px;
}

.chart-image + .source-link {
  display: block;
  margin-top: 10px;
  margin-left: 0;
}

.bullets {
  margin-top: 18px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bullet-title {
  color: white;
  font-weight: 700;
  margin: 0 0 8px;
}

.top-nav a.active {
  color: var(--accent);
}

.map-page-body {
  overflow-x: hidden;
}

.map-topbar {
  padding: 18px 24px;
}

.map-topbar .top-nav {
  margin-bottom: 0;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.map-collab-banner {
  background: linear-gradient(90deg, rgba(255, 95, 45, 0.22), rgba(255, 138, 69, 0.1));
  border-top: 1px solid rgba(255, 138, 69, 0.4);
  border-bottom: 1px solid rgba(255, 138, 69, 0.4);
  color: var(--muted);
  text-align: center;
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  font-weight: 600;
  line-height: 1.4;
  padding: 6px 24px;
}

.map-viewport {
  position: relative;
  width: 100%;
  height: calc(100vh - 96px);
  min-height: 480px;
}

.us-map-fullscreen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-overlay {
  position: absolute;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.map-overlay-title {
  top: 20px;
  left: 20px;
  max-width: 320px;
  padding: 14px 18px;
}

.map-overlay-title h1 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 4px 0 6px;
}

.map-overlay-title .map-intro {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.map-overlay-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.map-overlay-close:hover {
  color: var(--text);
}

.map-overlay-reopen {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.map-overlay-reopen:hover {
  border-color: rgba(255, 138, 69, 0.75);
  color: var(--accent-2);
}

.map-overlay-controls {
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 260px;
}

.map-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.map-scroll-hint:hover {
  border-color: rgba(255, 138, 69, 0.75);
  color: var(--accent-2);
}

.methodology-card {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.methodology-card h3 {
  color: white;
}

.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: rgba(255, 138, 69, 0.75);
  color: var(--text);
}

.filter-btn.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #140b03;
}

.map-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-murder {
  background: #ff3b3b;
}

.dot-assault {
  background: #ff8c42;
}

.dot-sexual-assault {
  background: #b565ff;
}

.state-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  width: 100%;
}

.state-filter {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-family: inherit;
  flex: 1;
  min-width: 0;
}

.incident-count {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.load-more-btn {
  display: block;
  margin: 24px auto 0;
  background: transparent;
  border: 1px solid rgba(255, 138, 69, 0.75);
  color: #ffb86c;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.load-more-btn:hover {
  background: rgba(255, 138, 69, 0.12);
}

.leaflet-popup-pane {
  z-index: 1200;
}

.cluster-wrapper {
  background: transparent;
  border: none;
}

.cluster-icon {
  background: radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent));
  color: #140b03;
  border-radius: 50%;
  text-align: center;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 18px rgba(255, 95, 45, 0.5);
}

.map-popup {
  color: #1a1a1a;
  min-width: 220px;
}

.map-popup h4 {
  margin: 4px 0 6px;
  font-size: 1rem;
}

.map-popup-category {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-popup-meta {
  color: #555;
  font-size: 0.82rem;
  margin: 0 0 8px;
}

.map-popup-status {
  font-size: 0.85rem;
}

.incident-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.incident-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

.incident-card .map-popup-meta {
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 760px;
}

.site-footer a {
  color: #ffb86c;
}

@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .incident-list {
    grid-template-columns: 1fr;
  }

  .card-large {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .page-shell {
    padding: 16px;
  }

  .top-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .map-topbar {
    padding: 14px 16px;
  }

  .map-topbar .top-nav {
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .map-viewport {
    height: calc(100vh - 96px);
  }

  .map-overlay-title {
    display: none;
  }

  .map-overlay-controls {
    top: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
}
