@correct_culture_primary_score = 100
@better_than_the_alternatives_score = 50
@always_primary_score = 1000
@never_primary_score = -1000



e_yugoslavia = {
    color = { 17 24 117 }

    capital = c_beograd

    k_slovenia = {
        color = { 18 103 188 }

        capital = c_ljubljana

		d_slovenia = {
			 color = { 22 109 229 }

			capital = c_ljubljana # Kranj

			c_kranj = {
				 color = { 22 109 229 }

				cultural_names = {
					name_list_swabian = cn_krain
					name_list_swabian = cn_krain
					name_list_franconian = cn_krain
					name_list_NEOW_bavarian = cn_krain
					name_list_saxon = cn_krain
				}

				b_kranj = {
					province = 3100

					 color = { 22 109 229 }

					cultural_names = {
						name_list_swabian = cn_krainburg
						name_list_swabian = cn_krainburg
						name_list_franconian = cn_krainburg
						name_list_NEOW_bavarian = cn_krainburg
						name_list_saxon = cn_krainburg
					}
				}
				b_kamnik = {
					province = 3101

					 color = { 22 109 229 }
				}
			}

			c_maribor = {
				color = { 12 99 209 }
				b_maribor = {
					province = 3103

					 color = { 12 99 209 }
				}
				b_windische_buhel = {
					province = 3106

					color = { 12 99 209 }
				}
				b_prekmurje = {
					province = 9781

					color = { 12 99 209 }
				}
				b_krsko = {
					province = 3102

					color = { 12 99 209 }
				}				
			}
			c_ljubljana = {
				color = { 12 69 159 }

				b_ljubljana = {
					province = 3096

					color = { 12 69 159 }
				}
				b_dobovec = {
					province = 3097

					color = { 12 69 159 }
				}
				b_rudolfswerde = {
					province = 3098

					color = { 12 69 159 }
				}
				b_ribnica = {
					province = 3095

					color = { 12 69 159 }
				}
			}
			c_gorz = {
				color = { 0 59 139 }

				cultural_names = {
					name_list_swabian = cn_gorz
					name_list_swabian = cn_gorz
					name_list_franconian = cn_gorz
					name_list_NEOW_bavarian = cn_gorz
					name_list_saxon = cn_gorz
				}

				b_gorizia = {
					province = 2516

					color = { 0 59 139 }
				}
				b_triglavski = { #Tricorno
					province = 2515

					color = { 0 59 139 }
				}
				b_koper = {
					province = 2519

					color = { 0 59 139 }
				}				
			}
		}
    }
    
	k_croatia = {
		color = { 127 12 24 }

		capital = c_zagreb

		cultural_names = {
			name_list_roman = cn_dalmatia
		}

		ai_primary_priority = {
			if = {
				limit = {
					culture = culture:croatian
				}
				add = @correct_culture_primary_score
			}
		}

		d_dalmatia = {
			color = { 162 23 23 }

			capital = c_zadar # Zadar

			c_zadar = {
				color = { 162 23 23 }

				#capital = 465 # Zadar

				#italian = "Zara"
				#greek = "Diadora"
				#roman = "Diadora"

				cultural_names = {
					name_list_roman = cn_diadora
					name_list_greek = cn_diadora
					name_list_italian = cn_zara
					name_list_cisalpine = cn_zara
					name_list_sicilian = cn_zara
					name_list_sardinian = cn_zara
				}

				b_zadar = {
					province = 465

					color = { 162 23 23 }
				}
				b_nin = {
					province = 3545

					color = { 162 23 23 }
				}
				b_biograd = {
					province = 3547

					color = { 162 23 23 }
				}
				b_obrovac = {
					province = 3546

					color = { 162 23 23 }
				}
			}
			c_sibenik = {
				color = { 152 13 13 }

				#capital = 3548 # Knin
				b_knin = {
					province = 3548 # Knin

					color = { 152 13 13 }
				}			
				b_bribir = {
					province = 3549

					color = { 152 13 13 }
				}
				b_sibenik = {
					province = 3550

					color = { 152 13 13 }
				}
			}
			c_split = {
				color = { 132 13 13 }

				#capital = 3551 # Sinj

				#italian = "Spalato"
				#greek = "Spalathos"
				#roman = "Spalato"

				cultural_names = {
					name_list_roman = cn_spalato
					name_list_italian = cn_spalato
					name_list_cisalpine = cn_spalato
					name_list_sicilian = cn_spalato
					name_list_sardinian = cn_spalato
					name_list_greek = cn_spalathos
				}

				b_split = {
					province = 467

					color = { 132 13 13 }
				}
				b_solin = {
					province = 3552

					color = { 132 13 13 }
				}
				b_mokro = {
					province = 3555

					color = { 132 13 13 }
				}
				b_omis = {
					province = 3553

					color = { 132 13 13 }
				}
				b_sinjcroat = {
					province = 3551

					color = { 132 13 13 }
				}					
			}
		}

		d_croatia = {
			color = { 178 0 17 }

			capital = c_zagreb
			c_zagreb = {
				color = { 178 0 17 }

				#capital = 461 # Zagreb

				cultural_names = {
					name_list_roman = cn_andautonia
					name_list_greek = cn_andautonia
				}

				b_zagreb = {
					province = 461

					color = { 178 0 17 }
				}
				b_bjelovar = {
					province = 3533

					color = { 178 0 17 }
				}
				b_samobor = {
					province = 3534

					color = { 178 0 17 }
				}
			}
			c_zagorje = {
				color = { 168 0 27 }

				#capital = 458 # Krapina

				b_varazdin = {
					province = 458 # Krapina

					color = { 168 0 27 }
				}
				b_cakovec = { # Original name of Varazdin
					province = 460

					color = { 168 0 27 }
				}
				b_krizevci = {
					province = 462

					color = { 168 0 27 }
				}
				b_koprivnica = {
					province = 3531

					color = { 168 0 27 }
				}
			}
			c_lika = {
				color = { 158 0 37 }

				#capital = 3543 # Kaseg

				b_kaseg = {
					province = 3543

					color = { 158 0 37 }
				}
				b_senj = {
					province = 464

					color = { 158 0 37 }
				}
				b_brinje = {
					province = 3540

					color = { 158 0 37 }
				}				
				b_bag = {
					province = 3542

					color = { 158 0 37 }
				}
				b_udbina = {
					province = 3544

					color = { 158 0 37 }
				}
				b_dreznik  = {
					province = 3541

					color = { 158 0 37 }
				}
			}
			c_cherso = {
				color = { 148 0 47 }

				#capital = 2521 # Cres / Cherso
				b_rijeka = {
					province = 2523

					color = { 148 0 47 }
				}
				b_cres = {
					province = 2521

					color = { 148 0 47 }
				}
				b_krk = {
					province = 459

					color = { 148 0 47 }
				}
			}
			c_karlovac = {
				color = { 138 0 57 }

				#capital = 3539 # Modrus

				b_ogulin = {
					province = 3539

					color = { 138 0 57 }
				}
				b_karlovac = {
					province = 3536

					color = { 138 0 57 }
				}
				b_okic = {
					province = 3537

					color = { 138 0 17 }
				}				
			}
			c_moslavina = {
				color = { 138 0 17 }
				b_sisak = {
					province = 3535

					color = { 138 0 17 }
				}			
				b_dubica = {
					province = 3518

					color = { 138 0 17 }
				}		
				b_kutina = {
					province = 3528

					color = { 138 0 17 }
				}				
			}				
		}

		d_slavonia = {
			color = { 138 0 27 }

			capital = c_osijek 

			cultural_names = {
				name_list_roman = cn_pannonia
				name_list_greek = cn_pannonia
			}

			c_pozega = {
				color = { 138 0 27 }

				#capital = 3529 # Pozega

				b_pozega = {
					province = 3529

					color = { 138 0 27 }
				}
				b_brod = {
					province = 3530

					color = { 138 0 27 }
				}
				b_gradiska = {
					province = 3515

					color = { 138 0 27 }
				}					
			}
			c_osijek = {
				color = { 128 0 17 }

				b_vukovar = {
					province = 3610

					color = { 128 0 17 }
				}
				b_osijek = {
					province = 3609

					color = { 128 0 17 }
				}
				b_orahovica = {
					province = 3608

					color = { 128 0 17 }
				}
				b_virovitica = {
					province = 3532

					color = { 128 0 17 }
				}				
				b_baranyavar = {
					province = 3842

					color = { 128 0 17 }
				}
			}
		}

		d_istria = {
			color = { 158 0 10 }

			c_pula = {
				color = { 158 0 10 }

				b_pula = {
					province = 2518

					color = { 158 0 10 }
				}
				b_pazin = {
					province = 2520

					color = { 158 0 10 }
				}
				b_labin = {
					province = 2522

					color = { 158 0 10 }
				}
			}
		}
        
		d_ragusa = {
			color = { 170 11 30 }

			capital = c_dubrovnik # Ragusa / Dubrovnik

			c_dubrovnik = {
				color = { 170 11 30 }

				#capital = 468 # Ragusa / Dubrovnik

				b_dubrovnik = {
					province = 468

					color = { 170 11 30 }
				}
				b_ston = {
					province = 3569

					color = { 170 11 30 }
				}
				b_hvar = {
					province = 3556

					color = { 180 110 50 }
				}				
			}
		}
	}
	k_serbia = {
		color = { 42 46 122 }

		capital = c_beograd 

		ai_primary_priority = {
			if = {
				limit = {
					culture = culture:serbian
				}
				add = @correct_culture_primary_score
			}
		}
		d_pomoravlje = {
			color = { 29 22 94 }
			capital = c_naissus		
			c_naissus = {
				color = { 29 22 94 }

				#capital = 501 # Naissos / Nis

				cultural_names = {
					name_list_serbian = cn_nis
					name_list_croatian = cn_nis
					name_list_bosnian = cn_nis
				}

				b_naissos = {
					province = 501

					cultural_names = {
						name_list_serbian = cn_nis
						name_list_croatian = cn_nis
						name_list_bosnian = cn_nis
					}

					color = { 29 22 94 }
				}
				b_svrljig = {
					province = 3661

					color = { 29 22 94 }
				}
				b_pirot = {
					province = 3662

					color = { 29 22 94 }
				}
				b_prokuplje = {
					province = 3600

					color = { 29 22 94 }
				}
				b_leskovac = {
					province = 3657

					color = { 29 22 94 }
				}				
			}
			
			c_pcinja = {
				color = { 29 42 114 }

				#capital = 3658 # Vranje

				b_vranje = {
					province = 3658

					color = { 29 42 114 }
				}
				b_bosilegrad = {
					province = 3654

					color = { 29 42 114 }
				}					
			}	
		}
		d_podrinje = {
			color = { 39 32 84 }

			capital = c_rashka # krujevac

			c_rashka = {
				color = { 39 32 84 }

				b_novi_pazar = {
					province = 502

					color = { 39 32 84 }
				}
				b_aleksandrovac = {
					province = 3599

					color = { 39 32 114 }
				}
				b_kraljevo = {
					province = 3588

					color = { 39 32 84 }
				}
				b_rashka = {
					province = 3587

					color = { 39 32 84 }
				}
			}
			c_macva = {
				color = { 49 42 94 }

				#capital = 3604 # Macva

				b_macva = {
					province = 3604

					color = { 49 42 94 }
				}
				b_valjevo = {
					province = 3605

					color = { 49 42 94 }
				}
				b_krupanj = {
					province = 3606

					color = { 49 42 94 }
				}
			}			
			c_zlatibor = {
				color = { 29 22 104 }
				b_uzice = {
					province = 3607

					color = { 29 22 104 }
				}
				b_sjenica = {
					province = 3591

					color = { 29 22 104 }
				}
				b_arilje = {
					province = 3589

					color = { 29 22 104 }
				}
				b_zlatibor = {
					province = 3590

					color = { 29 22 104 }
				}
			}				
		}

		d_vojvodina = {
			color = { 49 72 134 }

			capital = c_bacs# Szerem / Srem
			c_bacs = {
				color = { 49 72 134 }
				b_novi_sad = {
					province = 3830

					color = { 49 72 134 }
				}
				b_bacs = {
					province = 518

					color = { 49 72 134 }
				}
				b_sombor = {
					province = 3863

					color = { 49 72 134 }
				}	
				b_subotica = {
					province = 12335

					color = { 49 72 134 }
				}
				b_srbobran = {
					province = 12334

					color = { 49 72 134 }
				}				
			}
			c_srem = {
				color = { 49 92 144 }

				b_sremska_mitrovica = {
					province = 3739

					color = { 49 92 144 }
				}
				b_sid = {
					province = 3611

					color = { 49 92 144 }
				}
			}
			c_keve = {
				color = { 49 62 124 }

				b_kovin = {
					province = 3877

					color = { 49 62 124 }
				}
				b_palilula = {
					province = 12333

					color = { 49 52 124 }
				}
				b_pancevo = {
					province = 3878

					color = { 49 62 124 }
				}
				b_becse = {
					province = 3879

					color = { 49 62 124 }
				}
				b_bela_crkva = {
					province = 3884

					color = { 49 62 124 }
				}
				b_novi_knezevac = {
					province = 3864

					color = { 49 62 124 }
				}				
			}					
		}
		d_serbia = {
			color = { 49 52 124 }

			#capital = 3604 # Macva

			c_beograd = {
				color = { 49 52 124 }

				#capital = 505 # Beograd / Belgrade

				b_beograd = {
					province = 505

					color = { 49 52 124 }
				}
				b_zemun = {
					province = 3613

					color = { 49 52 124 }
				}	
				b_obrenovac = {
					province = 12332

					color = { 49 52 124 }
				}					
			}
			c_sumadija = {
				color = { 39 32 114 }

				#capital = 3598 # Kruevac

				b_krusevac = {
					province = 3598

					color = { 39 32 114 }
				}
				b_gornji_milanovac = {
					province = 3602

					color = { 39 32 84 }
				}
				b_kragujevac = {
					province = 3603

					color = { 39 32 114 }
				}									
			}			
			c_branicevo = {
				color = { 49 72 154 }

				#capital = 3664 # Branicevo
				b_smederevo = {
					province = 3601

					color = { 49 72 154 }
				}
				b_pozarevac = {
					province = 3664

					color = { 49 72 154 }
				}
				b_kucevo = {
					province = 3665

					color = { 49 72 154 }
				}
				b_homolje = {
					province = 3666

					color = { 49 72 154 }
				}
		
			}
			c_borski = {
				
				color = { 39 82 164 }
				
				b_kladovo = {
					province = 3667

					color = { 39 82 164 }
				}
				b_knjazevac = {
					province = 3669

					color = { 39 32 114 }
				}
				b_zajecar = {
					province = 3668

					color = { 39 82 164 }
				}	
			}				
		}	
	}	
	k_montenegro = {
		color = { 109 60 27 }

		capital = c_podgorica # Ribnica / Podgorica
		d_crna_gora = {
			color = { 129 94 13 }

			#capital = 469 # Ribnica / Podgorica

			c_podgorica = {
				color = { 129 94 13 }

				#capital = 469 # Ribnica / Podgorica

				b_ribnicapodgorica = {
					province = 469

					color = { 129 94 13 }
				}
				b_niksic = {
					province = 3571

					color = { 140 90 35 }
				}
				b_tuzi = {
					province = 3578

					color = { 129 94 13 }
				}
				b_kolasin = {
					province = 3577

					color = { 129 94 13 }
				}				
			}
			c_boka = {
				color = { 155 105 5 }

				#capital = 3575 # Bar / Antivari

				b_antivari = {
					province = 3575

					color = { 155 105 5 }
				}
				b_ulcinj = {
					province = 3576

					color = { 155 105 5 }
				}
				b_cattaro = { # Kotor
					province = 3574

					color = { 155 105 5 }
				}		

				b_risan = {
					province = 3573

					color = { 140 90 35 }
				}					
			}
			c_sandzak = { # Travunia
				color = { 140 90 35 }

				#capital = 3572 # Trebinje
				b_bijelo_polje = {
					province = 3592

					color = { 103 88 51 }
				}
				b_plav = {
					province = 503

					color = { 129 94 13 }
				}
				b_pljevlja = {
					province = 3584

					color = { 105 100 30 }
				}
				b_pluzine = {
					province = 3585

					color = { 105 100 30 }
				}
				b_mojkovac = {
					province = 3586

					color = { 105 100 30 }
				}				
			}
		}
	}

	k_bosnia = {
		color = { 10 102 57 }

		capital = c_sarajevo # Visoki

		ai_primary_priority = {
			if = {
				limit = {
					culture = culture:bosnian
				}
				add = @correct_culture_primary_score
			}
			if = {
				limit = {
					OR = {
						culture = culture:croatian
						culture = culture:serbian
					}
				}
				add = @better_than_the_alternatives_score
			}
		}
		d_bosnia = {	#AKA Upper Bosnia
			color = { 16 125 74 }

			capital = c_sarajevo # Visoki

			c_rama = {
				color = { 36 145 104  }

				#capital = 3527 # Visoki
				b_zenica = {
					province = 3524

					color = { 36 145 104  }
				}
				b_visoki = {
					province = 3527

					color = { 36 145 104  }
				}
				b_vares_bos = {
					province = 3525

					color = { 36 145 104  }
				}			
			}
			c_sarajevo = {
				color = { 16 125 74 }

				#capital = 3567 # Vhrbosna - Modern Sarajevo. Probably.

				b_vhrbosna = {
					province = 3567

					color = { 16 125 74 }
				}
				b_olovo= {
					province = 3564

					color = { 16 125 74 }
				}
				b_gorazde = {
					province = 3582

					color = { 16 125 74 }
				}				
				b_obalj = {
					province = 3559

					color = { 16 125 74 }
				}
				b_hotca = {
					province = 3583

					color = { 16 125 74 }
				}							
			}
			c_podrinje = {
				color = { 16 105 84 }

				#capital = 3583 # Hotca


				b_srebrenica = {
					province = 3566

					color = { 16 105 84 }
				}
				b_rogatica = {
					province = 3568

					color = { 16 105 84 }
				}				
				b_visegrad = {
					province = 3581

					color = { 16 105 84 }
				}
				b_bijeljina = {
					province = 3509

					color = { 16 105 84 }
				}
				b_zvornik = {
					province = 3511

					color = { 16 105 84 }
				}
				b_kuclat = {
					province = 3565

					color = { 16 105 84 }
				}					
			}
			c_soli = {
				color = { 16 75 74 }

				#capital = 3510 # Soli - Modern Tuzla

				cultural_names = {
					name_list_roman = cn_salines
					name_list_greek = cn_salines
					name_list_hungarian = cn_so
					name_list_turkish = cn_tuzla	#A bit out of period, but you never know!
				}
				b_soli = {
					province = 3510

					color = { 16 75 74 }
				}
				b_maglaj = {
					province = 3514

					color = { 16 75 74 }
				}
				b_srebrenik = {
					province = 3513

					color = { 16 75 74 }
				}				
			}
			c_posavska = {
				color = { 16 65 64 }

				b_tolisa = {
					province = 3512

					color = { 16 65 64 }
				}
			}				
		}

		d_krajina = {
			color = { 16 105 94 }

			capital = c_vrbas # Banja Luka

			c_vrbas = {
				color = { 16 105 94 }

				#capital = 3516 # Banja Luka (though the name is anachronistic, there were various settlements on or near the site)

				b_banjaluka = {
					province = 3516

					color = { 16 105 94 }
				}
				b_glaz = {
					province = 3517

					color = { 16 105 94 }
				}
				b_greben = {
					province = 3505

					color = { 16 105 94 }
				}
				b_kotorvaros = {
					province = 3506

					color = { 16 105 94 }
				}
				b_prijedor = {
					province = 3519

					color = { 16 105 94 }
				}	
				b_usora = {	#Actually Doboj: Usora is a river.
					province = 463

					color = { 16 105 94 }
				}					
			}
			c_bihac = {
				color = { 16 115 104 }

				#capital = 3522 # Bihac

				b_bihac = {
					province = 3522

					color = { 135 55 65 }
				}
				b_krupa = {
					province = 3521

					color = { 135 55 65 }
				}
				b_drvar = {
					province = 3523

					color = { 135 55 65 }
				}
				b_kljucnasani = {
					province = 3504

					color = { 175 90 115 }
				}	
				b_cazin = {
					province = 3538

					color = { 90 40 60 }
				}				
			}		
			c_pliva = {
				color = { 16 125 134 }

				#capital = 3507 # Jajce
				b_travnik = {
					province = 3526

					color = { 16 125 134 }
				}
				b_jajce = {
					province = 3507

					color = { 16 125 134 }
				}
				b_sipovo = {
					province = 3508

					color = { 16 125 134 }
				}
			}			
		}

		d_herzegovina = {	#Actually Zachlumia
			color = { 16 125 90 }

			capital = c_zelengora # Mostar

			c_trebinje = {
				color = { 16 125 90 }

				#capital = 466 # Blagaj

				b_trebinje = {
					province = 3572

					color = { 16 125 90 }
				}	
				b_nevesinje = {
					province = 3561

					color = { 16 125 90 }
				}
				b_ljubinje = {
					province = 3563

					color = { 16 125 90 }
				}		
				b_gacko = {
					province = 3560

					color = { 16 125 90 }
				}			
			}
			c_neretva = {
				color = { 16 75 70 }
				b_mostar = {
					province = 3558

					color = { 16 75 70 }
				}
				b_blagaj = {
					province = 466

					color = { 16 75 70 }
				}					
				b_drijeva = {
					province = 3562

					color = { 16 75 70 }
				}
				b_konjic = {
					province = 3557

					color = { 16 75 70 }
				}
				b_prozor = {
					province = 504

					color = { 16 75 70 }
				}				
			}
			c_livno = {
				color = { 16 60 65 }

				#capital = 3501 # Hlivno

				cultural_names = {
					name_list_roman = cn_emotha
					name_list_greek = cn_emotha
				}
				#roman = "Emotha"
				#greek = "Emotha"
			
				b_hlivno = {
					province = 3501

					color = { 16 60 65 }
				}
				b_glamoc = {
					province = 3500

					color = { 16 60 65 }
				}				
				b_duvno = {
					province = 3502

					color = { 16 60 65 }
				}
				b_imotski = {
					province = 3503

					color = { 16 60 65 }
				}
			}
		}
	}
}