/* ========================================
   IRAN WAR UPDATES — Tactical Map Page
   Military command-center / war-room aesthetic
   ======================================== */

/* ---- Map Page Layout ---- */
.map-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--ticker-height) - var(--navbar-height));
  padding-top: calc(var(--ticker-height) + var(--navbar-height));
}

/* ---- Top Bar: Title + Filters + Stats ---- */
.map-topbar {
  background: linear-gradient(180deg, rgba(15,0,0,0.95) 0%, rgba(10,10,10,0.98) 100%);
  border-bottom: 1px solid rgba(204,0,0,0.25);
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 20;
}

.map-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.map-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.map-topbar h1 {
  font-family: var(--font-subheadline);
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.map-topbar h1 .hud-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(204,0,0,0.15);
  border: 1px solid rgba(204,0,0,0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-size: 0.65rem;
  color: var(--accent-red);
  letter-spacing: 0.12em;
}

.hud-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: pulse 1.5s ease-in-out infinite;
}

/* Mini stats bar */
.map-stats-bar {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.map-stat {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.map-stat-value {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1rem;
  color: var(--accent-orange);
}

.map-stat-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Filter pills in topbar */
.map-topbar .map-filter-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.map-filter-label {
  font-family: var(--font-subheadline);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.map-filter-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-family: var(--font-subheadline);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.map-filter-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.map-filter-btn.active {
  background: rgba(204,0,0,0.15);
  border-color: rgba(204,0,0,0.5);
  color: #fff;
}

.filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.filter-dot--all { background: var(--text-secondary); }
.filter-dot--nuclear { background: #bb66ff; }
.filter-dot--military { background: #ff4444; }
.filter-dot--government { background: #ffaa33; }
.filter-dot--naval { background: #33bbdd; }

/* ---- Main Map Container ---- */
.map-viewport {
  flex: 1;
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #060810;
}

/* Scanline overlay */
.map-viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 15;
}

/* Vignette edges */
.map-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 14;
}

.map-canvas {
  position: absolute;
  inset: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}

/* Grid lines — tactical feel */
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(50,80,50,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50,80,50,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* SVG map layer */
.map-svg-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.map-svg-layer svg {
  width: 100%;
  height: 100%;
}

/* Country fills */
.country-outline {
  fill: rgba(30,50,30,0.25);
  stroke: rgba(100,160,100,0.2);
  stroke-width: 0.5;
  transition: fill 0.3s, stroke 0.3s;
}

.country-outline--iran {
  fill: rgba(60,20,20,0.3);
  stroke: rgba(204,0,0,0.25);
  stroke-width: 0.8;
}

.country-outline--water {
  fill: rgba(10,20,40,0.4);
  stroke: rgba(40,80,140,0.15);
  stroke-width: 0.4;
}

/* Animated radar sweep */
@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.map-radar {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 25%;
  left: 48%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  opacity: 0.15;
}

.map-radar-sweep {
  width: 100%;
  height: 100%;
  animation: radar-sweep 8s linear infinite;
}

/* ---- Map Pins (redesigned) ---- */
.tac-pin {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, opacity 0.4s ease, z-index 0s;
}

.tac-pin:hover {
  transform: translate(-50%, -50%) scale(1.25);
  z-index: 25;
}

.tac-pin.active {
  z-index: 30;
}

.tac-pin-core {
  position: relative;
  width: 18px;
  height: 18px;
}

/* Outer ring — always pulsing */
.tac-pin-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid;
  opacity: 0.4;
  animation: pulse 2.5s ease-in-out infinite;
}

/* Second ring — larger, more subtle */
.tac-pin-ring2 {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0.15;
  animation: pulse 3s ease-in-out infinite 0.5s;
}

/* Center dot */
.tac-pin-dot {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
}

/* Pin diamond shape for active */
.tac-pin.active .tac-pin-core {
  filter: brightness(1.5);
}

/* Dimmed pin — timeline not yet reached */
.tac-pin--dimmed {
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.tac-pin--dimmed .tac-pin-ring,
.tac-pin--dimmed .tac-pin-ring2 {
  animation: none;
}

/* Pin flash — plays when pin first appears in timeline */
@keyframes pin-flash-scale {
  0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  30%  { transform: translate(-50%, -50%) scale(1.6); opacity: 1; }
  60%  { transform: translate(-50%, -50%) scale(0.9); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes pin-flash-ring {
  0%   { transform: scale(0.5); opacity: 0; }
  40%  { transform: scale(2.5); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

.tac-pin--flash {
  animation: pin-flash-scale 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 35 !important;
}

.tac-pin--flash::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  animation: pin-flash-ring 0.9s ease-out forwards;
  pointer-events: none;
}

/* Category colors */
.tac-pin--nuclear .tac-pin-dot { background: #bb66ff; box-shadow: 0 0 8px rgba(187,102,255,0.5); }
.tac-pin--nuclear .tac-pin-ring,
.tac-pin--nuclear .tac-pin-ring2 { border-color: #bb66ff; }

.tac-pin--military .tac-pin-dot { background: #ff4444; box-shadow: 0 0 8px rgba(255,68,68,0.5); }
.tac-pin--military .tac-pin-ring,
.tac-pin--military .tac-pin-ring2 { border-color: #ff4444; }

.tac-pin--government .tac-pin-dot { background: #ffaa33; box-shadow: 0 0 8px rgba(255,170,51,0.5); }
.tac-pin--government .tac-pin-ring,
.tac-pin--government .tac-pin-ring2 { border-color: #ffaa33; }

.tac-pin--naval .tac-pin-dot { background: #33bbdd; box-shadow: 0 0 8px rgba(51,187,221,0.5); }
.tac-pin--naval .tac-pin-ring,
.tac-pin--naval .tac-pin-ring2 { border-color: #33bbdd; }

/* Coalition pins — different shape (square) */
.tac-pin--coalition .tac-pin-dot {
  border-radius: 3px;
  background: #33dd77;
  box-shadow: 0 0 8px rgba(51,221,119,0.5);
}
.tac-pin--coalition .tac-pin-ring,
.tac-pin--coalition .tac-pin-ring2 { border-color: #33dd77; }
.tac-pin--coalition .tac-pin-ring { border-radius: 5px; }
.tac-pin--coalition .tac-pin-ring2 { border-radius: 8px; }

/* Pin hover tooltip */
.tac-pin-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,10,10,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 0.35rem 0.6rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 40;
}

.tac-pin:hover .tac-pin-tooltip {
  opacity: 1;
}

.tac-pin-tooltip-name {
  font-family: var(--font-subheadline);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tac-pin-tooltip-type {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Info Panel (redesigned) ---- */
.info-drawer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 360px;
  max-width: 100vw;
  background: rgba(8,8,12,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(204,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.info-drawer.open {
  transform: translateX(0);
}

/* Top accent line */
.info-drawer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
}

.info-drawer-header {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.info-drawer-header h3 {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.info-drawer-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.info-drawer-close:hover {
  background: rgba(204,0,0,0.2);
  border-color: rgba(204,0,0,0.4);
}

.info-drawer-type {
  display: inline-block;
  font-family: var(--font-subheadline);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-top: 0.5rem;
}

.info-drawer-type--nuclear { background: rgba(187,102,255,0.15); color: #bb66ff; border: 1px solid rgba(187,102,255,0.3); }
.info-drawer-type--military { background: rgba(255,68,68,0.15); color: #ff4444; border: 1px solid rgba(255,68,68,0.3); }
.info-drawer-type--government { background: rgba(255,170,51,0.15); color: #ffaa33; border: 1px solid rgba(255,170,51,0.3); }
.info-drawer-type--naval { background: rgba(51,187,221,0.15); color: #33bbdd; border: 1px solid rgba(51,187,221,0.3); }

.info-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.info-field {
  margin-bottom: 1.25rem;
}

.info-field-label {
  font-family: var(--font-subheadline);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  margin-bottom: 0.35rem;
}

.info-field-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Status indicator */
.info-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
  margin-bottom: 1.25rem;
}

.info-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.info-status-dot--destroyed { background: #ff4444; }
.info-status-dot--damaged { background: #ffaa33; }
.info-status-dot--operational { background: #33dd77; }
.info-status-dot--struck { background: #ff4444; animation: pulse 2s infinite; }

.info-status-text {
  font-family: var(--font-subheadline);
  font-size: 0.75rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Map Controls ---- */
.map-controls-group {
  position: absolute;
  bottom: 5rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 30;
}

.map-ctrl-btn {
  width: 38px;
  height: 38px;
  background: rgba(10,10,14,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.map-ctrl-btn:first-child { border-radius: 4px 4px 0 0; }
.map-ctrl-btn:last-child { border-radius: 0 0 4px 4px; }

.map-ctrl-btn:hover {
  background: rgba(204,0,0,0.3);
  border-color: rgba(204,0,0,0.5);
}

/* Zoom level indicator */
.map-zoom-level {
  position: absolute;
  bottom: 5rem;
  left: 3.5rem;
  font-family: var(--font-subheadline);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 30;
}

/* ---- Bottom Timeline Bar ---- */
.map-timeline-bar {
  background: rgba(8,8,12,0.97);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 1.5rem;
  z-index: 20;
  position: relative;
}

.map-timeline-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.timeline-play-btn {
  width: 36px;
  height: 36px;
  background: rgba(204,0,0,0.15);
  border: 1px solid rgba(204,0,0,0.4);
  border-radius: 50%;
  color: var(--accent-red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.timeline-play-btn:hover {
  background: rgba(204,0,0,0.3);
}

/* Playing state */
.timeline-play-btn.playing {
  background: rgba(204,0,0,0.35);
  border-color: rgba(204,0,0,0.7);
}

/* Pause icon fill */
.timeline-play-btn .icon-pause {
  fill: currentColor;
}

.timeline-play-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.timeline-slider-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.timeline-slider-track {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.timeline-slider-track input[type="range"] {
  --fill: 100%;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: linear-gradient(
    to right,
    rgba(204,0,0,0.7) 0%,
    rgba(204,0,0,0.7) var(--fill),
    rgba(255,255,255,0.08) var(--fill),
    rgba(255,255,255,0.08) 100%
  );
  border-radius: 2px;
  outline: none;
  position: relative;
  z-index: 2;
}

.timeline-slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent-red);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(204,0,0,0.5);
  transition: transform 0.15s;
}

.timeline-slider-track input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.timeline-slider-track input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--accent-red);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(204,0,0,0.5);
}

/* Phase markers on slider */
.timeline-markers {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.timeline-marker {
  width: 1px;
  height: 6px;
  background: rgba(255,255,255,0.15);
}

.timeline-readout {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-shrink: 0;
}

.timeline-readout-time {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-orange);
  min-width: 65px;
}

.timeline-readout-event {
  font-size: 0.7rem;
  color: var(--text-secondary);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Strike Lines (animated) ---- */
.strike-lines {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.strike-lines svg {
  width: 100%;
  height: 100%;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -20; }
}

.strike-line {
  fill: none;
  stroke: rgba(204,0,0,0.25);
  stroke-width: 1;
  stroke-dasharray: 6 4;
  animation: dash-flow 1.5s linear infinite;
  transition: opacity 0.5s ease;
}

/* Retaliatory line — Iran → Israel, different color */
.strike-line--retaliatory {
  stroke: rgba(255,170,0,0.35);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
}

/* ---- Region Labels ---- */
.region-label {
  position: absolute;
  font-family: var(--font-subheadline);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  pointer-events: none;
  z-index: 4;
  user-select: none;
}

.region-label--country {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.1);
}

.region-label--iran {
  font-size: 1rem;
  color: rgba(255,255,255,0.07);
  letter-spacing: 0.5em;
}

.region-label--water {
  font-size: 0.5rem;
  color: rgba(60,120,180,0.12);
  font-style: italic;
  letter-spacing: 0.3em;
}

/* ---- Coordinates display (HUD) ---- */
.hud-coords {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.15);
  z-index: 30;
  pointer-events: none;
  text-align: right;
  line-height: 1.4;
}

/* ---- Below Map: Target List ---- */
.target-list-section {
  background: var(--bg-primary);
  padding: 3rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.target-list-section .section-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--text-primary);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-red);
  display: inline-block;
}

.target-table {
  width: 100%;
  border-collapse: collapse;
}

.target-table thead th {
  font-family: var(--font-subheadline);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.target-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
  cursor: pointer;
}

.target-table tbody tr:hover {
  background: rgba(204,0,0,0.05);
}

.target-table td {
  padding: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

.target-table .td-name {
  font-family: var(--font-subheadline);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.target-table .td-type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.target-table .td-type-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.target-table .td-status {
  font-family: var(--font-subheadline);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.td-status--destroyed { color: #ff4444; }
.td-status--damaged { color: #ffaa33; }
.td-status--operational { color: #33dd77; }
.td-status--struck { color: #ff6644; }

/* Dimmed row — timeline not yet reached */
.target-table tbody tr.row-dimmed {
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Row flash — highlights row when it first appears */
@keyframes row-flash-bg {
  0%   { background: rgba(204,0,0,0.3); }
  100% { background: transparent; }
}

.target-table tbody tr.row-flash {
  animation: row-flash-bg 0.8s ease-out;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .map-topbar-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-stats-bar {
    gap: 0.75rem;
  }

  .map-viewport {
    min-height: 400px;
  }

  /* Info drawer slides up from bottom on mobile */
  .info-drawer {
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 70vh;
    transform: translateY(100%);
    border-left: none;
    border-top: 1px solid rgba(204,0,0,0.2);
    border-radius: 12px 12px 0 0;
  }

  .info-drawer.open {
    transform: translateY(0);
  }

  .timeline-readout-event {
    display: none;
  }

  .timeline-readout-time {
    min-width: auto;
  }

  .map-timeline-inner {
    flex-wrap: wrap;
  }

  .target-table thead {
    display: none;
  }

  .target-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    padding: 0.75rem 0;
  }

  .target-table td {
    padding: 0.15rem 0;
  }

  .hud-coords {
    display: none;
  }
}

@media (min-width: 768px) {
  .map-viewport {
    min-height: 550px;
  }
}

@media (min-width: 1024px) {
  .map-viewport {
    min-height: 600px;
  }
}
