Human access constrains optimal foraging and habitat availability in an avian generalist.