The habitat of the bird is coastal beaches, river and lake shores, flats, and pools in salt marshes.