This post has been updated.
Here is a study of why voters voted as they did. Corruption allegations and leaked tapes had little effect. AKP voters chose AKP mainly because of the leader Erdogan and because of the services AKP provides.
Some races were close: Ankara AKP/CHP (this may end up in court); Kastamonu AKP/MHP; Yalova AKP/CHP — After a recount, CHP won by five votes. AKP took Antalya from CHP by 2%. Pro-Kurdish BDP made big gains in east, taking Bitlis and Mardin from AKP. In Agri, AKP won by 0.2%. Some recounts are ongoing.
Three female metropolitan mayors elected:
Fatma Sahin, Gaziantep, AKP
Gultan Kisanak, Diyarbakir, BDP
Ozlem Cercioglu, Aydin, CHP
What next? PM Erdogan: “Tomorrow there may be those who have to flee. But we will go into their caves. They will pay the price.”
PM Erdogan vows retaliation against critics, corruption accusers, releasers of recordings of secret conversations making his government look bad, and the Gulen Movement in general.
Twitter, Facebook and opposition news outlets (Taraf, Zaman etc) and other websites were blocked or hacked for days or longer, allowing the government almost full control of election propaganda and news.
But citizens took responsibility for their ballots, organizing poll monitors, using the Gezi communication networks to alert people to poll irregularities as they happened and send observers. There were 289 citizen reports of voting fraud and irregularities. Electricity was cut in central districts as votes were counted.
And people voted for AKP for a variety of reasons: desiring a continuation of economic stability was one of the top motives. Many voters didn’t trust CHP to deliver that.
Next are presidential elections in August and general elections next year. PM Erdogan is expected to either run for president, if he can somehow make the position a more powerful one, or change his party’s rules so he can stand for PM for a fourth term.