public NavNode GetNodeAtIdx(int idx) { if (idx <= 0 || idx > nodes.Count) return null; return nodes[idx - 1]; }