sea legs

The ability to adjust one's balance to the motion of a ship, especially in rough seas. After walking on a ship for long periods of time, sailors became accustomed to the rocking of the ship in the water. Early in a voyage a sailor was said to be lacking his "sea legs" when the ship motion was still foreign to him. After a cruise, a sailor would often have trouble regaining his "land legs" and would swagger on land.