Text this: Quantifying the Contribution of Habitats and Pathways to a Spatially Structured Population Facing Environmental Change.