A vintage yellow and cream tram numbered 577 navigates a narrow cobblestone street in Lisbon, flanked by colorful pastel buildings with wrought-iron balconies.