AT 987 then SV 374 at Casablanca
Tenerife South → Casablanca → Medina
Timetable, Casablanca time
21:00AT 987 from Tenerife South at the gate
19:30SV 374 to Medina leaves the gate
22 h 30 apart on the timetable, overnight
SV 374 leaves 22 h 30 after AT 987 arrives on the timetable: more than half a day, so not a connection we count.