/* eslint-disable */
// Multi-City — itinerary-shape hub. Mirrors the three-day template's editorial vocabulary
// (cream/teal/tan, Playfair + DM Sans/Mono, numbered sections, hero masthead).

const { useState: useMCState } = React;

/* ---------- HERO ---------- */
const MCHero = () => (
  <section className="solo-hero">
    <div
      className="hero-bg"
      style={{ backgroundImage: `url(https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=2400&q=85)` }}
    ></div>
    <div className="hero-scrim"></div>
    <Nav />

    <div className="container">
      <div className="solo-crumbs">
        <a href="/">Home</a>
        <span className="sep">/</span>
        <a href="/en/plan/">Plan</a>
        <span className="sep">/</span>
        <a href="/en/plan/itineraries/">Itineraries</a>
        <span className="sep">/</span>
        <span className="here">Multi-City</span>
      </div>

      <div className="solo-mast">
        <div className="lhs">
          <span className="layer-tag">TWO COUNTRIES OR MORE · {MC_META.count} GUIDES · {MC_META.newThisSeason} NEW THIS SEASON</span>
          <h1>
            Multi—<em>City.</em>
          </h1>
          <p className="lede">
            The trip that stitches a route. <em>Two countries or more,</em> one open-jaw ticket, four to five days per country, and a map drawn in one direction. Twelve regions where the form actually works, eight builds by character, and the brief on what changes when the trip crosses a border.
          </p>
        </div>
        <div className="rhs">
          <div className="solo-meta-card">
            <div className="row">
              <span className="k">Guides on file</span>
              <span className="v"><em>{MC_META.count}</em></span>
            </div>
            <div className="row">
              <span className="k">New this season</span>
              <span className="v">{MC_META.newThisSeason}</span>
            </div>
            <div className="row">
              <span className="k">Avg. length</span>
              <span className="v">{MC_META.avgLengthDays} days</span>
            </div>
            <div className="row">
              <span className="k">Most-read age</span>
              <span className="v">{MC_META.topAge}</span>
            </div>
            <div className="row last">
              <span className="k">Updated</span>
              <span className="v">{MC_META.updated}</span>
            </div>
          </div>
        </div>
      </div>

      <div className="solo-toc">
        <span className="lbl">In this issue</span>
        <a href="#places"><span className="n">I</span>Twelve regions</a>
        <span className="dot">·</span>
        <a href="#field"><span className="n">II</span>Field notes</a>
        <span className="dot">·</span>
        <a href="#itins"><span className="n">III</span>Eight itineraries</a>
        <span className="dot">·</span>
        <a href="#bucket"><span className="n">IV</span>By character</a>
        <span className="dot">·</span>
        <a href="#reading"><span className="n">V</span>Reading list</a>
        <span className="dot">·</span>
        <a href="#voices"><span className="n">VI</span>The desk</a>
        <span className="dot">·</span>
        <a href="#practical"><span className="n">VII</span>The brief</a>
        <span className="dot">·</span>
        <a href="#faq"><span className="n">VIII</span>FAQ</a>
      </div>
    </div>

    <div className="hero-coord">FORM Nº 12 · MULTI-COUNTRY · OPEN-JAW</div>
    <div className="hero-credit">PHOTO — FIELD DESK Nº 211 · IRIS</div>
  </section>
);

/* ---------- I · TWELVE REGIONS ---------- */
const MCPlaces = () => {
  const [region, setRegion] = useMCState("All");
  const regions = ["All", "Europe", "Asia", "Americas", "Africa"];
  const filtered = MC_PLACES.filter(p => region === "All" || p.region === region);

  return (
    <section className="solo-places" id="places">
      <div className="container">
        <div className="solo-section-head">
          <div className="num">I</div>
          <div className="titles">
            <h2>Twelve regions,<em>the multi-country routes.</em></h2>
            <p>Picked because the region actually rewards a multi-country trip — borders that cooperate, transport that connects, and a route that reads like a single line on a map. Each card opens a hand-built plan walked by the desk.</p>
          </div>
          <div className="filter-pills">
            {regions.map(r => (
              <button
                key={r}
                className={`f-pill ${region === r ? "on" : ""}`}
                onClick={() => setRegion(r)}
              >{r}</button>
            ))}
          </div>
        </div>

        <div className="places-grid">
          {filtered.map((p, i) => (
            <a key={p.id} href={p.href} className={`place-card ${i === 0 ? "feature" : ""}`}>
              <div className="img" style={{ backgroundImage: `url(${p.img})` }}></div>
              <div className="scrim"></div>
              <span className="rank">No. {String(p.rank).padStart(2, "0")}</span>
              {p.tag && <span className="tag">{p.tag}</span>}
              <div className="body">
                <div className="loc">
                  <span className="city">{p.city}</span>
                  <span className="country">{p.country}</span>
                </div>
                <p className="why">{p.why}</p>
                <div className="meta">
                  <span><em>{p.nights}</em> days</span>
                  <span className="sep">·</span>
                  <span>{p.budget}</span>
                  <span className="sep">·</span>
                  <span>{p.season}</span>
                </div>
                <div className="best-for">
                  {p.best.map(b => <span key={b}>{b}</span>)}
                </div>
                <div className="coord">{p.coord}</div>
              </div>
            </a>
          ))}
        </div>
        <div className="places-foot">
          <span className="ct">Showing {filtered.length} of {MC_PLACES.length}</span>
          <a href="/en/plan/itineraries/">All itinerary shapes <Icon name="arrow" size={12} /></a>
        </div>
      </div>
    </section>
  );
};

/* ---------- II · FIELD NOTES (essay quote, dark band) ---------- */
const MCField = () => (
  <section className="solo-practical" id="field" style={{ paddingTop: 110, paddingBottom: 110 }}>
    <div className="container">
      <div className="solo-section-head dark">
        <div className="num">II</div>
        <div className="titles">
          <h2>Field notes.<em>Why the multi-country form is harder than it looks.</em></h2>
          <p>The opening pages of the Itineraries Desk's house essay on the multi-country trip — what makes it work, what kills it, and the rule that turns five countries into three good ones.</p>
        </div>
        <div className="right">Read the full essay <Icon name="arrow" size={12} /></div>
      </div>

      <blockquote style={{
        fontFamily: "var(--serif)",
        fontSize: "clamp(22px, 2.4vw, 30px)",
        lineHeight: 1.45,
        color: "var(--cream)",
        fontStyle: "italic",
        maxWidth: 920,
        borderLeft: "1px solid var(--tan)",
        padding: "8px 0 8px 32px",
        marginBottom: 28,
      }}>
        "The multi-country trip is the one where the planning matters most. A bad three-day trip in Lisbon is a bad weekend. A bad three-week trip across Europe is a thousand small decisions you can't take back — the wrong border, the wrong bus, the country that needed five days you only gave it two. The form rewards a route drawn in one motion and a calendar with two empty days in it."
      </blockquote>
      <p style={{
        fontSize: 15,
        lineHeight: 1.7,
        color: "rgba(241,235,224,0.78)",
        maxWidth: 760,
        marginBottom: 18,
      }}>
        The most common mistake is treating a multi-country trip like a list. Five countries in fourteen days reads well on a tab in a browser; on the road, it's two days per country, which is no country at all. The form's iron rule is four to five days per country, no exceptions. A two-week trip is two countries done well. A three-week trip is three or four. Five countries is a month, and even then you're protecting the route, not the count.
      </p>
      <p style={{
        fontSize: 15,
        lineHeight: 1.7,
        color: "rgba(241,235,224,0.78)",
        maxWidth: 760,
      }}>
        The trip is built around three locked things — the open-jaw flight in and out, the first night, and the last night. Everything between gets booked one to two weeks ahead, from a café in the country you're already in. The flexibility is the form. Lock too much and the trip can't tell you what it wanted to be.
      </p>
      <p style={{
        marginTop: 32,
        fontFamily: "var(--mono)",
        fontSize: 11,
        letterSpacing: "0.18em",
        color: "var(--tan)",
        textTransform: "uppercase",
      }}>— Iris Mendoza, Itineraries Desk · House essay Nº 12</p>
    </div>
  </section>
);

/* ---------- III · ITINERARIES BY CHARACTER ---------- */
const MCItins = () => (
  <section className="solo-itins" id="itins">
    <div className="container">
      <div className="solo-section-head">
        <div className="num">III</div>
        <div className="titles">
          <h2>Eight itineraries,<em>by character.</em></h2>
          <p>Same form, eight different trips. Efficient, slow, multi-city, business, flexible, overland, hub-and-spoke, border-savvy. Each is a complete day-by-day with a budget that holds in 2026 and a route tested across borders.</p>
        </div>
        <div className="right">All multi-country plans <Icon name="arrow" size={12} /></div>
      </div>

      <div className="itins-grid">
        {MC_ITINS.map(it => (
          <a key={it.ref} href={it.href} className="itin-card">
            <div className="pic" style={{ backgroundImage: `url(${it.img})` }}>
              <span className="ref-pill">{it.ref}</span>
              <span className="day-pill"><em>{it.days}</em><span className="d">days</span></span>
            </div>
            <div className="body">
              <h4>{it.title}<em> {it.em}</em></h4>
              <div className="tags">
                {it.tags.map(t => <span key={t}>{t}</span>)}
              </div>
              <div className="foot">
                <span className="by">By {it.author}</span>
                <span className="price">{it.price}</span>
              </div>
            </div>
          </a>
        ))}
      </div>
    </div>
  </section>
);

/* ---------- IV · BY CHARACTER (table) ---------- */
const MCByStyle = () => (
  <section className="solo-length" id="bucket">
    <div className="container">
      <div className="solo-section-head">
        <div className="num">IV</div>
        <div className="titles">
          <h2>The multi-country<em>matrix.</em></h2>
          <p>Six shapes the multi-country trip takes. Pick the row that matches the route, not the row that matches the country list.</p>
        </div>
        <div className="right">Pace planner <Icon name="arrow" size={12} /></div>
      </div>

      <div className="length-table">
        <div className="row head">
          <div>Trip character</div>
          <div className="d">Days</div>
          <div className="ct">Guides</div>
          <div className="ex">Best examples</div>
          <div className="pr">Starting</div>
          <div></div>
        </div>
        {MC_BY_STYLE.map(l => (
          <a href="/en/plan/itineraries/" key={l.len} className="row">
            <div className="lbl">{l.len}</div>
            <div className="d"><em>{l.days}</em></div>
            <div className="ct">{l.count} guides</div>
            <div className="ex">{l.examples}</div>
            <div className="pr">{l.price}</div>
            <div className="go"><Icon name="arrow" size={14} /></div>
          </a>
        ))}
      </div>
    </div>
  </section>
);

/* ---------- V · READING LIST ---------- */
const MCReading = () => (
  <section className="solo-reading" id="reading">
    <div className="container">
      <div className="solo-section-head">
        <div className="num">V</div>
        <div className="titles">
          <h2>Eight reads,<em>by depth.</em></h2>
          <p>The pieces sitting one click below this page. The first is the seed essay; the rest are method, packing, and the cost-of-borders math. Read in order or skip to the question you're already mid-Googling.</p>
        </div>
        <div className="right">All Itineraries essays <Icon name="arrow" size={12} /></div>
      </div>

      <div className="reading-list">
        {MC_READING.map((r, i) => (
          <a key={i} href={r.href} className="r-row">
            <div className="n">{String(i + 1).padStart(2, "0")}</div>
            <div className="tag">{r.tag}</div>
            <div className="t">{r.title}<em>{r.em}</em></div>
            <div className="by">{r.author}</div>
            <div className="dur">{r.duration}</div>
            <div className="go"><Icon name="arrow" size={12} /></div>
          </a>
        ))}
      </div>
    </div>
  </section>
);

/* ---------- VI · DESK / VOICES ---------- */
const MCVoices = () => (
  <section className="solo-voices" id="voices">
    <div className="container">
      <div className="solo-section-head dark">
        <div className="num">VI</div>
        <div className="titles">
          <h2>The Itineraries desk.<em>Three editors on the form.</em></h2>
          <p>The multi-country trip is the one the desk teaches youngest writers on. These are the people writing it — what they go for, and what they keep coming back to.</p>
        </div>
        <div className="right">Desk masthead <Icon name="arrow" size={12} /></div>
      </div>

      <div className="voices-grid">
        {MC_VOICES.map(v => (
          <article key={v.name} className="voice">
            <div className="av" style={{ backgroundImage: `url(${v.av})` }}></div>
            <div className="who">
              <div className="name">{v.name}</div>
              <div className="role">{v.role}</div>
            </div>
            <p className="line">"{v.line}"</p>
            <div className="foot">
              <span className="trips">{v.trips} field trips</span>
              <a href="/en/plan/itineraries/">Read their lane <Icon name="arrow" size={12} /></a>
            </div>
          </article>
        ))}
      </div>
    </div>
  </section>
);

/* ---------- VII · THE BRIEF ---------- */
const MCPractical = () => (
  <section className="solo-practical" id="practical">
    <div className="container">
      <div className="solo-section-head dark">
        <div className="num">VII</div>
        <div className="titles">
          <h2>The brief.<em>Six tips, in order of importance.</em></h2>
          <p>The non-obvious things. Tested on the road, ordered by how much they matter when the trip crosses a border.</p>
        </div>
        <div className="right">Full planning guide <Icon name="arrow" size={12} /></div>
      </div>

      <div className="practical-grid">
        {MC_PRACTICAL.map((p, i) => (
          <div key={i} className="pr-card">
            <div className="num">{String(i + 1).padStart(2, "0")}</div>
            <div className="kind">{p.k}</div>
            <h4>{p.h}</h4>
            <p>{p.b}</p>
          </div>
        ))}
      </div>
    </div>
  </section>
);

/* ---------- VIII · FAQ ---------- */
const MCFAQ = () => {
  const [open, setOpen] = useMCState(0);
  return (
    <section className="solo-faq" id="faq">
      <div className="container">
        <div className="faq-shell">
          <div className="lhs">
            <div className="solo-section-head stacked">
              <div className="num">VIII</div>
              <div className="titles">
                <h2>The questions<em>readers send in.</em></h2>
                <p>Lightly edited reader letters about the multi-country trip. If yours isn't here, the planning desk reads every email.</p>
              </div>
            </div>
            <a href="mailto:itineraries@howto.travel" className="ask">Ask the desk →</a>
          </div>
          <div className="rhs">
            {MC_FAQS.map((f, i) => (
              <div key={i} className={`f-item ${open === i ? "open" : ""}`} onClick={() => setOpen(open === i ? -1 : i)}>
                <div className="q">
                  <span className="qt">{f.q}</span>
                  <span className="tg">+</span>
                </div>
                <div className="a">{f.a}</div>
              </div>
            ))}
          </div>
        </div>
      </div>
    </section>
  );
};

/* ---------- CTA ---------- */
const MCCTA = () => (
  <section className="solo-cta">
    <div
      className="bg"
      style={{ backgroundImage: `url(https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=2000&q=80)` }}
    ></div>
    <div className="inner">
      <div className="kicker">ONE OPEN-JAW TICKET · FOUR DAYS PER COUNTRY · ONE MAP</div>
      <h2>Plan a multi-country trip<em>that actually holds.</em></h2>
      <p>Open a region, copy the route, read the brief, book the open-jaw. Two countries or six, one ticket, one direction, no zigzag.</p>
      <div className="cta-actions">
        <a href="/en/plan/itineraries/europe/how-to-plan-multi-country-europe-trip" className="btn-p">Open Europe, the multi-country build →</a>
        <a href="/en/plan/itineraries/" className="btn-g">↑ Back to Itineraries</a>
      </div>
    </div>
    <div className="coord">MULTI-CITY · FORM Nº 12 · UPDATED 06.05.2026</div>
    <div className="coord right">FIELD DESK Nº 211</div>
  </section>
);

/* ---------- COMPOSE ---------- */
const MCApp = () => (
  <div data-screen-label="Multi-City">
    <MCHero />
    <MCPlaces />
    <MCField />
    <MCItins />
    <MCByStyle />
    <MCReading />
    <MCVoices />
    <MCPractical />
    <MCFAQ />
    <MCCTA />
    <Footer />
  </div>
);

ReactDOM.createRoot(document.getElementById("root")).render(<MCApp />);
