I would recommend a plugin, similar to Altostorm Panorama Corrector.
Here is a quick edit to just fix horizon line...
Lens Correction filter - Photoshop
Corel AfterShot Pro, Details tab, Lens Correction, Manual