Indonesia has a range of sea and coastal ecosystems , including beaches , sand dunes , estuaries , mangroves , coral reefs , sea grass beds , coastal mudflats , tidal flats , algal beds , and small island ecosystems .