/* ============================================================
   QuakeWatch – Main Stylesheet
   Design: Deep ocean-floor navy + seismic amber + fault-line red
   Fonts: Space Grotesk (display) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:       #0b1426;
  --navy-mid:   #111d35;
  --navy-light: #1a2d4f;
  --navy-card:  #162240;
  --amber:      #f59e0b;
  --amber-dark: #d97706;
  --amber-glow: rgba(245,158,11,0.15);
  --red:        #ef4444;
  --red-dark:   #dc2626;
  --green:      #10b981;
  --cyan:       #22d3ee;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim:   #64748b;
  --border:     rgba(255,255,255,0.08);
  --border-mid: rgba(255,255,255,0.12);
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.5);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --nav-h:      64px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber-dark); }
img { max-width: 100%; display: block; }

h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(11,20,38,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}

.nav-inner {
  max-width: 1400px; margin: 0 auto;
  width: 100%; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; color: #fff; text-decoration: none;
}

.nav-brand-icon {
  width: 36px; height: 36px;
  background: var(--amber);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.nav-brand span { color: var(--amber); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  transition: all 0.2s; text-decoration: none;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff; background: var(--navy-light);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px;
  font-family: var(--font-display); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--amber); color: #000; }
.btn-primary:hover { background: var(--amber-dark); color: #000; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-mid); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-danger { background: var(--red); color: #fff; }

.nav-mobile-toggle {
  display: none; background: none; border: none;
  color: var(--text); cursor: pointer; padding: 6px;
}

/* ── Page Wrapper ───────────────────────────────────────────── */
.page-body { padding-top: var(--nav-h); }

/* ── Live Indicator ─────────────────────────────────────────── */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3);
  color: var(--red); font-size: 0.75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Hero / Stats Bar ───────────────────────────────────────── */
.hero-stats {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.stats-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}

.stat-item {
  display: flex; flex-direction: column; gap: 2px;
}

.stat-value {
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 700; color: var(--amber); line-height: 1;
}

.stat-label {
  font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px; height: 40px; background: var(--border);
  margin: 0 8px;
}

.stats-live {
  margin-left: auto;
  display: flex; align-items: center; gap: 12px;
}

#last-updated {
  font-size: 0.78rem; color: var(--text-dim);
}

/* ── Main Layout: Map + Sidebar ─────────────────────────────── */
.map-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: calc(100vh - var(--nav-h) - 81px);
  min-height: 500px;
}

#quake-map {
  width: 100%; height: 100%;
  background: #0d1a2e;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  background: var(--navy-mid);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-title {
  font-family: var(--font-display); font-size: 0.875rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
}

.sidebar-count {
  font-size: 0.75rem; background: var(--navy-light);
  color: var(--text-muted); padding: 2px 8px; border-radius: 10px;
}

.sidebar-list {
  flex: 1; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-light) transparent;
}

.sidebar-list::-webkit-scrollbar { width: 4px; }
.sidebar-list::-webkit-scrollbar-track { background: transparent; }
.sidebar-list::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 2px; }

.quake-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
  text-decoration: none; color: inherit;
}

.quake-item:hover { background: var(--navy-light); }

.quake-item.new-item {
  animation: flash-new 0.8s ease-out;
}

@keyframes flash-new {
  0% { background: rgba(245,158,11,0.2); }
  100% { background: transparent; }
}

.mag-badge {
  min-width: 42px; height: 42px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  flex-shrink: 0;
}

/* Magnitude color system */
.mag-micro      { background: rgba(100,116,139,0.25); color: #94a3b8; }
.mag-minor      { background: rgba(34,211,238,0.15);  color: #67e8f9; }
.mag-light-low  { background: rgba(16,185,129,0.2);   color: #6ee7b7; }
.mag-light      { background: rgba(234,179,8,0.2);    color: #fde047; }
.mag-moderate   { background: rgba(245,158,11,0.25);  color: #fcd34d; }
.mag-strong     { background: rgba(249,115,22,0.25);  color: #fdba74; }
.mag-major      { background: rgba(239,68,68,0.25);   color: #fca5a5; }
.mag-great      { background: rgba(220,38,38,0.35);   color: #fca5a5; border: 1px solid rgba(239,68,68,0.5); }

.quake-info { flex: 1; min-width: 0; }

.quake-place {
  font-size: 0.825rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.quake-meta {
  font-size: 0.72rem; color: var(--text-dim); margin-top: 2px;
  display: flex; gap: 8px;
}

.quake-depth { color: var(--cyan); opacity: 0.8; }

/* ── Leaflet Map Customization ──────────────────────────────── */
.leaflet-popup-content-wrapper {
  background: #162240 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4) !important;
  color: #e2e8f0 !important;
  padding: 0 !important;
}

.leaflet-popup-tip { background: #162240 !important; }
.leaflet-popup-close-button { color: #94a3b8 !important; top: 8px !important; right: 10px !important; }
.leaflet-popup-content { margin: 0 !important; }

.quake-popup {
  padding: 16px 18px;
  font-family: 'Inter', sans-serif;
  min-width: 220px;
}

.quake-popup-mag {
  font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700;
  line-height: 1; margin-bottom: 4px;
}

.quake-popup-place {
  font-size: 0.875rem; color: #94a3b8; margin-bottom: 12px;
}

.quake-popup-meta {
  font-size: 0.8rem; color: #64748b;
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px;
}

.quake-popup-link {
  display: block; text-align: center;
  background: #f59e0b; color: #000 !important;
  padding: 7px 14px; border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; font-weight: 600;
  transition: background 0.2s;
}

.quake-popup-link:hover { background: #d97706; }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-narrow { max-width: 860px; margin: 0 auto; }
.section-wide { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.75rem; font-weight: 600; color: var(--amber);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}

.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; line-height: 1.7; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: var(--border-mid); transform: translateY(-2px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Info Page Grid ─────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
}

.info-card:hover { border-color: var(--amber); transform: translateY(-2px); }

.info-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--amber-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}

.info-card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #fff; }
.info-card-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Blog Cards ─────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
  text-decoration: none;
}

.blog-card:hover { border-color: var(--amber); transform: translateY(-3px); }

.blog-card-img {
  height: 180px; background: var(--navy-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--amber);
}

.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-card-cat { font-size: 0.7rem; font-weight: 600; color: var(--amber); text-transform: uppercase; letter-spacing: 0.08em; }
.blog-card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.4; }
.blog-card-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.blog-card-meta { font-size: 0.75rem; color: var(--text-dim); }

/* ── FAQs ───────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; gap: 16px;
  font-family: var(--font-display); font-size: 0.975rem; font-weight: 600;
  color: #fff; transition: color 0.2s;
}

.faq-question:hover { color: var(--amber); }

.faq-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  border: 1px solid var(--border-mid); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; color: var(--text-muted); transition: transform 0.3s, border-color 0.2s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--amber); color: var(--amber); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.75;
}

.faq-item.open .faq-answer { max-height: 400px; padding: 0 22px 18px; }

/* ── Comments ───────────────────────────────────────────────── */
.comments-section { margin-top: 48px; }
.comments-title { font-size: 1.3rem; margin-bottom: 24px; }
.comment-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

.comment-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.comment-author { font-weight: 600; font-size: 0.9rem; }
.comment-date { font-size: 0.75rem; color: var(--text-dim); }
.comment-text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ── Comment / Report Forms ─────────────────────────────────── */
.comment-form-wrap {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-title { font-size: 1.1rem; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.825rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }

.form-control {
  width: 100%;
  background: var(--navy-light);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── "Felt It" Star Rating ──────────────────────────────────── */
.felt-section {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px; margin-top: 32px;
}

.star-rating { display: flex; gap: 8px; margin-bottom: 16px; }

.star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 2rem; color: var(--navy-light); transition: color 0.15s, transform 0.15s;
  padding: 2px;
}

.star-btn:hover, .star-btn.active { color: var(--amber); transform: scale(1.1); }

.felt-reports { margin-top: 20px; }
.felt-report-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.felt-report-item:last-child { border-bottom: none; }
.felt-stars { color: var(--amber); font-size: 0.85rem; }
.felt-name { font-size: 0.85rem; font-weight: 600; }
.felt-location { font-size: 0.78rem; color: var(--text-muted); }
.felt-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-top: 4px; }
.felt-date { font-size: 0.72rem; color: var(--text-dim); }

/* ── Alert banners ──────────────────────────────────────────── */
.alert-banner {
  padding: 10px 24px;
  font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.alert-banner.green  { background: rgba(16,185,129,0.15); color: #6ee7b7; border-bottom: 1px solid rgba(16,185,129,0.2); }
.alert-banner.yellow { background: rgba(234,179,8,0.15);  color: #fde047; border-bottom: 1px solid rgba(234,179,8,0.2); }
.alert-banner.orange { background: rgba(249,115,22,0.15); color: #fdba74; border-bottom: 1px solid rgba(249,115,22,0.2); }
.alert-banner.red    { background: rgba(239,68,68,0.15);  color: #fca5a5; border-bottom: 1px solid rgba(239,68,68,0.2); }

/* ── Messages ───────────────────────────────────────────────── */
.messages-list { list-style: none; max-width: 1200px; margin: 16px auto; padding: 0 24px; }
.messages-list li {
  padding: 12px 18px; border-radius: 8px; margin-bottom: 8px; font-size: 0.9rem;
}
.messages-list .success { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
.messages-list .error   { background: rgba(239,68,68,0.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.messages-list .info    { background: rgba(34,211,238,0.15); color: #67e8f9; border: 1px solid rgba(34,211,238,0.3); }
.messages-list .warning { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}

.page-header-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 12px; display: flex; gap: 6px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--amber); }

/* ── Prose content ──────────────────────────────────────────── */
.prose {
  color: var(--text-muted); line-height: 1.85; font-size: 0.975rem;
}
.prose h2 { font-size: 1.5rem; color: #fff; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.2rem; color: #fff; margin: 2rem 0 0.75rem; }
.prose p  { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--amber); }
.prose blockquote {
  border-left: 3px solid var(--amber);
  padding-left: 20px; color: var(--text-dim);
  margin: 1.5rem 0; font-style: italic;
}

/* ── Earthquake Detail ──────────────────────────────────────── */
.detail-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.detail-mag-hero {
  display: flex; align-items: center; gap: 20px; margin-bottom: 28px;
}

.detail-mag-number {
  font-family: var(--font-display); font-size: 5rem; font-weight: 700;
  line-height: 1; color: var(--amber);
}

.detail-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 24px 0;
}

.detail-info-item {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}

.detail-info-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.detail-info-value { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }

.detail-map-wrap { height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  margin-top: 80px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-icon {
  width: 32px; height: 32px; background: var(--amber); border-radius: 7px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.footer-brand-name { font-family: var(--font-display); font-weight: 700; }
.footer-brand-name span { color: var(--amber); }
.footer-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; max-width: 280px; }
.footer-heading { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-dim);
  flex-wrap: wrap; gap: 12px;
}

.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--amber); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 40px;
}

.page-link {
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  background: var(--navy-card); border: 1px solid var(--border);
  color: var(--text-muted); transition: all 0.2s;
}

.page-link:hover, .page-link.current { background: var(--amber); color: #000; border-color: var(--amber); }
.page-link.disabled { opacity: 0.4; pointer-events: none; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-amber  { color: var(--amber) !important; }
.text-red    { color: var(--red) !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .map-layout { grid-template-columns: 1fr; height: auto; }
  #quake-map { height: 60vw; min-height: 340px; }
  .sidebar { max-height: 400px; border-left: none; border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-mobile-toggle { display: flex; }
  .stats-inner { gap: 16px; }
  .stat-value { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .detail-mag-number { font-size: 3.5rem; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--navy-mid); border-bottom: 1px solid var(--border);
  padding: 16px 24px; z-index: 999;
  display: none; flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text); padding: 10px 14px; border-radius: 8px; font-size: 0.95rem; }
.mobile-nav a:hover { background: var(--navy-light); color: var(--amber); }
