/* ===== Transportation Dashboard Styles ===== */

/* Node markers */
.node-emoji {
  font-size: 16px;
  cursor: pointer;
  transition: font-size 0.2s;
}

.node-emoji.selected {
  font-size: 22px;
}

.node-hit {
  cursor: pointer;
}

/* Route paths */
.route-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  cursor: pointer;
  transition: stroke-width 0.2s;
}

.route-path:hover {
  stroke-width: 3.5;
}

.route-path.selected {
  stroke-width: 4;
}

/* Animation control */
.control-section {
  margin-bottom: 8px;
}

.control-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
  letter-spacing: 0.5px;
}

/* Layer toggles */
.layer-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.layer-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-main);
  transition: 0.2s;
  user-select: none;
}

.layer-toggle:hover {
  border-color: var(--accent-cyan);
}

.layer-toggle.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
}

.layer-toggle.hidden {
  opacity: 0.4;
  border-color: rgba(255, 255, 255, 0.05);
}

.layer-toggle-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

/* Nodes table */
.nodes-section {
  max-height: 250px;
  overflow-y: auto;
}

.node-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s;
  font-size: 11px;
}

.node-row:hover {
  background: rgba(0, 240, 255, 0.05);
}

.node-row.selected {
  background: rgba(0, 255, 157, 0.08);
  border-left: 2px solid var(--accent-green);
}

.node-row-emoji {
  font-size: 14px;
  flex-shrink: 0;
}

.node-row-name {
  flex: 1;
  color: var(--text-main);
}

.node-row-dist {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-cyan);
  white-space: nowrap;
}

/* Routes table */
.routes-section {
  max-height: 200px;
  overflow-y: auto;
}

.route-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s;
  font-size: 11px;
}

.route-row:hover {
  background: rgba(0, 240, 255, 0.05);
}

.route-row.selected {
  background: rgba(0, 255, 157, 0.08);
  border-left: 2px solid var(--accent-green);
}

.route-row-name {
  flex: 1;
  color: var(--text-main);
}

.route-row-type {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
  text-transform: uppercase;
}

.type-air { background: rgba(0, 240, 255, 0.2); color: #00f0ff; }
.type-sea { background: rgba(68, 136, 255, 0.2); color: #4488ff; }
.type-rail { background: rgba(255, 204, 0, 0.2); color: #ffcc00; }
.type-road { background: rgba(0, 255, 157, 0.2); color: #00ff9d; }

.route-row-dist {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Detail panel */
.detail-section {
  min-height: 80px;
}

/* Compass overlay */
.compass-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 50px;
  height: 50px;
  background: var(--bg-panel);
  border: var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.compass-n {
  position: absolute;
  top: 3px;
  color: var(--accent-red);
  font-weight: bold;
  font-family: var(--font-mono);
  font-size: 11px;
}

.compass-s { position: absolute; bottom: 3px; font-family: var(--font-mono); font-size: 9px; }
.compass-e { position: absolute; right: 5px; font-family: var(--font-mono); font-size: 9px; }
.compass-w { position: absolute; left: 5px; font-family: var(--font-mono); font-size: 9px; }
