Fair Value Measurements and Derivatives (Tables)
   | 
6 Months Ended | 
Jun. 30, 2022  | 
| Derivative Instruments And Hedging Activities Disclosure [Abstract] | 
 
 | 
| Schedule of derivatives measured at fair value and disclosed by balance sheet location | 
 The derivatives measured at fair value and the respective location in the consolidated balance sheets include the following (in thousands): 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
  | 
  | 
  | 
  | 
Assets  | 
  | 
Liabilities  | 
 
  | 
  | 
  | 
  | 
June 30,   | 
  | 
December 31,   | 
  | 
June 30,   | 
  | 
December 31,   | 
 
  | 
      | 
Balance Sheet Location  | 
      | 
2022  | 
      | 
2021  | 
      | 
2022  | 
      | 
2021  | 
 
Derivative Contracts Designated as Hedging Instruments  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
Fuel contracts  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
  | 
  | 
Prepaid expenses and other assets  | 
  | 
$  | 
 97,263  | 
  | 
$  | 
 29,349  | 
  | 
$  | 
 —  | 
  | 
$  | 
 —  | 
 
  | 
  | 
Other long-term assets  | 
  | 
  | 
 33,093  | 
  | 
  | 
 19,554  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
 
Foreign currency contracts  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
  | 
  | 
Prepaid expenses and other assets  | 
  | 
   | 
 —  | 
  | 
   | 
 4,898  | 
  | 
   | 
 —  | 
  | 
   | 
 —  | 
 
  | 
  | 
Accrued expenses and other liabilities  | 
  | 
   | 
 —  | 
  | 
   | 
 —  | 
  | 
   | 
 322,523  | 
  | 
   | 
 98,592  | 
 
  | 
  | 
Other long-term liabilities  | 
  | 
   | 
 —  | 
  | 
   | 
 —  | 
  | 
   | 
 41,177  | 
  | 
   | 
 73,496  | 
 
Interest rate contracts  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
  | 
  | 
Accrued expenses and other liabilities  | 
  | 
   | 
 —  | 
  | 
   | 
 —  | 
  | 
   | 
 —  | 
  | 
   | 
 469  | 
 
Total derivatives designated as hedging instruments  | 
  | 
$  | 
 130,356  | 
  | 
$  | 
 53,801  | 
  | 
$  | 
 363,700  | 
  | 
$  | 
 172,557  | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
Derivative Contracts Not Designated as Hedging Instruments  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
Fuel contracts  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
  | 
  | 
Prepaid expenses and other assets  | 
  | 
$  | 
 22,924  | 
  | 
$  | 
 10,836  | 
  | 
$  | 
 —  | 
  | 
$  | 
 —  | 
 
  | 
  | 
Other long-term assets  | 
  | 
  | 
 6,790  | 
  | 
  | 
 3,476  | 
  | 
  | 
 44  | 
  | 
  | 
 —  | 
 
Foreign currency contracts  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
  | 
  | 
Accrued expenses and other liabilities  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 11,277  | 
  | 
  | 
 —  | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
Total derivatives not designated as hedging instruments  | 
  | 
$  | 
 29,714  | 
  | 
$  | 
 14,312  | 
  | 
$  | 
 11,321  | 
  | 
$  | 
 —  | 
 
Total derivatives  | 
  | 
  | 
  | 
$  | 
 160,070  | 
  | 
$  | 
 68,113  | 
  | 
$  | 
 375,021  | 
  | 
$  | 
 172,557  | 
 
 
 | 
| Schedule of gross and net amounts recognized within assets and liabilities | 
 The following table discloses the gross and net amounts recognized within assets and liabilities (in thousands):  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
  | 
  | 
  | 
  | 
  | 
Gross   | 
  | 
  | 
  | 
  | 
Gross  | 
  | 
  | 
  | 
 
  | 
  | 
Gross   | 
  | 
Amounts   | 
  | 
Total Net  | 
  | 
Amounts   | 
  | 
  | 
  | 
 
June 30, 2022  | 
      | 
Amounts  | 
      | 
Offset  | 
      | 
Amounts  | 
      | 
Not Offset  | 
      | 
Net Amounts  | 
 
Assets  | 
  | 
$  | 
 160,070  | 
  | 
$  | 
 (44)  | 
  | 
$  | 
 160,026  | 
  | 
$  | 
 —  | 
  | 
$  | 
 160,026  | 
 
Liabilities  | 
  | 
  | 
 374,977  | 
  | 
  | 
 —  | 
  | 
  | 
 374,977  | 
  | 
  | 
 (374,977)  | 
  | 
  | 
 —  | 
 
 
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
  | 
  | 
  | 
  | 
  | 
Gross   | 
  | 
  | 
  | 
  | 
Gross   | 
  | 
  | 
  | 
 
  | 
  | 
Gross   | 
  | 
Amounts   | 
  | 
Total Net   | 
  | 
Amounts   | 
  | 
  | 
  | 
 
December 31, 2021  | 
      | 
Amounts  | 
      | 
Offset  | 
      | 
Amounts  | 
      | 
Not Offset  | 
      | 
Net Amounts  | 
 
Assets  | 
  | 
$  | 
 68,113  | 
  | 
$  | 
 —  | 
  | 
$  | 
 68,113  | 
  | 
$  | 
 (68,113)  | 
  | 
$  | 
 —  | 
 
Liabilities  | 
  | 
  | 
 172,557  | 
  | 
  | 
 —  | 
  | 
  | 
 172,557  | 
  | 
  | 
 (172,557)  | 
  | 
  | 
 —  | 
 
 
 | 
| Schedule of cash flow hedge accounting on accumulated other comprehensive income (loss) | 
 The effects of cash flow hedge accounting on accumulated other comprehensive income (loss) were as follows (in thousands):  
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
Location of Gain  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
(Loss) Reclassified  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
from Accumulated  | 
  | 
Amount of Gain (Loss) Reclassified  | 
 
  | 
  | 
Amount of Gain (Loss)  | 
  | 
Other Comprehensive  | 
  | 
from Accumulated Other  | 
 
  | 
  | 
Recognized in Other  | 
  | 
Income (Loss) into  | 
  | 
Comprehensive Income  | 
 
Derivatives  | 
      | 
Comprehensive Loss  | 
      | 
Income (Expense)  | 
      | 
(Loss) into Income (Expense)  | 
 
  | 
  | 
Three Months  | 
  | 
Three Months  | 
  | 
  | 
  | 
Three Months  | 
  | 
Three Months  | 
 
  | 
  | 
Ended  | 
  | 
Ended  | 
  | 
  | 
  | 
Ended  | 
  | 
Ended  | 
 
  | 
      | 
June 30, 2022  | 
      | 
June 30, 2021  | 
      | 
  | 
      | 
June 30, 2022  | 
      | 
June 30, 2021  | 
 
Fuel contracts  | 
  | 
$  | 
 52,249  | 
  | 
$  | 
 25,456  | 
   | 
Fuel  | 
  | 
$  | 
 37,342  | 
  | 
$  | 
 (8,652)  | 
 
Fuel contracts  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
Other income (expense), net  | 
  | 
  | 
 —  | 
  | 
  | 
 (1,538)  | 
 
Foreign currency contracts  | 
  | 
   | 
 (142,752)  | 
  | 
   | 
 19,281  | 
   | 
Depreciation and amortization  | 
  | 
   | 
 (1,267)  | 
  | 
   | 
 (1,266)  | 
 
Interest rate contracts  | 
  | 
   | 
 —  | 
  | 
   | 
 (63)  | 
   | 
Interest expense, net  | 
  | 
   | 
 —  | 
  | 
   | 
 (2,086)  | 
 
Total gain (loss) recognized in other comprehensive loss  | 
  | 
$  | 
 (90,503)  | 
  | 
$  | 
 44,674  | 
   | 
    | 
  | 
$  | 
 36,075  | 
  | 
$  | 
 (13,542)  | 
 
 
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
Location of Gain  | 
      | 
  | 
  | 
      | 
  | 
  | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
(Loss) Reclassified  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
from Accumulated  | 
  | 
Amount of Gain (Loss) Reclassified  | 
 
  | 
  | 
Amount of Gain (Loss)  | 
  | 
Other Comprehensive  | 
  | 
from Accumulated Other  | 
 
  | 
  | 
Recognized in Other  | 
  | 
Income (Loss) into  | 
  | 
Comprehensive Income  | 
 
Derivatives  | 
      | 
Comprehensive Loss  | 
      | 
Income (Expense)  | 
      | 
(Loss) into Income (Expense)  | 
 
  | 
  | 
Six Months  | 
  | 
Six Months  | 
  | 
  | 
  | 
Six Months  | 
  | 
Six Months  | 
 
  | 
  | 
Ended  | 
  | 
Ended  | 
  | 
  | 
  | 
Ended  | 
  | 
Ended  | 
 
  | 
      | 
June 30, 2022  | 
      | 
June 30, 2021  | 
  | 
  | 
      | 
June 30, 2022  | 
      | 
June 30, 2021  | 
 
Fuel contracts  | 
   | 
$  | 
 144,732  | 
  | 
$  | 
 49,506  | 
  | 
Fuel  | 
   | 
$  | 
 46,151  | 
  | 
$  | 
 (16,823)  | 
 
Fuel contracts  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
Other income (expense), net  | 
  | 
  | 
 —  | 
  | 
  | 
 (11,728)  | 
 
Foreign currency contracts  | 
   | 
   | 
 (195,931)  | 
  | 
   | 
 (78,160)  | 
  | 
Depreciation and amortization  | 
   | 
   | 
 (2,534)  | 
  | 
   | 
 (2,533)  | 
 
Interest rate contracts  | 
   | 
   | 
 —  | 
  | 
   | 
 291  | 
  | 
Interest expense, net  | 
   | 
   | 
 (40)  | 
  | 
   | 
 (4,296)  | 
 
Total gain (loss) recognized in other comprehensive loss  | 
   | 
$  | 
 (51,199)  | 
  | 
$  | 
 (28,363)  | 
  | 
    | 
   | 
$  | 
 43,577  | 
  | 
$  | 
 (35,380)  | 
 
 
 | 
| Schedule of cash flow hedge accounting on the consolidated financial statements of operations | 
  
 
 
 
 
 
 
The effects of cash flow hedge accounting on the consolidated statements of operations include the following (in thousands):  
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
  | 
  | 
Three Months Ended June 30, 2022  | 
  | 
Three Months Ended June 30, 2021  | 
 
  | 
  | 
  | 
  | 
  | 
Depreciation  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
Depreciation  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
  | 
  | 
  | 
  | 
  | 
and    | 
  | 
Interest   | 
  | 
  | 
  | 
  | 
and  | 
  | 
Interest   | 
  | 
Other Income  | 
 
  | 
      | 
Fuel  | 
      | 
Amortization  | 
      | 
 Expense, net  | 
      | 
Fuel  | 
      | 
Amortization  | 
      | 
Expense, net  | 
      | 
 (Expense), net  | 
 
Total amounts of income and expense line items presented in the consolidated statements of operations in which the effects of cash flow hedges are recorded  | 
  | 
$  | 
 181,189  | 
  | 
$  | 
 181,587  | 
  | 
$  | 
 144,377  | 
  | 
$  | 
 54,090  | 
  | 
$  | 
 174,262  | 
  | 
$  | 
 137,259  | 
  | 
$  | 
 25,501  | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
Amount of gain (loss) reclassified from accumulated other comprehensive income (loss) into income (expense)  | 
  | 
   | 
    | 
  | 
   | 
    | 
  | 
   | 
    | 
  | 
   | 
    | 
  | 
   | 
    | 
  | 
   | 
    | 
  | 
   | 
    | 
 
Fuel contracts  | 
  | 
  | 
 37,342  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 (8,652)  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
 
Foreign currency contracts  | 
  | 
  | 
 —  | 
  | 
  | 
 (1,267)  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 (1,266)  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
 
Interest rate contracts  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 (2,086)  | 
  | 
  | 
 —  | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
Amount of gain (loss) reclassified from accumulated other comprehensive income (loss) into income (expense) as a result that a forecasted transaction is no longer probable of occurring  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
Fuel contracts  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 (1,538)  | 
 
 
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
  | 
  | 
Six Months Ended June 30, 2022  | 
  | 
Six Months Ended June 30, 2021  | 
 
  | 
  | 
  | 
  | 
  | 
Depreciation   | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
Depreciation   | 
  | 
  | 
  | 
  | 
  | 
  | 
 
  | 
  | 
  | 
  | 
  | 
and   | 
  | 
Interest   | 
  | 
  | 
  | 
  | 
and   | 
  | 
Interest   | 
  | 
Other Income  | 
 
  | 
      | 
Fuel  | 
      | 
Amortization  | 
      | 
Expense, net  | 
      | 
Fuel  | 
      | 
Amortization  | 
      | 
Expense, net  | 
      | 
 (Expense), net  | 
 
Total amounts of income and expense line items presented in the consolidated statements of operations in which the effects of cash flow hedges are recorded  | 
  | 
$  | 
 316,698  | 
  | 
$  | 
 360,663  | 
  | 
$  | 
 472,062  | 
  | 
$  | 
 96,693  | 
  | 
$  | 
 344,578  | 
  | 
$  | 
 961,700  | 
  | 
$  | 
 52,744  | 
 
  | 
  | 
  | 
    | 
  | 
  | 
    | 
  | 
  | 
    | 
  | 
  | 
    | 
  | 
  | 
    | 
  | 
  | 
    | 
  | 
  | 
  | 
 
Amount of gain (loss) reclassified from accumulated other comprehensive income (loss) into income (expense)  | 
   | 
  | 
    | 
   | 
  | 
    | 
   | 
  | 
    | 
   | 
  | 
    | 
   | 
  | 
    | 
   | 
  | 
    | 
  | 
   | 
    | 
 
Fuel contracts  | 
   | 
  | 
 46,151  | 
   | 
  | 
 —  | 
   | 
  | 
 —  | 
   | 
  | 
 (16,823)  | 
   | 
  | 
 —  | 
   | 
  | 
 —  | 
  | 
  | 
 —  | 
 
Foreign currency contracts  | 
   | 
  | 
 —  | 
  | 
  | 
 (2,534)  | 
   | 
  | 
 —  | 
   | 
  | 
 —  | 
   | 
  | 
 (2,533)  | 
   | 
  | 
 —  | 
  | 
  | 
 —  | 
 
Interest rate contracts  | 
   | 
  | 
 —  | 
   | 
  | 
 —  | 
   | 
  | 
 (40)  | 
   | 
  | 
 —  | 
   | 
  | 
 —  | 
   | 
  | 
 (4,296)  | 
  | 
  | 
 —  | 
 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
Amount of gain (loss) reclassified from accumulated other comprehensive income (loss) into income (expense) as a result that a forecasted transaction is no longer probable of occurring  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
Fuel contracts  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 —  | 
  | 
  | 
 (11,728)  | 
 
 
 | 
| Schedule of effects of derivatives not designated as hedging instruments | 
 The effects of derivatives not designated as hedging instruments on the consolidated statements of operations include the following (in thousands):  
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
  | 
  | 
  | 
Amount of Gain (Loss) Recognized in Income  | 
 
  | 
  | 
  | 
Three Months Ended   | 
  | 
Six Months Ended   | 
 
  | 
  | 
  | 
June 30,   | 
  | 
June 30,   | 
 
  | 
Location of Gain (Loss)  | 
      | 
2022  | 
      | 
2021  | 
      | 
2022  | 
      | 
2021  | 
 
Derivatives not designated as hedging instruments  | 
  | 
  | 
   | 
    | 
  | 
   | 
    | 
  | 
   | 
    | 
  | 
   | 
    | 
 
Fuel contracts  | 
Other income (expense), net  | 
  | 
$  | 
 4,335  | 
  | 
$  | 
 17,935  | 
  | 
$  | 
 34,078  | 
  | 
$  | 
 50,107  | 
 
Foreign currency contracts  | 
Other income (expense), net  | 
  | 
  | 
 (11,856)  | 
  | 
  | 
 (57)  | 
  | 
  | 
 (11,856)  | 
  | 
  | 
 (57)  | 
 
 
 |