Habitat structure mediates vulnerability to climate change through its effects on thermoregulatory behavior. (2nd May 2021)