// Flights sub-hub data — /en/book/flights/
// 10 neutral editorial cards + 1 Zoe card = 11 total cards.
// Zoe card is flagged zoe: true and rendered with amber/gold badge.
// All slugs are future article slots; links dead-point to their eventual L3/L4 URL.

const FLIGHT_CARDS = [
  {
    id: "booking-window",
    num: "01",
    topic: "Timing",
    title: "The Booking Window",
    titleEm: "by route.",
    desc: "Domestic: 6–8 weeks. International: 3–4 months. Peak Europe or Japan: 5–6 months. The window is real, the data is overwhelming, and last-minute fares are almost always more expensive than people remember.",
    count: "12 guides",
    read: "Timing · Price",
    img: "https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1600&q=80",
    size: "xl",
    href: "/en/book/flights/booking-window/",
    slug: "booking-window",
    zoe: false,
  },
  {
    id: "fare-finding-tools",
    num: "02",
    topic: "Search",
    title: "The Fare-Finding Stack.",
    desc: "Google Flights for the calendar view. Hopper for predictions. Going for home-airport error fares. The airline's own site for the final booking — never an OTA on long-haul. Four tools, one system.",
    count: "8 guides",
    read: "Tools · OTAs",
    img: "https://images.unsplash.com/photo-1611532736597-de2d4265fba3?w=1200&q=80",
    size: "md",
    href: "/en/book/flights/fare-finding-tools/",
    slug: "fare-finding-tools",
    zoe: false,
  },
  {
    id: "seat-selection",
    num: "03",
    topic: "Comfort",
    title: "Seat Selection.",
    desc: "Window vs aisle is the wrong question. Row 14 vs row 32 is the right one. Exit rows, bulkheads, seats that recline into someone, seats that don't recline at all — and who gets to choose.",
    count: "6 guides",
    read: "Comfort · Cabins",
    img: "https://images.unsplash.com/photo-1474302770737-173ee21bab63?w=1200&q=80",
    size: "md",
    href: "/en/book/flights/seat-selection/",
    slug: "seat-selection",
    zoe: false,
  },
  {
    id: "cabin-classes",
    num: "04",
    topic: "Cabins",
    badge: "Deep dive",
    title: "Cabin Classes",
    titleEm: "decoded.",
    desc: "Economy, premium economy, business, first. What you actually get in each, when the upgrade math works, when it doesn't, and the one route where premium economy is always worth it.",
    count: "9 guides",
    read: "Upgrade · Value",
    img: "https://images.unsplash.com/photo-1540339832862-474599807836?w=1600&q=80",
    size: "wide",
    href: "/en/book/flights/cabin-classes/",
    slug: "cabin-classes",
    zoe: false,
  },
  {
    id: "layovers",
    num: "05",
    topic: "Connections",
    title: "Layovers.",
    desc: "60 minutes domestic, 90 international — the floor. Above that, how to pick a connection that isn't a sprint and isn't a 9-hour wait in a seat with a USB port that doesn't work.",
    count: "7 guides",
    read: "Connections · Hubs",
    img: "https://images.unsplash.com/photo-1553526665-dbfe8f88e40a?w=1200&q=80",
    size: "sm",
    href: "/en/book/flights/layovers/",
    slug: "layovers",
    zoe: false,
  },
  {
    id: "baggage-fees",
    num: "06",
    topic: "Luggage",
    title: "Baggage Fees.",
    desc: "The carry-on wars, checked-bag economics, and why basic economy is rarely the deal it looks like. What the airlines charge, when to check, and the one bag that gets through every time.",
    count: "5 guides",
    read: "Carry-on · Checked",
    img: "https://images.unsplash.com/photo-1553531384-cc64ac80f931?w=1200&q=80",
    size: "sm",
    href: "/en/book/flights/baggage-fees/",
    slug: "baggage-fees",
    zoe: false,
  },
  {
    id: "miles-redemption",
    num: "07",
    topic: "Loyalty",
    title: "Miles Redemption.",
    desc: "The basics: use miles for long-haul business, not domestic economy. Partner awards, transfer partners, and the two sweet spots worth knowing — without turning your life into a spreadsheet.",
    count: "10 guides",
    read: "Points · Awards",
    img: "https://images.unsplash.com/photo-1559181567-c3190ca9be23?w=1200&q=80",
    size: "sm",
    href: "/en/book/flights/miles-redemption/",
    slug: "miles-redemption",
    zoe: false,
  },
  {
    id: "multi-city-open-jaw",
    num: "08",
    topic: "Routing",
    title: "Multi-City &",
    titleEm: "open-jaw.",
    desc: "Fly into one city, out of another — and pay less than the roundtrip. How open-jaw tickets work, when multi-city beats roundtrip, and the routing tricks that save $200 without saving any time.",
    count: "6 guides",
    read: "Routing · OW",
    img: "https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?w=1600&q=80",
    size: "lg",
    href: "/en/book/flights/multi-city-open-jaw/",
    slug: "multi-city-open-jaw",
    zoe: false,
  },
  {
    id: "red-eye-vs-day",
    num: "09",
    topic: "Strategy",
    title: "Red-Eye vs Day Flight.",
    desc: "Red-eyes save a hotel night but cost a morning. Day flights cost more and waste a day but land you functional. The math depends on the destination and the trip length — here's how to run it.",
    count: "4 guides",
    read: "Overnight · Day",
    img: "https://images.unsplash.com/photo-1464618663641-bbdd760ae84a?w=1200&q=80",
    size: "md",
    href: "/en/book/flights/red-eye-vs-day/",
    slug: "red-eye-vs-day",
    zoe: false,
  },
  {
    id: "airport-selection",
    num: "10",
    topic: "Airports",
    title: "Airport Selection.",
    desc: "The cheaper fare from the secondary airport costs $40 extra in ground transport and two hours of your life. When the alternate airport wins, when it doesn't, and the cities where the secondary is actually better.",
    count: "5 guides",
    read: "Hubs · Alternates",
    img: "https://images.unsplash.com/photo-1587019158091-1a103c5dd17f?w=1200&q=80",
    size: "md",
    href: "/en/book/flights/airport-selection/",
    slug: "airport-selection",
    zoe: false,
  },
  {
    id: "first-time-solo-flyer",
    num: "ZO",
    topic: "By Zoe",
    badge: "By Zoe",
    title: "The First Time",
    titleEm: "you fly alone.",
    desc: "I've flown 40+ countries. I still get a version of the same feeling at the gate — somewhere between dread and electricity. This is what I've learned to do with it.",
    count: "Personal essay",
    read: "8 min read",
    img: "https://images.unsplash.com/photo-1541534741688-6078c6bfb5c5?w=1200&q=80",
    size: "md",
    href: "/en/book/flights/first-time-solo-flyer/",
    slug: "first-time-solo-flyer",
    zoe: true,
  },
];

const FLIGHT_FAQS = [
  {
    q: "When is the best time to book a flight?",
    a: "For domestic US routes: 6–8 weeks out is consistently the sweet spot. For international: 3–4 months. For peak Europe summer, Japan cherry blossom, or December school holidays: 5–6 months. The window is real — studies of hundreds of millions of bookings keep landing on the same numbers. Last-minute fares are almost always more expensive than people remember, not less."
  },
  {
    q: "Should I book directly with the airline or through an OTA?",
    a: "For long-haul international, always book direct with the airline. When something goes wrong — a cancellation, a missed connection, a schedule change — the airline prioritizes customers who booked direct. OTAs are useful for price discovery and comparison, but the final booking should be on the carrier's own site. Exception: if an OTA is showing a significantly lower price (over 15%) on a simple domestic hop, that's a judgment call worth making."
  },
  {
    q: "What's the minimum layover time I should accept?",
    a: "60 minutes for domestic connections within the same airport. 90 minutes for international connections. 2+ hours if you're clearing customs and immigration. These are floors, not targets — if the airport is large (ORD, ATL, CDG, DXB) or the first flight is historically late, add 30–45 minutes. A missed connection on international is a hotel night and a 24-hour delay. The 45-minute fare savings rarely covers it."
  },
  {
    q: "Is premium economy worth the upgrade from economy?",
    a: "On flights over 8 hours, yes — almost always. The extra 4–6 inches of seat pitch and the wider seat make the difference between arriving functional and arriving wrecked. On flights under 6 hours, no — economy is survivable. The sweet spot is transatlantic and transpacific flights where the premium economy upgrade runs $200–$400 over economy. Business class math only works if you're using miles or your company is paying."
  },
  {
    q: "How do open-jaw tickets work and when do they save money?",
    a: "An open-jaw ticket flies you into one city and out of another — fly into Paris, out of Rome, for example — without requiring you to return to the origin city. Airlines price these based on the average of the two one-way fares, which often beats a roundtrip to one city plus a separate one-way home. They work best on multi-country itineraries where a roundtrip to one hub would require expensive repositioning flights. Always compare open-jaw vs roundtrip before assuming one is cheaper."
  },
  {
    q: "What's the difference between codeshare and interline?",
    a: "A codeshare means two airlines share the same flight — one operates it, the other sells it under its own flight number. You might book on United and fly on Lufthansa. An interline agreement means two airlines honor each other's tickets for connecting flights. The practical difference: codeshares usually mean seamless baggage through-check and coordinated schedule protection if you miss a connection. Interlines are less reliable. When booking multi-leg itineraries, confirm your connection is codeshare, not just interline."
  },
  {
    q: "When does it make sense to use a travel agent?",
    a: "For complex multi-destination itineraries, business class award bookings using miles, cruises with air, or destinations with difficult visa or security situations. A good travel agent doesn't cost more — they earn commission from suppliers. They earn their keep when the itinerary has four or more legs, when something goes wrong and you need someone to call, or when you're booking a once-in-a-decade trip where the planning complexity exceeds your tolerance for research. For a simple roundtrip to Europe, skip it and book direct."
  },
];

const FLIGHT_READING = [
  { tag: "Method", duration: "8 min", title: "How To Find Cheap Flights Without Tedious Tab-Hopping" },
  { tag: "Strategy", duration: "7 min", title: "The Booking Window", em: "Why the data wins every time." },
  { tag: "Loyalty", duration: "9 min", title: "Miles 101 — The Only Points Strategy You Actually Need" },
  { tag: "Comfort", duration: "6 min", title: "The Seat Selection Map", em: "Every aircraft, annotated." },
  { tag: "Routing", duration: "10 min", title: "Open-Jaw Tickets: The Trick Most Travelers Miss" },
  { tag: "By Zoe", duration: "8 min", title: "The First Time You Fly Alone", em: "A personal essay." },
];

const FLIGHT_DECIDE = [
  { q: "How far out are you booking?", opts: ["Under 3 weeks", "1–3 months", "3–6 months", "Over 6 months"] },
  { q: "Your route is…", opts: ["Domestic hop", "Short-haul intl", "Transatlantic / Pacific", "Open-jaw / multi-city"] },
  { q: "Comfort matters…", opts: ["Just get me there", "A little — 8hr+", "Yes — I need sleep", "Fully — business/first"] },
  { q: "You have miles?", opts: ["None", "Some economy miles", "A lot — flexible", "Business-class miles"] },
];

Object.assign(window, { FLIGHT_CARDS, FLIGHT_FAQS, FLIGHT_READING, FLIGHT_DECIDE });
