text: For the next three centuries Nepal had three city-states side by side in the valley Kantipur ( now known as Kathmandu ) , Lalitpur ( now known as Patan ) , and Bhaktapur ( also sometimes called Bhadgaon ) , along with their hinterlands .
  
  ###
  
  Nepal finally lost those city-states in the eighteenth century due to an internal conflict .