Best guess for what I saw, foraging at sand near marshland, lanky legs and long thin beak, bobbed its head when walking