:root {
  --primary: #1B5E6B;
  --primary-dark: #144A55;
  --primary-light: #E7F0F2;
  --secondary: #D4A24C;
  --secondary-soft: #F8EFE0;
  --alert: #C0392B;
  --alert-soft: #F9ECEA;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --border: #E2E5E9;
  --text: #1A1D21;
  --text-2: #5C6B73;
  --badge-il: #0054A6;
  --badge-mi: #00843D;
  --badge-oh: #EF4135;
  --shadow-sm: 0 1px 2px rgba(26, 29, 33, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 29, 33, 0.10);
  --radius: 8px;
  --radius-lg: 12px;
  --font-headline: 'Inter', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --font-label: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--primary-dark); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-2);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 32px 24px 56px; }
.wide { flex: 1; }

.section { margin-top: 48px; }
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title .note { font-size: 14px; font-weight: 500; }
.section-title .note a { color: var(--primary); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-2); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 64px 0 48px; }
.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 18px; color: var(--text-2); max-width: 680px; margin: 0 auto 28px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; }

.hero-listing { margin-bottom: 32px; }
.hero-listing .badges { display: flex; gap: 8px; margin-bottom: 12px; }
.hero-listing h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.hero-listing .address { font-size: 16px; color: var(--text-2); margin-bottom: 16px; }
.hero-listing .rating { margin-bottom: 12px; font-size: 15px; color: var(--text); }
.hero-listing .rating .rating-count { color: var(--text-2); font-size: 13px; }

/* ---------- Badges ---------- */
.badge {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
}
.badge.il { background: var(--badge-il); }
.badge.mi { background: var(--badge-mi); }
.badge.oh { background: var(--badge-oh); }
.badge.neutral { background: var(--primary); }

/* ---------- Tier badges ---------- */
.badge.tier-featured { background: var(--secondary); color: var(--surface); }
.badge.tier-full { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }
.badge.tier-legacy { background: var(--surface); color: var(--text-2); border: 1px dashed var(--text-2); }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 999px;
}
.pill svg { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background 120ms ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); }
.btn-link {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-link:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 120ms ease, transform 120ms ease;
  display: block;
  color: var(--text);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-sub { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ---------- Listing cards ---------- */
.listing { text-decoration: none; color: var(--text); }
.listing-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.listing-top svg { width: 14px; height: 14px; color: var(--text-2); }
.listing .name {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}
.listing-meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-2);
}
.listing-meta div { display: flex; align-items: center; gap: 6px; }
.listing-meta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Desert stores (IL/OH): distance stays a small note, never headlined */
.listing.small-mode .meta-dist {
  font-size: 12px;
  color: var(--text-2);
  opacity: 0.8;
}
.listing.small-mode .meta-dist svg { width: 12px; height: 12px; }

/* ---------- Stats ---------- */
.stats { background: var(--primary); padding: 40px 0; margin-top: 32px; }
.stats-home { background: var(--primary-light); }
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 64px;
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-headline);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
}
.stats-home .stat .num { color: var(--primary); }
.stat .label { font-size: 14px; color: rgba(255,255,255,0.8); }
.stats-home .stat .label { color: var(--text-2); }

/* ---------- Filters / Tags ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.page-head p { color: var(--text-2); max-width: 640px; }

.tag {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.tag.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ---------- Detail pages ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.detail-panel h2 { font-size: 17px; margin-bottom: 10px; }
.detail-panel .row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.detail-panel .row .label { font-size: 14px; color: var(--text-2); min-width: 90px; }
.detail-panel .row .val { font-size: 15px; }
.actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- Callout ---------- */
.callout {
  display: flex;
  gap: 16px;
  background: var(--alert-soft);
  border: 1px solid var(--alert);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 32px 0;
}
.callout svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--alert); margin-top: 2px; }
.callout h3 { font-size: 16px; margin-bottom: 6px; }
.callout p { font-size: 14px; color: var(--text-2); }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.map-wrap > div:first-child { height: 360px; }
.map-footer { padding: 8px 12px; font-size: 11px; color: var(--text-2); background: var(--surface); }

/* ---------- Travel Intel ---------- */
.intel-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin: 24px 0 40px;
}
.intel-side { display: flex; flex-direction: column; gap: 16px; }
.county-card .name-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.county-card h3 { font-size: 17px; }
.posture {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.posture.high { background: var(--alert); color: #fff; }
.posture.medium { background: var(--secondary); color: var(--text); }
.posture.low { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }
.posture-high { color: var(--alert); font-weight: 600; }
.posture-medium { color: var(--secondary); font-weight: 600; }
.posture-low { color: #9AA5AD; font-weight: 600; }

.county-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.county-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.county-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.county-card .sig { font-size: 13px; color: var(--text-2); margin-top: 10px; }
.pin-shield {
  display: block;
  width: 16px;
  height: 20px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.county-pin { background: transparent; border: none; }

.legend .item { display: flex; align-items: center; gap: 8px; }
.legend .swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--border); display: inline-block; }
.legend .swatch.camera {
  background: var(--alert); border-color: var(--alert);
}
.legend .swatch.teal { background: var(--primary); }
.legend .swatch.shield {
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--secondary);
}
.legend .swatch.shield.high { background: var(--alert); }
.legend .swatch.shield.medium { background: var(--secondary); }
.legend .swatch.shield.low { background: #9AA5AD; }
.county-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.county-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.county-card .sig { font-size: 13px; color: var(--text-2); margin-top: 10px; }

.corridor-card { display: flex; flex-direction: column; }
.corridor-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.corridor-card h3 { font-size: 16px; }
.corridor-card .count { font-family: var(--font-label); font-size: 13px; color: var(--text-2); }
.corridor-card .btn-link {
  margin-top: 12px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.corridor-card .btn-link:hover { text-decoration: underline; }

/* ---------- View-all (full tier) ---------- */
.corr-group { margin-bottom: 32px; }
.corr-group h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 19px;
}
.corr-group h2 .count { font-family: var(--font-label); font-size: 13px; font-weight: 500; color: var(--text-2); }
.va-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.va-row .va-name { font-weight: 600; color: var(--text); }
.va-row .va-name:hover { color: var(--primary); }
.va-row .va-city, .va-row .va-dist { font-size: 13px; color: var(--text-2); }
.va-row .va-dist { white-space: nowrap; }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 14px; color: var(--text); }
.legend .item { display: flex; align-items: center; gap: 8px; }
.legend .swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--border); display: inline-block; }
.legend .swatch.camera { background: var(--alert); border-color: var(--alert); }
.legend .swatch.shield { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--secondary); }
.legend .swatch.shield.high { background: var(--alert); }
.legend .swatch.shield.medium { background: var(--secondary); }
.legend .swatch.shield.low { background: #9AA5AD; }

.attribution { font-size: 12px; color: var(--text-2); margin-top: 12px; }

/* ---------- Newsletter/footer ---------- */
.newsletter { background: var(--primary); color: #fff; padding: 56px 0; text-align: center; margin-top: 40px; }
.newsletter h2 { font-size: 24px; color: #fff; margin-bottom: 8px; }
.newsletter p { font-size: 16px; opacity: 0.85; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  min-width: 280px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: none;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
}

.site { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 40px 0; margin-top: auto; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-inner + .footer-inner { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; }
.site .brand { color: #fff; font-size: 18px; }

/* ---------- Blog / Post ---------- */
.post-card { padding: 24px; }
.post-card h3 { font-size: 17px; margin-top: 12px; }
.post-card .p { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.pc-cat { font-size: 11px; background: var(--secondary-soft); color: var(--secondary); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .intel-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; gap: 32px; }
  .hero h1 { font-size: 28px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; padding: 8px 2px; }
}

@media (max-width: 600px) {
  .grid-3, .grid-6 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .actions { flex-direction: column; }
  .va-row { grid-template-columns: auto auto 1fr; }
  .va-row .va-city, .va-row .va-dist { grid-column: 3; }
}
