Medieval Melnik from the End of the 12th to the End of the 14th Century: The Historical Vicissitudes of a Small Balkan Town