/* ============================================
   HYPERSHOCK — Global Styles
   ============================================ */

:root {
  --rust-red: #c84b31;
  --rust-dark: #1a0a07;
  --fivem-blue: #27C8F5;
  --fivem-dark: #0d1f14;
  --redm-amber: #F59E0B;
  --redm-dark: #1a1005;
  --bg: #0a0a0a;
  --bg2: #111111;
  --text: #e0e0e0;
  --muted: #888;
  --accent: #c84b31;
  --font-main: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================
   NAVBAR — 3-column: Logo | Game Nav | Selectors
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  width: 100%;
  max-width: 1040px;
  background: rgba(14,14,14,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  top: 8px;
  z-index: 1000;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-decoration: none;
  transition: text-shadow 0.3s ease;
  flex-shrink: 0;
}
.nav-logo:hover {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent), 0 0 20px rgba(200,75,49,0.4);
}

.nav-game {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-game a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: rgba(255,255,255,0.3);
  padding: 0.4rem 0.85rem;
  border-radius: 3px;
  transition: all 0.2s;
  text-transform: uppercase;
}
.nav-game a:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
}
.nav-game a.active {
  color: var(--accent);
  background: rgba(200,75,49,0.08);
}
.nav-game a.nav-discord {
  color: rgba(255,255,255,0.3);
  margin-left: 0.5rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
}
.nav-game a.nav-discord:hover {
  color: var(--accent);
  border-left-color: rgba(200,75,49,0.3);
}

.nav-selectors {
  display: flex;
  gap: 0;
  align-items: center;
  flex-shrink: 0;
}
.nav-selectors a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  transition: all 0.2s;
  color: rgba(255,255,255,0.3);
}
.nav-selectors a:hover {
  color: rgba(255,255,255,0.7);
}
.nav-selectors a.nav-rust.active { color: var(--rust-red); }
.nav-selectors a.nav-redm.active { color: #F59E0B; }
.nav-selectors a.nav-fivem.active { color: #27C8F5; }

.lb-container{background:rgba(200,75,49,0.04);border-radius:12px;padding:1.5rem;max-width:960px;margin:0 auto}
.lb-stats-bar{background:rgba(17,17,17,0.8);padding:1rem 2rem}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(200,75,49,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 60px rgba(200,75,49,0.3);
}
.hero-title .accent { color: var(--accent); }

.hero-desc {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 1rem 0 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-icon { font-size: 0.8rem; }

.btn-rust {
  background: var(--rust-red);
  color: #fff;
}
.btn-rust:hover {
  background: #e05535;
  box-shadow: 0 0 20px rgba(200,75,49,0.5);
  transform: translateY(-2px);
}

.btn-fivem {
  background: var(--fivem-blue);
  color: #000;
}
.btn-fivem:hover {
  background: #27C8F5;
  box-shadow: 0 0 20px rgba(39,200,245,.5);
  transform: translateY(-2px);
}

.btn-redm {
  background: var(--redm-amber);
  color: #000;
}
.btn-redm:hover {
  background: #fbbf24;
  box-shadow: 0 0 20px rgba(245,158,11,.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   SERVER CARDS
   ============================================ */
.servers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
  padding: 4rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.server-card {
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.server-card:hover { transform: translateY(-4px); }

.rust-card {
  background: linear-gradient(135deg, #1a0a07 0%, #0d0503 100%);
  border-color: rgba(200,75,49,0.3);
}
.rust-card:hover { box-shadow: 0 8px 40px rgba(200,75,49,0.2); }

.fivem-card {
  background: linear-gradient(135deg, #0d1f14 0%, #060f0a 100%);
  border-color: rgba(39,200,245,.3);
}
.fivem-card:hover { box-shadow: 0 8px 40px rgba(39,200,245,.2); }

.sc-header { margin-bottom: 1.5rem; }

.sc-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.sc-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.rust-card .sc-header h2 { color: var(--rust-red); }
.fivem-card .sc-header h2 { color: var(--fivem-blue); }

.sc-info { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }

.sc-info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
}
.sc-info-item span { font-size: 1rem; }

.sc-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.sc-actions { display: flex; gap: 0.75rem; }

.page-wrap {
  max-width: 1040px;
  margin: 80px auto 2rem;
  background: rgba(14,14,14,0.85);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
}

.page-hero {
  padding: 8rem 2rem 5.5rem;
  text-align: center;
  position: relative;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,10,10,0.3),rgba(10,10,10,0.78));
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.page-hero.rust h1 { color: var(--rust-red); }
.page-hero.fivem h1 { color: var(--fivem-blue); }
.page-hero.redm h1 { color: var(--redm-amber); }

.page-hero p {
  color: #bbb;
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.5);
}

.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 1.5rem;
}
.info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.info-card p, .info-card li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}
.info-card ul { list-style: none; margin-top: 0.5rem; }
.info-card ul li::before { content: "› "; color: var(--accent); }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.section-title.rust { color: var(--rust-red); border-color: rgba(200,75,49,0.3); }
.section-title.fivem { color: var(--fivem-blue); border-color: rgba(39,200,245,.3); }
.section-title.redm { color: var(--redm-amber); border-color: rgba(245,158,11,.3); }

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.footer-copy { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-links a.footer-sigilo { color: #22c55e; opacity: 0.4; }
.footer-links a.footer-sigilo:hover { opacity: 1; text-shadow: 0 0 8px rgba(34,197,94,0.5); color: #22c55e; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; gap: 0.3rem; max-width: 100%; border-radius: 10px; top: 4px; }
  .nav-game { position: static; transform: none; width: 100%; justify-content: center; flex-wrap: wrap; order: 3; gap: 0.1rem; }
  .nav-game a { font-size: 0.75rem; padding: 0.25rem 0.5rem; }
  .nav-selectors a { font-size: 0.75rem; padding: 0.25rem 0.55rem; }
  .nav-logo { font-size: 0.95rem; }
  .servers { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .page-wrap { margin: 68px 0.5rem 1rem; border-radius: 10px; }
  .page-content { padding: 2rem 1.5rem; }
  .page-hero { padding: 5rem 1.5rem 3rem; }
  .info-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { text-align: center; justify-content: center; }
  .server-card { padding: 1.5rem; }
}

/* News callout component */
.news-callout { transition: box-shadow 0.3s; }
.news-callout:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

/* prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Better focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Ensure images scale */
img { max-width: 100%; height: auto; }

/* Prevent horizontal overflow */
body { overflow-x: hidden; }

/*** LIVE STATS WIDGET ***/
.stats-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #1a0805 0%, #0d0503 100%);
  border: 1px solid rgba(200,75,49,0.25);
  border-radius: 8px;
  margin: 2rem 0;
  font-family: var(--font-mono);
}
.stats-item {
  text-align: center;
}
.stats-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--rust-red);
  line-height: 1;
}
.stats-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.leaderboard {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.leaderboard th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(200,75,49,0.2);
}
.leaderboard td {
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.leaderboard tr:hover td { background: rgba(200,75,49,0.08); }
.rank-medal { font-weight: 700; }
.rank-1 { color: #FFD700; }
.rank-2 { color: #C0C0C0; }
.rank-3 { color: #CD7F32; }

/*** MAP VISUALIZATION CARD ***/
.map-card {
  background: linear-gradient(135deg, #1a0a07 0%, #0d0503 100%);
  border: 1px solid rgba(200,75,49,0.25);
  border-radius: 8px;
  overflow: hidden;
  margin: 2.5rem 0;
}
.map-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  user-select: none;
}
.map-card-header:hover { background: rgba(200,75,49,0.04); }
.map-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.map-card-title-icon { font-size: 1.2rem; }
.map-card-title-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--rust-red);
  text-transform: uppercase;
}
.map-card-badge {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}
.map-card-external {
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: 0.5rem;
  transition: color 0.2s;
}
.map-card-external:hover { color: var(--rust-red); }
.map-card-toggle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.map-card-toggle:hover { border-color: var(--rust-red); color: var(--rust-red); }
.map-card-toggle.open { border-color: rgba(200,75,49,0.3); color: var(--rust-red); }
.map-card-chevron {
  display: inline-block;
  transition: transform 0.3s;
  font-size: 0.6rem;
}
.map-card-chevron.open { transform: rotate(180deg); }

.map-preview {
  position: relative;
  padding: 0 1rem 1rem;
  cursor: pointer;
}
.map-preview-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.map-preview-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  transition: filter .3s;
  filter: brightness(.75) saturate(.8);
}
.map-preview:hover .map-preview-img {
  filter: brightness(1) saturate(1);
}
.map-preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 2rem 0.75rem 0.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.map-preview-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.map-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
}
.map-pill.land { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.25); color: #4ade80; }
.map-pill.mon { background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.25); color: #fb923c; }
.map-pill.cave { background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.25); color: #a78bfa; }
.map-pill.kill { background: rgba(220,40,40,0.15); border: 1px solid rgba(220,40,40,0.25); color: #f87171; }
.map-pill.raid { background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.25); color: #c084fc; }
.map-preview-hint {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.map-expanded { display: none; }
.map-expanded.open { display: block; }

.map-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.map-toggle-group { display: flex; gap: 0.25rem; }
.map-toggle-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.map-toggle-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.map-toggle-btn.active-monuments {
  background: rgba(249,115,22,0.15);
  border-color: rgba(249,115,22,0.4);
  color: #f97316;
}
.map-toggle-btn.active-kills {
  background: rgba(220,40,40,0.15);
  border-color: rgba(220,40,40,0.4);
  color: #ef4444;
}
.map-toggle-btn.active-raids {
  background: rgba(160,50,220,0.15);
  border-color: rgba(160,50,220,0.4);
  color: #a855f7;
}
.map-separator {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.06);
}
.map-time-group { display: flex; gap: 0.25rem; }
.map-time-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.45rem;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.map-time-btn:hover { border-color: rgba(255,255,255,0.15); color: var(--text); }
.map-time-btn.active {
  background: rgba(200,75,49,0.15);
  border-color: rgba(200,75,49,0.4);
  color: var(--rust-red);
}

.map-viewport {
  position: relative;
  overflow: hidden;
  cursor: grab;
  background: #0a0a0a;
}
.map-viewport:active { cursor: grabbing; }
.map-inner {
  position: relative;
  transform-origin: 0 0;
  width: 100%;
}
.map-inner img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter .3s;
  filter: brightness(.75) saturate(.8);
}
.map-viewport:hover .map-inner img {
  filter: brightness(1) saturate(1);
}
.map-grid-overlay,
.map-monuments-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.map-monuments-overlay { pointer-events: auto; }
.map-heatmap-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.map-grid-line {
  position: absolute;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.map-grid-line.vertical { width: 1px; top: 0; bottom: 0; }
.map-grid-line.horizontal { height: 1px; left: 0; right: 0; }
.map-grid-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.25);
  pointer-events: none;
  line-height: 1;
}
.map-monument-marker {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s;
  z-index: 10;
  border: 2px solid rgba(0,0,0,0.5);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  pointer-events: auto;
}
.map-monument-marker:hover { transform: translate(-50%,-50%) scale(1.3); z-index: 20; }
.map-monument-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,10,10,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
  pointer-events: none;
  font-size: 0.75rem;
  z-index: 30;
  display: none;
}
.map-monument-marker:hover .map-monument-tooltip { display: block; }
.map-monument-tooltip .tip-name { color: var(--text); font-weight: 600; }
.map-monument-tooltip .tip-grid { color: var(--muted); font-family: var(--font-mono); font-size: 0.65rem; }
.map-viewport-controls {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.3rem;
  z-index: 25;
}
.map-ctrl-btn {
  height: 32px;
  min-width: 32px;
  border-radius: 4px;
  background: rgba(10,10,10,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  transition: all 0.2s;
}
.map-ctrl-btn:hover { border-color: var(--rust-red); color: var(--rust-red); }
.map-zoom-label { font-family: var(--font-mono); font-size: 0.7rem; }

.map-stats-footer {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.map-footer-stat {
  text-align: center;
  padding: 0.3rem 0.6rem;
  flex: 1;
  min-width: 70px;
}
.map-footer-stat .fs-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.map-footer-stat .fs-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.map-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top: 2px solid var(--rust-red);
  border-radius: 50%;
  animation: map-spin 1s linear infinite;
  margin-right: 0.75rem;
}
@keyframes map-spin { to { transform: rotate(360deg); } }

.map-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .map-preview { padding: 0 0.5rem 0.75rem; }
  .map-preview-img { max-height: 150px; }
  .map-controls { flex-direction: column; align-items: stretch; padding: 0.5rem 0.75rem; }
  .map-separator { display: none; }
  .map-toggle-group, .map-time-group { justify-content: center; flex-wrap: wrap; }
  .map-toggle-btn { font-size: 0.65rem; padding: 0.25rem 0.5rem; }
  .map-time-btn { font-size: 0.65rem; padding: 0.25rem 0.45rem; }
  .map-stats-footer { padding: 0.5rem 0.75rem; }
}
