// Changes & Cancellations page data
const CHANGES_CARDS = [
  {
    id: "airline-change-fees",
    num: "01",
    topic: "Airline Rules",
    badge: "Most searched",
    title: "Airline Change Fees",
    titleEm: "by ticket class.",
    desc: "Main cabin vs. basic economy: one lets you rebook for free, the other doesn't let you rebook at all. Here is exactly what each ticket class does and does not allow.",
    count: "14 guides",
    read: "Change · Rebook · Upgrade",
    img: "https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1600&q=80",
    size: "xl",
    href: "/en/book/changes-and-cancellations/airline-change-fees/",
  },
  {
    id: "basic-economy-rules",
    num: "02",
    topic: "The Trap Ticket",
    title: "Basic Economy",
    titleEm: "Non-Refundable.",
    desc: "No changes. No refunds. No overhead bin on some carriers. The $40 you saved on the fare is almost never worth the $400 you lose when plans shift.",
    count: "8 guides",
    read: "United · Delta · American · Spirit",
    img: "https://images.unsplash.com/photo-1517479149777-5f3b1511d5ad?w=1200&q=80",
    size: "md",
    href: "/en/book/changes-and-cancellations/basic-economy-rules/",
  },
  {
    id: "dot-24-hour-rule",
    num: "03",
    topic: "Your Federal Right",
    badge: "Know this",
    title: "DOT 24-Hour Rule",
    desc: "U.S. Department of Transportation requires every airline to let you cancel for a full refund within 24 hours of booking — as long as the flight is at least 7 days out. No fees. No credits. Cash back.",
    count: "6 guides",
    read: "US flights · All carriers",
    img: "https://images.unsplash.com/photo-1569078449082-836feadbc0f7?w=1200&q=80",
    size: "md",
    href: "/en/book/changes-and-cancellations/dot-24-hour-rule/",
  },
  {
    id: "eu261-rights",
    num: "04",
    topic: "European Passenger Law",
    badge: "Cash compensation",
    title: "EU261 Rights",
    titleEm: "Delays & Denied Boarding.",
    desc: "Delayed 3+ hours, cancelled, or bumped on a flight departing the EU (or arriving on an EU carrier)? You may be owed €250–€600 per person, meals, hotel, and rerouting. Most passengers never claim it.",
    count: "11 guides",
    read: "EU · UK261 · Compensation",
    img: "https://images.unsplash.com/photo-1474302770737-173ee21bab63?w=1600&q=80",
    size: "wide",
    href: "/en/book/changes-and-cancellations/eu261-rights/",
  },
  {
    id: "schedule-change-refunds",
    num: "05",
    topic: "The Airline Changed — Now What",
    title: "Schedule Change",
    titleEm: "Refund Triggers.",
    desc: "If the airline moves your departure by more than 30–60 minutes (varies by carrier), you are entitled to a full cash refund — even on non-refundable tickets. The airline won't always tell you this.",
    count: "9 guides",
    read: "Significant change · DOT rules",
    img: "https://images.unsplash.com/photo-1529374255404-311a2a4f1fd9?w=1200&q=80",
    size: "sm",
    href: "/en/book/changes-and-cancellations/schedule-change-refunds/",
  },
  {
    id: "hotel-cancellation-windows",
    num: "06",
    topic: "Hotels",
    title: "Hotel Cancellation",
    titleEm: "Windows & Deadlines.",
    desc: "Free cancellation until 48 hours before, or non-refundable at booking? The gap between the two rates is usually $30. The cost of missing the window is almost always more. Read the policy before you click confirm.",
    count: "12 guides",
    read: "Marriott · Hyatt · Airbnb",
    img: "https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1200&q=80",
    size: "sm",
    href: "/en/book/changes-and-cancellations/hotel-cancellation-windows/",
  },
  {
    id: "ota-vs-direct",
    num: "07",
    topic: "Where You Booked Matters",
    title: "OTA vs. Direct",
    titleEm: "Who Owns the Booking.",
    desc: "Booked through Expedia or Booking.com? The airline or hotel will tell you to call the OTA. The OTA will tell you to call the airline. Here's how to cut through it — and why booking direct is almost always worth it for changes.",
    count: "7 guides",
    read: "Expedia · Booking.com · Direct",
    img: "https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1200&q=80",
    size: "sm",
    href: "/en/book/changes-and-cancellations/ota-vs-direct-booking/",
  },
  {
    id: "refund-vs-voucher",
    num: "08",
    topic: "When the Airline Offers a Deal",
    badge: "Always ask",
    title: "Refund vs. Voucher",
    titleEm: "vs. Credit.",
    desc: "Airlines will default to offering a travel credit or voucher. You are often entitled to cash. Know when to push back, when the voucher is actually better, and what expiry dates to watch.",
    count: "10 guides",
    read: "Voucher · Credit · Cash",
    img: "https://images.unsplash.com/photo-1563013544-824ae1b704d3?w=1200&q=80",
    size: "lg",
    href: "/en/book/changes-and-cancellations/refund-vs-voucher/",
  },
  {
    id: "credit-card-dispute",
    num: "09",
    topic: "Last Resort That Works",
    title: "Credit Card Dispute",
    titleEm: "The Chargeback.",
    desc: "When the airline or hotel refuses a refund you're legally owed, a credit card chargeback is your nuclear option. How to file it correctly, what documentation you need, and which card networks are strongest.",
    count: "8 guides",
    read: "Chargeback · Amex · Visa · MC",
    img: "https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=1200&q=80",
    size: "md",
    href: "/en/book/changes-and-cancellations/credit-card-dispute/",
  },
  {
    id: "force-majeure",
    num: "10",
    topic: "Acts of God & Governments",
    title: "Force Majeure",
    titleEm: "Cancellations.",
    desc: "Hurricanes, pandemics, strikes, war zones. When cancellation is genuinely not your fault, the rules shift — but not automatically. What 'force majeure' actually triggers, and what it doesn't.",
    count: "9 guides",
    read: "Weather · Strike · COVID rules",
    img: "https://images.unsplash.com/photo-1504608524841-42584120d1d0?w=1200&q=80",
    size: "md",
    href: "/en/book/changes-and-cancellations/force-majeure-cancellations/",
  },
  {
    id: "cfar-insurance",
    num: "11",
    topic: "Insurance Cross-Link",
    title: "Cancel For Any Reason",
    titleEm: "Insurance.",
    desc: "CFAR covers what the airline and hotel won't — up to 75% back when you cancel for literally any reason. Must be purchased within 14–21 days of your first trip payment. Full coverage details in the Insurance lane.",
    count: "See /en/book/insurance/",
    read: "CFAR · Trip protection",
    img: "https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1200&q=80",
    size: "sm",
    href: "/en/book/changes-and-cancellations/cfar-insurance-explainer/",
  },
  {
    id: "zoe-refund-fight",
    num: "12",
    topic: "Field Report · By Zoe",
    badge: "By Zoe",
    zoe: true,
    title: "The Refund I Fought",
    titleEm: "and Won.",
    desc: "Airline cancelled my flight six hours before departure, offered a voucher, and called it even. It took three calls, one email, and knowing exactly which DOT rule to cite. Here is the full transcript.",
    count: "1 essay · 12 min",
    read: "Personal · Refund · DOT",
    img: "https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?w=1200&q=80",
    size: "wide",
    href: "/en/book/changes-and-cancellations/zoe-refund-fight/",
  },
];

const CHANGES_FAQS = [
  {
    q: "Can I get a refund on a non-refundable airline ticket?",
    a: "More often than you think — but only in specific situations. If you cancel within 24 hours of booking and the flight is 7+ days away, the DOT 24-hour rule gives you a full cash refund regardless of fare class. If the airline makes a significant schedule change (typically 30–60+ minutes, varies by carrier), you are entitled to a cash refund even on non-refundable tickets. And if the airline cancels the flight entirely, cash refunds are required by DOT rules — the airline cannot force you to accept a credit."
  },
  {
    q: "What exactly is EU261 and who does it cover?",
    a: "EU261 is a European Union regulation that entitles passengers to cash compensation of €250–€600 per person when a flight is delayed 3+ hours, cancelled with less than 14 days' notice, or results in denied boarding due to overbooking. It covers: (1) any flight departing from an EU airport, regardless of airline; (2) any flight arriving at an EU airport on an EU-based carrier. If you fly non-EU airline from outside Europe to Europe, you're not covered on that leg. UK261 mirrors it for UK routes post-Brexit. Airlines owe the payout automatically — you have to file a claim."
  },
  {
    q: "How long does an airline have to give me a cash refund?",
    a: "DOT rules require airlines to process refunds within 7 business days for credit card purchases, 20 business days for cash/check purchases. If the airline is slow, document the date you requested the refund and follow up in writing — this creates the paper trail you need for a credit card dispute if they stall. Many airlines issue credits automatically and hope you don't notice you were entitled to cash. Push back explicitly: 'I am requesting a cash refund, not a travel credit.'"
  },
  {
    q: "What counts as a 'significant schedule change' that triggers a refund?",
    a: "This is airline-defined, which is the problem. American and Delta use 2 hours as the threshold; United uses 25 minutes for international. DOT rules as of 2024 have pushed carriers toward clearer standards — a departure or arrival change of 3+ hours domestically or 6+ hours internationally now typically qualifies as 'significant' for refund purposes under the new DOT rule. Changes affecting connection time or airport can also qualify. Check the airline's contract of carriage; it is a legal document and the airline has to honor it."
  },
  {
    q: "Should I book direct or through an OTA?",
    a: "For changes and cancellations: almost always direct. When something goes wrong, the hotel or airline controls the booking — an OTA can't waive a fee or rebook you on the next flight without going back to the supplier. The supplier will tell you the OTA has to make the change; the OTA will tell you to call the supplier. If you must use an OTA for price, still give the airline your contact info directly so they can reach you during disruptions."
  },
  {
    q: "When should I dispute with my credit card instead of asking the airline?",
    a: "A chargeback (credit card dispute) is your recourse when: (1) the airline owes you a cash refund under DOT rules but is refusing or stalling past 7 business days; (2) the hotel did not honor a confirmed reservation; (3) a service was not delivered as described. File with your card issuer, not the airline. You'll need: booking confirmation, cancellation documentation, and records of your attempts to resolve with the airline. Amex has the strongest consumer protection; Visa and Mastercard follow. Success rates are high when you have the paper trail."
  },
  {
    q: "What does Cancel For Any Reason (CFAR) insurance actually cover?",
    a: "CFAR is a policy upgrade (not a standalone policy) that refunds 50–75% of your prepaid, non-refundable trip costs when you cancel for literally any reason — cold feet, work conflict, changed your mind. It must be added within 14–21 days of your first trip deposit. Standard travel insurance does not include CFAR; you have to opt into it. The cost is typically 30–50% above the base premium. For trips over $5,000 with non-refundable hotels and tours, CFAR math usually pencils out."
  },
  {
    q: "What happens if I miss my connection because of the airline?",
    a: "If the missed connection is the airline's fault (delay, mechanical, crew), they owe you rebooking on the next available flight at no charge, and potentially meals and hotels for significant delays. Get in line at the gate agent immediately — call the airline simultaneously if the line is long. EU261 applies here too for covered flights. Document everything: take photos of departure boards showing the delay, keep all receipts if the airline owes you expenses."
  },
];

const CHANGES_READING = [
  { tag: "Reference", duration: "14 min", title: "The DOT Refund Rules, Plain English." },
  { tag: "EU Law", duration: "11 min", title: "Filing an EU261 Claim That Actually Gets Paid." },
  { tag: "Method", duration: "8 min", title: "The Script: Calling an Airline to Demand a Refund." },
  { tag: "Insurance", duration: "9 min", title: "CFAR vs. Standard Cancel: Which One You Actually Need." },
  { tag: "Hotels", duration: "7 min", title: "Hotel Cancellation Policies, Ranked by Guest-Friendliness." },
  { tag: "Credit Cards", duration: "6 min", title: "Chargeback vs. Refund: When to Use Which." },
];

const CHANGES_CHECKLIST = [
  { step: "Book direct", detail: "OTA bookings add a middleman to every change. Direct bookings give you line-of-sight to the carrier or hotel." },
  { step: "Read the fare rules before you click confirm", detail: "Not the summary — the actual fare rules. 'Non-refundable' can mean no refund, or it can mean credit-only. Know which before you pay." },
  { step: "Cancel within 24 hours if plans shift", detail: "The DOT 24-hour rule is your cleanest exit for domestic and international flights booked 7+ days out." },
  { step: "Screenshot your booking confirmation", detail: "You need proof of what you paid and what you were promised. Email confirmation is not always enough if the OTA's records go sideways." },
  { step: "Track any schedule changes", detail: "Set up Google Flights alerts for your flight number. Airlines push schedule changes quietly. A 2-hour shift is often a free-refund trigger." },
  { step: "Know the EU261 thresholds", detail: "3+ hours late arriving. Cancelled with less than 14 days' notice. Denied boarding. Any of these on a qualifying route = cash compensation you must file for." },
];

Object.assign(window, { CHANGES_CARDS, CHANGES_FAQS, CHANGES_READING, CHANGES_CHECKLIST });
