Complex reef structures protect coasts from monster waves