Simon, Probably the explanation for the unwanted distortions you are seeing is to do with the projections used for a display of the images. PTGui does its stitching on the surface of a sphere in order to encompass the view in all directions. The Detail Viewer shows an extracted rectilinear view, in which all straight line features are preserved. Your output of the entire 180 degree view is probably in equirectangular or cylindrical projection. See
Projections - PTGui Stitching Software for an explanation of the projections. To get a straight horizon and perfectly upright vertical features, your panorama needs to be levelled, see Part 8 of the video tutorials on the PTGui web site (under the "Learn" heading).
John