Structural and compositional heterogeneity influences the thermal environment across multiple scales