The impact of distance and a shifting temperature gradient on genetic connectivity across a heterogeneous landscape