/* ============================================================
   Shenzhen Layover — shared stylesheet
   ============================================================ */

:root {
  --brand-900: #05323a;
  --brand-800: #084750;
  --brand-700: #0e6e7b;
  --brand-600: #11828f;
  --brand-500: #12909f;
  --brand-300: #6ccdd6;
  --brand-100: #e2f4f6;
  --brand-050: #f1fafb;

  --accent: #ff6b35;
  --accent-600: #e35620;
  --accent-soft: #fff2ec;

  --ink: #12202a;
  --ink-2: #37495a;
  --muted: #69798a;
  --line: #e2eaf0;
  --line-soft: #eef3f7;
  --bg: #f5f8fa;
  --card: #ffffff;

  --ok: #0d8a5f;
  --ok-soft: #e7f6ef;
  --warn: #a9691a;
  --warn-soft: #fdf3e2;
  --danger: #c0392b;
  --danger-soft: #fdecea;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 56, .06), 0 1px 8px rgba(16, 40, 56, .04);
  --shadow: 0 6px 24px rgba(16, 40, 56, .08);
  --shadow-lg: 0 18px 48px rgba(8, 40, 50, .14);
  --max: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-600); text-decoration: underline; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; color: var(--ink); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
  font-size: .9em;
  color: var(--brand-800);
  word-break: break-all;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section.tight { padding: 32px 0; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: 10px;
}
.lede { font-size: 1.06rem; color: var(--ink-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--max); margin: 0 auto; padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(18, 144, 159, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; color: var(--ink); }
.brand-text b { font-size: .98rem; letter-spacing: -.01em; }
.brand-text span { font-size: .72rem; color: var(--muted); font-weight: 500; }

.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  padding: 7px 11px; border-radius: 9px; font-size: .9rem; font-weight: 550; color: var(--ink-2);
}
.main-nav a:hover { background: var(--brand-050); color: var(--brand-700); text-decoration: none; }
.main-nav a.active { background: var(--brand-100); color: var(--brand-800); }

.lang-toggle {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: #fff; flex: none;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 6px 13px; font: inherit; font-size: .82rem;
  font-weight: 650; color: var(--muted); cursor: pointer;
}
.lang-toggle button.on { background: var(--brand-700); color: #fff; }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  width: 38px; height: 34px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: var(--ink); }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
    box-shadow: var(--shadow); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 12px; font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #05323a 0%, #0b5a66 45%, #12798a 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(255, 107, 53, .34), transparent 65%),
    radial-gradient(700px 320px at 8% 110%, rgba(108, 205, 214, .3), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px;
  background:
    linear-gradient(135deg, transparent 49.6%, #05323a 49.7%) 0 0/34px 120px repeat-x,
    linear-gradient(-135deg, transparent 49.6%, #05323a 49.7%) 0 0/34px 120px repeat-x;
  opacity: .22;
}
.hero-inner { position: relative; padding: 68px 0 84px; max-width: 780px; }
.hero h1 { color: #fff; }
.hero p.lede { color: rgba(255, 255, 255, .87); font-size: 1.12rem; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.stat-row {
  position: relative; display: grid; gap: 14px; margin-top: 40px;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); padding: 14px 16px; backdrop-filter: blur(4px);
}
.stat b { display: block; font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; }
.stat span { font-size: .82rem; color: rgba(255, 255, 255, .82); }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } .hero-inner { padding: 48px 0 64px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 11px;
  font-weight: 650; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 53, .34); }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-light { background: #fff; color: var(--brand-800); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { background: #fff; color: var(--brand-700); border-color: var(--brand-300); }
.btn-outline:hover { background: var(--brand-050); color: var(--brand-800); }
.btn-sm { padding: 7px 14px; font-size: .87rem; border-radius: 9px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.tile { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; color: inherit; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-300); text-decoration: none; }
.tile-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-700); margin-bottom: 6px;
}
.tile-icon svg { width: 21px; height: 21px; }
.tile h3 { margin: 0; font-size: 1.05rem; }
.tile p { margin: 0; font-size: .92rem; color: var(--muted); }
.tile .go { margin-top: auto; padding-top: 10px; font-size: .88rem; font-weight: 650; color: var(--brand-700); }

/* ---------- Checker / tool ---------- */
.tool {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.tool-head { padding: 20px 24px; border-bottom: 1px solid var(--line-soft); background: var(--brand-050); }
.tool-head h3 { margin: 0 0 4px; }
.tool-head p { margin: 0; font-size: .9rem; color: var(--muted); }
.tool-body { padding: 22px 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .87rem; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
select, input[type="text"], input[type="number"], input[type="date"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .94rem; background: #fff; color: var(--ink);
}
select:focus, input:focus { outline: 2px solid var(--brand-300); outline-offset: 1px; border-color: var(--brand-500); }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.result {
  border-radius: var(--radius); padding: 16px 18px; font-size: .95rem; margin-top: 4px;
  border: 1px solid var(--line); background: var(--bg);
}
.result.ok { background: var(--ok-soft); border-color: #bfe6d4; }
.result.warn { background: var(--warn-soft); border-color: #f2dcb4; }
.result.bad { background: var(--danger-soft); border-color: #f5c9c3; }
.result h4 { margin: 0 0 6px; font-size: 1rem; }
.result p { margin: 0 0 .5em; }
.result p:last-child { margin-bottom: 0; }
.result .big { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative; padding-left: 52px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding-block: 16px; padding-right: 18px; box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 16px;
  width: 26px; height: 26px; border-radius: 8px; background: var(--brand-700); color: #fff;
  display: grid; place-items: center; font-size: .84rem; font-weight: 700;
}
.steps li h4 { margin: 0 0 4px; }
.steps li p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { background: var(--brand-050); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-800); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--brand-050); }
td b { color: var(--ink); }

/* ---------- Tags / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 650; background: var(--brand-100); color: var(--brand-800);
  white-space: nowrap;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.accent { background: var(--accent-soft); color: var(--accent-600); }

/* ---------- Callout ---------- */
.callout {
  border-left: 4px solid var(--brand-500); background: var(--brand-050);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 15px 18px; margin: 18px 0;
  font-size: .94rem;
}
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }
.callout.danger { border-color: var(--danger); background: var(--danger-soft); }
.callout.ok { border-color: var(--ok); background: var(--ok-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout h4 { margin: 0 0 6px; font-size: .97rem; }

/* ---------- Country list ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: .85rem; padding: 4px 11px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--ink-2);
}
.chip.hit { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 650; }
.region-block { margin-bottom: 18px; }
.region-block h4 { font-size: .88rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }

/* ---------- Timeline (updates) ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -23px; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-500);
}
.tl-item.key::before { border-color: var(--accent); }
.tl-date { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 6px; box-shadow: var(--shadow-sm); }
.tl-card h3 { margin: 0 0 6px; font-size: 1.03rem; }
.tl-card p { margin: 0 0 .5em; font-size: .93rem; color: var(--ink-2); }
.tl-card p:last-child { margin-bottom: 0; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.src { font-size: .78rem; color: var(--muted); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 15px;
  font: inherit; font-size: .86rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.filter-btn.on { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }

/* ---------- FAQ / accordion ---------- */
details.acc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
details.acc summary {
  cursor: pointer; padding: 14px 18px; font-weight: 620; font-size: .98rem; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 1.25rem; color: var(--brand-600); font-weight: 400; flex: none; }
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 18px 16px; font-size: .94rem; color: var(--ink-2); }
details.acc .acc-body p:last-child, details.acc .acc-body ul:last-child { margin-bottom: 0; }

/* ---------- Misc ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: .93rem; }
.kv dt { font-weight: 650; color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; } }

.hotline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hotline {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm);
}
.hotline b { font-size: 1.35rem; letter-spacing: -.01em; color: var(--brand-800); }
.hotline span { font-size: .86rem; color: var(--muted); }
.hotline.urgent { border-color: #f3c8c2; background: var(--danger-soft); }
.hotline.urgent b { color: var(--danger); }

.breadcrumb { font-size: .84rem; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-700); }

.page-hero { background: linear-gradient(135deg, #05323a, #0e6e7b); color: #fff; padding: 40px 0 44px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.page-hero p { color: rgba(255, 255, 255, .84); margin: 0; max-width: 680px; }
.page-hero .breadcrumb { padding: 0 0 12px; color: rgba(255, 255, 255, .68); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .68); }

.footer { background: var(--brand-900); color: rgba(255, 255, 255, .72); padding: 40px 0 28px; margin-top: 40px; font-size: .9rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer a { color: rgba(255, 255, 255, .78); }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 26px; padding-top: 18px; font-size: .83rem; color: rgba(255, 255, 255, .55); }

.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 26px; }
.toc h4 { margin: 0 0 8px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.toc li { margin-bottom: 4px; }

.anchor-offset { scroll-margin-top: 84px; }

.updated-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.sos-banner {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  background: var(--danger); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 20px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  box-shadow: 0 10px 30px rgba(192, 57, 43, .4);
}
.sos-banner:hover { background: #a93226; }

.note { font-size: .86rem; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 26px 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.fb-link {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-600);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
  white-space: nowrap;
}
.fb-link:hover { background: var(--accent-600); color: #fff; }

/* ---------- Provider / option cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 6px 0 18px; }
.info-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 17px; }
.info-card h4 { margin: 0 0 4px; font-size: 1.04rem; color: var(--brand-800); }
.info-card .price { margin: 0 0 8px; font-weight: 650; font-size: .9rem; color: var(--accent-600); }
.info-card p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }

.checklist { list-style: none; margin: 0; padding: 8px 0; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; padding: 12px 2px; border-bottom: 1px solid var(--line-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist input[type=checkbox] { margin-top: 3px; width: 19px; height: 19px; flex: none; accent-color: var(--accent-600); cursor: pointer; }
.checklist label { cursor: pointer; font-size: .94rem; line-height: 1.55; color: var(--ink-2); }
.checklist label strong { color: var(--ink); }
.slip-list { margin: 0; padding-left: 20px; }
.slip-list li { margin: 8px 0; font-size: .94rem; color: var(--ink-2); }
.slip-list li strong { color: var(--ink); }

/* ---------- Entry route switcher ---------- */
.route-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.route-tab {
  flex: 1 1 260px; text-align: left; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; cursor: pointer; font: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.route-tab:hover { border-color: var(--brand-300); }
.route-tab.on { border-color: var(--brand-500); background: var(--brand-050); box-shadow: var(--shadow-sm); }
.route-tab .rt-top { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.route-tab .rt-ico { color: var(--brand-500); flex: none; }
.route-tab .rt-ico svg { width: 19px; height: 19px; display: block; }
.route-tab .rt-name { font-weight: 700; font-size: .99rem; color: var(--ink); }
.route-tab .rt-sub { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.route-tab.on .rt-name { color: var(--brand-600); }
.route-panel { display: none; }
.route-panel.on { display: block; }
.rt-stat { font-size: .82rem; color: var(--muted); margin: 2px 0 0; }
.rt-stat b { color: var(--ink-2); font-weight: 650; }

/* ============================================================
   Home — simplified, livelier
   ============================================================ */

/* hero trustline + animated transit art */
.trustline { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; }
.trust { display: flex; align-items: baseline; gap: 8px; }
.trust b { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; color: #fff; }
.trust span { font-size: .82rem; color: rgba(255,255,255,.82); max-width: 210px; line-height: 1.4; }

.hero-art { position: absolute; right: 3%; top: 50%; transform: translateY(-50%); width: 320px; max-width: 38%; opacity: .96; pointer-events: none; }
.art-svg { width: 100%; height: auto; display: block; }
.art-txt { fill: rgba(255,255,255,.92); font-size: 13px; font-weight: 700; font-family: inherit; }
.art-route { animation: artDash 2.2s linear infinite; }
.art-hk, .art-sz { animation: artPulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art-sz { animation-delay: 1.2s; }
.art-plane { animation: artFly 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes artDash { to { stroke-dashoffset: -30; } }
@keyframes artPulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes artFly {
  0%   { transform: translate(22px,150px) rotate(-12deg); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translate(276px,116px) rotate(9deg); opacity: 0; }
}
@media (max-width: 980px) { .hero-art { display: none; } }
@media (max-width: 620px) { .trustline { gap: 8px 18px; } .trust b { font-size: 1.25rem; } .trust span { font-size: .76rem; max-width: 150px; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* eligibility result — vivid icon */
.result.show { animation: resultIn .35s ease both; }
@keyframes resultIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result.has-ico { overflow: hidden; }
.result-ico { float: left; width: 38px; height: 38px; margin: 2px 14px 6px 0; border-radius: 11px; display: grid; place-items: center; flex: none; }
.result-ico svg { width: 21px; height: 21px; }
.result-ico.ok { background: var(--ok-soft); color: var(--ok); }
.result-ico.warn { background: var(--warn-soft); color: var(--warn); }
.result-ico.bad { background: var(--danger-soft); color: var(--danger); }

/* first-60-minutes steps as a connected timeline */
.steps li::after { content: ""; position: absolute; left: 28px; top: 44px; bottom: -14px; width: 2px; background: var(--brand-300); opacity: .5; }
.steps li:last-child::after { display: none; }
.route-panel.on li { animation: stepIn .45s ease both; }
.route-panel.on li:nth-child(1) { animation-delay: .02s; }
.route-panel.on li:nth-child(2) { animation-delay: .05s; }
.route-panel.on li:nth-child(3) { animation-delay: .08s; }
.route-panel.on li:nth-child(4) { animation-delay: .11s; }
.route-panel.on li:nth-child(5) { animation-delay: .14s; }
.route-panel.on li:nth-child(6) { animation-delay: .17s; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* compact quick-links strip */
.qlinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 12px; }
.qlink { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .2s ease, border-color .2s ease; }
.qlink:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-300); text-decoration: none; }
.ql-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-050); color: var(--brand-700); flex: none; transition: background .2s ease, color .2s ease; }
.ql-ico svg { width: 19px; height: 19px; }
.qlink:hover .ql-ico { background: var(--brand-700); color: #fff; }
.qlink span:last-child { font-weight: 650; font-size: .95rem; }
.ql-danger { border-color: #f3c4bd; }
.ql-danger .ql-ico { background: var(--danger-soft); color: var(--danger); }
.ql-danger:hover { border-color: var(--danger); }
.ql-danger:hover .ql-ico { background: var(--danger); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero-art *, .reveal, .route-panel.on li, .result.show { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Route maps & card icons (free-tour / explore)
   ============================================================ */
.rmap { display: flex; gap: 8px; padding: 18px 4px 6px; }
.rstop { flex: 1 1 0; min-width: 0; text-align: center; position: relative; padding: 0 4px; }
.rstop::after { content: ""; position: absolute; top: 34px; left: 50%; width: 100%; height: 3px; background: var(--brand-300); opacity: .7; z-index: 0; }
.rstop:last-child::after { display: none; }
.rstop-ico { position: relative; z-index: 1; width: 56px; height: 56px; margin: 6px auto 10px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--brand-500); color: var(--brand-700); box-shadow: 0 2px 8px rgba(16,40,56,.08); }
.rstop-ico svg { width: 26px; height: 26px; }
.rstop b { display: block; font-size: .9rem; font-weight: 650; line-height: 1.3; }
.rstop span { display: block; font-size: .76rem; color: var(--muted); margin-top: 3px; }
@media (max-width: 620px) { .rstop-ico { width: 46px; height: 46px; } .rstop-ico svg { width: 21px; height: 21px; } .rstop::after { top: 29px; } .rstop b { font-size: .82rem; } }

/* ---------- route-stop thumbnails (tap to view the full photo) ---------- */
.rthumb {
  display: block; margin: 8px auto 0; padding: 0; width: 74px; height: 56px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--brand-050); cursor: zoom-in; line-height: 0;
  transition: box-shadow .16s ease, transform .16s ease;
}
.rthumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rthumb:hover { box-shadow: 0 6px 16px rgba(16,40,56,.18); transform: translateY(-1px); }
.rthumb:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
@media (max-width: 620px) { .rthumb { width: 58px; height: 44px; border-radius: 8px; } }

/* any local photo marked .zoomable can be tapped to open full-size
   (wired in app.js → wireThumbs; the image keeps its caption as alt text) */
img.zoomable { cursor: zoom-in; }
img.zoomable:hover { opacity: .94; }

/* full-size viewer opened from a thumbnail; click anywhere (or Esc) to dismiss */
.img-viewer {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  padding: 4vmin; background: rgba(8,20,28,.9); cursor: zoom-out;
  animation: ivIn .16s ease both;
}
.img-viewer img { max-width: 94vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.img-viewer-cap { position: absolute; left: 0; right: 0; bottom: 2.4vh; text-align: center; color: #fff; font-size: .84rem; opacity: .85; padding: 0 6vw; }
@keyframes ivIn { from { opacity: 0 } to { opacity: 1 } }

/* ---------- home-page arrival summary (points + detail link) ---------- */
.rp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rp-list li {
  position: relative; padding: 12px 14px 12px 42px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--card-bg); font-size: .92rem; line-height: 1.5;
}
.rp-list li::before {
  content: ""; position: absolute; left: 16px; top: 18px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-050);
}
.rp-list b { font-weight: 650; }
.rp-cta { margin: 14px 0 0; }

.card-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-050); color: var(--brand-700); margin-bottom: 10px; }
.card-ico svg { width: 21px; height: 21px; }

/* ---------- itinerary hero photos ---------- */
.plan-hero { margin: 10px 0 4px; }
.plan-hero img {
  display: block; width: 100%; max-height: 260px; object-fit: cover;
  border-radius: 10px; background: var(--brand-050);
}
.plan-hero figcaption {
  font-size: .8rem; color: var(--muted); margin-top: 6px;
  text-align: center; line-height: 1.35;
}

.photo-credits {
  margin-top: 36px; padding: 14px 18px; border-radius: 10px;
  background: var(--brand-050); color: var(--muted);
  font-size: .82rem; line-height: 1.55;
}
.photo-credits h4 { margin: 0 0 6px; font-size: .92rem; color: var(--brand-700); }
.photo-credits ul { margin: 6px 0 0; padding-left: 18px; }
.photo-credits li { margin: 3px 0; }

/* ---------- photo gallery strip ---------- */
.photo-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 18px;
}
.pg-card { background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px; box-shadow: var(--shadow-sm); }
.pg-card img {
  display: block; width: 100%; height: 170px; object-fit: cover;
  border-radius: 8px; background: var(--brand-050);
}
.pg-card p { margin: 8px 2px 0; font-size: .86rem; color: var(--ink); line-height: 1.4; }
.pg-card p strong { display: block; font-size: .9rem; margin-bottom: 2px; }
@media (max-width: 760px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .pg-card img { height: 150px; }
}

/* Arrival-page real-photo figures */
.arrive-photo { margin: 18px 0 8px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card-bg); box-shadow: var(--shadow-sm); }
.arrive-photo img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; object-position: center top; }
.arrive-photo figcaption { padding: 10px 14px; font-size: .82rem; color: var(--muted); background: var(--bg-2); line-height: 1.45; }
/* signage and counters sit at the top of these shots, so cropping keeps the top
   (the signboard stays readable even when the photo is letterboxed) */
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 520px) {
  .arrive-photo img { max-height: 260px; }
  .photo-row { grid-template-columns: 1fr; }
}
@media print {
  .arrive-photo { break-inside: avoid; page-break-inside: avoid; }
}

/* ============================================================
   Print / save-as-PDF (per-itinerary)
   ============================================================ */
.print-head { display: none; }

@media print {
  @page { margin: 14mm 12mm; }
  html, body { background: #fff; }
  .site-header, .page-hero, .footer, .sos-banner, .toc, .nav-toggle, .no-print, .pdf-btn,
  .rthumb, .img-viewer {
    display: none !important;
  }
  .print-head {
    display: block !important;
    margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--brand-700);
  }
  .print-head h2 { margin: 6px 0 6px; font-size: 1.25rem; }
  .print-head p { margin: 0 0 5px; font-size: .9rem; }
  .ph-top { font-size: .82rem; color: var(--brand-700); font-weight: 650; letter-spacing: .02em; }
  .ph-note { font-size: .8rem !important; color: #555 !important; }

  /* single-plan mode: only the chosen card prints */
  body.printing .wrap > * { display: none !important; }
  body.printing .wrap > .print-head { display: block !important; }
  body.printing #plans { display: block !important; }
  body.printing #plans > *:not(.grid):not(.print-me) { display: none !important; }
  body.printing #plans .grid { display: block !important; }
  body.printing #plans .card:not(.print-me) { display: none !important; }
  body.printing #plans .card.print-me {
    display: block !important; border: 0; box-shadow: none; padding: 0;
  }
  .card.print-me .rmap { padding: 12px 0 4px; }
  .card.print-me .rstop-ico { border-color: var(--brand-700); }
  .card.print-me .plan-hero img { max-height: 170px; }
  .card, .steps li, .rstop, .kv dt, .kv dd { break-inside: avoid; page-break-inside: avoid; }
  .photo-credits { display: none; }
  .card.print-me h3 { font-size: 1.15rem; }
}

/* ---------- eSIM provider links & affiliate disclosure ---------- */
.buy-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 7px 13px; border-radius: 9px; background: var(--brand-050);
  border: 1px solid var(--brand-300); color: var(--brand-700);
  font-weight: 650; font-size: .86rem;
}
.buy-link:hover { background: var(--brand-700); color: #fff; border-color: var(--brand-700); text-decoration: none; }
.aff-note { margin-top: 14px; font-size: .82rem; color: var(--muted); }
