Managing coastal ecosystems