Many of the world’s most beautiful beach towns started as ancient ports, bustling with trade, sailors, and cultural exchange.