It is a demersal species and is found in estuaries and on algae-clad rocky coasts as well as over muddy and silty seabeds, on seagrass meadows and on reefs, both on and offshore, to depths of about 50 meters .