 The Patriarchs partitioned the territory between several powerful fiefs, the most prominent of which were the Bavarian Counts of Andechs (later Dukes of Merania), the "Meinhardiner" dynasty of Gorizia ("Görz"), and the Counts of Celje.In the twelfth century, the Republic of Venice gradually acquired the Istrian littoral and Carniola took control of what remained of the Istrian march around Pazin ("Mitterburg").Soon Carniola extended over the Kras Plateau and had two small seacoasts on the Gulf of Trieste and the Gulf of Kvarner.