# 421 - Shirvan (1356)
# Changes: GOL/TIM/religion

owner = SRV
controller = GOL
culture = azerbaijani
religion = orthodox
capital = "Baku"
trade_goods = silk
hre = no
base_tax = 2 
base_production = 2
base_manpower = 2
is_city = yes
add_core = SRV
fort_15th = yes # Derbent Citadel and fortress

discovered_by = muslim
discovered_by = ottoman
discovered_by = eastern
discovered_by = nomad_group

extra_cost = 10

add_permanent_province_modifier = {
	name = kura_estuary_modifier
	duration = -1
}

1358.1.1   = { controller = SRV  } # Independent
1385.1.1   = { controller = GOL }
1387.1.1   = { owner = TIM controller = TIM add_core = TIM }
1400.1.1   = { religion = shiite }
1405.2.19  = { owner = SRV controller = SRV remove_core = TIM }
1459.1.1   = { unrest = 3 } # Attacked by Safavids
1460.1.1   = { unrest = 0 }
1499.1.1   = { revolt = { type = religious_rebels size = 0 name = "Qizilbash Tribesmen" leader = "Ismail Safavid" } controller = REB }
1501.7.1   = {	owner = PER
		controller = PER
		add_core = PER
		remove_core = SRV # was AKK
		revolt = { }
	     } # Ismail conquers Tabriz and defeats Alwand
1578.9.9   = { controller = TUR } # Ottoman conquest
1590.3.21  = { owner = TUR add_core = TUR } # Peace of Istanbul
1607.1.1   = { controller = PER } # Persian reconquest
1612.11.20 = { owner = PER remove_core = TUR } # Part of Persia
1725.1.1   = {	owner = GAZ
		controller = GAZ
		add_core = GAZ
		remove_core = PER
		revolt = { }
	     } # Shirvan Khanate given to the Shamkhals by Persia
1747.1.1   = { unrest = 3 } # Shah Nadir is killed, local khanates emerged
1748.1.1   = { unrest = 4 } # The empire began to decline
1779.1.1   = { unrest = 0 } # With the Qajar dynasty the situation stabilized
1813.10.24 = {
	owner = RUS
		controller = RUS
		add_core = RUS
	     } # The Treaty of Gulistan
