Some terminals stay open all night, some close entirely after the last departure, and a few are genuinely comfortable. Where to find the seating that works, what to pack for a cold and brightly lit night, how to secure a bag while unconscious, and when the airline owes you a hotel instead.
