I have this scene in my head of a movie, maybe a spy movie (not Moonraker), in which a guy is at an evil dude’s mansion which is a massive white open villa on multi levels on a hill. They use a funicular that goes alongside the house to go up and down. It might have been in South America? When I looked this up originally, the house is actually a hotel in the real world.
The guy I think wakes up at that place and meets with the evil dude but somehow ends up romancing the guy’s wife or gf. I am not sure when I have seen it or whether it was an old or new movie. This has been driving me bonkers for a while now.