.page-map .nav { margin-bottom: 0; }
.map-main { max-width: none; padding: 0; margin: 0; height: calc(100vh - 57px); }
.map-page { display: flex; height: 100%; }
.map-sidebar {
  width: 320px;
  min-width: 280px;
  height: 100%;
  overflow-y: auto;
  border-radius: 0;
  border-left: none;
  border-top: none;
  border-bottom: none;
  padding: 1rem;
}
.map-sidebar h1 { font-size: 1.25rem; margin: 0 0 1rem; }
.map-container { flex: 1; height: 100%; background: #060a14; }
.map-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.stats.compact { grid-template-columns: 90px 1fr; font-size: 0.9rem; }
.search-label { display: block; margin: 0.75rem 0; font-size: 0.9rem; }
.search-label input {
  width: 100%; margin-top: 0.35rem; padding: 0.5rem;
  background: #0d1428; border: 1px solid var(--border); border-radius: 8px; color: var(--text);
}
.small { font-size: 0.8rem; }
#trail-list { max-height: 200px; margin-top: 0.5rem; }

.leaflet-container { background: #060a14; font-family: inherit; }
.system-dot { border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); }
.char-marker {
  width: 18px; height: 18px; border-radius: 50%;
  background: #2fd6a1; border: 3px solid #fff;
  box-shadow: 0 0 12px #2fd6a1;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px #2fd6a1; }
  50% { box-shadow: 0 0 18px #2fd6a1, 0 0 24px rgba(47,214,161,0.5); }
}

.leaflet-draw-toolbar a { background-color: #121a2f !important; }
.leaflet-bar a { border-color: #24304f !important; color: #e8eefc !important; }

@media (max-width: 900px) {
  .map-page { flex-direction: column; }
  .map-sidebar { width: 100%; height: auto; max-height: 40vh; }
  .map-container { min-height: 50vh; }
}
