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


e_iberia = {
	color = { 233 200 20 }

	capital = c_madrid # Madrid

	cultural_names = {
		name_list_NEOW_portuguese = cn_ib_e_act_ria
		name_list_NEOW_catalan = cn_ib_e_grv_ria
	}

	can_create = {
		custom_description = {
			text = form_hispania_must_end_struggle_trigger

			NOT = { exists = struggle:iberian_struggle }
		}

		rule_title_creation_imperial_power_projection_title_creation_trigger = yes
	}

	ai_primary_priority = {
		if = {
			limit = {
				culture = { has_cultural_pillar = heritage_iberian }
			}
			add = @correct_culture_primary_score
		}
	}

#  k_sevillian_state = {
#       color = { 113 200 226 }
#
#		d_sevillian_state = {
#       	color = { 113 200 226 }
#
#
#		}
#    }

	k_andalusia = {
		color = { 31 138 40 }

		capital = c_sevilla # Granada

		cultural_names = {
			name_list_castilian = cn_andaluc_i_act_a
			name_list_NEOW_portuguese = cn_andaluzia
			name_list_NEOW_basque = cn_andaluzia
			name_list_aragonese = cn_andaluc_i_act_a
			name_list_occitan = cn_andalosia
			name_list_galician = cn_andaluc_i_act_a
			name_list_asturleonese = cn_andaluc_i_act_a
	 	}

		can_create = {
			trigger_if = {
				limit = {
					is_ai = yes
				}
				culture = { has_cultural_pillar = heritage_arabic }
			}
		}

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

		d_cordoba = { # Córdoba
			color = { 60 180 12 }

			capital = c_cordoba # Cordoba

			cultural_names = {
				name_list_NEOW_portuguese = cn_c_o_act_rdova
				name_list_NEOW_basque = cn_kordoba
				name_list_aragonese = cn_cordoba
				name_list_NEOW_catalan = cn_c_o_grv_rdova
				name_list_occitan = cn_c_o_grv_rdoa
			}

			c_cordoba = {
				color = { 60 180 12 }
				#can_be_named_after_dynasty = no

				cultural_names = {
					name_list_NEOW_portuguese = cn_c_o_act_rdova
					name_list_NEOW_basque = cn_kordoba
					name_list_aragonese = cn_cordoba
					name_list_NEOW_catalan = cn_c_o_grv_rdova
					name_list_occitan = cn_c_o_grv_rdoa
				}

				b_cordoba = {
					province = 1995
					color = { 60 180 12 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_c_o_act_rdova
						name_list_NEOW_basque = cn_kordoba
						name_list_aragonese = cn_cordoba
						name_list_NEOW_catalan = cn_c_o_grv_rdova
						name_list_occitan = cn_c_o_grv_rdoa
					}
				}
				b_pedroche = { # Pozoblanco
					province = 1988
					color = { 60 180 12 }
				}
				b_cabra = { # Montoro
					province = 1979
					color = { 50 150 20 }
				}
				b_antequera = { # Puente Genil
					province = 1984
					color = { 50 150 20 }
				}
				b_andujar = { # Lucena
					province = 1986
					color = { 65 155 40 }
				}
			}
			c_andujar = { # Jaén
				color = { 65 155 40 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_xa_e_act_m
					name_list_aragonese = cn_cha_e_act_n
					name_list_galician = cn_xa_e_act_n
					name_list_asturleonese = cn_xa_e_act_n
				}

				b_jaen = {
					province = 1977
					color = { 65 155 40 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_xa_e_act_m
						name_list_aragonese = cn_cha_e_act_n
						name_list_galician = cn_xa_e_act_n
						name_list_asturleonese = cn_xa_e_act_n
					}
				}
				b_ubeda = { # Linares
					province = 1985
					color = { 65 155 40 }
				}
				b_reolid = { # La Carolina
					province = 2004
					color = { 5 115 60 }
				}
				b_quesada = { # Cazorla
					province = 1976
					color = { 40 150 40 }
				}
			}
		}
		d_murcia = { # Murcia
			color = { 27 130 60 }
			capital = c_murcia # Murcia

			cultural_names = {
				name_list_NEOW_portuguese = cn_m_u_act_rcia
				name_list_NEOW_basque = cn_murtzia
				name_list_NEOW_catalan = cn_m_u_act_rcia
				name_list_occitan = cn_m_u_act_rcia
			}

			c_murcia = {
				color = { 27 130 60 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_m_u_act_rcia
					name_list_NEOW_basque = cn_murtzia
					name_list_NEOW_catalan = cn_m_u_act_rcia
					name_list_occitan = cn_m_u_act_rcia
				}

				b_murcia = {
					province = 1852
					color = { 27 130 60 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_m_u_act_rcia
						name_list_NEOW_basque = cn_murtzia
						name_list_NEOW_catalan = cn_m_u_act_rcia
						name_list_occitan = cn_m_u_act_rcia
					}
				}
				b_cartagena = {
					province = 1851
					color = { 27 130 60 }

					cultural_names = {
						name_list_aragonese = cn_cartachena
						name_list_galician = cn_cartaxena
					}
				}
				b_aguilas = { # Lorca
					province = 1850
					color = { 27 130 60 }
				}
				b_caravacadelacruz = { # Caravaca de la Cruz
					province = 1970
					color = { 27 130 60 }
				}
				b_cieza = {
					province = 1971
					color = { 27 130 60 }
				}
			}
			c_alcaraz = { # Hellín
				color = { 5 115 60 }

				b_segura = { # Hellín
					province = 1968
					color = { 5 115 60 }
				}
				b_huescar = { # Elche de la Sierra
					province = 1973
					color = { 5 115 60 }
				}
			}
		}
		d_granada = { # Granada
			color = { 40 150 40 }
			capital = c_granada # Granada

			c_granada = { # Granada
				color = { 40 150 40 }

				b_granada = { # Granada
					province = 1978
					color = { 40 150 40 }
				}
				b_guadiz = { # Guadix
					province = 1975
					color = { 40 150 40 }
				}
				b_motril = { # Motril
					province = 1848
					color = { 20 130 20 }
				}
				b_baza = { # Baza
					province = 1974
					color = { 65 110 40 }
				}
			}
			c_almeria = { # Almería
				color = { 65 110 40 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_almeria
					name_list_NEOW_catalan = cn_almeria
					name_list_occitan = cn_almeria
				}

				b_almeria = { # Almería
					province = 1849
					color = { 65 110 40 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_almeria
						name_list_NEOW_catalan = cn_almeria
						name_list_occitan = cn_almeria
					}
				}
				b_lorca = { # Huércal-Overa
					province = 1972
					color = { 65 110 40 }
				}
			}
			c_malaga = { # Málaga
				color = { 20 130 20 }

				cultural_names = {
					name_list_NEOW_catalan = cn_m_a_grv_laga
					name_list_occitan = cn_malaga
					name_list_aragonese = cn_malaga
				}

				b_malaga = { # Málaga
					province = 1846
					color = { 20 130 20 }

					cultural_names = {
						name_list_NEOW_catalan = cn_m_a_grv_laga
						name_list_occitan = cn_malaga
						name_list_aragonese = cn_malaga
					}
				}
				b_nerja = { # Vélez-Málaga
					province = 1847
					color = { 20 130 20 }
				}
				b_algeciras = { # Fuengirola
					province = 1845
					color = { 130 175 0 }
				}
			}
		}
		d_sevilla = { # Seville
			color = { 150 218 21 }
			capital = c_sevilla # Seville

			cultural_names = {
				name_list_castilian = cn_sevilla
				name_list_NEOW_portuguese = c_sevilha
				name_list_NEOW_basque = cn_sevilla
				name_list_NEOW_catalan = cn_sevilla
				name_list_occitan = c_sevilha
				name_list_aragonese = cn_sevilla
				name_list_asturleonese = cn_sevilla
				name_list_galician = cn_sevilla
			}

			c_sevilla = { # Seville
				color = { 150 218 21 }

				cultural_names = {
					name_list_castilian = cn_sevilla
					name_list_NEOW_portuguese = c_sevilha
					name_list_NEOW_basque = cn_sevilla
					name_list_NEOW_catalan = cn_sevilla
					name_list_occitan = c_sevilha
					name_list_aragonese = cn_sevilla
					name_list_asturleonese = cn_sevilla
					name_list_galician = cn_sevilla
				}

				b_sevilla = { # Seville
					province = 1981
					color = { 150 218 21 }

					cultural_names = {
						name_list_castilian = cn_sevilla
						name_list_NEOW_portuguese = c_sevilha
						name_list_NEOW_basque = cn_sevilla
						name_list_NEOW_catalan = cn_sevilla
						name_list_occitan = c_sevilha
						name_list_aragonese = cn_sevilla
						name_list_asturleonese = cn_sevilla
						name_list_galician = cn_sevilla
					}
				}	
				b_almonte = { # Camas
					province = 1841
					color = { 150 218 21 }
				}
				b_cantillana = { # Cantillana
					province = 1994
					color = { 60 180 12 }
				}
				b_triana = { # Lebrija
					province = 1993
					color = { 150 218 21 }
				}			
				b_carmona = { # Morón de la Frontera
					province = 1980
					color = { 150 218 21 }
				}
				b_moron = { # Écija
					province = 1983
					color = { 130 175 0 }
				}				
			}
			c_cadiz = { # Cádiz
				color = { 175 235 15 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_c_a_act_dis
					name_list_NEOW_catalan = cn_cadis
					name_list_occitan = cn_cadis
				}

				b_cadiz = { # Cádiz
					province = 1843
					color = { 175 235 15 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_c_a_act_dis
						name_list_NEOW_catalan = cn_cadis
						name_list_occitan = cn_cadis
					}
				}
				b_tarifa = {
					province = 1844
					color = { 175 235 15 }

					cultural_names = {
						name_list_NEOW_catalan = cn_algesires
						name_list_aragonese = cn_alchecira
						name_list_asturleonese = cn_alxecires
						name_list_galician = cn_alxeciras
					}
				}
				b_jerez = {
					province = 1842
					color = { 175 235 15 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_xerez_da_fronteira
						name_list_occitan = cn_xer_e_grv_s
						name_list_aragonese = cn_xerez_de_la_frontera
						name_list_asturleonese = cn_xerez_de_la_frontera
						name_list_galician = cn_xerez_da_fronteira
					}
				}
				b_arcos = { # Arcos de la Frontera
					province = 1982
					color = { 130 175 0 }
				}
			}
			c_niebla = { # Huelva
				color = { 180 200 0 }

				cultural_names = {
					name_list_aragonese = cn_uelba
				}
				
				b_huelva = { # Huelva
					province = 1840
					color = { 180 200 0 }

					cultural_names = {
						name_list_aragonese = cn_uelba
					}
				}
				b_ayamonte = { # Almonte
					province = 1839
					color = { 180 200 0 }
				}
				b_niebla = { # Valverde del Camino
					province = 1991
					color = { 180 200 0 }
				}
				b_zafra = { # Aracena
					province = 1992
					color = { 180 200 0 }
				}
			}
		}	
		d_gibraltar = {
			color = { 150 218 21 }

			cultural_names = {
				name_list_occitan = cn_gibartar
				name_list_NEOW_provencal = cn_gibarta
				name_list_aragonese = cn_chibraltar
				name_list_asturleonese = cn_xibraltar
				name_list_galician = cn_xibraltar
			}
		
			c_gibraltar = {
				color = { 72 170 16 }

				cultural_names = {
					name_list_occitan = cn_gibartar
					name_list_NEOW_provencal = cn_gibarta
					name_list_aragonese = cn_chibraltar
					name_list_asturleonese = cn_xibraltar
					name_list_galician = cn_xibraltar
				}

				b_gibraltar = {
					province = 9769
					color = { 72 170 16 }

					cultural_names = {
						name_list_occitan = cn_gibartar
						name_list_NEOW_provencal = cn_gibarta
						name_list_aragonese = cn_chibraltar
						name_list_asturleonese = cn_xibraltar
						name_list_galician = cn_xibraltar
					}
				}
			}	
		}		
	}
	k_castille_leon = { # Castileón
		color = { 243 209 23 }
		capital = c_madrid # Madrid

		cultural_names = {
			name_list_NEOW_portuguese = cn_castele_a_tld_o
			name_list_NEOW_basque = cn_gazteleon
			name_list_NEOW_catalan = cn_castelle_o_act_
			name_list_occitan = cn_casteleon
			name_list_aragonese = cn_castieley_o_act_n
			name_list_asturleonese = cn_castiellión
			name_list_galician = cn_castele_o_act_n
		}

		can_create = {
			trigger_if = {
				limit = {
					is_ai = yes
				}
				faith = { OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion } }
			}
		}

		ai_primary_priority = {
			if = {
				limit = {
					culture = culture:castilian
				}
				add = @correct_culture_primary_score
			}
			if = {
				limit = {
					culture = { has_cultural_pillar = heritage_iberian }
				}
				add = @better_than_the_alternatives_score
			}
		}

		d_castilla = { # Castile
			color = { 242 196 12 }

			capital = c_valladolid # Valladolid

			cultural_names = {
				name_list_castilian = cn_castilla
				name_list_NEOW_portuguese = cn_castela
				name_list_NEOW_basque = cn_gaztela
				name_list_NEOW_catalan = cn_castella
				name_list_occitan = cn_castelha
				name_list_aragonese = cn_castiella
				name_list_asturleonese = cn_castiella
				name_list_galician = cn_castela
			}

			c_burgos = {
				color = { 229 185 11 }

				b_burgos = {
					province = 1906
					color = { 242 196 12 }
				}
				b_atapuerca = { # Melgar de Fernamental
					province = 1907
					color = { 242 196 12 }
				}
				b_arandadeduero = { # Aranda de Duero
					province = 1898
					color = { 210 160 10 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_aranda_do_douro
					}
				}
				b_medinadepomar = { # Medina de Pomar
					province = 1812
					color = { 230 180 20 }
				}
				b_sanleonardodeyague = { # Quintanar de la Sierra
					province = 1909
					color = { 255 215 5 }
				}
			}
			c_amaya = { # Palencia
				color = { 255 206 12 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_pal_e_hat_ncia
					name_list_NEOW_basque = cn_palentzia
					name_list_NEOW_catalan = cn_pal_e_grv_ncia
					name_list_occitan = cn_pal_e_act_ncia
				}

				b_palencia = {
					province = 1905
					color = { 242 196 12 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_pal_e_hat_ncia
						name_list_NEOW_basque = cn_palentzia
						name_list_NEOW_catalan = cn_pal_e_grv_ncia
						name_list_occitan = cn_pal_e_act_ncia
					}
				}
				b_amaya = { # Guardo
					province = 1814
					color = { 245 205 60 }
				}
				b_mirandadeebro = { # Astudillo
					province = 1813
					color = { 245 205 60 }
				}
				b_sedano = { # Saldaña
					province = 1904
					color = { 245 205 60 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_saldanha
						name_list_NEOW_catalan = cn_saldanya
					}
				}
				b_lerma = { # Baltanás
					province = 1908
					color = { 242 196 12 }
				}
			}
			c_valladolid = {
				color = { 204 165 10 }

				cultural_names = {
					name_list_occitan = cn_valhadolid
					name_list_aragonese = cn_valladolit
				}

				b_valladolid = {
					province = 1897
					color = { 210 160 10 }

					cultural_names = {
						name_list_occitan = cn_valhadolid
						name_list_aragonese = cn_valladolit
					}
				}
				b_simancas = { # Arroyo de la Encomienda
					province = 1896
					color = { 210 160 10 }
				}
				b_valenciadecampos = { # Mayorga
					province = 1911
					color = { 223 128 31 }
				}
				b_toro = { # Íscar
					province = 1895
					color = { 245 125 25 }
				}
				b_avila = { # Medina del Campo
					province = 1912
					color = { 200 110 50 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_medina_do_campo
					}
				}
			}
			c_soria = {
				color = { 255 212 43 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_s_o_act_ria
					name_list_NEOW_catalan = cn_s_o_grv_ria
				}

				b_soria = {
					province = 1900
					color = { 255 215 5 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_s_o_act_ria
						name_list_NEOW_catalan = cn_s_o_grv_ria
					}
				}
				b_osma = {
					province = 1901
					color = { 255 215 5 }
				}
				b_medinaceli = { # Arcos de Jalón
					province = 1931
					color = { 195 125 10 }

					cultural_names = {
						name_list_aragonese = cn_arcos_de_xal_o_act_n
  					}
				}
				b_tudela = { # Ólvega
					province = 1902
					color = { 155 145 15 }
				}
				b_siguenza = { # Almazán
					province = 1930
					color = { 195 125 10 }
				}
			}
			c_cuellar = { # Segovia
				color = { 178 144 8 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_seg_o_act_via
					name_list_NEOW_catalan = cn_seg_o_grv_via
					name_list_occitan = cn_seg_o_grv_via
				}

				b_segovia = { # Segovia
					province = 1924
					color = { 255 245 10 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_seg_o_act_via
						name_list_NEOW_catalan = cn_seg_o_grv_via
						name_list_occitan = cn_seg_o_grv_via
					}
				}
				b_cuellar = { # Cuéllar
					province = 1925
					color = { 255 245 10 }
				}
				b_uceda = { # Nava de la Asunción
					province = 1926
					color = { 255 245 10 }
				}
			}
			c_olmedo = { # Ávila
				color = { 255 218 73 }

				cultural_names = {
					name_list_NEOW_catalan = cn__a_grv_vila
				}

				b_coracera = { # Ávila
					province = 1922
					color = { 255 225 65 }

					cultural_names = {
						name_list_NEOW_catalan = cn__a_grv_vila
					}
				}
				b_olmedo = { # Piedrahíta
					province = 1915
					color = { 255 225 65 }
				}
				b_laadrada = { # Arévalo
					province = 1921
					color = { 200 110 50 }
				}
			}
		}
		d_leon = {
			color = { 216 139 32 }
			capital = c_leon # Leon

			cultural_names = {
				name_list_NEOW_portuguese = cn_le_a_tld_o
				name_list_NEOW_basque = cn_leon
				name_list_NEOW_catalan = cn_lle_o_act_
				name_list_occitan = cn_leon
				name_list_aragonese = cn_ley_o_act_n
				name_list_asturleonese = cn_lli_o_act_n
			}

			c_leon = {
				color = { 204 131 30 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_le_a_tld_o
					name_list_NEOW_basque = cn_leon
					name_list_NEOW_catalan = cn_lle_o_act_
					name_list_occitan = cn_leon
					name_list_aragonese = cn_ley_o_act_n
					name_list_asturleonese = cn_lli_o_act_n
				}

				b_leon = {
					province = 1816
					color = { 223 128 31 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_le_a_tld_o
						name_list_NEOW_basque = cn_leon
						name_list_NEOW_catalan = cn_lle_o_act_
						name_list_occitan = cn_leon
						name_list_aragonese = cn_ley_o_act_n
						name_list_asturleonese = cn_lli_o_act_n
					}
				}
				b_riano = { # Puebla de Lillo
					province = 1817
					color = { 207 104 0 }

					cultural_names = {
						name_list_asturleonese = cn_pola_de_lillo
					}
				}
				b_guardo = { # Valencia de Don Juan
					province = 1825
					color = { 223 128 31 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_coian_c_ced_a
						name_list_NEOW_basque = cn_coyanza
						name_list_asturleonese = cn_coyanza
					}
				}
			}
			c_ponferrada = { # Ponferrada
				color = { 229 148 34 }
				
				b_carballido = { # Ponferrada
					province = 1793
					color = { 215 85 0 }
				}
				b_villablino = { # La Bañeza
					province = 1824
					color = { 223 128 31 }
				}
				b_sarria = { # Astorga
					province = 1822
					color = { 223 128 31 }

					cultural_names = {
						name_list_NEOW_basque = cn_estorga
						name_list_asturleonese = cn_estorga
					}
				}
			}
			c_zamora = { # Zamora
				color = { 178 115 26 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_samora
				}

				b_zamora = { # Zamora
					province = 1894
					color = { 245 125 25 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_samora
					}
				}
				b_villafafila = { # Fuentesaúco
					province = 1910
					color = { 245 125 25 }
				}
				b_benavente = { # Benavente
					province = 1826
					color = { 195 115 20 }

					cultural_names = {
						name_list_aragonese = cn_benavent
					}
				}
				b_alba = { # Alcañices
					province = 1827
					color = { 195 115 20 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_alcanizes
					}
				}
				b_ponferrada = { # Puebla de Sanabria
					province = 1820
					color = { 255 225 70 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_p_o_act_voa_de_seabra
						name_list_asturleonese = cn_la_viella
						name_list_galician = cn_pobra_de_seabra
					}
				}
			}
			c_salamanca = { # Salamanca
				color = { 255 164 38 }

				cultural_names = {
					name_list_NEOW_provencal = cn_salamanco
				}

				b_salamanca = { # Salamanca
					province = 1828
					color = { 195 105 25 }

					cultural_names = {
						name_list_NEOW_provencal = cn_salamanco
					}
				}
				b_bejar = { # Vitigudino
					province = 1829
					color = { 195 105 25 }

					cultural_names = {
						name_list_asturleonese = cn_viti
					}
				}
				b_ciduadrodrigo = { # Ciudad Rodrigo
					province = 1913
					color = { 195 105 25 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_cidade_rodrigo
						name_list_asturleonese = cn_ci_a_act_rodrigu # Extremaduran form
					}
				}
				b_medinadelcampo = { # Béjar
					province = 1914
					color = { 200 110 50 }

					cultural_names = {
						name_list_asturleonese = cn_bejal # Extremaduran form
					}
				}
			}
		}
		d_toledo = { # Toledo
			color = { 204 139 20 }
			capital = c_madrid # Madrid

			cultural_names = { # Toledo
				name_list_NEOW_provencal = cn_touledo
			}

			c_toledo = { # Toledo
				color = { 178 122 17 }

				cultural_names = {
					name_list_NEOW_provencal = cn_touledo
				}

				b_toledo = { # Toledo
					province = 1919
					color = { 212 151 12 }

					cultural_names = {
						name_list_NEOW_provencal = cn_touledo
					}
				}
				b_maqueda = { # Torrijos
					province = 1920
					color = { 212 151 12 }
				}
				b_talavera = { # Talavera de la Reina
					province = 1918
					color = { 212 151 12 }
				}
			}
			c_malagon = { # Sonseca
				color = { 229 157 22 }

				b_lapueblademontalban = { # Sonseca
					province = 1962
					color = { 195 165 10 }
				}
				b_cabaneros = { # Los Navalucillos
					province = 1961
					color = { 195 165 10 }
				}
				b_ocana = { # Mora
					province = 1958
					color = { 190 130 20 }
				}
				b_malagon = { # Malagón
					province = 1960
					color = { 195 165 10 }
				}
			}
			c_madrid = { # Madrid
				color = { 153 104 15 }

				cultural_names = {
					name_list_NEOW_basque = cn_madril
					name_list_aragonese = cn_madrit
				}

				b_madrid = { # Madrid
					province = 1923
					color = { 230 185 15 }

					cultural_names = {
						name_list_NEOW_basque = cn_madril
						name_list_aragonese = cn_madrit
					}
				}
				b_arganda = { # Alcalá de Henares
					province = 1928
					color = { 230 185 15 }
				}
			}
			c_molina = {
				color = { 255 174 25 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_guadalaxara
					name_list_aragonese = cn_guadalachara
					name_list_galician = cn_guadalaxara
				}

				b_gudalajara = {
					province = 1929
					color = { 230 185 15 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_guadalaxara
						name_list_aragonese = cn_guadalachara
						name_list_galician = cn_guadalaxara
					}
				}
				b_molina = { # Molina de Aragón
					province = 1935
					color = { 195 125 10 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_molina_de_arag_a_tld_o
						name_list_aragonese = cn_molina_d_arag_o_act_n
					}
				}
				b_ablanque = { # Sigüenza
					province = 1933
					color = { 195 125 10 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_siguen_c_ced_a
					}
				}
				b_villarejodesalvanes = { # Azuqueca de Henares
					province = 1927
					color = { 230 185 15 }
				}
				b_huete = { # Villanueva de Alcorón
					province = 1951
					color = { 210 165 40 }
				}
			}
			c_cuenca = {
				color = { 127 87 12 }

				cultural_names = {
					name_list_NEOW_catalan = cn_conca
					name_list_occitan = cn_c_o_grv_nca
				}

				b_cuenca = {
					province = 1947
					color = { 210 165 40 }

					cultural_names = {
						name_list_NEOW_catalan = cn_conca
						name_list_occitan = cn_c_o_grv_nca
					}
				}
				b_altotajo = { # Priego
					province = 1945
					color = { 210 165 40 }
				}
				b_zurita = { # Huete
					province = 1944
					color = { 210 165 40 }

					cultural_names = {
						name_list_aragonese = cn_huet
					}
				}
				b_sanesteban = { # Landete
					province = 1899
					color = { 255 215 5 }

					cultural_names = {
						name_list_aragonese = cn_landet
					}
				}
			}
		}
		d_la_mancha = { # La Mancha
			color = { 229 215 57 }
			capital = c_alarcon # Albacete

			cultural_names = {
				name_list_NEOW_portuguese = cn_mancha
				name_list_NEOW_basque = cn_mantxa
				name_list_NEOW_catalan = cn_la_manxa
				name_list_galician = cn_a_mancha
			}

			c_calatrava = { # Ciudad Real
				color = { 204 191 51 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_cidade_real
					name_list_galician = cn_cidade_real
				}

				b_calatrava = { # Ciudad Real
					province = 1963
					color = { 25 205 20 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_cidade_real
						name_list_galician = cn_cidade_real
					}
				}
				b_tomelloso = { # Tomelloso
					province = 1965
					color = { 25 205 20 }
				}
				b_mentesa = { # Villanueva de los Infantes
					province = 1966
					color = { 25 205 20 }
				}
				b_alarcos = { # Almodóvar del Campo
					province = 1987
					color = { 65 215 0 }
				}
			}
			c_alarcon = { # Albacete
				color = { 255 239 63 }

				cultural_names = {
					name_list_aragonese = cn_albacet
				}

				b_valeria = { # Albacete
					province = 1948
					color = { 0 100 35 }

					cultural_names = {
						name_list_aragonese = cn_albacet
					}
				}
				b_alarcon = { # Villarrobledo
					province = 1949
					color = { 0 100 35 }
				}
				b_alcaraz = { # Alcaraz
					province = 1967
					color = { 0 100 35 }
				}
				b_ventadelmoro = { # Almansa
					province = 1950
					color = { 0 100 35 }
				}
			}
			c_mora = { # Tarancón
				color = { 178 167 44 }

				b_ucles = { # Tarancón
					province = 1952
					color = { 190 130 20 }
				}
				b_mora = { # Ocaña
					province = 1953
					color = { 190 130 20 }
				}
				b_quintanar = { # Quintanar de la Orden
					province = 1959
					color = { 190 130 20 }
				}
				b_ademuz = { # Alpuente
					province = 1946
					color = { 110 160 115 }

					cultural_names = {
						name_list_NEOW_catalan = cn_alpont
						name_list_aragonese = cn_alpuent
					}
				}
				b_alcazar = { # San Clemente
					province = 1964
					color = { 0 100 35 }

					cultural_names = {
						name_list_aragonese = cn_sant_clemente
					}
				}
			}
        }
		d_badajoz = { # Extremadura
			color = { 191 191 9 }
			capital = c_merida # Mérida

			cultural_names = {
				name_list_NEOW_portuguese = cn_estremadura
				name_list_asturleonese = cn_estrema_u_act_ra # Extremaduran form
				name_list_galician = cn_estremadura
			}

			c_badajoz = { # Badajoz
				color = { 204 204 10 }

				cultural_names = {
					name_list_asturleonese = cn_badaj_o_act_s # Extremaduran form
					name_list_galician = cn_badaxoz
				}

				b_badajoz = { # Badajoz
					province = 1835
					color = { 118 223 36 }

					cultural_names = {
						name_list_asturleonese = cn_badaj_o_act_s # Extremaduran form
						name_list_galician = cn_badaxoz
					}
				}
				b_olivienza = { # Olivenza
					province = 1836
					color = { 118 223 36 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_oliven_c_ced_a
						name_list_NEOW_catalan = cn_oliven_c_ced_a
					}
				}
				b_ilerena = { # Zafra
					province = 1990
					color = { 118 223 36 }

					cultural_names = {
						name_list_asturleonese = cn__c_ced_afra # Extremaduran form
					}
				}
				b_hornachos = { # Azuaga
					province = 1997
					color = { 150 205 65 }
				}
				b_guadiato = { # Almendralejo
					province = 1999
					color = { 60 180 12 }

					cultural_names = {
						name_list_galician = cn_almendralexo
					}
				}
			}
			c_plasencia = { # Plasencia
				color = { 178 178 8 }

				cultural_names = {
					name_list_NEOW_catalan = cn_plas_e_grv_ncia
					name_list_asturleonese = cn_pras_e_act_ncia
				}

				b_hervas = {
					province = 1831
					color = { 125 240 15 }

					cultural_names = {
						name_list_NEOW_catalan = cn_plas_e_grv_ncia
						name_list_asturleonese = cn_pras_e_act_ncia # Extremaduran form
					}
				}
				b_coira = { # Coria
					province = 1830
					color = { 125 240 15 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_c_o_act_ria
						name_list_NEOW_catalan = cn_c_o_grv_ria
					}
				}
				b_almaraz = { # Navalmoral de la Mata
					province = 1917
					color = { 125 240 15 }
				}
				b_sierradegredos = { #Gredos
					province = 1916
					color = { 200 110 50 }

					cultural_names = {
						name_list_asturleonese = cn_erv_a_act_s # Extremaduran form
					}
				}
			}
			c_caceres = { # Cáceres
				color = { 229 229 11 }

				cultural_names = {
					name_list_NEOW_catalan = cn_c_a_grv_ceres
					name_list_asturleonese = cn_ca_c_ced_ris
				}

				b_caceres = { # Cáceres
					province = 1954
					color = { 130 250 65 }

					cultural_names = {
						name_list_NEOW_catalan = cn_c_a_grv_ceres
						name_list_asturleonese = cn_ca_c_ced_ris
					}
				}
				b_alcantara = { # San Vicente de Alcántara
					province = 1832
					color = { 130 250 65 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_s_a_tld_o_vicente_de_alc_a_hat_ntara
					}
				}
				b_trujillo = {
					province = 1955
					color = { 150 220 10 }

					cultural_names = {
						name_list_asturleonese = cn_truhillu # Extremaduran form
					}
				}
				b_castilblanco = { # Guadalupe
					province = 1956
					color = { 150 220 10 }

					cultural_names = {
						name_list_asturleonese = cn_guadalupi # Extremaduran form
					}
				}
			}
			c_merida = {
				color = { 153 153 7 }

				b_merida = {
					province = 1834
					color = { 150 220 10 }

					cultural_names = {
						name_list_NEOW_catalan = cn_m_e_grv_rida
						name_list_asturleonese = cn_m_e_act_ria # Extremaduran form
					}
				}
				b_zalaca = { # Alburquerque
					province = 1833
					color = { 130 250 65 }

					cultural_names = {
						name_list_asturleonese = cn_albuquerqui # Extremaduran form
					}
				}
			}
			c_medellin = { # Don Benito
				color = { 255 255 12 }

				b_donllorente = { # Don Benito
					province = 1998
					color = { 150 205 65 }
				}
				b_medellin = { # Calamonte
					province = 1996
					color = { 150 205 65 }
				}
				b_almader = { # Herrera del Duque
					province = 1989
					color = { 65 215 0 }

					cultural_names = {
						name_list_asturleonese = cn_herrera_del_duqui # Extremaduran form
					}
				}
				b_lajara = { # Castilblanco
					province = 1957
					color = { 195 165 10 }
				}
			}
		}
	}
	k_aragon = { # Catalonia
		color = { 166 98 22 }
		capital = c_barcelona # Barcelona

		cultural_names = {
			name_list_castilian = cn_catalu_n_tld_a
			name_list_NEOW_portuguese = cn_catalunha
			name_list_NEOW_basque = cn_katalunia
			name_list_NEOW_catalan = cn_catalunya
			name_list_occitan = cn_catalonha
			name_list_aragonese = cn_catalunya
			name_list_asturleonese = cn_catalu_n_tld_a
			name_list_galician = cn_catalu_n_tld_a
		}

		can_create = {
			trigger_if = {
				limit = {
					is_ai = yes
				}
				faith = { OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion } }
			}
		}

		ai_primary_priority = {
			if = {
				limit = {
					culture = { has_cultural_pillar = heritage_iberian }
				}
				add = @better_than_the_alternatives_score
			}
		}

		# Creation/usurpation trigger

		d_aragon = { # Aragón
			color = { 153 84 15 }
			capital = c_zaragoza # Zaragoza

			cultural_names = {
				name_list_NEOW_portuguese = cn_arag_a_tld_o
				name_list_NEOW_basque = cn_aragoi
				name_list_NEOW_catalan = cn_arag_o_act_
				name_list_occitan = cn_aragon
			}

			c_zaragoza = { # Zaragoza
				color = { 178 98 17 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_sarago_c_ced_a
					name_list_NEOW_catalan = cn_saragossa
				}

				b_zaragoza = { # Zaragoza
					province = 1887
					color = { 138 74 10 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_sarago_c_ced_a
						name_list_NEOW_catalan = cn_saragossa
					}
				}
				b_calaceite = { # Caspe
					province = 1893
					color = { 155 115 50 }

					cultural_names = {
						name_list_NEOW_catalan = cn_casp
						name_list_occitan = cn_casp
						name_list_aragonese = cn_casp
					}
				}
				b_sarinena = { # Pina de Ebro
					province = 1885
					color = { 138 74 10 }

					cultural_names = {
						name_list_aragonese = cn_pina_d_ebro
					}
				}
				b_belchite = { # Belchite
					province = 1891
					color = { 135 70 20 }

					cultural_names = {
						name_list_occitan = cn_belgit
						name_list_aragonese = cn_belchit
					}
				}
				b_ejea = { # Zuera
					province = 1888
					color = { 138 74 10 }
				}
			}
			c_teruel = { # Teruel
				color = { 127 70 12 }

				cultural_names = {
					name_list_NEOW_catalan = cn_terol
					name_list_occitan = cn_ter_o_grv_l
					name_list_aragonese = cn_terg_u_uml_el
				}

				b_teruel = { # Teruel
					province = 1937
					color = { 110 160 115 }

					cultural_names = {
						name_list_NEOW_catalan = cn_terol
						name_list_occitan = cn_ter_o_grv_l
						name_list_aragonese = cn_terg_u_uml_el
					}
				}
				b_sierradesanjust = { # Utrillas
					province = 1943
					color = { 135 70 20 }

					cultural_names = {
						name_list_occitan = cn_utriellas
						name_list_aragonese = cn_utriellas
					}
				}
				b_alcaniz = { # Alcañiz
					province = 1892
					color = { 155 115 50 }

					cultural_names = {
						name_list_NEOW_catalan = cn_alcany_i_act_s
						name_list_occitan = cn_alcanyiz
					}
				}
				b_albarracin = { # Híjar
					province = 1936
					color = { 135 70 20 }

					cultural_names = {
						name_list_NEOW_catalan = cn_h_i_act_xar
						name_list_occitan = cn__i_act_xar
						name_list_aragonese = cn__i_act_xar
					}
				}
				b_maestrazgo = { # Mora de Rubielos
					province = 1942
					color = { 110 160 115 }

					cultural_names = {
						name_list_NEOW_catalan = cn_m_o_act_ra_de_rubiols
					}
				}
			}
			c_alto_aragon = { # Huesca
				color = { 204 112 20 }

				cultural_names = {
					name_list_NEOW_catalan = cn_osca
					name_list_occitan = cn__o_grv_sca
					name_list_aragonese = cn_uesca
					name_list_asturleonese = cn_uesca
				}

				b_huesca = { # Huesca
					province = 1873
					color = { 120 84 38 }

					cultural_names = {
						name_list_NEOW_catalan = cn_osca
						name_list_occitan = cn__o_grv_sca
						name_list_aragonese = cn_uesca
						name_list_asturleonese = cn_uesca
					}
				}
				b_jaca = { # Jaca
					province = 1807
					color = { 110 65 20 }

					cultural_names = {
						name_list_NEOW_basque = cn_jaka
						name_list_aragonese = cn_chaca
						name_list_asturleonese = cn_chaca
					}
				}
				b_ainsa = { # Aínsa-Sobrarbe
					province = 1872
					color = { 133 82 30 }

					cultural_names = {
						name_list_NEOW_catalan = cn_l_a_i_uml_nsa
						name_list_aragonese = cn_l_a_i_act_nsa_sobrarbe
						name_list_asturleonese = cn_l_a_i_act_nsa_sobrarbe
					}
				}
				b_biescas = { # Sabiñánigo
					province = 8794
					color = { 133 82 30 }

					cultural_names = {
						name_list_NEOW_basque = cn_samianigo
						name_list_NEOW_catalan = cn_samianigo
						name_list_aragonese = cn_samianigo
						name_list_asturleonese = cn_samianigo
					}
				}
			}
			c_calatayud = { # Calatayud
				color = { 102 56 10 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_calataiude
					name_list_NEOW_catalan = cn_calataiud
					name_list_occitan = c_calatay_u_act_
					name_list_aragonese = c_calatay_u_act_
				}

				b_calatayud = { # Calatayud
					province = 1932
					color = { 125 85 5 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_calataiude
						name_list_NEOW_catalan = cn_calataiud
						name_list_occitan = c_calatay_u_act_
						name_list_aragonese = c_calatay_u_act_
					}
				}
				b_daroca = { # Daroca
					province = 1934
					color = { 125 85 5 }
				}
				b_alto_aragon = { # Tarazona
					province = 3221
					color = { 110 65 20 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_tara_c_ced_ona
						name_list_NEOW_catalan = cn_tarassona
						name_list_occitan = cn_tara_c_ced_ona
					}
				}
				b_uncastillo = {
					province = 8793
					color = { 110 65 20 }

					cultural_names = {
						name_list_NEOW_catalan = cn_eixea
						name_list_occitan = cn_exeya_d_os_cavallers
						name_list_aragonese = cn_exeya_d_os_cavallers
					}
				}
				b_zuera = { # Tauste
					province = 1886
					color = { 138 74 10 }

					cultural_names = {
						name_list_NEOW_basque = cn_deustia
						name_list_NEOW_catalan = cn_ta_u_uml_st
						name_list_aragonese = cn_taust
					}
				}
			}
			c_fraga = { # Monzón
				color = { 229 126 22 }

				cultural_names = {
					name_list_NEOW_catalan = cn_monts_o_act_
					name_list_occitan = cn_montson
				}

				b_monzon = { # Monzón
					province = 8795
					color = { 175 75 15 }

					cultural_names = {
						name_list_NEOW_catalan = cn_monts_o_act_
						name_list_occitan = cn_montson
					}
				}
				b_fraga = { # Fraga
					province = 1882
					color = { 175 75 15 }
				}
				b_barbastro = { # Sariñena
					province = 1874
					color = { 120 84 38 }

					cultural_names = {
						name_list_NEOW_catalan = cn_sarinyena
						name_list_aragonese = cn_sarinyena
					}
				}
				b_ribagorza = { # Graus
					province = 1871
					color = { 133 82 30 }
				}
			}
		}
		d_valencia = { # Valencia
			color = { 191 129 47 }
			capital = c_valencia # Valencia

			cultural_names = {
				name_list_NEOW_portuguese = cn_val_e_hat_ncia
				name_list_NEOW_basque = cn_valentzia
				name_list_NEOW_catalan = cn_val_e_grv_ncia
				name_list_occitan = cn_val_e_act_ncia
				name_list_asturleonese = cn_val_e_grv_ncia
			}

			c_valencia = { # Valencia
				color = { 178 120 44 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_val_e_hat_ncia
					name_list_NEOW_basque = cn_valentzia
					name_list_NEOW_catalan = cn_val_e_grv_ncia
					name_list_occitan = cn_val_e_act_ncia
					name_list_asturleonese = cn_val_e_grv_ncia
				}

				b_valencia = { # Valencia
					province = 1855
					color = { 54 186 96 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_val_e_hat_ncia
						name_list_NEOW_basque = cn_valentzia
						name_list_NEOW_catalan = cn_val_e_grv_ncia
						name_list_occitan = cn_val_e_act_ncia
						name_list_asturleonese = cn_val_e_grv_ncia
					}
				}
				b_almansa = { # Gandia
					province = 1969
					color = { 65 210 130 }

					cultural_names = {
						name_list_castilian = cn_gand_i_act_a
					}
				}
				b_murviedro = { # Ontinyent
					province = 1856
					color = { 54 186 96 }

					cultural_names = {
						name_list_castilian = cn_onteniente
						name_list_aragonese = cn_ontenyent
					}
				}
				b_montanejos = { # Utiel
					province = 1938
					color = { 54 186 96 }
				}
				b_requena = { # Requena
					province = 1939
					color = { 54 186 96 }
				}
			}
			c_castellon = { # Castellón
				color = { 204 137 51 }

				cultural_names = {
					name_list_NEOW_basque = cn_castell_o_act_
					name_list_NEOW_catalan = cn_castell_o_act_
					name_list_occitan = cn_castelhon
					name_list_asturleonese = cn_castell_o_act_
					name_list_galician = cn_castell_o_act_
				}

				b_castellon = { # Castellón de la Plana
					province = 1857
					color = { 85 170 125 }

					cultural_names = {
						name_list_NEOW_basque = cn_castell_o_act__de_la_plana
						name_list_NEOW_catalan = cn_castell_o_act__de_la_plana
						name_list_occitan = cn_castelhon_de_la_plana
						name_list_asturleonese = cn_castell_o_act__de_la_plana
						name_list_galician = cn_castell_o_act__de_la_plana
					}
				}
				b_segorbe = { # Onda
					province = 1941
					color = { 85 170 125 }
				}
				b_caspe = { # Benicarló
					province = 1883
					color = { 155 115 50 }
				}
			}
			c_alicante = { # Alicante
				color = { 153 103 38 }

				cultural_names = {
					name_list_NEOW_basque = cn_alacant
					name_list_NEOW_catalan = cn_alacant
					name_list_occitan = cn_alacant
					name_list_aragonese = cn_alicant
					name_list_asturleonese = cn_alacant
					name_list_galician = cn_alacant
				}
				
				b_alicante = { # Alicante
					province = 1853
					color = { 75 155 85 }

					cultural_names = {
						name_list_NEOW_basque = cn_alacant
						name_list_NEOW_catalan = cn_alacant
						name_list_occitan = cn_alacant
						name_list_aragonese = cn_alicant
						name_list_asturleonese = cn_alacant
						name_list_galician = cn_alacant
					}
				}
				b_albacete = { # Elda
					province = 1940
					color = { 75 155 85 }
				}
				b_denia = { # Benidorm
					province = 1854
					color = { 65 210 130 }
				}
			}
		}
		d_barcelona = { # Catalonia
			color = { 204 96 20 }
			capital = c_barcelona # Barcelona

			cultural_names = {
				name_list_castilian = cn_catalu_n_tld_a
				name_list_NEOW_portuguese = cn_catalunha
				name_list_NEOW_basque = cn_katalunia
				name_list_NEOW_catalan = cn_catalunya
				name_list_occitan = cn_catalonha
				name_list_aragonese = cn_catalunya
				name_list_asturleonese = cn_catalu_n_tld_a
				name_list_galician = cn_catalu_n_tld_a
			}

			c_lleida = { # Lleida
				color = { 178 84 17 }

				cultural_names = {
					name_list_castilian = cn_l_e_act_rida
					name_list_NEOW_portuguese = cn_l_e_act_rida
					name_list_occitan = cn_lh_e_grv_ida
					name_list_aragonese = cn_leida
				}

				b_lleida = { # Lleida
					province = 1881
					color = { 160 80 65 }

					cultural_names = {
						name_list_castilian = cn_l_e_act_rida
						name_list_NEOW_portuguese = cn_l_e_act_rida
						name_list_occitan = cn_lh_e_grv_ida
						name_list_aragonese = cn_leida
					}
				}
				b_agramunt = { # Balaguer
					province = 8796
					color = { 160 80 65 }
				}
				b_urgell = { # Solsona
					province = 1878
					color = { 170 97 92 }
				}
				b_prades = { # Mollerussa
					province = 1879
					color = { 160 80 65 }

					cultural_names = {
						name_list_castilian = cn_mollerusa
					}
				}
			}
			c_barcelona = { # Barcelona
				color = { 229 109 22 }

				cultural_names = {
					name_list_NEOW_basque = cn_bartzelona
				}

				b_barcelona = { # Barcelona
					province = 1862
					color = { 156 110 72 }

					cultural_names = {
						name_list_NEOW_basque = cn_bartzelona
					}
				}
				b_sitges = { # L'Hospitalet
					province = 1861
					color = { 156 110 72 }

					cultural_names = {
						name_list_castilian = cn_hospitalet
					}
				}
				b_manresa = { # Manresa
					province = 1877
					color = { 156 110 72 }
				}
				b_vic = { # Terrassa
					province = 1875
					color = { 156 110 72 }

					cultural_names = {
						name_list_castilian = cn_tarrasa
						name_list_galician = cn_terrasa
					}
				}
				b_berga = { # Vic
					province = 1876
					color = { 156 110 72 }
				}
			}
			c_perpignan = { # Roussillon
				color = { 153 72 15 }		

				cultural_names = {
					name_list_castilian = cn_rosell_o_act_n
					name_list_NEOW_portuguese = cn_rossilh_a_tld_o
					name_list_NEOW_basque = cn_rossell_o_act_
					name_list_NEOW_catalan = cn_rossell_o_act_
					name_list_occitan = cn_rosselhon
					name_list_aragonese = cn_rosell_o_act_n
					name_list_asturleonese = cn_rosell_o_act_n
					name_list_galician = cn_rosell_o_act_n
				}
				
				b_perpignan = { # Perpignan
					province = 1866
					color = { 176 95 88 }

					cultural_names = {
						name_list_castilian = cn_perpi_n_tld__a_act_n
						name_list_NEOW_portuguese = cn_perpinh_a_tld_o
						name_list_NEOW_basque = cn_perpiny_a_grv_
						name_list_NEOW_catalan = cn_perpiny_a_grv_
						name_list_occitan = cn_perpinhan
						name_list_aragonese = cn_perpiny_a_grv_
						name_list_galician = cn_perpi_n_tld__a_act_n
					}
				}
				b_prades_rossello = {
					province = 8798
					color = { 176 95 88 }

					cultural_names = {
						name_list_NEOW_basque = cn_prada
						name_list_NEOW_catalan = cn_prada
						name_list_occitan = cn_prada
						name_list_aragonese = cn_prada
					}
				}
				b_limoux = { # Céret
					province = 2447
					color = { 110 100 155 }

					cultural_names = {
						name_list_NEOW_basque = cn_ceret
						name_list_NEOW_catalan = cn_ceret
						name_list_occitan = cn_ceret
						name_list_aragonese = cn_ceret
					}
				}
			}			
			c_girona = { # Girona
				color = { 255 121 25 }

				cultural_names = {
					name_list_castilian = cn_gerona
					name_list_aragonese = cn_chirona
					name_list_galician = cn_xirona
				}

				b_girona = { # Girona
					province = 1864
					color = { 170 115 110 }

					cultural_names = {
						name_list_castilian = cn_gerona
						name_list_aragonese = cn_chirona
						name_list_galician = cn_xirona
					}
				}
				b_loredo = { # Blanes
					province = 1863
					color = { 170 115 110 }
				}
				b_olot = { # Olot
					province = 1867
					color = { 170 115 110 }
				}
				b_roses = { # Roses
					province = 1865
					color = { 176 95 88 }

					cultural_names = {
						name_list_castilian = cn_rosas
					}
				}
				b_llivia = { # Ripoll
					province = 8797
					color = { 145 105 90 }

					cultural_names = {
						name_list_occitan = cn_rip_o_grv_lh
					}
				}
			}
			c_tarragona = { # Tarragona
				color = { 127 60 12 }

				b_tarragona = { # Tarragona
					province = 1860
					color = { 155 90 55 }
				}
				b_tortosa = { # Tortosa
					province = 1859
					color = { 155 90 55 }
				}
				b_amposta = { # Amposta
					province = 1858
					color = { 85 170 125 }
				}
				b_maials = { # El Vendrell
					province = 1880
					color = { 155 90 55 }

					cultural_names = {
						name_list_castilian = cn_vendrell
					}
				}
			}
		}
		d_andorra = { # Andorra
			color = { 178 150 8 }
			capital = c_andorra # Andorra la Vella

			cultural_names = {
				name_list_occitan = cn_and_o_grv_rra
			}

			c_andorra = { # Andorra
				color = { 153 128 7 }

				cultural_names = {
					name_list_occitan = cn_and_o_grv_rra
				}

				b_andorra = { # Andorra la Vella
					province = 1869
					color = { 170 97 92 }

					cultural_names = {
						name_list_castilian = cn_andorra_la_vieja
						name_list_NEOW_portuguese = cn_andorra_dsh_a_dsh_velha
						name_list_NEOW_basque = cn_andorra_zaharra
						name_list_occitan = cn_and_o_grv_rra_la_vi_e_grv_lha
						name_list_aragonese = cn_andorra_la_viella
						name_list_asturleonese = cn_andorra_la_vieya
					}
				}
			}
			c_urgell = { # Urgell
				color = { 204 171 10 }

				cultural_names = {
					name_list_castilian = cn_urgel
					name_list_NEOW_portuguese = cn_urgel
					name_list_occitan = cn_urg_e_grv_l
					name_list_aragonese = cn_urchel
					name_list_asturleonese = cn_urgel
				}

				b_seu_d_urgell = { # La Seu d'Urgell
					province = 8801
					color = { 170 97 92 }

					cultural_names = {
						name_list_castilian = cn_seo_de_urgel
						name_list_occitan = cn_la_seu_d_urg_e_grv_l
						name_list_aragonese = cn_seu_d_pst_urchel
					}
				}
				b_puigcerda = { # Puigcerdà
					province = 1868
					color = { 145 105 90 }

					cultural_names = {
						name_list_castilian = cn_puigcerd_a_act_
						name_list_aragonese = cn_puicerd_a_act_n
					}
				}
				b_balaguer = { # Organyà
					province = 1884
					color = { 170 97 92 }

					cultural_names = {
						name_list_castilian = cn_orga_n_tld__a_act_
					}
				}
			}
			c_pallas = { # Pallars
				color = { 229 193 11 }

				cultural_names = {
					name_list_occitan = cn_palhars
				}

				b_pallars_jussa = { # Tremp
					province = 8799
					color = { 163 81 75 }
				}
				b_pallars_sobira = { # Sort
					province = 8800
					color = { 163 81 75 }
				}
				b_vielha = { # Aran
					province = 1870
					color = { 163 81 75 }

					cultural_names = {
						name_list_castilian = cn_ar_a_act_n
						name_list_aragonese = cn_ar_a_act_n
						name_list_asturleonese = cn_ar_a_act_n
						name_list_galician = cn_ar_a_act_n
					}
				}
			}			
		}
	}
	k_navarra = { # Vasconia
		color = { 140 28 20 }
		capital = c_navarra # Pamplona

		cultural_names = {
			name_list_NEOW_basque = cn_euskal_herria
			name_list_occitan = cn_bascoat
			name_list_catalan = cn_basc_o_grv_nia
		}

		can_create = {
			trigger_if = {
				limit = {
					is_ai = yes
				}
				faith = { OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion } }
			}
		}

		ai_primary_priority = {
			if = {
				limit = {
					culture = culture:basque
				}
				add = @correct_culture_primary_score
			}
			if = {
				limit = {
					culture = { has_cultural_pillar = heritage_iberian }
				}
				add = @better_than_the_alternatives_score
			}
		}
		d_navarra = { # Navarre
			color = { 89 17 17 }
			capital = c_navarra # Pamplona

			cultural_names = {
				name_list_castilian = cn_navarra
				name_list_NEOW_portuguese = cn_navarra
				name_list_NEOW_basque = cn_nafarroa
				name_list_NEOW_catalan = cn_navarra
				name_list_occitan = cn_navarra
				name_list_aragonese = cn_navarra
				name_list_asturleonese = cn_navarra
				name_list_galician = cn_navarra
			}

			c_navarra = { # Navarre
				color = { 102 20 20 }

				cultural_names = {
					name_list_castilian = cn_navarra
					name_list_NEOW_portuguese = cn_navarra
					name_list_NEOW_basque = cn_nafarroa_garaia
					name_list_NEOW_catalan = cn_navarra
					name_list_occitan = cn_navarra
					name_list_aragonese = cn_navarra
					name_list_asturleonese = cn_navarra
					name_list_galician = cn_navarra
				}

				b_pamplona = { # Pamplona
					province = 1806
					color = { 140 130 0 }

					cultural_names = {
						name_list_NEOW_basque = b_iru_n_tld_ea
						name_list_occitan = b_pampalona
					}
				}
				b_tafalla = { # Tafalla
					province = 1889
					color = { 140 130 0 }

					cultural_names = {
						name_list_occitan = cn_autafalha
					}
				}
				b_lizarra = { # Lizarra
					province = 1809
					color = { 140 130 0 }

					cultural_names = {
						name_list_castilian = cn_estella
						name_list_NEOW_portuguese = cn_estella
						name_list_NEOW_catalan = cn_estella
						name_list_occitan = cn_estela
						name_list_aragonese = cn_estella
					}
				}
				b_izurum = { # Altsasu
					province = 1804
					color = { 105 100 20 }

					cultural_names = {
						name_list_castilian = cn_alsasua
						name_list_NEOW_portuguese = cn_alsasua
					}
				}
			}
			c_najera = { # La Rioja
				color = { 76 15 15 }

				cultural_names = {
					name_list_occitan = cn_la_ri_o_grv_ja
					name_list_asturleonese = cn_la_rioxa
					name_list_galician = cn_a_rioxa
				}

				b_logrono = { # Logroño
					province = 1810
					color = { 130 125 25 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_logronho
						name_list_NEOW_catalan = cn_logronyo
						name_list_occitan = cn_logronh
						name_list_aragonese = cn_logronyo
					}
				}
				b_najera = { # Haro
					province = 1811
					color = { 130 125 25 }
				}
				b_arnedo = { # Calahorra
					province = 1903
					color = { 130 125 25 }

					cultural_names = {
						name_list_aragonese = cn_calagorra
					}
				}
				b_tarazona = { # Olite
					province = 1890
					color = { 155 145 15 }

					cultural_names = {
						name_list_NEOW_basque = cn_erriberri
						name_list_occitan = cn_olit
						name_list_aragonese = cn_olit
					}
				}
			}
			c_viscaya = { # Biscay
				color = { 127 25 25 }

				cultural_names = {
					name_list_castilian = cn_vizcaya
					name_list_NEOW_portuguese = cn_biscaia
					name_list_NEOW_basque = cn_bizkaia
					name_list_NEOW_catalan = cn_biscaia
					name_list_occitan = cn_biscaia
					name_list_aragonese = cn_bizcaya
					name_list_asturleonese = cn_bizkaia
					name_list_galician = cn_biscaia
				}

				b_bilibio = { # Bilbao
					province = 1803
					color = { 115 90 0 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_bilbau
						name_list_NEOW_basque = cn_bilbo
						name_list_aragonese = cn_bilbau
					}
				}
				b_alava = { # Vitoria-Gasteiz
					province = 1808
					color = { 115 90 0 }

					cultural_names = {
						name_list_castilian = cn_vitoria
						name_list_NEOW_basque = cn_gasteiz
						name_list_NEOW_catalan = cn_vit_o_grv_ria
						name_list_occitan = cn_vit_o_grv_ria
						name_list_aragonese = cn_vitoria
						name_list_galician = cn_vitoria
					}
				}
				b_irun = { # San Sebastián
					province = 1805
					color = { 105 100 20 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_s_a_tld_o_sebasti_a_tld_o
						name_list_NEOW_basque = cn_donostia
						name_list_NEOW_catalan = cn_sant_sebasti_a_grv_
						name_list_occitan = cn_sent_sebastian
						name_list_aragonese = cn_sant_sebasti_a_act_n
						name_list_asturleonese = cn_donostia
						name_list_galician = cn_donostia
					}
				}
			}
			c_bayonne= { # Iparralde
				color = { 144 58 30 }

				b_bayonne = { # Bayonne
					province = 2012
					color = { 105 45 245 }

					cultural_names = {
						name_list_castilian = cn_bayona
						name_list_NEOW_portuguese = cn_baiona
						name_list_NEOW_basque = cn_baiona
						name_list_NEOW_catalan = cn_baiona
						name_list_occitan = cn_baiona
						name_list_aragonese = cn_bayona
						name_list_galician = cn_baiona
					}
				}
			}				
		}
	}
	k_asturias = { # Asturias
		color = { 207 104 0 }
		capital = c_asturias_de_oviedo

		cultural_names = {
			name_list_NEOW_portuguese = cn_ast_u_act_rias
			name_list_NEOW_catalan = cn_ast_u_act_ries
			name_list_occitan = cn_ast_u_act_rias
			name_list_asturleonese = cn_asturies
		}

		can_create = {
			trigger_if = {
				limit = {
					is_ai = yes
				}
				faith = { OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion } }
			}
		}

		ai_primary_priority = {
			if = {
				limit = {
					culture = { has_cultural_pillar = heritage_iberian }
				}
				add = @better_than_the_alternatives_score
			}
		}
	}

	k_spanish_galicia = { # Galicia y Asturias
		color = { 45 186 229 }
		capital = c_coruna # A Coruña

		cultural_names = {
			name_list_NEOW_portuguese = cn_galiza_e_ast_u_act_rias
			name_list_NEOW_basque = cn_galizia_eta_asturias
			name_list_NEOW_catalan = cn_gal_i_act_cia_i_ast_u_act_ries
			name_list_occitan = cn_gal_i_act_cia_e_ast_u_act_rias
			name_list_asturleonese = cn_galicia_y_asturies
			name_list_galician = cn_galicia_e_asturias
		}

		can_create = {
			trigger_if = {
				limit = {
					is_ai = yes
				}
				faith = { OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion } }
			}
		}

		ai_primary_priority = {
			if = {
				limit = {
					culture = { has_cultural_pillar = heritage_iberian }
				}
				add = @better_than_the_alternatives_score
			}
		}

		d_galicia = { # Galicia
			color = { 60 181 242 }
			capital = c_coruna # La Coruna

			cultural_names = {
				name_list_NEOW_portuguese = cn_galiza
				name_list_NEOW_basque = cn_galizia
				name_list_NEOW_catalan = cn_gal_i_act_cia
				name_list_occitan = cn_gal_i_act_cia
			}

			c_coruna = { # A Coruña
				color = { 57 172 229 }

				b_corunna = { # A Coruña
					province = 1787
					color = { 235 204 74 }

					cultural_names = {
						name_list_castilian = cn_la_coru_n_tld_a
						name_list_NEOW_portuguese = cn_corunha
						name_list_NEOW_basque = cn_coru_n_tld_a
						name_list_NEOW_catalan = cn_la_corunya
						name_list_occitan = cn_la_coronha
					}
				}
				b_ferrol = { # Ferrol
					province =  1788
					color = { 235 204 74 }
				}
				b_melide = { # Melide
					province = 1790
					color = { 235 204 74 }

					cultural_names = {
						name_list_castilian = cn_mellid
					}
				}
				b_santiago = { # Santiago de Compostela
					province = 1785
					color = { 240 180 75 }

					cultural_names = {
						name_list_NEOW_basque = cn_compostelako_donejakue
						name_list_NEOW_catalan = cn_santiago_de_compostel_mdn_la
						name_list_occitan = cn_compost_e_grv_la
					}
				}
				b_betanzos = { # Santa Uxía de Ribeira
					province = 1786
					color = { 240 180 75 }

					cultural_names = {
						name_list_castilian = cn_santa_eugenia_de_ribeira
					}
				}
			}
			c_tui = { # Pontevedra
				color = { 63 191 255 }

				b_tui = { # Pontevedra
					province = 1782
					color = { 215 200 100 }
				}
				b_vigo = { # Vigo
					province = 1781
					color = { 215 200 100 }
				}
				b_padron = { # Lalín
					province = 1783
					color = { 240 180 75 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_lalim
					}
				}
			}
			c_astorga = { # Lugo
				color = { 51 153 204 }

				b_lugo = { # Lugo
					province = 1792
					color = { 255 225 70 }
				}
				b_astorga = { # A Fonsagrada
					province = 1821
					color = { 255 225 70 }

					cultural_names = {
						name_list_castilian = cn_fonsagrada
						name_list_NEOW_portuguese = cn_fonsagrada
					}
				}
				b_monfortedelemos = { # Monforte de Lemos
					province = 1819
					color = { 255 225 70 }
				}
				b_mondonedo = { # Burela
					province =  1789
					color = { 235 204 74 }
				}
				b_vilalba = { # Vilalba
					province = 1791
					color = { 240 180 75 }

					cultural_names = {
						name_list_castilian = cn_villalba
						name_list_NEOW_portuguese = cn_vilalva
					}
				}
			}
			c_monterrei = { # Ourense
				color = { 44 133 178 }

				b_ourense = { # Ourense
					province = 1800
					color = { 255 225 70 }

					cultural_names = {
						name_list_castilian = cn_orense
					}
				}
				b_monterrei = { # Verín
					province = 1818
					color = { 235 230 120 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_verim
					}
				}
				b_limia = { # O Barco de Valdeorras
					province = 1799
					color = { 235 230 120 }

					cultural_names = {
						name_list_castilian = cn_el_barco_de_valdeorras
						name_list_NEOW_portuguese = cn_barco_de_val_d_pst_eorras
					}
				}
				b_monte_faro = { # O Carballiño
					province = 1784
					color = { 215 200 100 }

					cultural_names = {
						name_list_castilian = cn_carballino
						name_list_NEOW_portuguese = cn_carvalhinho
					}
				}
			}
		}
		d_asturias = { # Asturias
			color = { 17 146 178 }
			capital = c_asturias_de_oviedo # Oviedo

			cultural_names = {
				name_list_NEOW_portuguese = cn_ast_u_act_rias
				name_list_NEOW_catalan = cn_ast_u_act_ries
				name_list_occitan = cn_ast_u_act_rias
				name_list_asturleonese = cn_asturies
			}

			c_asturias_de_oviedo = { # Oviedo
				color = { 20 167 204 }

				cultural_names = {
					name_list_occitan = cn_uvi_e_act_u
					name_list_asturleonese = cn_uvi_e_act_u
				}

				b_oviedo = { # Oviedo
					province = 1797
					color = { 207 104 0 }

					cultural_names = {
						name_list_occitan = cn_uvi_e_act_u
						name_list_asturleonese = cn_uvi_e_act_u
					}
				}
				b_villaviciosa = { # Llanes
					province = 1798
					color = { 207 104 0 }
				}
				b_gijon = { # Gijón
					province = 1796
					color = { 207 104 0 }

					cultural_names = {
						name_list_NEOW_catalan = cn_xix_o_act_n
						name_list_occitan = cn_xix_o_act_n
						name_list_aragonese = cn_xix_o_act_n
						name_list_asturleonese = cn_xix_o_act_n
						name_list_galician = cn_xix_o_act_n
					}
				}
			}
			c_pravia = { # Avilés
				color = { 15 125 153 }

				b_pravia = { # Avilés
					province = 1795
					color = { 215 85 0 }
				}
				b_luarca = { # Navia
					province = 1794
					color = { 215 85 0 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_n_a_act_via
					}
				}
				b_gangasdelnarcea = { # Cangas del Narcea
					province = 1823
					color = { 215 85 0 }
				}
			}
			c_asturias_de_santillana = { # Cantabria
				color = { 22 188 229 }

				cultural_names = {
					name_list_NEOW_portuguese = cn_cant_a_act_bria
					name_list_NEOW_basque = cn_kantabria
					name_list_NEOW_catalan = cn_cant_a_grv_bria
					name_list_occitan = cn_cant_a_grv_bria
				}

				b_santander = { # Santander
					province = 1802
					color = { 230 180 20 }

					cultural_names = {
						name_list_occitan = cn_santand_e_grv_r
						name_list_asturleonese = cn_sanander # Cantabrian form
					}
				}
				b_santiallana = { # Castro-Urdiales
					province = 1801
					color = { 230 180 20 }

					cultural_names = {
						name_list_asturleonese = cn_castru # Cantabrian form
					}
				}
				b_reinosa = { # Torrelavega 
					province = 1815
					color = { 230 180 20 }

					cultural_names = {
						name_list_asturleonese = cn_torlavega # Cantabrian form
					}
				}
			}
		}
	}
	k_portugal = {
		color = { 9 63 9 }
		capital = c_lisboa # Lisbon

		cultural_names = {
			name_list_asturleonese = cn_pertual # Mirandese form
		}

		can_create = {
			trigger_if = {
				limit = {
					is_ai = yes
				}
				faith = { OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion } }
			}
		}

		ai_primary_priority = {
			if = {
				limit = {
					culture = culture:portuguese
				}
				add = @correct_culture_primary_score
			}
			if = {
				limit = {
					culture = { has_cultural_pillar = heritage_iberian }
				}
				add = @better_than_the_alternatives_score
			}
		}

		d_porto = {
			color = { 15 63 6 }
			capital = c_porto # porto

			cultural_names = {
				name_list_castilian = cn_duero
				name_list_NEOW_basque = cn_duero
				name_list_NEOW_catalan = cn_duero
				name_list_aragonese = cn_duero
				name_list_asturleonese = cn_duero
			}

			c_porto = {
				color = { 12 51 5 }

				cultural_names = {
					name_list_castilian = cn_oporto
				}

				b_porto = {
					province = 1760
					color = { 182 88 5 }

					cultural_names = {
						name_list_castilian = cn_oporto
					}
				}
				b_braga = { # Braga
					province = 1761
					color = { 182 88 5 }
				}
				b_guimaraes = { # Viana do Castelo
					province = 1766
					color = { 182 88 5 }
				}
			}
			c_braganza = { # Trás-os-Montes
				color = { 19 76 7 }

				cultural_names = {
					name_list_castilian = cn_tras_los_montes
					name_list_asturleonese = cn_tr_a_act_s_ls_montes # Mirandese form
					name_list_galician = cn_tras_os_montes
				}

				b_braganza = { # Bragança
					province = 1763
					color = { 175 75 15 }

					cultural_names = {
						name_list_castilian = cn_braganza
						name_list_NEOW_basque = cn_bragantza
						name_list_asturleonese = cn_bergancia
					}
				}
				b_miranda_do_duoro = { # Miranda do Douro
					province = 1764
					color = { 175 75 15 }

					cultural_names = {
						name_list_castilian = cn_miranda_de_duero
						name_list_aragonese = cn_miranda_de_l_douro
						name_list_asturleonese = cn_miranda_de_l_douro
					}
				}
				b_villa_real = { # Vila Real
					province = 1765
					color = { 175 75 15 }
				}
				b_mogadouro = { # Mirandela
					province = 1767
					color = { 175 75 15 }
				}
				b_chavez = { # Chaves
					province = 1762
					color = { 182 88 5 }
				}
			}
		}
		d_estremadura = { # Estremadura
			color = { 22 114 38 }
			capital = c_lisboa # Lisbon

			c_lisboa = { # Lisbon
				color = { 25 127 42 }

				cultural_names = {
					name_list_castilian = cn_lisboa
					name_list_NEOW_portuguese = cn_lisboa
					name_list_NEOW_basque = cn_lisboa
					name_list_NEOW_catalan = cn_lisboa
					name_list_occitan = cn_lisbona
					name_list_aragonese = cn_lisbona
					name_list_asturleonese = cn_lhisboua # Mirandese form
					name_list_galician = cn_lisboa
				}
				
				b_lisboa = { # Lisbon
					province = 1754
					color = { 156 212 68 }

					cultural_names = {
						name_list_castilian = cn_lisboa
						name_list_NEOW_portuguese = cn_lisboa
						name_list_NEOW_basque = cn_lisboa
						name_list_NEOW_catalan = cn_lisboa
						name_list_occitan = cn_lisbona
						name_list_aragonese = cn_lisbona
						name_list_asturleonese = cn_lhisboua # Mirandese form
						name_list_galician = cn_lisboa
					}
				}				
				b_setubal = { # Setúbal
					province = 1753
					color = { 156 212 68 }

					cultural_names = {
						name_list_occitan = cn_set_o_act_bal
					}
				}
				b_santarem = { # Caldas da Rainha
					province = 1755
					color = { 156 212 68 }

					cultural_names = {
						name_list_castilian = cn_caldas_de_la_reina
						name_list_galician = cn_caldas_da_ra_i_act_nha
					}
				}
			}
			c_ribatejo = { # Ribatejo
				color = { 20 102 33 }

				cultural_names = {
					name_list_galician = cn_ribatexo
				}

				b_ourique = { # Santarém
					province = 1749
					color = { 45 145 10 }
				}
				b_abrantes = { # Tomar
					province = 1772
					color = { 160 105 70 }
				}
				b_lamego = { # Benavente
					province = 1768
					color = { 190 100 40 }
				}
			}
		}
		d_beja = { # Alentejo
			color = { 19 63 19 }
			capital = c_beja # Beja

			cultural_names = {
				name_list_galician = cn_alentexo
			}
			
			c_beja = { # Beja
				color = { 15 51 15 }

				b_evora = { # Beja
					province = 1777
					color = { 155 245 70 }
				}
				b_beja = { # Castro Verde
					province = 1751
					color = { 155 245 70 }
				}
			}
			c_moura = { # Moura
				color = { 35 71 35 }	
				
				b_moura = { # Moura
					province = 1837
					color = { 130 180 25 }
				}
				b_serpa = { # Serpa
					province = 1838
					color = { 130 180 25 }
				}
			}	
			c_alto_alentejo = { # Portalegre
				color = { 22 76 22 }

				b_nisa = { # Portalegre
					province = 1774
					color = { 165 230 105 }
				}
				b_crato = { # Elvas
					province = 1775
					color = { 165 230 105 }
				}
				b_avis = { # Ponte de Sor
					province = 1778
					color = { 170 230 130 }
				}
			}
			c_alcacer_do_sal = { # Alcácer do Sal
				color = { 30 102 30 }

				b_alcacerdosal = { # Alcácer do Sal
					province = 1752
					color = { 170 230 130 }
				}
				b_vianadoalento = { # Sines
					province = 1780
					color = { 170 230 130 }
				}
			}
			c_elvas = { # Évora
				color = { 35 127 35 }

				b_elvas = { # Évora
					province = 1776
					color = { 165 230 105 }
				}
				b_montemor = { # Vendas Novas
					province = 1779
					color = { 170 230 130 }
				}
			}
		}
		d_algarve = {
			color = { 77 165 33 }
			capital = c_faro # Faro

			cultural_names = {
				name_list_NEOW_basque = cn_algarbe
				name_list_occitan = cn_algarbe
				name_list_NEOW_provencal = cn_algarbe
			}

			c_faro = { # Sotavento
				color = { 71 153 30 }

				b_faro = { # Faro
					province = 1748
					color = { 73 156 8 }
				}
				b_mertola = { # Loulé
					province = 1750
					color = { 73 156 8 }
				}
			}
			c_silves = { # Barlavento
				color = { 83 178 35 }

				b_lagos = { # Portimão
					province = 1746
					color = { 45 145 10 }
				}
				b_silves = { # Silves
					province = 1747
					color = { 45 145 10 }
				}
			}
		}
		d_coimbra = { # Beira
			color = { 25 137 15 }
			capital = c_coimbra #Coimbra

			c_coimbra = { # Beira Litoral
				color = { 23 127 14 }

				b_coimbra = { # Coimbra
					province = 1757
					color = { 182 108 45 }

					cultural_names = {
						name_list_castilian = cn_co_i_act_mbra
						name_list_NEOW_catalan = cn_co_i_uml_mbra
						name_list_occitan = cn_co_i_uml_mbra
						name_list_asturleonese = cn_co_i_act_mbra
						name_list_galician = cn_co_i_act_mbra
					}
				}
				b_aveiro = { # Aveiro
					province = 1758
					color = { 190 100 40 }
				}
				b_leiria = { # Leiria
					province = 1756
					color = { 182 108 45 }

					cultural_names = {
						name_list_castilian = cn_leir_i_act_a
					}
				}
				b_obidos = { # Espinho
					province = 1759
					color = { 182 108 45 }
				}
			}
			c_viseu = { # Beira Alta
				color = { 28 153 16 }

				b_viseu = {  # Viseu
					province = 1769
					color = { 165 95 55 }

					cultural_names = {
						name_list_castilian = cn_viseo
					}
				}
				b_trancoso = { # Guarda
					province = 1770
					color = { 165 95 55 }
				}
				b_gralheira = { # Lamego
					province = 2003
					color = { 190 100 40 }
				}
			}
			c_castelo_branco = { # Beira Baixa
				color = { 18 102 11 }

				b_castelo_branco = { # Castelo Branco
					province = 1773
					color = { 160 105 70 }
				}
				b_idanha = { # Covilhã
					province = 1771
					color = { 160 105 70 }

					cultural_names = {
						name_list_castilian = cn_covillana
					}
				}
			}
		}
	}
	k_canarias = { # The Canaries
		color = { 242 231 125 }
		capital = c_canarias # Las Palmas
		definite_form = yes

		cultural_names = {
			name_list_castilian = cn_canarias
			name_list_NEOW_portuguese = cn_can_a_act_rias
			name_list_NEOW_basque = cn_kanariak
			name_list_NEOW_catalan = cn_can_a_grv_ries
			name_list_occitan = cn_can_a_grv_rias
			name_list_asturleonese = cn_canarias
			name_list_galician = cn_canarias
		}

		d_canarias = {
			color = { 42 127 201 }
			capital = c_canarias # Las Palmas
			definite_form = yes
	
			cultural_names = {
				name_list_castilian = cn_canarias
				name_list_NEOW_portuguese = cn_can_a_act_rias
				name_list_NEOW_basque = cn_kanariak
				name_list_NEOW_catalan = cn_can_a_grv_ries
				name_list_occitan = cn_can_a_grv_rias
				name_list_asturleonese = cn_canarias
				name_list_galician = cn_canarias
			}
			
			c_canarias = { # Las Palmas
				color = { 22 107 181 }

				b_grancanaria = { # Gran Canaria
					province = 849
					color = { 22 107 181 }

					cultural_names = {
						name_list_NEOW_portuguese = cn_gr_a_tld_can_a_act_ria
						name_list_NEOW_basque = cn_kanaria_handia
						name_list_NEOW_catalan = cn_gran_can_a_grv_ria
						name_list_occitan = cn_grand_can_a_grv_ria
					}
				}
				b_tenerife = { # Tenerife
					province = 8713
					color = { 22 107 181 }
				}
			}
			c_fuerteventura = { # Fuerteventura
				color = { 52 107 151 }
				
				b_fuerteventura = { # Fuerteventura
					province = 8714
					color = { 22 127 161 }
				}
				b_lanzarote = { # Lanzarote
					province = 8715
					color = { 22 127 161 }
				}
			}
			c_madeira = { # Madeira
				color = { 42 87 151 }

				cultural_names = {
					name_list_occitan = cn_mad_e_grv_ira
				}
				
				b_madeira = { # Funchal
					province = 8716
					color = { 42 107 161 }
				}
			}
		}
	}			
}