Adaptation to climate change in rapidly growing cities