Personally I'd spend 3 nights in Granada and 4 nights in Sevilla. I'd visit Cordoba as a daytrip either while traveling between Granada & Sevilla or from Sevilla. This will give you enough time to adequately see Granada and Sevilla. It would basically be 2 full days Granada, 3 full days Sevilla and a day in Cordoba.