Managing wastewater in coastal urban areas