// On the Ground landing data
const GROUND_LANES = [
  {
    id: "arrival",
    num: "I",
    chapter: "CHAPTER I",
    title: "Arrival",
    titleEm: "The first hour matters most.",
    coord: "13°41'N 100°45'E",
    desc: "Airport to city, first-hour decisions, SIM cards and connectivity. The first sixty minutes after the customs stamp set the tone for the entire trip. Cash, signal, transit decision, hotel drop. The traveler who walks out of arrivals with all four solved is the traveler who eats dinner that night without a fight.",
    img: "https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1800&q=85",
    bullets: [
      { l: "First hour", v: "Cash · SIM · transit · hotel — in that order" },
      { l: "Airport SIM", v: "Convenient, marked up 2–3× over town" },
      { l: "Cab vs. transit", v: "After 11 p.m., always the cab" },
    ],
  },
  {
    id: "moving",
    num: "II",
    chapter: "CHAPTER II",
    title: "Getting Around",
    titleEm: "Read the city before you spend in it.",
    coord: "35°41'N 139°41'E",
    desc: "Transit systems, ride apps, renting versus walking, reading a city. Every city has a logic. Tokyo's is rail. Rome's is feet. Mexico City's is Uber. Bangkok's is whichever lane is moving. Spend the first afternoon on a long walk in the central district before you spend a peso on a tour, a cab, or a guide. The map in your head will save you more money than any pass.",
    img: "https://images.unsplash.com/photo-1542359649-31e03cd4d909?w=1800&q=85",
    bullets: [
      { l: "Offline map", v: "Download the city before you fly" },
      { l: "Ride apps", v: "Grab · Bolt · DiDi · Uber — by region" },
      { l: "Walk first", v: "First afternoon on foot · always" },
    ],
  },
  {
    id: "safety",
    num: "III",
    chapter: "CHAPTER III",
    title: "Safety",
    titleEm: "Move like you've been here before.",
    coord: "48°51'N 2°20'E",
    desc: "Situational awareness, what to leave at the hotel, when something goes wrong. Tourists get robbed. Travelers do not — most of the time. The difference is rarely physical strength or street smarts; it is body language, what you carry, and what you leave behind. The people who watch for marks watch for hesitation. Walk like you know where you're going, even when you don't.",
    img: "https://images.unsplash.com/photo-1431274172761-fca41d930114?w=1800&q=85",
    bullets: [
      { l: "Decoy wallet", v: "$40, expired card, old receipts" },
      { l: "Leave at hotel", v: "Passport · large cash · jewelry · device 2" },
      { l: "When it goes", v: "Stop · breathe · phone the embassy line" },
    ],
  },
  {
    id: "money",
    num: "IV",
    chapter: "CHAPTER IV",
    title: "Money",
    titleEm: "Cash, card, and the conversion trap.",
    coord: "60°10'N 24°56'E",
    desc: "Cash versus card by region, ATM strategy, avoiding the conversion trap. Northern Europe runs on contactless. Southeast Asia runs on cash. Most everywhere else is a mix you read on arrival. The single most expensive mistake travelers make at the ATM is letting the machine convert into their home currency. Always pay in the local denomination. Always.",
    img: "https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=1800&q=85",
    bullets: [
      { l: "Card-first", v: "Nordics · Korea · UK · Australia" },
      { l: "Cash-first", v: "Japan · Vietnam · much of Africa" },
      { l: "DCC trap", v: "Always pay in local currency · always" },
    ],
  },
  {
    id: "language",
    num: "V",
    chapter: "CHAPTER V",
    title: "Language",
    titleEm: "Ten phrases. One open ear.",
    coord: "19°25'N 99°08'W",
    desc: "Translation tools, the ten phrases that matter, reading a room. You will not learn the language in a week. You can learn ten phrases on the flight. You can learn to read a room in a single afternoon. Tone matters more than grammar. Effort matters more than fluency. The hardest part of crossing a language barrier is the ten seconds of awkwardness before the other person realizes you're trying.",
    img: "https://images.unsplash.com/photo-1519682337058-a94d519337bc?w=1800&q=85",
    bullets: [
      { l: "Offline pack", v: "Google Translate · download city language · before flight" },
      { l: "Ten phrases", v: "Hello · please · thanks · bathroom · how much" },
      { l: "Reading rooms", v: "Volume drops · eyes drop · you're winning" },
    ],
  },
];

const GROUND_ARRIVAL_RULES = [
  { id: "cash", glyph: "$", coord: "FIRST HOUR · ARRIVAL HALL", title: "Pull Cash, Once", desc: "The arrivals-hall ATM works at 2 a.m. Pull the local-currency equivalent of $200, all at once — most banks charge a flat $5 ATM fee that hurts more on three small withdrawals than one large one. Use the bank ATMs inside the airport, not the standalone yellow Euronet boxes that quote 12% conversion fees. Take the receipt; it doubles as the exchange rate proof if your card is later flagged.", spec: "$200 · BANK ATM · TAKE RECEIPT" },
  { id: "sim", glyph: "📡", coord: "CONNECTIVITY · ESIM OR SIM", title: "Get Signal Before You Leave", desc: "An eSIM bought before the flight (Airalo, Holafly, Nomad) clicks on at landing — no kiosk queue, no passport check, no plastic card to lose. Physical SIMs at the airport cost $25–$40 for a tourist plan that is 2–3× the city price. If your phone is locked to a US carrier, eSIM is the only option. 10 GB of regional data should run a week of normal use.", spec: "ESIM · 10 GB · ~$15" },
  { id: "transit", glyph: "🚖", coord: "GROUND TRANSPORT · DECISION", title: "Cab or Train", desc: "Daytime, central destination, light luggage — the airport express is faster and cheaper. After 11 p.m., with two bags, in a city you do not know — always the cab from the official taxi line, never the one yelling at you in the arrivals hall. Confirm the meter is on before you sit, or agree on the fare before you load luggage. Take the photo of the license plate.", spec: "AFTER 23:00 · ALWAYS CAB" },
  { id: "hotel", glyph: "✓", coord: "HOTEL DROP · RECALIBRATE", title: "Drop, Don't Linger", desc: "Most travelers blow the first afternoon trying to do something on jet lag. Don't. Drop the bags, take a shower, walk a fifteen-minute loop around the hotel to learn one café, one corner store, one ATM that works. Eat something local within walking distance. Sleep in a four-hour window that ends at sunset. Day two is when the trip starts.", spec: "WALK · EAT · NAP · RESET" },
];

const GROUND_TRANSIT_TYPES = [
  { method: "RAIL · METRO", price: "FAST · CHEAP", title: "Built city · use it", desc: "Tokyo, London, Paris, Berlin, Seoul, Singapore, Hong Kong, Madrid — the trains are the city. Single-fare card on day one (Suica, Oyster, Navigo, ezLink) covers buses too. Skip the multi-day tourist pass; the math almost never works against a normal pay-as-you-go card. The first ride is always the wrong direction. Recover quickly; it's a story.", icon: "M" },
  { method: "RIDE APPS", price: "DEPENDS WHERE", title: "One app per region", desc: "Grab in Southeast Asia. Bolt in much of Europe and Africa. Uber in Latin America, North America, India. DiDi in China and parts of LatAm. Inset 99 in Brazil, Yandex in CIS countries, Careem in MENA. Download before you land — first-time signup needs SMS verification, which fails on a fresh local SIM. Tip the driver in cash if the app does not handle it.", icon: "R" },
  { method: "RENT · DRIVE", price: "ONLY IF YOU MUST", title: "City: no. Country: yes", desc: "Driving in Rome, Naples, Athens, or anywhere in India is a sport, not a transport choice. Outside cities, in Iceland, New Zealand, the Western US, southern France — a rental opens the trip. International Driving Permit takes 10 days to process at home; you cannot get one once you've landed. Insurance via the rental counter is overpriced; check your credit card's coverage first.", icon: "D" },
  { method: "WALK · BIKE", price: "FREE", title: "The unscheduled afternoon", desc: "The single best activity in any new city is the first long walk on day one. Pick a direction, walk an hour out, walk a different way back. The map in your head will save you more money and time than any guidebook. City bikes (Vélib in Paris, Citi Bike in NYC, Mobike in Asia) cover the medium distances on which a cab is overkill and the metro is a hassle.", icon: "W" },
];

const GROUND_SAFETY_REQS = [
  { mark: "BODY LANGUAGE", title: "Walk like you've been here", body: "Pickpockets and scammers watch for hesitation, the open map, the swiveled head, the slow pat-pat-pat for the wallet that is no longer there. Walk like you have a destination. If you need to consult a map, step inside a café, a hotel lobby, a store. Never on the corner. Never at the metro entrance. The two-minute pause to breathe and read the map is what separates the traveler from the target." },
  { mark: "DECOY WALLET", title: "Forty dollars and a smile", body: "Carry a thin wallet with $40 in local currency, an expired credit card, a few old receipts, and nothing else. Carry it in the back pocket. The real wallet — passport-card, primary debit, $100 emergency cash — lives in a money belt or a zipped interior pocket. If you are robbed, the decoy is what comes out. The robbers leave. You buy dinner with the rest." },
  { mark: "WHAT STAYS HOME", title: "Hotel safe is your friend", body: "Passport, large cash, the second credit card, jewelry you would mourn, and the laptop or tablet you do not need today — these all stay in the hotel-room safe or the front-desk safe deposit box. Carry a passport photocopy or a clear phone scan when you go out. Most countries accept the copy at hotel check-in and police checkpoints. The original at home is the original you will fly home with." },
  { mark: "SCAMS · COMMON ONES", title: "If it's free, you're paying", body: "The friendship bracelet, the spilled drink, the woman with the petition, the man with the broken meter, the temple that requires a 'donation' before entry, the ATM that conveniently rejects your card and is replaced by a helpful stranger. Most scams take three seconds to refuse and zero seconds to deliver — you say no, walk on, do not engage. The ones that work do so because the traveler felt bad about being rude. Be politely rude." },
  { mark: "WHEN IT GOES WRONG", title: "Stop. Breathe. Phone home.", body: "Phone gone, wallet gone, lost in a market, separated from your group — the wrong move is to panic-walk in any direction. Find a hotel lobby (any hotel — staff will help even non-guests), sit, breathe, get water, then phone the embassy 24-hour line if it is serious or your travel insurance hotline if it is not. Insurance handles ATM card cancellation, hotel re-booking, and emergency evacuation. The line is on the back of the card and in the email you sent yourself before flying." },
  { mark: "ILLNESS · WATER · STREET FOOD", title: "Filter, ice, and one rule", body: "Drink only sealed water in countries where the tap is not safe — and that means no ice, no salads washed in tap water, no toothbrushing under the faucet. Street food is generally safe if it is hot, cooked in front of you, and busy with locals; the empty stall is the warning sign, not the busy one. Carry oral rehydration salts and an antibiotic (azithromycin or ciprofloxacin) the doctor will prescribe before the trip. Most travel illness clears in 36 hours of fluids and rest." },
];

const GROUND_MONEY_REGIONS = [
  { mark: "CARD-FIRST", title: "Nordics · UK · Korea · Australia", body: "Tap-to-pay everywhere. Cash is sometimes refused outright in Sweden. Carry a $50 emergency reserve in local currency and forget about it for the rest of the trip. Most card readers handle Apple Pay or Google Pay; bring a backup physical card for the moments the contactless terminal is offline. No-foreign-transaction-fee cards (Charles Schwab, Capital One, most premium cards) save 3% on every transaction — pay this one off before you fly." },
  { mark: "CASH-FIRST", title: "Japan · Vietnam · Cambodia · much of Africa", body: "Hotels, mid-range restaurants, and supermarkets take cards. Everything else — taxis, market stalls, small shops, temple donations, train station snack vendors — is cash. Pull a larger sum from the ATM (the $5 fee dilutes across more transactions) and carry small denominations. Japan is famously cash-heavy despite being modern; small restaurants and ryokan often refuse cards entirely. Vietnam runs on the 500,000 dong bill, which is roughly $20." },
  { mark: "MIXED · READ ON ARRIVAL", title: "Most of Europe · Latin America · SE Asia capitals", body: "Major cities take card; smaller towns and rural areas need cash. Bangkok, Mexico City, Buenos Aires, Lisbon, Athens — bring both. The pattern: chain restaurants and hotels run cards; the small family-owned places that you actually want to eat at run cash. Pull the equivalent of two days' spending in cash on arrival, refill at the bank ATM near the hotel every couple of days." },
  { mark: "ATM STRATEGY", title: "Inside, branded, daylight", body: "Use ATMs that are inside a bank vestibule, branded by the bank itself, and ideally accessed during business hours when the branch is open. The standalone yellow Euronet boxes in tourist zones quote terrible exchange rates and have skimmer-installation rates an order of magnitude higher than bank ATMs. Cover the keypad. Take the receipt. Notify your card-issuing bank before you fly to prevent fraud-flag freezes." },
  { mark: "DCC TRAP", title: "Always pay in local currency", body: "When the card terminal asks 'Would you like to be charged in your home currency?' the correct answer is always 'no.' Always. Dynamic Currency Conversion adds a 4–7% markup on top of any card fees. The merchant gets a kickback for offering it, and the rate is always worse than what your card network would give you. Same answer at the ATM when it offers to convert: no. Decline. Pay in local." },
  { mark: "TIPPING · BY REGION", title: "Round up, round down, leave alone", body: "US and Canada: 18–22% restaurants, $1–2 per drink, $1 per bag. Western Europe: round up the bill, 5–10% for excellent service. Japan and Korea: never tip — it confuses or offends. Southeast Asia: small change in cash for guides and drivers. Middle East: 10% restaurants. Latin America: 10% restaurants, $2–5 for guides. Carry a small stack of $1 USD bills for hotel porters in countries where dollars are accepted as universal tip currency." },
];

const GROUND_LANGUAGE_PHRASES = [
  { tag: "01", item: "Hello / Good morning", reason: "The first words out of your mouth in any interaction. Three syllables in the local language signal you are not the entitled tourist. Variations matter: 'sawatdee khrap' for a man in Thai, 'sawatdee kha' for a woman. Get the formal version. Use it once per day with everyone you meet — server, driver, shopkeeper. The rest of the conversation will go better." },
  { tag: "02", item: "Please", reason: "The single most important word after hello. English speakers under-use it because English is one of few languages that does not require it grammatically. Most others do. 'Por favor,' 's'il vous plaît,' 'kudasai,' 'juseyo' — say it on every request, every order, every direction-asked." },
  { tag: "03", item: "Thank you", reason: "Always. Twice if it is genuine. Once you have hello, please, and thank you locked in, you have the framework of every transactional conversation you will have on the trip. The locals will reply in fluent English and ask where you are from. The exchange always goes better when it starts with the local language, even badly pronounced." },
  { tag: "04", item: "Where is the bathroom?", reason: "You will need this in the first two days. 'Donde está el baño,' 'où sont les toilettes,' 'toire wa doko desu ka.' Learn the local word for bathroom, plus the pointing gesture. Most cafés, restaurants, and hotels will let you use the bathroom even if you are not a customer if you ask politely." },
  { tag: "05", item: "How much is this?", reason: "Markets, taxis without meters, street food, bargaining situations. Pair with the gesture of holding up the item or pointing. Then learn to count to twenty in the local language so you can understand the answer. The numbers are usually the easiest vocabulary set to acquire — a Duolingo session on the flight covers them." },
  { tag: "06", item: "Excuse me / Sorry", reason: "Walking through a crowded train, accidentally bumping someone, asking for a moment of attention — every culture has its version. 'Sumimasen' in Japanese covers excuse-me, sorry, and thank-you-in-advance with one word. Worth learning the equivalent in any country you visit. It signals attention, awareness, and respect." },
  { tag: "07", item: "I'd like the bill, please", reason: "In many countries the bill does not come automatically — you must request it. The waiter assumes you are still relaxing. Learn the phrase or learn the universal gesture (in many places, miming writing on your palm). 'La cuenta, por favor.' 'L'addition, s'il vous plaît.' 'O-kanjō, kudasai.' 'Yo-gi-yo, gye-san-seo.'" },
  { tag: "08", item: "Card or cash?", reason: "Knowing how to ask in advance saves the awkward moment of the cash-only restaurant after the meal. The phrase tells you whether to find an ATM before you sit down. Pair with showing the card — the visual is universal. 'Tarjeta o efectivo,' 'carte ou espèces,' 'kādo ga tsukaemasu ka.'" },
  { tag: "09", item: "Wifi password?", reason: "The phrase that runs the modern trip. Most cafés and hotels have it printed on the receipt or the wall, but asking opens the door to a five-minute exchange that often turns into a recommendation, a tip, or a friend. Pair with showing the phone — universal. 'Wifi contraseña,' 'mot de passe wifi,' 'wifi pasuwādo.'" },
  { tag: "10", item: "I don't speak [language]", reason: "Said with a smile, in the local language, after the local person has launched into a fast paragraph you cannot follow. It is the polite admission that resets the conversation to gestures, English, or translator app. Almost everyone responds with grace and a slowed-down version. Almost no one is mad at the traveler who tried." },
];

const GROUND_FAQS = [
  { q: "Should I get a SIM card at the airport or wait until town?", a: "Wait. Or skip the physical SIM entirely and use an eSIM you bought before the flight. Airport SIM kiosks charge 2–3× the price of the same plan from a city carrier shop the next morning. eSIMs from Airalo, Holafly, or Nomad activate the moment you land, cost about $15 for 10 GB across a region, and skip the kiosk queue entirely. The only reason to buy at the airport is if your phone is locked or you absolutely need data the second you walk through customs." },
  { q: "How much cash should I pull from the airport ATM?", a: "Pull the local-currency equivalent of $150–$200 in one transaction. Most US banks charge a flat ATM fee abroad ($3–$5), so three small pulls cost more than one larger one. Use the ATM physically inside a bank or a major airport ATM (Cardless ATM, HSBC, Santander), never the standalone yellow Euronet/Travelex machines that quote 12% conversion fees. Take the receipt — it doubles as proof of the exchange rate if your card is later flagged for fraud." },
  { q: "Which ride app works in which country?", a: "Grab dominates Southeast Asia (Thailand, Vietnam, Indonesia, Singapore, Malaysia, Philippines). Bolt covers most of Eastern Europe, Sub-Saharan Africa, and parts of Western Europe. Uber works in Latin America, the United States, India, the UK, and most of Western Europe. DiDi runs in China, Mexico, and parts of South America. Yandex covers former Soviet states. Careem dominates the Middle East. Download the right app before you land and verify the SMS code on your home SIM." },
  { q: "Is street food safe to eat?", a: "Generally yes, with three filters. One: the stall is busy with locals, not just tourists. Two: the food is cooked hot in front of you, not sitting in a steam tray. Three: the produce was not washed in tap water in countries where tap water is not safe. The empty stall in a busy market is the warning sign — the busy stall has high turnover, fresh ingredients, and a vendor with a reputation to protect. Carry oral rehydration salts and an antibiotic prescribed before the trip; most travel illness clears in 36 hours of fluids and rest." },
  { q: "Should I tip in Japan or Korea?", a: "No. Tipping in Japan and Korea is at best confusing, at worst offensive. The cultural baseline is that good service is expected and pricing is honest — adding a tip implies the service was unexpectedly good or the price was unexpectedly low, both of which are mild insults to a Japanese or Korean professional. The exception is private guides or driver-translators who work primarily with Western tourists; they have adapted to expect a tip. When in doubt, do not tip and thank the person warmly instead." },
  { q: "What's dynamic currency conversion and why does it matter?", a: "When the card terminal in a foreign country asks 'Would you like to be charged in your home currency?' it is offering Dynamic Currency Conversion. Always say no. The DCC rate is set by the merchant's payment processor and is universally worse than the rate your card network (Visa, Mastercard, Amex) gives you — typically 4–7% worse. The merchant gets a kickback for offering it, which is why they push it. Same at the ATM. Always 'pay in local currency' or 'continue without conversion.'" },
  { q: "How do I avoid pickpockets in tourist areas?", a: "Three habits cover most of it. One: keep nothing valuable in a back pocket; the front pocket, an interior zipped pocket, or a money belt under clothing. Two: walk like you know where you are going, even when you don't — pickpockets watch for hesitation, the open map, the swiveled-head tourist. Three: carry a decoy wallet with $40 and an expired card, and let that be what comes out if you are confronted. Most pickpocketing happens on metros, at popular monuments, and in the crowd outside major train stations. Stay aware in those three places and you avoid 90% of the risk." },
  { q: "What do I do if my passport is stolen abroad?", a: "Step 1: file a police report within 24 hours — most embassies require the report number for replacement processing. Step 2: contact your country's nearest embassy or consulate during business hours. Emergency travel documents (single-trip replacements) typically issue in 24–72 hours for around $130. Step 3: cancel any visas printed in the lost passport and reapply if needed. The pre-trip habit that saves hours: email yourself a scan of your passport's photo page before you leave. The consular officer can verify your identity from the scan while a fresh photo is taken." },
];

const GROUND_READING = [
  { tag: "Arrival", duration: "8 min", title: "How to Survive the First Hour After Landing", em: "Survive the first hour.", slug: "first-hour-after-landing", img: "https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1200&q=80" },
  { tag: "Getting Around", duration: "9 min", title: "How to Read a City on Your First Afternoon", em: "Read a city, fast.", slug: "read-a-city-fast", img: "https://images.unsplash.com/photo-1542359649-31e03cd4d909?w=1200&q=80" },
  { tag: "Money", duration: "6 min", title: "How to Pull Cash Abroad Without Getting Burned", em: "Pull cash safely.", slug: "pull-cash-abroad", img: "https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=1200&q=80" },
  { tag: "Language", duration: "7 min", title: "How to Cross a Language Barrier With Ten Phrases", em: "Cross the language gap.", slug: "ten-phrases-that-matter", img: "https://images.unsplash.com/photo-1519682337058-a94d519337bc?w=1200&q=80" },
];

Object.assign(window, { GROUND_LANES, GROUND_ARRIVAL_RULES, GROUND_TRANSIT_TYPES, GROUND_SAFETY_REQS, GROUND_MONEY_REGIONS, GROUND_LANGUAGE_PHRASES, GROUND_FAQS, GROUND_READING });
