/* ===== Layout ===== */

#tvf-map-wrapper {
  display: flex;
  height: 600px;
  border-radius: 10px;
  overflow: hidden;
}

#tvf-map {
  flex: 1;
}

#tvf-sidebar {
  width: 280px;
  background: #0f172a;
  color: #e5e7eb;
  overflow-y: auto;
  padding: 10px;
}

#tvf-sidebar h3 {
  font-size: 15px;
  margin-bottom: 10px;
}


/* ===== Sidebar items ===== */

#tvf-sidebar h3 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #e5e7eb;
}


.tvf-flight-item {
  padding: 10px;
  border-bottom: 1px solid #1f2933;
  cursor: pointer;
}

.tvf-flight-item:hover {
  background: #020617;
}

.tvf-flight-item strong {
  display: block;
  color: #22c55e;
}

.tvf-flight-item small {
  display: block;
  font-size: 12px;
  color: #9ca3af;
}

.empty {
  text-align: center;
  padding: 20px;
  color: #9ca3af;
}


/* ===== Popups ===== */

.popup-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.leaflet-popup-content {
  font-size: 13px;
}


/* ===== Phase badges ===== */

.phase {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.phase.Cruising {
  background: #22c55e;
  color: #022c22;
}

.phase.Descending {
  background: #ef4444;
  color: #450a0a;
}

.phase.Climbing {
  background: #3b82f6;
  color: #172554;
}

.phase.Ground {
  background: #6b7280;
  color: #111827;
}


/* ===== Animation avion ===== */

.leaflet-marker-icon {
  transition: transform 0.5s linear;
}


/* ===== Mobile ===== */

@media (max-width: 768px) {
  #tvf-map-wrapper {
    flex-direction: column;
  }

  #tvf-sidebar {
    width: 100%;
    height: 200px;
  }
}
/* ===== Network badges ===== */

.network {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  width: fit-content;
}

.network.VATSIM {
  background: #38e092;
  color: #dbeafe;
}

.network.IVAO {
  background: #0d2c99;
  color: #ede9fe;
}

.network.OFFLINE {
  background: #374151;
  color: #e5e7eb;
}
