Yichid/Walking in quiet places

Hi there, I wanted to know if its permissible for a guy to walk with a girl in a quiet area, like taking a night hike through a public park, thanks!

If there’s periodically people around it’s fine. If it’s secluded, it’s not.