// HimLocal — Editorial content for FAQ / About / Terms / Privacy / Cancellation / Help / Become-a-host
// Mirrors the CMS keys in cms-content-keys.md `page.<slug>.*`.
// Every entry is { title, lede, sections: [{ title, body }], updatedAt, type: 'rich'|'faq' }

window.HL_EDITORIAL = {
  faq: {
    type: 'faq',
    title: <>Frequently <em>asked.</em></>,
    lede: 'The questions we get over and over. Browse by category or use search up top.',
    updatedAt: '15 May 2026',
    sections: [
      { title:'How do bookings work?', body:'You browse, you pick dates and guests, you pay. The host gets notified the moment we authorise the payment. Free cancellation up to 14 days before check-in; partial refund up to 7 days before. Cancellation policy is shown on every booking confirmation.' },
      { title:'What does "Confirmed" mean on an itinerary stop?', body:'A green left edge and a green badge mean payment cleared and the host has been notified. A dashed border means it\u2019s a "fluid" stop — you\u2019ve added it to your day but haven\u2019t booked yet.' },
      { title:'How many itineraries can I have?', body:'Free plan: 5 active trips. Pro plan (₹299/mo): 50 trips, plus offline maps, GPX export, and priority host messages. You can switch between trips from the Explore → Itinerary tab.' },
      { title:'How do curated itineraries differ from my own?', body:'Curated itineraries are packaged trips by local creators — fixed dates, fixed price, includes guide + stays + permits. You can Book them as a package, Follow the creator for updates, or Copy to a new editable itinerary of your own.' },
      { title:'What payment methods do you accept?', body:'UPI, all major debit and credit cards, net banking from 50+ banks, and digital wallets (Paytm, PhonePe, GPay). All payments are processed by Razorpay; HimLocal never sees your card details.' },
      { title:'How are cafés different from restaurants in the app?', body:'Cafés are HimLocal-managed restaurants that accept dine-in, takeaway, or delivery. Each has a menu in the app, with quick-add for items without variants and a customize modal for items with options. Delivery is enforced server-side — the café will only accept your order if you\u2019re inside its delivery radius.' },
      { title:'What\u2019s the difference between Shop local and Shop gear?', body:'Shop local is now: yak-wool blankets, ghee from Mud, apricots from Kalpa, copper kettles from Tabo. Shop gear (coming late 2026) will be the kit shop: tents, base layers, crampons — a separate experience focused on outdoor equipment.' },
      { title:'Can I cancel an activity booking?', body:'Yes — up to 24 hours before the slot, for a full refund. Within 24 hours, you can transfer to a different slot subject to availability, but not refund. Activities are weather-dependent; if the operator cancels (e.g. paragliding wind cut-off), you always get a full refund or a free reschedule.' },
      { title:'How do I become a host?', body:'Visit Become-a-host from the footer. We\u2019ll review your property/route/activity within 5 working days. Hosts get 95% of the listing price (5% platform fee). Onboarding includes a phone call, identity verification, and a property visit by a regional manager.' },
      { title:'Is the map data accurate?', body:'Yes — we use OpenStreetMap with a custom Himachal tile layer (PMTiles via maplibre). Altitudes and coordinates are from our own field surveys. If you spot something wrong, the "Report" link on every POI tells our content team.' },
    ],
  },

  about: {
    type: 'rich',
    title: <>An editorial <em>field guide</em> for the Himalayas.</>,
    lede: 'HimLocal exists because the best knowledge of the mountains lives with the people who walk them — not with corporate booking engines or travel-Instagram filters.',
    updatedAt: '10 May 2026',
    sections: [
      { title:<>Who we <em>are</em></>,
        body:<><p>HimLocal is a small studio of designers, hosts, and trail runners based between Manali, Kalpa, and Bengaluru. We make a hybrid Himalayan SaaS platform that helps travellers discover routes and homestays, book with local operators, purchase authentic regional retail, and chart trails — all rooted in real on-the-ground knowledge.</p><p>We are not OTAs. We don\u2019t aggregate listings from third-party suppliers. Every property, every café, every activity on HimLocal is independently verified by our regional managers.</p></> },
      { title:<>What we <em>believe</em></>,
        body:<><blockquote>"The path is the destination."</blockquote><p>Travel that\u2019s slower, more specific, more rooted in the place. We\u2019d rather you spend three days in Spiti than two weeks crossing five "must-see" valleys. We\u2019d rather you buy a yak-wool blanket from the weaver who made it than a generic one from a tourist market.</p></> },
      { title:<>How we <em>work</em></>,
        body:<ul><li><strong>95% of every payment</strong> goes to the host. Our platform fee is 5%.</li><li><strong>No fake reviews.</strong> Every review is tied to a confirmed booking.</li><li><strong>No hidden fees.</strong> The price you see is the price you pay (taxes shown separately, never bundled in).</li><li><strong>Transparent cancellation.</strong> Same policy whether you\u2019re booking a ₹2,000 day-pass or a ₹50,000 expedition.</li></ul> },
      { title:<>Team &amp; <em>founders</em></>,
        body:<p>HimLocal was founded by Sourabh Thakur (Kalpa) and a small team that includes mountaineers, designers, and ex-engineers from Razorpay and Zomato. The company is bootstrapped and proudly independent — no VC money, no growth-at-all-costs mandate.</p> },
    ],
  },

  terms: {
    type: 'rich',
    title: <>Terms of <em>service.</em></>,
    lede: 'These terms govern your use of HimLocal. By creating an account or making a booking, you agree to them.',
    updatedAt: '01 Apr 2026',
    sections: [
      { title:'1. Account',           body:'You must be 18 or older to book. You\u2019re responsible for keeping your password secure. We may suspend your account if we detect fraudulent activity.' },
      { title:'2. Bookings & payment', body:'Confirmation requires payment in full at booking time. Refunds follow the cancellation policy on each listing. Disputes are resolved through Razorpay\u2019s standard chargeback procedure.' },
      { title:'3. Host obligations',   body:'Hosts must accurately represent their property/activity, honour confirmed bookings, and meet HimLocal\u2019s quality standards.' },
      { title:'4. Liability',          body:'HimLocal acts as a marketplace between guests and hosts. We are not liable for personal injury or property damage during your stay. We strongly recommend travel insurance, especially for high-altitude activities.' },
      { title:'5. Intellectual property', body:'All editorial content (photographs, route descriptions, curated itineraries) is owned by HimLocal or licensed from the creator. Personal use is welcome; commercial reuse requires written permission.' },
      { title:'6. Changes to these terms', body:'We may update these terms; significant changes will be notified by email. Continued use after notice constitutes acceptance.' },
      { title:'7. Governing law',      body:'These terms are governed by the laws of India. Disputes are subject to the exclusive jurisdiction of the courts of Bengaluru.' },
    ],
  },

  privacy: {
    type: 'rich',
    title: <>Privacy <em>policy.</em></>,
    lede: 'What we collect, why, and how we keep it safe.',
    updatedAt: '01 Apr 2026',
    sections: [
      { title:'What we collect', body:'Account info (name, email, phone), booking history, location coordinates when you opt in to "Nearby mode" or location-aware search, payment metadata (tokenised — we never store card numbers).' },
      { title:'How we use it',    body:'To process bookings and orders, to send transactional notifications, to recommend relevant routes and products, and to improve the platform. We do not sell data to third parties.' },
      { title:'Sharing',          body:'Booking details are shared with the host you book with (their name appears in your account; your name appears in theirs). Payment data is shared with Razorpay. Map analytics are shared with our PMTiles host (anonymised).' },
      { title:'Your rights',      body:'You can export your data and delete your account at any time from Account → Personal. Deleted data is permanently removed within 30 days, except where retention is required by law (e.g. invoicing for 7 years).' },
      { title:'Cookies',          body:'We use first-party cookies for session management and trip-context persistence. We do not use third-party advertising cookies.' },
    ],
  },

  cancellation: {
    type: 'rich',
    title: <>Cancellation <em>policy.</em></>,
    lede: 'Flexible, but predictable. The same policy applies whether you\u2019re cancelling a ₹2,000 day-pass or a ₹50,000 expedition.',
    updatedAt: '01 Apr 2026',
    sections: [
      { title:'Stays', body:<ul><li><strong>14+ days before check-in:</strong> 100% refund (excluding payment-processing fee of ₹50).</li><li><strong>7—13 days before:</strong> 50% refund.</li><li><strong>Less than 7 days:</strong> No refund, but the dates can be moved to within 90 days subject to host availability.</li></ul> },
      { title:'Activities', body:<ul><li><strong>24+ hours before:</strong> 100% refund.</li><li><strong>Less than 24 hours:</strong> No refund, but slot can be moved subject to availability.</li><li><strong>Operator cancellation</strong> (e.g. weather): always 100% refund or free reschedule.</li></ul> },
      { title:'Shop orders',     body:'You can cancel any order before it ships (typically within 48 hours of placing) for a full refund. Once shipped, returns follow the 7-day return policy on each listing.' },
      { title:'Café orders',     body:'You can cancel a café order up until the kitchen accepts it (usually within 60 seconds). Once accepted, no cancellation — but if the café fails to deliver within the promised window, you get a 100% refund automatically.' },
      { title:'How to cancel',   body:'Go to Account → Stays / Orders / Activities → tap the booking → Cancel · refund. Refunds appear in 3—5 working days.' },
    ],
  },

  help: {
    type: 'faq',
    title: <>Help <em>centre.</em></>,
    lede: 'Common how-tos. If you don\u2019t find your answer, the chat widget bottom-right reaches a human in under 5 minutes during India business hours.',
    updatedAt: '15 May 2026',
    sections: [
      { title:'How do I change my trip dates?', body:'Open the itinerary → tap "Edit dates" (📅 icon). Confirmed stays inside the trip are preserved; you may need to re-confirm dates with the host if they shift.' },
      { title:'How do I add a place from the map to my itinerary?', body:'Tap any pin → tap "+ Itinerary" in the detail panel → pick which trip and which day. If you\u2019re already in the Itinerary tab, the picker skips itinerary selection and goes straight to day picker.' },
      { title:'I didn\u2019t get my booking confirmation email.', body:'Check your spam folder. If still nothing, open Account → Stays — if it appears here, the booking is confirmed; we\u2019ll re-send the email from the "⋯" menu. If it doesn\u2019t appear, the booking failed; check Account → Payment methods for any failed authorisation.' },
      { title:'My delivery is late.', body:'Open Account → Orders → tap the order → see the tracking timeline. If the courier hasn\u2019t moved in 48 hours, tap "Help with order" — that opens a ticket with the vendor directly.' },
      { title:'How do I become a Pro user?', body:'Account → Account tab → look for the Pro plan promo. ₹299/mo, cancel anytime, instant access to 50 itineraries and offline maps.' },
      { title:'How do I message my host?', body:'Notifications inbox → tap the host\u2019s message thread to reply. New conversations can be started from Stays → tap a booking → "Message host".' },
      { title:'How do I report a problem with a listing?', body:'On any POI / café / activity detail page, scroll to the bottom and tap "Report a problem". Our content team reviews within 48 hours.' },
    ],
  },

  contact: {
    type: 'rich',
    title: <>Talk to <em>us.</em></>,
    lede: 'Human support, in your language, in normal working hours. Weekend on-call for safety issues only.',
    updatedAt: '15 May 2026',
    sections: [
      { title:'Phone & WhatsApp', body:<p><strong>+91 98765 43210</strong> · Mon — Sat, 9 am — 8 pm IST.<br/>WhatsApp same number; replies typically within 15 minutes during business hours.</p> },
      { title:'Email',            body:<p><strong>hello@himlocal.com</strong> for general questions.<br/><strong>safety@himlocal.com</strong> for safety incidents (24×7 monitored).<br/><strong>press@himlocal.com</strong> for press &amp; partnership.</p> },
      { title:'Office address',   body:<p>HimLocal Field Studios Pvt. Ltd.<br/>3rd floor, Block B, HSR Layout<br/>Bengaluru — 560102, Karnataka, India<br/>CIN: U72500KA2024PTC123456</p> },
      { title:'Field office',     body:<p>Old Manali Bazaar (above Drifters Inn)<br/>Manali — 175131, Himachal Pradesh<br/>Open Apr — Oct; closed during winter.</p> },
    ],
  },

  'become-a-host': {
    type: 'rich',
    title: <>Become a <em>host.</em></>,
    lede: 'List your homestay, your café, your trekking outfit. We take 5%; you keep 95%.',
    updatedAt: '01 May 2026',
    sections: [
      { title:'Who hosts',            body:<p>Homestay owners, café kitchens, certified mountain guides, paragliding pilots, rafting operators, artisans and food producers. We verify every host with a phone call and (for properties) a regional manager visit.</p> },
      { title:'What we expect',       body:<ul><li>Honest descriptions and accurate photos.</li><li>Responsive messaging (we encourage &lt; 24 h replies).</li><li>Honour confirmed bookings.</li><li>Maintain hygiene, safety, and quality standards on every visit.</li></ul> },
      { title:'How payouts work',     body:<p>You receive 95% of the listing price. We deduct 5% as platform fee. Payouts land in your bank account 24 hours after guest check-in (stays) or order delivery (shop / café). Razorpay handles the transfer; KYC is required.</p> },
      { title:'Onboarding',           body:<p>1. <strong>Apply</strong> using the button below — takes 5 minutes.<br/>2. <strong>Phone call</strong> with a regional manager — typically within 2 working days.<br/>3. <strong>Identity verification</strong> (Aadhaar OTP).<br/>4. <strong>Property visit</strong> (for stays and cafés only).<br/>5. <strong>Go live</strong> — usually within 5 working days of application.</p> },
      { title:'Tools we give you',    body:<ul><li>Host dashboard (web + mobile) with calendar, bookings, messages, payouts.</li><li>Free professional photography on the first listing.</li><li>SEO-optimised property page that ranks on Google &amp; Bing.</li><li>Monthly insights — bookings, occupancy, search impressions.</li></ul> },
    ],
  },
};
