زُرْتُ بَعْلَبَكَّ — I visited Baalbek.
زُرْتُ: past verb plus attached nominative subject pronoun.
بَعْلَ: first part built on fatḥ.
بَكَّ: second part accusative with fatḥah; the whole name is direct object.
The book uses «رَأَيْتُ بَعْلَبَكّ». This more natural travel sentence is an added teaching example applying the same rule.