/* ── Flight Tracks Layer ─────────────────────────────────── */

.ft-aircraft-icon {
  background: none;
  border: none;
}

/* Popup wrapper */
.ft-popup-wrap .leaflet-popup-content-wrapper {
  background: #1a1a2e;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #e2e8f0;
  padding: 0;
  min-width: 200px;
}

.ft-popup-wrap .leaflet-popup-tip {
  background: #1a1a2e;
}

.ft-popup-wrap .leaflet-popup-content {
  margin: 0;
}

.ft-popup {
  padding: 10px 12px;
  font-size: 12px;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
}

.ft-callsign {
  font-size: 15px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  border-bottom: 1px solid #334155;
  padding-bottom: 6px;
}

.ft-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  gap: 12px;
}

.ft-row span:first-child {
  color: #94a3b8;
}

.ft-row span:last-child {
  color: #e2e8f0;
  text-align: right;
}

/* ── Refresh control container ───────────────────────────── */

.ft-refresh-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  margin-left: 8px;
}

/* ── Dropdown ────────────────────────────────────────────── */

.ft-select {
  background: #1a1a2e;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #e2e8f0;
  padding: 5px 8px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.ft-select:hover,
.ft-select:focus {
  border-color: #38bdf8;
}

.ft-select optgroup {
  color: #94a3b8;
  font-style: normal;
  font-weight: 600;
  background: #0f172a;
}

.ft-select option {
  color: #e2e8f0;
  background: #1a1a2e;
  padding: 2px 4px;
}

/* ── Refresh button ──────────────────────────────────────── */

.ft-refresh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1a2e;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #e2e8f0;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  line-height: 1.4;
  transition: background 0.2s, border-color 0.2s;
  min-width: 120px;
  width: 100%;
}

.ft-refresh-btn:hover {
  background: #0f172a;
  border-color: #38bdf8;
}

.ft-refresh-icon {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.4s;
  flex-shrink: 0;
}

.ft-refresh-icon.ft-stale {
  color: #f97316;
}

.ft-refreshing .ft-refresh-icon {
  animation: ft-spin 0.8s linear infinite;
}

.ft-refresh-label {
  text-align: left;
}

.ft-refresh-label small {
  color: #94a3b8;
  font-size: 10px;
}

@keyframes ft-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ft-airline {
  font-size: 11px;
  color: #94a3b8;
  margin-top: -4px;
  margin-bottom: 6px;
  font-style: italic;
}
