// Insights.jsx — editorial posts, one per Instagram video tour (Nov 2026).
//
// Each post mirrors one of Elle's reels and uses ONLY the facts from that
// reel's own caption. Building names stay hidden on purpose (same as the
// reels): readers DM the keyword for the address, plans and pricing.
//
// HOW TO ADD A POST
//   1. Save the reel cover to /assets/insights/<reel id>.jpg
//   2. Add an entry to POSTS below (newest posts can go anywhere — the index
//      sorts by date). `featured: true` puts it in the top lead layout
//      (keep it to three).
//   3. Run node scripts/gen-pages.js and node scripts/gen-sitemap.js.
//
// Text keys: en, ko, ja and zh are all written (ja/zh added Nov 23, 2026).
// The DM keyword stays en/ko — ja and zh readers see the English keyword.

const INSIGHTS_IG_URL = 'https://www.instagram.com/milim.elle';

const INSIGHT_AREAS = [
  { id: 'village', en: 'Village · Union Square', ko: '빌리지 · 유니언 스퀘어', ja: 'ヴィレッジ · ユニオンスクエア', zh: '格林威治村 · 联合广场' },
  { id: 'gramercy', en: 'Gramercy', ko: '그래머시', ja: 'グラマシー', zh: '格拉梅西' },
  { id: 'ues', en: 'Upper East Side', ko: '어퍼이스트사이드', ja: 'アッパーイーストサイド', zh: '上东区' },
  { id: 'uws', en: 'Upper West Side', ko: '어퍼웨스트사이드', ja: 'アッパーウエストサイド', zh: '上西区' },
  { id: 'billionaires-row', en: 'Billionaires’ Row', ko: '빌리어네어스 로우', ja: 'ビリオネアズ・ロウ', zh: '亿万富翁街' },
  { id: 'midtown', en: 'Midtown', ko: '미드타운', ja: 'ミッドタウン', zh: '中城' },
  { id: 'nomad', en: 'Flatiron · NoMad', ko: '플랫아이언 · 노매드', ja: 'フラットアイアン · ノマド', zh: '熨斗区 · NoMad' },
];

const POSTS = [
  {
    id: 'washington-square-nyu-one-bedroom',
    date: '2026-10-31',
    area: 'village',
    featured: true,
    reel: 'https://www.instagram.com/reel/DfKBbfeRSrJ/',
    cover: '/assets/insights/DfKBbfeRSrJ.jpg',
    keyword: { en: 'GREENWICH', ko: '그리니치' },
    title: {
      en: 'Starting at NYU next year? A one-bedroom by Washington Square',
      ko: '내년 NYU 입학 예정이세요? 워싱턴 스퀘어 옆 원베드',
      ja: "来年NYUに入学予定ですか？ワシントン・スクエアそばの1ベッドルーム",
      zh: "明年入读 NYU？华盛顿广场旁的一卧公寓",
    },
    summary: {
      en: 'A newly renovated condominium in the Washington Square and NYU neighborhood — live in it while studying, and consider renting it out after graduation.',
      ko: '워싱턴 스퀘어와 NYU 생활권의 새단장한 콘도입니다. 재학 중에는 직접 살고, 졸업 후에는 임대로 활용하는 방법까지 함께 검토해 볼 수 있습니다.',
      ja: "ワシントン・スクエアとNYUの生活圏にある、リノベーションしたばかりのコンドミニアム。在学中は住まいとして、卒業後は賃貸に出すことも検討できます。",
      zh: "位于华盛顿广场与 NYU 生活圈、刚完成翻新的公寓。读书期间自住，毕业后也可以考虑出租。",
    },
    body: {
      en: [
        'The one-bedrooms have windowed kitchens and a washer and dryer inside the home — two things that make daily life much easier in Manhattan.',
        'For families preparing for an NYU start, it is worth looking at together: a place to live during school, and an asset to rent out afterward.',
      ],
      ko: [
        '원베드 세대에는 창이 있는 주방과 집 안 세탁기·건조기가 있어, 맨해튼에서의 일상이 훨씬 편해집니다.',
        '입학을 준비하는 가족이라면 함께 살펴보시길 권해 드립니다. 재학 중에는 내 집으로, 졸업 후에는 임대 자산으로 활용할 수 있습니다.',
      ],
      ja: ["1ベッドルームには窓のあるキッチンと住戸内の洗濯機・乾燥機があり、マンハッタンでの毎日がぐっと楽になります。", "NYU入学を控えたご家族には、ぜひ一緒に見ていただきたい物件です。在学中は住まいに、卒業後は賃貸に出せる資産になります。"],
      zh: ["一卧户型配有带窗厨房和户内洗衣机、烘干机——这两点让曼哈顿的日常生活轻松许多。", "正在准备入读 NYU 的家庭不妨一起看看：在校期间是住所，毕业后可作为出租资产。"],
    },
    factsLabel: { en: 'One-bedroom', ko: '원베드 기준', ja: "1ベッドルーム", zh: "一卧" },
    facts: {
      en: ['From $1.895M', 'About 713 sq ft on average', 'Windowed kitchen', 'Washer and dryer in the home'],
      ko: ['$1.895M부터', '평균 약 713 SF', '창이 있는 주방', '집 안 세탁기·건조기'],
      ja: ["$1.895Mから", "平均約713 sq ft", "窓のあるキッチン", "住戸内に洗濯機・乾燥機"],
      zh: ["$1.895M 起", "平均约 713 平方英尺", "带窗厨房", "户内洗衣机与烘干机"],
    },
  },
  {
    id: 'union-square-34-residence-new-condo',
    date: '2026-11-09',
    area: 'village',
    featured: true,
    reel: 'https://www.instagram.com/reel/DfhvgN4xF4E/',
    cover: '/assets/insights/DfhvgN4xF4E.jpg',
    keyword: { en: 'UNION SQUARE', ko: '유니언 스퀘어' },
    title: {
      en: 'Only 34 residences, five minutes from Union Square',
      ko: '유니언 스퀘어까지 도보 5분, 단 34세대 신축',
      ja: "ユニオンスクエアまで徒歩5分、わずか34戸の新築",
      zh: "距联合广场步行五分钟，仅 34 户的新建公寓",
    },
    summary: {
      en: 'A boutique new development near Washington Square, The New School, Parsons and NYU.',
      ko: '워싱턴 스퀘어, 뉴스쿨, 파슨스, NYU 생활권의 부티크 신축 콘도입니다.',
      ja: "ワシントン・スクエア、ニュースクール、パーソンズ、NYUの生活圏にあるブティック型の新築コンドミニアム。",
      zh: "华盛顿广场、新学院（The New School）、帕森斯与 NYU 生活圈内的精品新建公寓。",
    },
    body: {
      en: [
        'With just 34 homes, the building keeps the quiet scale of the neighborhood, while Union Square is about a five-minute walk away.',
        'The building is still under construction, and contracts are already being signed.',
      ],
      ko: [
        '단 34세대 규모라 동네 특유의 조용한 분위기를 그대로 지니면서도, 유니언 스퀘어까지는 걸어서 5분 정도입니다.',
        '아직 공사 중이지만 계약은 이미 진행되고 있습니다.',
      ],
      ja: ["わずか34戸という規模で周辺の落ち着いた街並みになじみつつ、ユニオンスクエアへは徒歩約5分です。", "建物はまだ工事中ですが、すでに契約が進んでいます。"],
      zh: ["全楼仅 34 户，保留了街区安静的尺度，步行约五分钟即达联合广场。", "大楼仍在施工中，已有买家签约。"],
    },
    factsLabel: { en: 'At a glance', ko: '한눈에 보기', ja: "概要", zh: "概览" },
    facts: {
      en: ['34 residences', 'About 5 minutes on foot to Union Square', 'Near The New School, Parsons and NYU', 'Contracts underway during construction'],
      ko: ['총 34세대', '유니언 스퀘어 도보 약 5분', '뉴스쿨 · 파슨스 · NYU 생활권', '공사 중 계약 진행'],
      ja: ["34戸", "ユニオンスクエアまで徒歩約5分", "ニュースクール・パーソンズ・NYUの近く", "工事中から契約が進行中"],
      zh: ["34 户", "步行约 5 分钟到联合广场", "邻近新学院、帕森斯与 NYU", "施工期间已在签约"],
    },
  },
  {
    id: 'nomad-first-home-private-outdoor-space',
    date: '2026-11-18',
    area: 'nomad',
    featured: true,
    reel: 'https://www.instagram.com/reel/Df3QqrePJv2/',
    cover: '/assets/insights/Df3QqrePJv2.jpg',
    keyword: { en: 'NOMAD', ko: 'NoMad' },
    title: {
      en: 'A first Manhattan home in NoMad, with outdoor space in every residence',
      ko: '맨해튼 첫 내 집, 전 세대 야외 공간이 있는 노매드 신축',
      ja: "ノマドで初めてのマンハッタンの住まいを。全戸に屋外スペース付き",
      zh: "在 NoMad 买下第一套曼哈顿住宅，每户都有户外空间",
    },
    summary: {
      en: 'A NoMad new development expected to complete in 2027, with one-bedrooms from $1.25M.',
      ko: '2027년 준공 예정인 노매드 신축 콘도로, 원베드가 125만 달러부터 시작합니다.',
      ja: "2027年竣工予定のノマドの新築コンドミニアム。1ベッドルームは$1.25Mから。",
      zh: "NoMad 新建公寓，预计 2027 年竣工，一卧 $1.25M 起。",
    },
    body: {
      en: [
        'Penn Station and Herald Square are within walking distance, and Times Square and Koreatown are close by, so both the commute and everyday errands are easy.',
        'Every residence has its own private outdoor space. Layouts range from a one-bedroom with home office to two-bedrooms.',
      ],
      ko: [
        '펜 스테이션과 헤럴드 스퀘어까지 걸어서 갈 수 있고, 타임스 스퀘어와 K타운도 가까워 출퇴근과 일상 모두 편리한 위치입니다.',
        '모든 세대에 전용 야외 공간이 있으며, 평면은 원베드+서재부터 투베드까지 있습니다.',
      ],
      ja: ["ペン駅とヘラルド・スクエアは徒歩圏、タイムズスクエアやコリアタウンも近く、通勤も日々の用事もスムーズです。", "全戸に専用の屋外スペースがあります。間取りはホームオフィス付き1ベッドルームから2ベッドルームまで。"],
      zh: ["步行可达宾州车站与先驱广场，时代广场和韩国城也近在咫尺，通勤与日常采买都很方便。", "每户都有私人户外空间。户型从带家庭办公室的一卧到两卧。"],
    },
    factsLabel: { en: 'At a glance', ko: '한눈에 보기', ja: "概要", zh: "概览" },
    facts: {
      en: ['Completion expected 2027', 'One-bedrooms from $1.25M', 'Private outdoor space in every residence', '1 bed + home office to 2 beds'],
      ko: ['2027년 준공 예정', '원베드 125만 달러부터', '전 세대 전용 야외 공간', '원베드+서재 ~ 투베드'],
      ja: ["2027年竣工予定", "1ベッドルームは$1.25Mから", "全戸に専用屋外スペース", "1ベッド＋ホームオフィス〜2ベッド"],
      zh: ["预计 2027 年竣工", "一卧 $1.25M 起", "每户均有私人户外空间", "一卧＋家庭办公室至两卧"],
    },
  },
  {
    id: 'gramercy-penthouse-sale-vs-rent',
    date: '2026-10-25',
    area: 'gramercy',
    reel: 'https://www.instagram.com/reel/De8BlLPNwr4/',
    cover: '/assets/insights/De8BlLPNwr4.jpg',
    keyword: { en: 'GRAMERCY', ko: '그래머시' },
    title: {
      en: 'A Gramercy penthouse: the price, next to nearby rents',
      ko: '그래머시 펜트하우스, 매매가와 주변 월세를 함께 보면',
      ja: "グラマシーのペントハウス：価格と周辺の家賃を比べて",
      zh: "格拉梅西顶层公寓：售价与周边租金对比",
    },
    summary: {
      en: 'A penthouse with a private rooftop and outdoor kitchen, compared with what similar new-build three-bedrooms rent for nearby.',
      ko: '전용 루프탑과 야외 주방이 있는 펜트하우스를, 주변 신축 쓰리베드 월세와 나란히 비교해 봤습니다.',
      ja: "専用ルーフトップとアウトドアキッチンを備えたペントハウスを、周辺の新築3ベッドルームの家賃と比べました。",
      zh: "带私人屋顶与户外厨房的顶层公寓，对比周边同类新建三卧的租金。",
    },
    body: {
      en: [
        'The penthouse has three bedrooms, three and a half baths, a private rooftop and an outdoor kitchen.',
        'For context, comparable new-build three-bedroom rentals nearby range from about $16,000 to $29,000 a month. These figures are based on nearby comparable listings.',
      ],
      ko: [
        '방 3개, 욕실 3.5개에 전용 루프탑과 야외 주방을 갖춘 펜트하우스입니다.',
        '참고로 인근 신축 쓰리베드의 월세는 약 1만 6천~2만 9천 달러 수준입니다. 주변 비교 매물을 기준으로 한 수치입니다.',
      ],
      ja: ["ペントハウスは3ベッドルーム・3.5バス、専用ルーフトップとアウトドアキッチン付きです。", "参考までに、周辺の同等の新築3ベッドルームの家賃は月約$16,000〜$29,000です。これらの数字は周辺の比較物件に基づいています。"],
      zh: ["这套顶层公寓为三卧、三个半卫浴，带私人屋顶和户外厨房。", "作为参考，周边同类新建三卧的月租约为 $16,000 至 $29,000。以上数字基于周边可比房源。"],
    },
    factsLabel: { en: 'Penthouse', ko: '펜트하우스 기준', ja: "ペントハウス", zh: "顶层公寓" },
    facts: {
      en: ['Listed at $4,375,000', '3 beds · 3.5 baths', 'Common charges + taxes: $5,648 / month', 'Nearby 3-bed rents: $16,000–$29,000 / month'],
      ko: ['매매가 437만 5천 달러', '방 3개 · 욕실 3.5개', '월 관리비·재산세 5,648달러', '인근 신축 쓰리베드 월세 1만 6천~2만 9천 달러'],
      ja: ["販売価格 $4,375,000", "3ベッド・3.5バス", "管理費＋税：月$5,648", "周辺の3ベッド家賃：月$16,000〜$29,000"],
      zh: ["挂牌价 $4,375,000", "3 卧 · 3.5 卫", "物业费＋税：每月 $5,648", "周边三卧月租：$16,000–$29,000"],
    },
  },
  {
    id: 'upper-east-side-condop-one-bedroom',
    date: '2026-10-17',
    area: 'ues',
    reel: 'https://www.instagram.com/reel/DenJafXJ6D6/',
    cover: '/assets/insights/DenJafXJ6D6.jpg',
    keyword: { en: 'CONDOP', ko: 'Condop' },
    title: {
      en: 'A fully renovated Upper East Side condop, with open views',
      ko: '풀 리노베이션한 어퍼이스트사이드 콘답, 탁 트인 전망',
      ja: "フルリノベーションしたアッパーイーストサイドのコンドップ、開けた眺望",
      zh: "全面翻新的上东区 Condop，视野开阔",
    },
    summary: {
      en: 'The land is on a long-term ground lease of about 100 years; the apartment itself is yours to buy.',
      ko: '땅은 약 100년 장기 임대, 집은 매입하는 구조의 콘답입니다.',
      ja: "土地は約100年の長期借地。住戸そのものを購入できます。",
      zh: "土地为约 100 年的长期地租，公寓本身可以购买。",
    },
    body: {
      en: [
        'Unlike a typical co-op, the board cannot reject buyers or tenants at its discretion, which makes buying — and later renting out — more predictable.',
        'It is a corner building, and height limits on part of the building next door mean many homes keep open views. The one-bedrooms work well whether you live in them or rent them out.',
      ],
      ko: [
        '일반 코압과 달리 보드가 매수인이나 세입자를 임의로 거절할 수 없어, 매입은 물론 이후 임대까지 훨씬 예측 가능합니다.',
        '코너 건물인 데다 옆 건물 일부에 높이 제한이 있어 오픈뷰 세대가 많습니다. 원베드는 직접 살기에도, 임대를 주기에도 좋습니다.',
      ],
      ja: ["一般的なコープと違い、理事会が裁量で購入者や入居者を拒否することはできないため、購入も、将来の賃貸も見通しが立てやすくなります。", "角地の建物で、隣接する建物の一部に高さ制限があるため、多くの住戸で開けた眺望が保たれます。1ベッドルームは自分で住んでも、賃貸に出しても使いやすい間取りです。"],
      zh: ["与一般合作公寓（co-op）不同，管理委员会不能随意拒绝买家或租客，因此购买及日后出租都更可预期。", "大楼位于街角，相邻建筑的部分区域有限高，许多住户得以保持开阔视野。一卧户型无论自住还是出租都很合适。"],
    },
    factsLabel: { en: 'At a glance', ko: '한눈에 보기', ja: "概要", zh: "概览" },
    facts: {
      en: ['Ground lease of about 100 years', 'Fully renovated', 'No discretionary board rejection', 'Corner building, many open-view homes'],
      ko: ['토지 임대 약 100년', '풀 리노베이션', '보드의 임의 거절 없음', '코너 건물 · 오픈뷰 세대 다수'],
      ja: ["約100年の借地", "フルリノベーション済み", "理事会の裁量による拒否なし", "角地、開けた眺望の住戸が多数"],
      zh: ["约 100 年地租", "全面翻新", "管理委员会不得随意拒绝", "街角大楼，多户视野开阔"],
    },
  },
  {
    id: 'lincoln-square-studios-first-home',
    date: '2026-10-11',
    area: 'uws',
    reel: 'https://www.instagram.com/reel/DeWrvnERdXe/',
    cover: '/assets/insights/DeWrvnERdXe.jpg',
    keyword: { en: 'LINCOLN', ko: '링컨' },
    title: {
      en: 'No in-unit washer — yet Manhattan’s top-selling condo of 2025',
      ko: '세탁기 없는 맨해튼 콘도가 작년 판매 1위?',
      ja: "住戸内に洗濯機なし——それでも2025年にマンハッタンで最も売れたコンドミニアム",
      zh: "户内没有洗衣机——却是 2025 年曼哈顿最畅销的公寓",
    },
    summary: {
      en: 'Lincoln Square studios in the $800Ks, ready to move in.',
      ko: '링컨 스퀘어의 스튜디오, 80만 달러대에 바로 입주할 수 있습니다.',
      ja: "リンカーン・スクエアのスタジオが$80万台、すぐに入居可能。",
      zh: "林肯广场开间，价格在 80 多万美元，可即刻入住。",
    },
    body: {
      en: [
        'H Mart, Juilliard and Lincoln Center are all within walking distance, and there is no condo board approval process to go through.',
        'That makes it a good fit for a first home in New York, especially for students and young professionals.',
      ],
      ko: [
        'H마트, 줄리어드, 링컨센터까지 모두 걸어서 갈 수 있고, 콘도 보드 승인 절차도 없습니다.',
        '그래서 학생이나 사회초년생의 뉴욕 첫 내 집으로 잘 맞는 곳입니다.',
      ],
      ja: ["Hマート、ジュリアード、リンカーン・センターはすべて徒歩圏。コンドミニアム理事会の承認手続きもありません。", "ニューヨークで初めて住まいを買う方、特に学生や若い社会人の方に向いています。"],
      zh: ["H Mart、茱莉亚音乐学院和林肯中心都在步行范围内，也无需经过公寓管理委员会审批。", "非常适合在纽约购买第一套房，尤其是学生和年轻上班族。"],
    },
    factsLabel: { en: 'At a glance', ko: '한눈에 보기', ja: "概要", zh: "概览" },
    facts: {
      en: ['Studios in the $800Ks', 'Ready to move in', 'No condo board approval process', 'Walk to H Mart, Juilliard, Lincoln Center'],
      ko: ['스튜디오 80만 달러대', '바로 입주 가능', '콘도 보드 승인 절차 없음', 'H마트 · 줄리어드 · 링컨센터 도보권'],
      ja: ["スタジオは$80万台", "即入居可", "理事会の承認手続きなし", "Hマート・ジュリアード・リンカーン・センターへ徒歩圏"],
      zh: ["开间 80 多万美元", "可即刻入住", "无需管理委员会审批", "步行可达 H Mart、茱莉亚、林肯中心"],
    },
  },
  {
    id: 'upper-west-side-broadway-10-residence-new-development',
    date: '2026-09-09',
    area: 'uws',
    reel: 'https://www.instagram.com/reel/DdDtUGLtWMJ/',
    cover: '/assets/insights/DdDtUGLtWMJ.jpg',
    keyword: { en: 'UWS', ko: 'UWS' },
    title: {
      en: 'On Broadway at West 76th: a 13-story building with only 10 residences',
      ko: '어퍼웨스트 브로드웨이, 13층에 단 10세대 신축',
      ja: "ブロードウェイと西76丁目：13階建て、わずか10戸",
      zh: "百老汇与西 76 街：13 层，仅 10 户",
    },
    summary: {
      en: 'A boutique new development at the corner of Broadway and West 76th Street, expected to complete in August 2028.',
      ko: '브로드웨이와 76번가가 만나는 코너에 들어서는 부티크 신축으로, 2028년 8월 완공 예정입니다.',
      ja: "ブロードウェイと西76丁目の角に建つブティック型新築。2028年8月竣工予定。",
      zh: "位于百老汇与西 76 街街角的精品新建项目，预计 2028 年 8 月竣工。",
    },
    body: {
      en: [
        'A 1907 building on the corner has been demolished, and a 13-story boutique building is rising in its place: ten homes above ground-floor retail, likely one residence per floor at around 2,100 sq ft each. Design is by Z Architecture, with V.A.N. Construction as builder.',
        'Pricing has not been released, as the offering plan is not yet approved. For reference, a similar-sized home next door sold for about $8M in March 2026. The 72nd Street (1·2·3) and 79th Street (1) stations are close, and the American Museum of Natural History and Central Park are a walk away.',
      ],
      ko: [
        '1907년부터 이 코너를 지켜 온 건물이 철거되고, 그 자리에 13층 부티크 신축이 올라갑니다. 지상층 리테일 위로 주거는 단 10세대, 세대당 약 60평으로 한 층에 한 세대씩 배치될 가능성이 높습니다. 설계는 Z Architecture, 시공은 V.A.N. Construction이 맡았습니다.',
        '오퍼링 플랜 승인 전이라 분양가는 아직 공개되지 않았습니다. 참고로 바로 옆 비슷한 크기의 세대가 2026년 3월 약 $8M에 거래되었습니다. 72가(1·2·3)와 79가(1) 역이 가깝고, 자연사 박물관과 센트럴파크까지 걸어서 갈 수 있습니다.',
      ],
      ja: ["角地にあった1907年築の建物が解体され、13階建てのブティックビルが建設中です。1階は店舗、その上に10戸。1フロア1戸、各約2,100 sq ftになる見込みです。設計はZ Architecture、施工はV.A.N. Construction。", "オファリングプランが未承認のため、価格はまだ公表されていません。参考として、隣の建物の同程度の広さの住戸は2026年3月に約$8Mで売却されました。72丁目駅（1・2・3）と79丁目駅（1）が近く、アメリカ自然史博物館とセントラルパークへも歩いて行けます。"],
      zh: ["街角一栋 1907 年的旧楼已经拆除，原址正在兴建一栋 13 层精品大楼：底层为商铺，上方共 10 户，预计每层一户，每户约 2,100 平方英尺。设计为 Z Architecture，施工方为 V.A.N. Construction。", "由于发售计划尚未获批，价格尚未公布。作为参考，隔壁同等面积的住宅于 2026 年 3 月以约 $8M 售出。72 街站（1·2·3）与 79 街站（1）都很近，步行可达美国自然历史博物馆和中央公园。"],
    },
    factsLabel: { en: 'Per DOB filings and the developer', ko: '뉴욕시 빌딩국(DOB) 공시 · 시행사 안내 기준', ja: "DOB申請資料とデベロッパーによる", zh: "依据 DOB 申报文件与开发商" },
    facts: {
      en: ['13 stories · 10 residences', 'Ground-floor retail', 'About 2,100 sq ft per home', 'Completion expected August 2028'],
      ko: ['지상 13층 · 주거 10세대', '지상층 리테일', '세대당 약 60평', '2028년 8월 완공 예정'],
      ja: ["13階建て・10戸", "1階は店舗", "1戸あたり約2,100 sq ft", "2028年8月竣工予定"],
      zh: ["13 层 · 10 户", "底层商铺", "每户约 2,100 平方英尺", "预计 2028 年 8 月竣工"],
    },
  },
  {
    id: 'billionaires-row-terrace-one-bedroom',
    date: '2026-09-30',
    area: 'billionaires-row',
    reel: 'https://www.instagram.com/reel/Dd5ubolNkQ7/',
    cover: '/assets/insights/Dd5ubolNkQ7.jpg',
    keyword: { en: 'TERRACE', ko: '테라스' },
    title: {
      en: 'A terrace one-bedroom steps from Billionaires’ Row',
      ko: '빌리어네어스 로우 옆, 테라스가 있는 원베드',
      ja: "ビリオネアズ・ロウのすぐそば、テラス付き1ベッドルーム",
      zh: "紧邻亿万富翁街、带露台的一卧",
    },
    summary: {
      en: 'A new condominium beside Billionaires’ Row where the living room opens onto a private terrace — and the pricing is worth a close look.',
      ko: '빌리어네어스 로우 바로 옆, 거실에서 테라스로 이어지는 신축 콘도입니다. 입지에 비해 가격도 눈여겨볼 만합니다.',
      ja: "ビリオネアズ・ロウに隣接する新築コンドミニアム。リビングが専用テラスにつながり、価格もじっくり見る価値があります。",
      zh: "亿万富翁街旁的新建公寓，客厅直通私人露台——价格也值得细看。",
    },
    body: {
      en: [
        'Floor-to-ceiling windows bring in light all day, and the kitchen is finished in natural Taj Mahal quartzite. The living room opens straight onto the terrace, so the home feels larger than its floor plan.',
        'First move-ins are expected to begin in late 2026.',
      ],
      ko: [
        '통창으로 하루 종일 빛이 들어오고, 주방은 천연석 타지마할 쿼차이트로 마감했습니다. 거실에서 테라스로 바로 이어지는 구조라 평면보다 넓게 느껴집니다.',
        '첫 입주는 2026년 말로 예정되어 있습니다.',
      ],
      ja: ["床から天井までの窓から一日中光が入り、キッチンは天然のタージマハル・クォーツァイト仕上げ。リビングからそのままテラスに出られるので、図面以上に広く感じます。", "最初の入居は2026年後半に始まる予定です。"],
      zh: ["落地窗全天引入自然光，厨房采用天然泰姬玛哈石英岩。客厅直通露台，实际感受比平面图更宽敞。", "首批住户预计于 2026 年底入住。"],
    },
    factsLabel: { en: 'One-bedroom with terrace', ko: '테라스 포함 원베드 기준', ja: "テラス付き1ベッドルーム", zh: "带露台一卧" },
    facts: {
      en: ['Asking $1.93M', 'Terrace: 77 sq ft', 'Common charges + taxes: $2,543 / month', 'Move-ins expected late 2026'],
      ko: ['호가 $1.93M', '테라스 77 SF', '월 관리비·재산세 합계 $2,543', '2026년 말 입주 예정'],
      ja: ["販売価格 $1.93M", "テラス：77 sq ft", "管理費＋税：月$2,543", "入居開始 2026年後半予定"],
      zh: ["挂牌价 $1.93M", "露台：77 平方英尺", "物业费＋税：每月 $2,543", "预计 2026 年底入住"],
    },
  },
  {
    id: 'midtown-new-condo-from-975k',
    date: '2026-08-22',
    area: 'midtown',
    reel: 'https://www.instagram.com/reel/DcVrXzXRGer/',
    cover: '/assets/insights/DcVrXzXRGer.jpg',
    keyword: { en: 'MIDTOWN', ko: '미드타운' },
    title: {
      en: 'A new condo at the heart of Midtown, from $975,000',
      ko: '미드타운 한가운데 신축 콘도, $975,000부터',
      ja: "ミッドタウンの中心に建つ新築コンドミニアム、$975,000から",
      zh: "曼哈顿中城核心地段的新建公寓，$975,000 起",
    },
    summary: {
      en: 'The Empire State Building, Herald Square, Grand Central, Bryant Park and the Chrysler Building — all within walking distance.',
      ko: '엠파이어 스테이트 빌딩, 헤럴드 스퀘어, 그랜드 센트럴, 브라이언트 파크, 크라이슬러 빌딩까지 모두 걸어서 갈 수 있는 위치입니다.',
      ja: "エンパイア・ステート・ビル、ヘラルド・スクエア、グランド・セントラル、ブライアント・パーク、クライスラー・ビルがすべて徒歩圏。",
      zh: "帝国大厦、先驱广场、中央车站、布莱恩特公园与克莱斯勒大厦，全部步行可达。",
    },
    body: {
      en: [
        'It sits where Midtown’s landmarks and transit hubs meet, so most of daily life — the commute, errands, a walk through Bryant Park — happens on foot.',
      ],
      ko: [
        '미드타운의 랜드마크와 교통 중심지가 모인 곳이라, 출퇴근부터 장보기, 브라이언트 파크 산책까지 대부분 걸어서 해결됩니다.',
      ],
      ja: ["ミッドタウンのランドマークと交通の要所が交わる場所にあり、通勤も用事もブライアント・パークの散歩も、ほとんど歩いて済みます。"],
      zh: ["这里正处于中城地标与交通枢纽的交汇处，通勤、采买、到布莱恩特公园散步，日常大多步行即可。"],
    },
    factsLabel: { en: 'At a glance', ko: '한눈에 보기', ja: "概要", zh: "概览" },
    facts: {
      en: ['Completion expected 2027', 'Pricing from $975,000'],
      ko: ['2027년 완공 예정', '시작가 $975,000'],
      ja: ["2027年竣工予定", "$975,000から"],
      zh: ["预计 2027 年竣工", "$975,000 起"],
    },
  },
  {
    id: 'billionaires-row-loft-one-bedroom',
    date: '2026-10-05',
    area: 'billionaires-row',
    reel: 'https://www.instagram.com/reel/DeHIL6Xx4p7/',
    cover: '/assets/insights/DeHIL6Xx4p7.jpg',
    keyword: { en: 'LOFT', ko: 'LOFT' },
    title: {
      en: 'A penthouse-feel loft one-bedroom near Carnegie Hall',
      ko: '카네기홀 근처, 펜트하우스 같은 로프트 원베드',
      ja: "カーネギーホール近く、ペントハウスのようなロフト1ベッドルーム",
      zh: "卡内基音乐厅附近、如顶层公寓般的挑高一卧",
    },
    summary: {
      en: 'Ceilings of about 20 feet and a large bay window, in a 47-residence boutique condominium by Billionaires’ Row.',
      ko: '약 20피트 높이의 천장과 큰 베이 윈도. 빌리어네어스 로우 옆, 47세대 부티크 콘도의 로프트 원베드입니다.',
      ja: "天井高約20フィートと大きなベイウィンドウ。ビリオネアズ・ロウそばの47戸のブティック・コンドミニアム。",
      zh: "约 20 英尺层高与大型凸窗，位于亿万富翁街旁、共 47 户的精品公寓。",
    },
    body: {
      en: [
        'The double-height living room and bay window give this one-bedroom the openness of a penthouse. At 1,104 sq ft with one and a half baths, there is room both to live and to host.',
        'The building allows rentals of 30 days or longer, which gives owners flexibility if plans change.',
      ],
      ko: [
        '복층 높이의 거실과 베이 윈도 덕분에 원베드인데도 펜트하우스 같은 개방감이 있습니다. 1,104 SF에 욕실 1.5개로, 생활하기에도 손님을 맞기에도 여유롭습니다.',
        '30일 이상 주거용 임대가 가능해, 상황이 바뀌어도 활용하기 좋습니다.',
      ],
      ja: ["吹き抜けのリビングとベイウィンドウが、この1ベッドルームにペントハウスのような開放感をもたらします。1,104 sq ft、1.5バスで、暮らすにも人を招くにも十分な広さです。", "建物は30日以上の賃貸を認めているため、予定が変わってもオーナーは柔軟に対応できます。"],
      zh: ["挑高客厅与凸窗让这套一卧拥有顶层公寓般的开阔感。1,104 平方英尺、一个半卫浴，自住和待客都很从容。", "大楼允许 30 天及以上的出租，计划有变时业主也有弹性。"],
    },
    factsLabel: { en: 'Loft one-bedroom', ko: '로프트 원베드 기준', ja: "ロフト1ベッドルーム", zh: "挑高一卧" },
    facts: {
      en: ['From $2.595M', '1,104 sq ft · 1 bed / 1.5 baths', 'Common charges + est. taxes: $4,920 / month', 'Rentals of 30+ days permitted'],
      ko: ['$2.595M부터', '1,104 SF · 1베드 / 1.5바스', '월 관리비 + 예상 재산세 $4,920', '30일 이상 임대 가능'],
      ja: ["$2.595Mから", "1,104 sq ft · 1ベッド / 1.5バス", "管理費＋税（概算）：月$4,920", "30日以上の賃貸可"],
      zh: ["$2.595M 起", "1,104 平方英尺 · 1 卧 / 1.5 卫", "物业费＋预估税：每月 $4,920", "允许 30 天以上出租"],
    },
  },
  {
    id: 'midtown-chrysler-view-one-bedroom',
    date: '2026-09-27',
    area: 'midtown',
    reel: 'https://www.instagram.com/reel/Ddyh-LwRLbF/',
    cover: '/assets/insights/Ddyh-LwRLbF.jpg',
    keyword: { en: '1BED', ko: '1bed' },
    title: {
      en: 'A 1,038 sq ft one-bedroom with Chrysler Building views',
      ko: '크라이슬러 빌딩이 보이는 1,038 SF 원베드',
      ja: "クライスラー・ビルを望む1,038 sq ftの1ベッドルーム",
      zh: "坐拥克莱斯勒大厦景观的 1,038 平方英尺一卧",
    },
    summary: {
      en: 'A Midtown sponsor unit with Capri marble, a Gaggenau kitchen and a living room that frames the city.',
      ko: '도시를 거실에 담은 미드타운 스폰서 유닛. 카프리 대리석과 Gaggenau 키친을 갖췄습니다.',
      ja: "カプリ・マーブル、ガゲナウのキッチン、街を切り取るリビングを備えたミッドタウンのスポンサー住戸。",
      zh: "中城的开发商直售单位，配卡普里大理石、Gaggenau 厨房，客厅将城市景色尽收框中。",
    },
    body: {
      en: [
        'Capri marble, a Gaggenau kitchen, a primary bath with heated floors and a separate powder room give the one-and-a-half-bath layout real breathing room.',
        'The building has a pool, fitness center, Pilates studio, steam room and an all-season club terrace. Grand Central is within walking distance, and there is on-site parking with valet service; a private parking space can be purchased separately.',
      ],
      ko: [
        '카프리 대리석, Gaggenau 키친, 바닥 난방이 되는 메인 욕실에 별도 파우더룸까지 갖춰 1.5바스 구성의 여유가 느껴집니다.',
        '건물에는 수영장, 피트니스, 필라테스 스튜디오, 스팀룸, 사계절 이용할 수 있는 클럽 테라스가 있습니다. 그랜드 센트럴까지 걸어서 갈 수 있고, 건물 내 주차와 발렛 서비스가 있으며 개인 주차 공간은 별도로 구매하실 수 있습니다.',
      ],
      ja: ["カプリ・マーブル、ガゲナウのキッチン、床暖房付きの主寝室バスルーム、独立したパウダールームが、1.5バスの間取りに本当のゆとりを与えています。", "建物にはプール、フィットネスセンター、ピラティススタジオ、スチームルーム、通年使えるクラブテラスがあります。グランド・セントラルは徒歩圏で、館内にバレーサービス付きの駐車場があり、専用駐車スペースは別途購入できます。"],
      zh: ["卡普里大理石、Gaggenau 厨房、带地暖的主卫和独立化妆间，让一个半卫浴的格局真正宽松从容。", "大楼设有泳池、健身中心、普拉提工作室、蒸汽房和四季可用的会所露台。步行可达中央车站，楼内有代客泊车的停车场，私人车位可另行购买。"],
    },
    factsLabel: { en: 'At a glance', ko: '한눈에 보기', ja: "概要", zh: "概览" },
    facts: {
      en: ['1,038 sq ft · 1 bed / 1.5 baths', 'Sponsor unit', 'Pool, Pilates studio, steam room', 'On-site parking and valet'],
      ko: ['1,038 SF · 1베드 / 1.5바스', '스폰서 유닛', '수영장 · 필라테스 스튜디오 · 스팀룸', '건물 내 주차 · 발렛'],
      ja: ["1,038 sq ft · 1ベッド / 1.5バス", "スポンサー住戸", "プール、ピラティス、スチームルーム", "館内駐車場とバレーサービス"],
      zh: ["1,038 平方英尺 · 1 卧 / 1.5 卫", "开发商直售单位", "泳池、普拉提、蒸汽房", "楼内停车与代客泊车"],
    },
  },
  {
    id: 'nomad-landmark-condo-conversion',
    date: '2026-09-21',
    area: 'nomad',
    reel: 'https://www.instagram.com/reel/DdinecOxUCv/',
    cover: '/assets/insights/DdinecOxUCv.jpg',
    keyword: { en: 'NOMAD', ko: 'NoMad' },
    title: {
      en: 'A century-old NoMad landmark, reborn as condominiums',
      ko: '100년 역사의 노매드 랜드마크, 콘도로 다시 태어나다',
      ja: "築100年を超えるノマドのランドマークが、コンドミニアムに生まれ変わる",
      zh: "百年 NoMad 地标，重生为公寓",
    },
    summary: {
      en: 'Sixty-five residences from one to five bedrooms, with interiors by Paris Forino.',
      ko: '원베드부터 파이브베드까지 65세대, 인테리어는 Paris Forino가 맡았습니다.',
      ja: "1〜5ベッドルームの65戸。インテリアはParis Forino。",
      zh: "65 户，一至五卧，室内设计由 Paris Forino 操刀。",
    },
    body: {
      en: [
        'Kitchens pair Italian Arabescato Corchia marble with custom wood cabinetry and Gaggenau appliances. Primary baths have marble counters and a botanical-motif marble floor.',
        'Amenities include a lounge and co-working space, fitness, yoga and barre, a sauna, pet spa, kids’ room, music room and a golf simulator.',
      ],
      ko: [
        '주방은 이탈리아산 Arabescato Corchia 대리석 상판에 맞춤 원목 캐비닛과 Gaggenau 가전을 갖췄고, 메인 욕실에는 대리석 카운터와 식물 모티브의 대리석 바닥 패턴이 들어갑니다.',
        '편의시설로는 라운지와 코워킹 공간, 피트니스, 요가·바레 스튜디오, 사우나, 펫 스파, 키즈룸, 뮤직룸, 스크린 골프 등이 있습니다.',
      ],
      ja: ["キッチンはイタリア産アラベスカート・コルキア大理石に、特注の木製キャビネットとガゲナウの家電。主寝室のバスルームは大理石のカウンターと、植物モチーフの大理石の床。", "アメニティはラウンジとコワーキング、フィットネス、ヨガとバーレッスン、サウナ、ペットスパ、キッズルーム、ミュージックルーム、ゴルフシミュレーター。"],
      zh: ["厨房以意大利 Arabescato Corchia 大理石搭配定制木橱柜与 Gaggenau 电器。主卫配有大理石台面与植物图案大理石地面。", "配套包括休息室与共享办公空间、健身、瑜伽与芭蕾塑形、桑拿、宠物水疗、儿童房、音乐室以及高尔夫模拟器。"],
    },
    factsLabel: { en: 'At a glance', ko: '한눈에 보기', ja: "概要", zh: "概览" },
    facts: {
      en: ['65 residences · 1–5 bedrooms', 'Interiors by Paris Forino', 'One-bedrooms from $1,525,000', 'One-bedrooms 802–900 sq ft'],
      ko: ['총 65세대 · 1~5베드', '인테리어 Paris Forino', '원베드 $1,525,000부터', '원베드 802~900 SF'],
      ja: ["65戸 · 1〜5ベッドルーム", "インテリア：Paris Forino", "1ベッドルームは$1,525,000から", "1ベッドルームは802〜900 sq ft"],
      zh: ["65 户 · 1–5 卧", "室内设计：Paris Forino", "一卧 $1,525,000 起", "一卧 802–900 平方英尺"],
    },
  },
  {
    id: 'midtown-31-residence-boutique-condo',
    date: '2026-09-12',
    area: 'midtown',
    reel: 'https://www.instagram.com/reel/DdMqqU5Oa3o/',
    cover: '/assets/insights/DdMqqU5Oa3o.jpg',
    keyword: { en: 'LEX', ko: 'Lex' },
    title: {
      en: 'Only 31 residences: a boutique new condo in Midtown',
      ko: '단 31세대, 미드타운의 부티크 신축 콘도',
      ja: "わずか31戸、ミッドタウンのブティック型新築コンドミニアム",
      zh: "仅 31 户：中城的精品新建公寓",
    },
    summary: {
      en: 'A 20-story building with no more than three homes per floor — a kind of privacy larger towers rarely offer.',
      ko: '한 층에 최대 세 가구만 사는 20층 건물. 대형 타워에서는 누리기 어려운 프라이버시가 있습니다.',
      ja: "20階建て、1フロア最大3戸。大規模タワーではなかなか得られないプライバシーです。",
      zh: "20 层，每层最多三户——这是大型塔楼难以提供的私密感。",
    },
    body: {
      en: [
        'As of September 2026, the building was close to 80% sold within six months of launch. JPMorgan Chase’s headquarters and Bloomberg are within walking distance, interiors are by Paris Forino, and homes look out to the Chrysler Building.',
        'Residents have a 24-hour doorman, a spa with sauna and cold plunge, and a private loggia lounge on the 11th floor.',
      ],
      ko: [
        '2026년 9월 기준, 분양 6개월 만에 80% 가까이 판매되었습니다. JP모건 본사와 블룸버그까지 걸어서 갈 수 있고, 인테리어는 Paris Forino가 맡았으며 크라이슬러 빌딩이 보입니다.',
        '24시간 도어맨, 사우나와 콜드 플런지를 갖춘 스파, 11층 입주민 전용 로지아 라운지가 있습니다.',
      ],
      ja: ["2026年9月時点で、販売開始から6か月で80%近くが売約済みとなっていました。JPモルガン・チェース本社やブルームバーグは徒歩圏、インテリアはParis Forino、住戸からはクライスラー・ビルを望みます。", "24時間ドアマン、サウナとコールドプランジのあるスパ、11階のプライベート・ロッジア・ラウンジがあります。"],
      zh: ["截至 2026 年 9 月，开盘六个月内已售出近 80%。步行可达摩根大通总部与彭博社，室内设计由 Paris Forino 操刀，住户可眺望克莱斯勒大厦。", "住户享有 24 小时门卫、配备桑拿与冷水池的水疗中心，以及 11 楼的私人凉廊休息室。"],
    },
    factsLabel: { en: 'At a glance', ko: '한눈에 보기', ja: "概要", zh: "概览" },
    facts: {
      en: ['31 residences · 20 stories', 'Up to three homes per floor', 'One-bedrooms from $1.7M', 'Two-bedrooms from $2.5M'],
      ko: ['총 31세대 · 20층', '한 층 최대 세 가구', '원베드 $1.7M부터', '투베드 $2.5M부터'],
      ja: ["31戸 · 20階建て", "1フロア最大3戸", "1ベッドルームは$1.7Mから", "2ベッドルームは$2.5Mから"],
      zh: ["31 户 · 20 层", "每层最多三户", "一卧 $1.7M 起", "两卧 $2.5M 起"],
    },
  },
];

// Newest first everywhere.
POSTS.sort((a, b) => b.date.localeCompare(a.date));

const postText = (m, lang) => (m && (m[lang] || m.en)) || '';
const postDate = (iso, lang) => {
  const [y, m, d] = iso.split('-').map(Number);
  if (lang === 'ko') return `${y}년 ${m}월 ${d}일`;
  if (lang === 'ja') return `${y}年${m}月${d}日`;
  if (lang === 'zh') return `${y}年${m}月${d}日`;
  return new Date(Date.UTC(y, m - 1, d)).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric', timeZone: 'UTC' });
};
const areaLabel = (id, lang) => {
  const a = INSIGHT_AREAS.find((x) => x.id === id);
  return a ? (a[lang] || a.en) : '';
};

// Load Instagram's embed script once and process new blockquotes.
const useInsightEmbed = (key) => {
  React.useEffect(() => {
    if (!key) return;
    const process = () => window.instgrm && window.instgrm.Embeds && window.instgrm.Embeds.process();
    if (window.instgrm) { process(); return; }
    if (!document.getElementById('ig-embed-js')) {
      const s = document.createElement('script');
      s.id = 'ig-embed-js';
      s.async = true;
      s.src = 'https://www.instagram.com/embed.js';
      s.onload = process;
      document.body.appendChild(s);
    }
  }, [key]);
};

const PostKicker = ({ p, lang }) => (
  <p className="ms-post-kicker">
    <span className="ms-post-area">{areaLabel(p.area, lang)}</span>
    <time dateTime={p.date}>{postDate(p.date, lang)}</time>
  </p>
);

const PostCard = ({ p, lang, onOpen, size = 'sm', href }) => (
  <article className={'ms-post-card is-' + size}>
    <a className="ms-post-link" href={href} onClick={(e) => { if (e.metaKey || e.ctrlKey) return; e.preventDefault(); onOpen(p); }}>
      <div className="ms-post-img">
        <img src={p.cover} alt="" loading="lazy" />
      </div>
      <div className="ms-post-meta">
        <PostKicker p={p} lang={lang} />
        <h3 className="ms-post-title">{postText(p.title, lang)}</h3>
        {size !== 'side' && <p className="ms-post-summary">{postText(p.summary, lang)}</p>}
        <p className="ms-post-foot">{postText({ en: 'Video tour', ko: '영상 투어', ja: '動画ツアー', zh: '视频看房' }, lang)}</p>
      </div>
    </a>
  </article>
);

const Insights = ({ lang = 'en', onOpen, postHref }) => {
  const tr = (m) => m[lang] || m.en;
  const [area, setArea] = React.useState('all');
  const featured = POSTS.filter((p) => p.featured).slice(0, 3);
  const [lead, ...side] = featured;
  const rest = POSTS.filter((p) => !featured.includes(p));
  const list = area === 'all' ? rest : POSTS.filter((p) => p.area === area);
  const liveAreas = INSIGHT_AREAS.filter((a) => POSTS.some((p) => p.area === a.id));

  return (
    <section className="ms-insights" data-screen-label="Insights">
      <header className="ms-insights-head">
        <span className="ms-services-eyebrow">{tr({ en: 'Elle’s Insights', ko: '엘 리의 인사이트', ja: 'Elleのインサイト', zh: 'Elle 的洞察' })}</span>
        <h1 className="ms-insights-title">{tr({ en: 'Insights', ko: '인사이트', ja: 'インサイト', zh: '洞察' })}</h1>
        <p className="ms-insights-lede">
          {tr({
            en: 'New developments I’ve toured on camera — what stood out, and what it costs.',
            ko: '직접 영상으로 둘러본 뉴욕 신축 콘도를 정리했습니다. 눈여겨볼 점과 가격까지 함께 담았습니다.',
            ja: '動画で実際に内覧したニューヨークの新築コンドミニアムをまとめました。見どころと価格もあわせてご紹介します。',
            zh: '整理了我亲自视频看房的纽约新建公寓，包括值得关注的亮点和价格。',
          })}
        </p>
      </header>

      {area === 'all' && lead && (
        <div className="ms-insights-lead">
          <PostCard p={lead} lang={lang} onOpen={onOpen} size="lg" href={postHref(lead.id)} />
          <div className="ms-insights-side">
            {side.map((p) => <PostCard key={p.id} p={p} lang={lang} onOpen={onOpen} size="side" href={postHref(p.id)} />)}
          </div>
        </div>
      )}

      <div className="ms-insights-bar" role="tablist" aria-label={tr({ en: 'Posts by area', ko: '지역별 글', ja: 'エリア別の記事', zh: '按区域查看' })}>
        <button className={'chip-outline' + (area === 'all' ? ' active' : '')} onClick={() => setArea('all')}>
          {tr({ en: 'All', ko: '전체', ja: 'すべて', zh: '全部' })}
        </button>
        {liveAreas.map((a) => (
          <button key={a.id} className={'chip-outline' + (area === a.id ? ' active' : '')} onClick={() => setArea(a.id)}>
            {a[lang] || a.en}
          </button>
        ))}
      </div>

      <div className="ms-insights-grid">
        {list.map((p) => <PostCard key={p.id} p={p} lang={lang} onOpen={onOpen} href={postHref(p.id)} />)}
      </div>
    </section>
  );
};

const PostDetail = ({ p, lang = 'en', onBack, backHref, onOpen, postHref, onContact }) => {
  const tr = (m) => m[lang] || m.en;
  useInsightEmbed(p.id);
  const keyword = lang === 'ko' ? p.keyword.ko : p.keyword.en;
  const more = POSTS.filter((x) => x.id !== p.id).slice(0, 3);
  return (
    <article className="ms-post" data-screen-label="Insight">
      <a className="ms-post-back" href={backHref} onClick={(e) => { e.preventDefault(); onBack(); }}>
        ← {tr({ en: 'All insights', ko: '인사이트 전체', ja: 'インサイト一覧', zh: '全部文章' })}
      </a>
      <header className="ms-post-head">
        <PostKicker p={p} lang={lang} />
        <h1 className="ms-post-h1">{postText(p.title, lang)}</h1>
        <p className="ms-post-lede">{postText(p.summary, lang)}</p>
      </header>

      <div className="ms-post-layout">
        <div className="ms-post-video">
          <blockquote
            className="instagram-media"
            data-instgrm-permalink={p.reel}
            data-instgrm-version="14"
            style={{ margin: 0, width: '100%', minWidth: 0, maxWidth: '100%', border: 0 }}
          >
            <a href={p.reel} target="_blank" rel="noopener noreferrer">
              <img src={p.cover} alt="" />
              <span>{tr({ en: 'Watch on Instagram', ko: '인스타그램에서 보기', ja: 'Instagramで見る', zh: '在 Instagram 上观看' })}</span>
            </a>
          </blockquote>
        </div>

        <div className="ms-post-body">
          {postText(p.body, lang) && (p.body[lang] || p.body.en).map((para, i) => <p key={i}>{para}</p>)}

          <div className="ms-post-facts">
            <p className="ms-post-facts-label">{postText(p.factsLabel, lang)}</p>
            <ul>
              {(p.facts[lang] || p.facts.en).map((f) => <li key={f}>{f}</li>)}
            </ul>
          </div>

          <p className="ms-post-help">
            {tr({
              en: 'Tell me your budget and the layout you want, and I’ll send floor plans, current pricing and monthly costs side by side. Buying to rent out? I’ll add an estimated rent based on comparable rentals nearby.',
              ko: '원하시는 구조와 예산을 알려주시면 평면도와 현재 가격, 월 유지비를 비교해서 보내드립니다. 임대 목적이라면 주변 비슷한 매물의 렌트 시세로 예상 임대료도 함께 살펴드릴게요.',
              ja: 'ご希望の間取りとご予算をお知らせいただければ、間取り図・現在の価格・月々の維持費を比較してお送りします。賃貸運用をお考えの場合は、周辺の類似物件の家賃相場から想定賃料もお出しします。',
              zh: '告诉我您想要的户型和预算，我会把户型图、当前价格和每月费用对比后发给您。如果是出租投资，我也会根据周边同类房源的租金估算预期租金。',
            })}
          </p>

          <div className="ms-post-cta">
            <a className="btn btn-primary" href={INSIGHTS_IG_URL} target="_blank" rel="noopener noreferrer">
              {lang === 'ko' ? `인스타그램 DM ‘${keyword}’` : lang === 'ja' ? `Instagram DMで「${keyword}」` : lang === 'zh' ? `Instagram 私信「${keyword}」` : `DM “${keyword}” on Instagram`}
            </a>
            <button className="btn btn-ghost" onClick={onContact}>
              {tr({ en: 'Ask about this home', ko: '이 집 상담하기', ja: 'この物件について相談', zh: '咨询此房源' })}
            </button>
          </div>

          <p className="ms-post-note">
            {lang === 'ko'
              ? `가격과 잔여 세대는 ${postDate(p.date, lang)} 영상 게시 당시 기준이며, 변동될 수 있습니다. 문의 주시면 최신 정보로 다시 확인해 드립니다.`
              : lang === 'ja'
              ? `価格と販売状況は${postDate(p.date, lang)}の動画投稿時点のもので、変更されている場合があります。お問い合わせいただければ最新情報をお伝えします。`
              : lang === 'zh'
              ? `价格和在售情况以 ${postDate(p.date, lang)} 视频发布时为准，可能已有变动。欢迎咨询，我会为您确认最新信息。`
              : `Pricing and availability are as of the original video on ${postDate(p.date, 'en')} and may have changed. I’ll confirm the latest when you reach out.`}
          </p>
        </div>
      </div>

      {more.length > 0 && (
        <section className="ms-post-more">
          <h2 className="ms-post-more-h">{tr({ en: 'More insights', ko: '다른 글 보기', ja: 'ほかの記事', zh: '更多文章' })}</h2>
          <div className="ms-insights-grid">
            {more.map((x) => <PostCard key={x.id} p={x} lang={lang} onOpen={onOpen} href={postHref(x.id)} />)}
          </div>
        </section>
      )}
    </article>
  );
};

window.POSTS = POSTS;
window.Insights = Insights;
window.PostDetail = PostDetail;
