The ruins of Czorsztyn Castle stands at the top of the hill nearby Dunajec. According to Jan Długosz, in 1246 the owner of the castle was Piotr Wydżga. However that theory was never after confirmed by other historians, so the beginnings of castle functioning are dated on 14th century. Large development of the castle took place during the reign of Casimir III the Great. In years 1629–1643, when Jan Baranowski was a starosta of Czorsztyn, the castle was fundamentally rebuilt. In 1790 the roof of the castle burnt after a thunder clap. In the result castle was quickly broken down and became empty.
References:Herceg Novi was founded (on a former small fishing village, existing since Roman Empire times) as a fortress in 1382 by first Bosnian King Stjepan Tvrtko I and was called Sveti Stefan or Castelnuovo. The Turks conquered Herceg Novi in 1482, and ruled for 200 years, until 1687. However, there was a short pause between 1538 and 1539 when it was held by the Spaniards before they were defeated in the Siege of Castelnuovo. Turkey ruled again until 1687, from then until 1797, the town was ruled by the Venetian Republic.
The Herceg Novi old town is amazing. It is on a fairly steep hill that leads all the way down to the sea. Wandering through the small stairways to the various plazas and fortresses is a many hour adventure.