 It lies mostly between latitudes 42° and 47° N and longitudes 13° and 20° E. Part of the extreme south of Croatia is separated from the rest of the mainland by a short coastline strip around Neum belonging to Bosnia–Herzegovina.Croatia's border with Hungary was inherited from Yugoslavia.Much of the border with Hungary follows the Drava River or its former river bed; that part of the border dates from the Middle Ages.