Macrofaunal responses to structural complexity are mediated by environmental variability and surrounding habitats