" Does ' overlooking the ocean ' restrict the meaning of (A) or (B) ? ). I would take this adjectival phrase to be modifying the noun it follows, ie B.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.