Target search of active particles in complex environments