/* eslint-disable */
// Slow Travel — leaf menu page. Voice: calm, observational. The opposite of breathless.
// Layout mirrors solo-app.jsx exactly: same CSS classes, same structure.

const { useState: useSState } = React;

/* ---------- HERO ---------- */
const SlowHero = () => (
  <section className="solo-hero">
    <div
      className="hero-bg"
      style={{ backgroundImage: `url(https://images.unsplash.com/photo-1558618666-fcd25c85cd64?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/trip-types/">Trip Types</a>
        <span className="sep">/</span>
        <span className="here">Slow Travel</span>
      </div>

      <div className="solo-mast">
        <div className="lhs">
          <span className="layer-tag">FOR THE MIND · {SLOW_META.count} GUIDES · {SLOW_META.newThisSeason} NEW THIS SEASON</span>
          <h1>
            Slow<em>Travel.</em>
          </h1>
          <p className="lede">
            Three weeks. One neighborhood. <em>No agenda.</em> The bakery you visit every morning until the person behind the counter knows your order. That is the whole idea.
          </p>
        </div>
        <div className="rhs">
          <div className="solo-meta-card">
            <div className="row">
              <span className="k">Guides on file</span>
              <span className="v"><em>{SLOW_META.count}</em></span>
            </div>
            <div className="row">
              <span className="k">New this season</span>
              <span className="v">{SLOW_META.newThisSeason}</span>
            </div>
            <div className="row">
              <span className="k">Avg stay length</span>
              <span className="v">{SLOW_META.avgLengthDays} days</span>
            </div>
            <div className="row">
              <span className="k">Most-read age</span>
              <span className="v">{SLOW_META.topAge}</span>
            </div>
            <div className="row last">
              <span className="k">Updated</span>
              <span className="v">{SLOW_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>The shortlist</a>
        <span className="dot">·</span>
        <a href="#styles"><span className="n">II</span>Six ways to slow</a>
        <span className="dot">·</span>
        <a href="#itins"><span className="n">III</span>Itineraries</a>
        <span className="dot">·</span>
        <a href="#length"><span className="n">IV</span>By stay length</a>
        <span className="dot">·</span>
        <a href="#practical"><span className="n">V</span>The brief</a>
        <span className="dot">·</span>
        <a href="#reading"><span className="n">VI</span>Reading list</a>
        <span className="dot">·</span>
        <a href="#voices"><span className="n">VII</span>The desk</a>
        <span className="dot">·</span>
        <a href="#faq"><span className="n">VIII</span>FAQ</a>
      </div>
    </div>

    <div className="hero-coord">36°00′N · 05°36′W · TARIFA</div>
    <div className="hero-credit">PHOTO — FIELD DESK Nº 041 · CLARA</div>
  </section>
);

/* ---------- I · SHORTLIST ---------- */
const SlowPlaces = () => {
  const [region, setRegion] = useSState("All");
  const regions = ["All", "Europe", "Asia", "Americas"];
  const filtered = SLOW_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 cities,<em>for a month.</em></h2>
            <p>Picked by editors who have actually lived in them, not visited. The criterion is simple: can you stay for three weeks and not want to leave?</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> nights</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 {SLOW_PLACES.length}</span>
          <a href="#">All 21 slow destinations <Icon name="arrow" size={12} /></a>
        </div>
      </div>
    </section>
  );
};

/* ---------- II · STYLES ---------- */
const SlowStyles = () => (
  <section className="solo-styles" id="styles">
    <div className="container">
      <div className="solo-section-head">
        <div className="num">II</div>
        <div className="titles">
          <h2>Six ways<em>to slow.</em></h2>
          <p>Slow travel is not one thing. A first two-week trip and a six-month sabbatical require different cities, different apartments, different mental preparation. Pick the lane that fits.</p>
        </div>
        <div className="right">All six lanes <Icon name="arrow" size={12} /></div>
      </div>

      <div className="styles-grid">
        {SLOW_STYLES.map(s => (
          <a key={s.id} href="#" className="style-card">
            <div className="pic" style={{ backgroundImage: `url(${s.img})` }}>
              <span className="num-r">{s.num}</span>
            </div>
            <div className="body">
              <h3>{s.title} <em>{s.em}</em></h3>
              <p>{s.desc}</p>
              <div className="foot">
                <span className="ct">{s.count}</span>
                <span className="go">Open lane <Icon name="arrow" size={12} /></span>
              </div>
            </div>
          </a>
        ))}
      </div>
    </div>
  </section>
);

/* ---------- III · ITINERARIES ---------- */
const SlowItins = () => (
  <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>to copy.</em></h2>
          <p>Day-by-day plans built and lived by the desk. These are not two-week highlights tours — they are structured long stays, with a pace that holds over weeks, not days.</p>
        </div>
        <div className="right">All 21 itineraries <Icon name="arrow" size={12} /></div>
      </div>

      <div className="itins-grid">
        {SLOW_ITINS.map(it => (
          <a key={it.ref} 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 STAY LENGTH ---------- */
const SlowByLength = () => (
  <section className="solo-length" id="length">
    <div className="container">
      <div className="solo-section-head">
        <div className="num">IV</div>
        <div className="titles">
          <h2>By the<em>stay length.</em></h2>
          <p>How long do you have? The right city changes at two weeks versus two months. Pick a row; we'll point you at what opens for that window.</p>
        </div>
        <div className="right">Pace planner <Icon name="arrow" size={12} /></div>
      </div>

      <div className="length-table">
        <div className="row head">
          <div>Stay window</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>
        {SLOW_BY_LENGTH.map(l => (
          <a href="#" key={l.len} className="row">
            <div className="lbl">{l.len}</div>
            <div className="d"><em>{l.days}</em></div>
            <div className="ct">{l.count}</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 · PRACTICAL BRIEF ---------- */
const SlowPractical = () => (
  <section className="solo-practical" id="practical">
    <div className="container">
      <div className="solo-section-head dark">
        <div className="num">V</div>
        <div className="titles">
          <h2>The brief.<em>Seven things that actually matter.</em></h2>
          <p>The non-obvious parts of staying somewhere for a month. We learned most of these by doing them wrong first.</p>
        </div>
        <div className="right">Full logistics guide <Icon name="arrow" size={12} /></div>
      </div>

      <div className="practical-grid">
        {SLOW_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>
);

/* ---------- VI · READING LIST ---------- */
const SlowReading = () => (
  <section className="solo-reading" id="reading">
    <div className="container">
      <div className="solo-section-head">
        <div className="num">VI</div>
        <div className="titles">
          <h2>The reading list.<em>Eight essays from the desk.</em></h2>
          <p>The pieces that sit one click below this page. The first and sixth are the most honest.</p>
        </div>
        <div className="right">All Slow essays <Icon name="arrow" size={12} /></div>
      </div>

      <div className="reading-list">
        {SLOW_READING.map((r, i) => (
          <a key={i} 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>
);

/* ---------- VII · DESK / VOICES ---------- */
const SlowVoices = () => (
  <section className="solo-voices" id="voices">
    <div className="container">
      <div className="solo-section-head dark">
        <div className="num">VII</div>
        <div className="titles">
          <h2>The Slow desk.<em>Four editors, 52 long stays.</em></h2>
          <p>This beat is personal. These are the people writing it — where they have lived, 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">
        {SLOW_DESK.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.stays}</span>
              <a href="#">Read their lane <Icon name="arrow" size={12} /></a>
            </div>
          </article>
        ))}
      </div>
    </div>
  </section>
);

/* ---------- VIII · FAQ ---------- */
const SlowFAQ = () => {
  const [open, setOpen] = useSState(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>we get a lot.</em></h2>
                <p>Reader letters, lightly edited. The honest ones, not the easy ones.</p>
              </div>
            </div>
            <a href="mailto:slow@howto.travel" className="ask">Ask the desk →</a>
          </div>
          <div className="rhs">
            {SLOW_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 SlowCTA = () => (
  <section className="solo-cta">
    <div
      className="bg"
      style={{ backgroundImage: `url(https://images.unsplash.com/photo-1555881400-74d7acaacd8b?w=2000&q=80)` }}
    ></div>
    <div className="inner">
      <div className="kicker">ONE CITY · ONE APARTMENT · ONE BAKERY</div>
      <h2>Stay long enough<em>to become a regular.</em></h2>
      <p>Open the shortlist, pick a stay length, read the brief. The planning fits on one page. The trip takes weeks.</p>
      <div className="cta-actions">
        <button className="btn-p">Open the shortlist →</button>
        <a href="/en/plan/trip-types/" className="btn-g">↑ Back to Trip Types</a>
      </div>
    </div>
    <div className="coord">SLOW · LANE 06 · UPDATED 26.04.2026</div>
    <div className="coord right">FIELD DESK Nº 041</div>
  </section>
);

/* ---------- COMPOSE ---------- */
const SlowApp = () => (
  <div data-screen-label="Slow Travel Lane">
    <SlowHero />
    <SlowPlaces />
    <SlowStyles />
    <SlowItins />
    <SlowByLength />
    <SlowPractical />
    <SlowReading />
    <SlowVoices />
    <SlowFAQ />
    <SlowCTA />
    <Footer />
  </div>
);

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