// Visas & Docs — hero + Chapter I (Passports) + Chapter II (Visas)

const VisasHero = () => (
  <section className="visas-hero">
    <div className="hero-bg" style={{ backgroundImage: `url(https://images.unsplash.com/photo-1569870499705-504209102861?w=2400&q=85)` }}></div>
    <div className="hero-scrim"></div>
    <div className="hero-coord">38°53'N · 77°02'W · IMMIGRATION DESK · STAMP NO. 2417</div>
    <div className="hero-credit">PHOTO — FIELD DESK Nº 091</div>
    <div className="container">
      <div className="visas-crumbs">
        <a href="/">Home</a>
        <span className="sep">/</span>
        <span className="here">Visas &amp; Docs</span>
      </div>
      <div className="visas-mast">
        <div className="lhs">
          <div className="kicker-row">
            <span className="layer-tag">THE PAPERWORK DESK · 5 CHAPTERS</span>
          </div>
          <h1>Visas<em>The paperwork that gets you in.</em></h1>
          <p className="lede">
            The passport is the book. The visa is the permission. The questions at the desk are short and specific — and the answers should be too. <em>Five chapters. Real timelines.</em> Cleared at the border.
          </p>
        </div>
        <div className="rhs">
          <div className="visas-stats">
            <div className="stat"><div className="n">5 <em>chapters</em></div><div className="l">Document lanes</div></div>
            <div className="stat"><div className="n">6 mo</div><div className="l">Validity past return</div></div>
            <div className="stat"><div className="n">90+</div><div className="l">E-visa countries</div></div>
            <div className="stat"><div className="n"><em>40</em></div><div className="l">Want onward proof</div></div>
          </div>
        </div>
      </div>
      <div className="visas-toc">
        <span className="toc-label">In this issue</span>
        <a href="#passports"><span className="num">I</span>Passports</a>
        <span className="sep">·</span>
        <a href="#visas"><span className="num">II</span>Visas</a>
        <span className="sep">·</span>
        <a href="#entry"><span className="num">III</span>Entry Requirements</a>
        <span className="sep">·</span>
        <a href="#stack"><span className="num">IV</span>The Document Stack</a>
        <span className="sep">·</span>
        <a href="#wrong"><span className="num">V</span>When It Goes Wrong</a>
        <span className="sep">·</span>
        <a href="#reading"><span className="num">VI</span>Reading & FAQ</a>
      </div>
    </div>
  </section>
);

const VisasChapterPanel = ({ lane, side = "left" }) => (
  <div className={`chapter-panel side-${side}`}>
    <div className="img" style={{ backgroundImage: `url(${lane.img})` }}></div>
    <div className="panel-body">
      <div className="chapter-tag">
        <span className="num">{lane.num}</span>
        <span className="label">{lane.chapter}</span>
      </div>
      <h2 className="serif">{lane.title}<em> — {lane.titleEm}</em></h2>
      <p className="dek">{lane.desc}</p>
      <div className="bullet-rows">
        {lane.bullets.map((b, i) => (
          <div key={i} className="bullet-row">
            <span className="bl">{b.l}</span>
            <span className="bv">{b.v}</span>
          </div>
        ))}
      </div>
      <div className="chapter-coord">{lane.coord}</div>
    </div>
  </div>
);

const VisasPassports = () => {
  const lane = VISAS_LANES[0];
  return (
    <section className="visas-passports" id="passports">
      <div className="container">
        <VisasChapterPanel lane={lane} side="left" />
        <div className="passport-grid">
          <div className="pg-head">
            <span className="lbl">FIELD NOTE · PASSPORT FIELD GUIDE</span>
            <h3 className="serif">Four rules, <em>before you fly.</em></h3>
            <p>The passport rules that keep travelers off planes aren't hidden — they're just unread. Validity, blank pages, renewal lead time, expedited paths. Check all four when you book the flight, not the night before.</p>
          </div>
          <div className="pg-cards">
            {VISAS_PASSPORT_RULES.map((t) => (
              <article key={t.id} className="passport-card">
                <div className="pc-top">
                  <div className="glyph">{t.glyph}</div>
                  <span className="pc-coord">{t.coord}</span>
                </div>
                <h3 className="serif">{t.title}</h3>
                <p>{t.desc}</p>
                <div className="pc-spec">{t.spec}</div>
              </article>
            ))}
          </div>
        </div>
      </div>
    </section>
  );
};

const VisasVisas = () => {
  const lane = VISAS_LANES[1];
  return (
    <section className="visas-visas" id="visas">
      <div className="container">
        <div className="visas-grid">
          <div className="vg-aside">
            <div className="aside-head">
              <span className="lbl">FIELD NOTE · APPLICATION PATHS</span>
              <h3 className="serif">Four routes. <em>Pick yours.</em></h3>
            </div>
            <p>
              The visa path is decided by your passport and your destination, not by you. Check the destination's official immigration site — not a travel blog and not the embassy's PDF from 2018. Then plan backward from your trip date.
            </p>
            <div className="visa-rules">
              <div className="rule">
                <span className="rn">01</span>
                <div>
                  <strong>Apply during the booking window, not the packing one.</strong>
                  <span>Embassy submissions can take a month plus appointment lead time. Buy refundable flights until the visa is in hand.</span>
                </div>
              </div>
              <div className="rule">
                <span className="rn">02</span>
                <div>
                  <strong>Print everything twice.</strong>
                  <span>One copy with the passport, one in your day bag. Most denials happen because the document is on a phone with a dead battery.</span>
                </div>
              </div>
              <div className="rule">
                <span className="rn">03</span>
                <div>
                  <strong>Don't skip the interview prep.</strong>
                  <span>Officers ask about itinerary, employment, return date, and prior travel. Have an answer for each in under 10 seconds. Long answers read as evasion.</span>
                </div>
              </div>
            </div>
            <a href="/journal/apply-tourist-visa" className="aside-cta">Read: Apply for a Tourist Visa Without Getting Rejected →</a>
          </div>
          <div className="vg-right">
            <VisasChapterPanel lane={lane} side="right" />
            <div className="visa-cards">
              {VISAS_VISA_TYPES.map((s) => (
                <article key={s.method} className="visa-card">
                  <div className="vc-head">
                    <span className="vc-method">{s.method}</span>
                    <span className="vc-icon">{s.icon}</span>
                  </div>
                  <div className="vc-price">{s.price}</div>
                  <h3 className="serif">{s.title}</h3>
                  <p>{s.desc}</p>
                </article>
              ))}
            </div>
          </div>
        </div>
      </div>
    </section>
  );
};

Object.assign(window, { VisasHero, VisasChapterPanel, VisasPassports, VisasVisas });
