Where Paths Collide: A Comprehensive Survey of Classic and Learning-Based Multi-Agent Pathfinding