The narrow entrance to Petra is called the "Siq"
It is about a one mile walk from the ticketing gate until you reach the magnificent "Treasury" building.
Jordan2022