Well, golfer, 9 nights is a pretty short trip, and Spain is a pretty big country. You don’t say what your particular interests are, other than golf maybe, that’s just a guess. Are you most interested in history, art, food and wine, nightlife, watching the scenery go by, or other things? That would help pinpoint which locations would give you the most enjoyment. As your draft itinerary reads now, you will spend a lot of time in trains, train stations, and getting to and from train stations, and very little time in these wonderful cities. My thoughts: (1) you could easily spend your whole trip in and around Barcelona, I spent 9 nights there in 2016, and still missed various sites that were on my list, so I’ll be back in Barcelona for a short visit this June; (2) if you are big into art museums, that is a principal reason to include Madrid, which is home to the Prado and two other excellent museums; in that case, you could include Barcelona and nearby, Madrid and maybe a short visit to nearby Toledo; but if not, you might leave Madrid for a future trip; (3) Sevilla (and Cordoba) are the outliers, in terms of distance and travel time; Sevilla certainly merits more than a day plus a fraction; you might leave Sevilla and Cordoba for a future trip, or else just divide your time between Barcelona and Sevilla, maybe with a stop in Cordoba on the return trip. By the way, since you are traveling a few days from now, there are various popular sites in Barcelona that really call for advance reservations/tickets, so you better get on that. Good luck and happy travels!