/* =========================================================
   漫游志 · MANYOU JOURNAL
   A warm, editorial travel planner
   ========================================================= */

:root {
  --paper: #f6f1e7;
  --paper-deep: #eee5d5;
  --cream: #fbf7ef;
  --white: #fffdf8;
  --ink: #17372d;
  --ink-2: #315246;
  --muted: #78847b;
  --muted-2: #9ca69c;
  --line: rgba(23, 55, 45, 0.13);
  --line-strong: rgba(23, 55, 45, 0.24);
  --accent: #dd6b43;
  --accent-deep: #c65331;
  --accent-soft: #f4ddce;
  --sage: #8da695;
  --sage-soft: #dfe8dd;
  --sand: #d9c39f;
  --sun: #e8b269;
  --danger: #b64936;
  --shadow-sm: 0 8px 24px rgba(42, 51, 40, 0.07);
  --shadow-md: 0 22px 55px rgba(42, 51, 40, 0.12);
  --shadow-lg: 0 36px 90px rgba(30, 46, 38, 0.2);
  --serif: "STZhongsong", "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection { color: var(--white); background: var(--accent); }

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, select { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
img { max-width: 100%; }
em { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 112px clamp(24px, 5vw, 64px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--dark {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(23, 55, 45, 0.16);
}
.btn--dark:hover { background: #22493c; box-shadow: 0 12px 28px rgba(23, 55, 45, 0.22); }

.btn--accent {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(221, 107, 67, 0.25);
}
.btn--accent:hover { background: var(--accent-deep); box-shadow: 0 14px 30px rgba(221, 107, 67, 0.3); }

.btn--ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 253, 248, 0.5);
}
.btn--ghost:hover { background: var(--white); border-color: var(--ink); }

.btn--soft {
  color: var(--ink);
  background: var(--sage-soft);
}
.btn--soft:hover { background: #d2e0d3; }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn--block { width: 100%; }

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s, transform 0.2s;
}
.icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover { background: var(--white); transform: rotate(-18deg); }

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}
.text-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.text-button:hover { color: var(--accent); }

/* ---------- announcement ---------- */

.city-announcement {
  color: rgba(246, 241, 231, 0.88);
  background: var(--ink);
}
.city-announcement-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 8px clamp(24px, 5vw, 64px);
  font-size: 10px;
}
.city-announcement-inner p { min-width: 0; }
.city-announcement-inner strong { color: var(--white); font-weight: 700; }
.announcement-badge {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
  background: var(--sun);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.city-announcement-inner a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--sun);
  font-size: 9px;
  font-weight: 700;
}
.city-announcement-inner a:hover { color: var(--white); }
.city-announcement-inner a svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
  padding: 0 clamp(24px, 5vw, 64px);
  border-bottom: 1px solid transparent;
  background: rgba(246, 241, 231, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(250, 246, 238, 0.94);
  box-shadow: 0 8px 30px rgba(35, 50, 42, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
}
.brand-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.35; }
.brand-type {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
}
.brand-type small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: 26px;
}
.main-nav a {
  position: relative;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.saved-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  transition: background 0.2s, border-color 0.2s;
}
.saved-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.saved-button b {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  font-size: 9px;
}
.saved-button:hover { background: var(--white); border-color: var(--line-strong); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  align-items: center;
  gap: 34px;
  max-width: 1480px;
  min-height: 780px;
  margin: 0 auto;
  padding: 74px clamp(24px, 6vw, 96px) 166px;
  overflow: hidden;
}

.hero::before {
  content: "WANDER";
  position: absolute;
  right: -28px;
  bottom: 138px;
  z-index: -1;
  color: rgba(23, 55, 45, 0.035);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(150px, 21vw, 310px);
  font-weight: 700;
  line-height: 0.7;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 4%;
  right: 3%;
  z-index: -1;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 195, 159, 0.35) 0%, rgba(246, 241, 231, 0) 68%);
  filter: blur(8px);
}

.hero-copy { position: relative; z-index: 2; padding-top: 8px; }

.hero h1 {
  max-width: 680px;
  margin-top: 25px;
  font-family: var(--serif);
  font-size: clamp(56px, 5.7vw, 88px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.scribble { position: relative; display: inline-block; color: var(--accent); }
.scribble svg {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 16px;
  overflow: visible;
}
.scribble svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.75;
}

.hero-lede {
  margin-top: 27px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.9;
}

.hero-facts {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 38px;
}
.hero-facts div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.hero-facts div:first-child { padding-left: 0; border-left: 0; }
.hero-facts strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero-facts span { color: var(--muted); font-size: 10px; letter-spacing: 0.04em; }

.hero-visual {
  position: relative;
  height: 570px;
  min-width: 0;
}

.postcard {
  position: absolute;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: var(--shadow-md);
  transition: transform 0.6s var(--ease);
}
.postcard-scene { position: absolute; inset: 0; }
.postcard .scene-svg { width: 100%; height: 100%; object-fit: cover; }
.postcard > span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: rgba(255, 253, 248, 0.96);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-shadow: 0 1px 12px rgba(8, 25, 18, 0.45);
}

.postcard--main {
  top: 28px;
  right: 52px;
  z-index: 2;
  width: min(340px, 55%);
  height: 450px;
  border: 9px solid var(--white);
  border-radius: 178px 178px 18px 18px;
  transform: rotate(1.6deg);
}
.postcard--main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(14, 35, 29, 0.26) 62%, rgba(12, 31, 24, 0.8) 100%);
}
.postcard-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-shadow: 0 1px 18px rgba(8, 25, 18, 0.35);
}
.postcard-caption small { margin-bottom: 8px; font-size: 7px; font-weight: 700; letter-spacing: 0.2em; opacity: 0.75; }
.postcard-caption strong { font-family: var(--serif); font-size: 26px; letter-spacing: 0.06em; }
.postcard-caption span { margin-top: 3px; font-size: 8px; letter-spacing: 0.15em; opacity: 0.7; }

.postcard--back {
  top: 155px;
  left: 4px;
  z-index: 1;
  width: 205px;
  height: 270px;
  border: 7px solid var(--white);
  border-radius: 15px;
  transform: rotate(-8deg);
}
.postcard--back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12, 31, 24, 0.72));
}

.postcard--front {
  right: 0;
  bottom: 65px;
  z-index: 3;
  width: 176px;
  height: 218px;
  border: 7px solid var(--white);
  border-radius: 14px;
  transform: rotate(7deg);
}
.postcard--front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(12, 31, 24, 0.7));
}

.hero-visual:hover .postcard--main { transform: rotate(0.5deg) translateY(-5px); }
.hero-visual:hover .postcard--back { transform: rotate(-10deg) translate(-4px, 2px); }
.hero-visual:hover .postcard--front { transform: rotate(9deg) translate(4px, 2px); }

.floating-ticket {
  position: absolute;
  left: 17px;
  bottom: 4px;
  z-index: 4;
  width: 238px;
  padding: 17px 18px 14px;
  border: 1px solid rgba(23, 55, 45, 0.1);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 20px 46px rgba(37, 50, 41, 0.2);
  transform: rotate(-3.5deg);
}
.ticket-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: 0.16em; }
.ticket-top svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.floating-ticket strong { display: block; margin-top: 10px; font-family: var(--serif); font-size: 25px; letter-spacing: 0.03em; }
.floating-ticket p { color: var(--muted); font-size: 11px; }
.ticket-dash { margin: 13px 0 9px; border-top: 1px dashed var(--line-strong); }
.ticket-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 600; }
.ticket-bottom b { color: var(--accent); font-size: 7px; letter-spacing: 0.15em; }

.round-stamp {
  position: absolute;
  top: 8px;
  right: 15px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(23, 55, 45, 0.3);
  border-radius: 50%;
  color: var(--ink-2);
  background: rgba(246, 241, 231, 0.65);
  font-family: Georgia, serif;
  transform: rotate(10deg);
}
.round-stamp::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(23, 55, 45, 0.25); border-radius: 50%; }
.round-stamp span { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; }
.round-stamp small { font-size: 8px; letter-spacing: 0.16em; }

.doodle { position: absolute; fill: none; stroke: rgba(23, 55, 45, 0.34); stroke-width: 1.2; stroke-linecap: round; }
.doodle--plane { top: 405px; left: 5px; width: 92px; height: 56px; transform: rotate(-12deg); }

.hero-note {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.hero-note svg { width: 12px; height: 12px; fill: none; stroke: var(--accent); stroke-width: 2; }

/* ---------- quick planner ---------- */

.quick-planner {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  right: clamp(24px, 5vw, 72px);
  bottom: 34px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 0.8fr 1fr 0.7fr auto;
  align-items: center;
  gap: 0;
  padding: 14px 15px;
  border: 1px solid rgba(23, 55, 45, 0.11);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 48px rgba(38, 50, 42, 0.13);
  backdrop-filter: blur(14px);
}
.qp-field {
  min-width: 0;
  padding: 3px 19px;
  border-left: 1px solid var(--line);
}
.qp-field:first-child { border-left: 0; padding-left: 8px; }
.qp-field label,
.qp-field .qp-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.qp-count {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 1px;
}
.qp-field select,
.qp-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}
.qp-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 20px; }
.qp-field input[type="date"] { padding: 0; font-size: 12px; }
.qp-field input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.qp-field input[type="number"]::-webkit-outer-spin-button,
.qp-field input[type="number"]::-webkit-inner-spin-button { appearance: none; margin: 0; }

.select-wrap { position: relative; }
.select-wrap > svg {
  position: absolute;
  right: 0;
  top: 50%;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  pointer-events: none;
  transform: translateY(-50%);
}

.input-with-icon { position: relative; }
.input-with-icon svg {
  position: absolute;
  left: 0;
  top: 50%;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  transform: translateY(-50%);
}
.input-with-icon input { padding-left: 19px; }

.money-input { display: flex; align-items: center; gap: 2px; }
.money-input span { font-family: Georgia, serif; font-size: 15px; }
.money-input input { font-family: Georgia, "Times New Roman", serif; font-size: 17px; }

.quick-stepper { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.quick-stepper button {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}
.quick-stepper button:hover { border-color: var(--ink); background: var(--cream); }
.quick-stepper svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.quick-stepper span { font-size: 14px; font-weight: 700; white-space: nowrap; }

.qp-submit { min-height: 52px; padding: 0 21px; margin-left: 6px; font-size: 13px; }

/* ---------- section headings ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 38px;
}
.section-head h2,
.planner-top h2,
.guide-section h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.035em;
}
.section-intro {
  max-width: 400px;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  text-align: right;
}
.section-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.city-proof {
  max-width: 470px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.7;
  text-align: right;
}
.city-proof b { color: var(--ink-2); font-size: 10px; font-weight: 700; }
.section-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 700;
  transition: color 0.2s, border-color 0.2s;
}
.section-jump:hover { color: var(--accent); border-color: var(--accent); }
.section-jump svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.section-jump span { color: var(--accent); }
.section-head--compact { margin-bottom: 34px; }

/* ---------- destinations ---------- */

.destinations { padding-top: 106px; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-chip {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 11px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.filter-chip:hover { border-color: var(--line-strong); background: var(--white); }
.filter-chip.is-active {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}
.filter-chip svg { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.destination-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dest-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper-deep);
  box-shadow: 0 5px 18px rgba(35, 48, 39, 0.06);
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.dest-card:nth-child(3n + 2) { transform: translateY(18px); }
.dest-card:hover,
.dest-card:focus-visible { z-index: 2; transform: translateY(-7px); box-shadow: var(--shadow-md); }
.dest-card:nth-child(3n + 2):hover,
.dest-card:nth-child(3n + 2):focus-visible { transform: translateY(10px); }
.dest-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.dest-art { position: absolute; inset: 0; }
.dest-art .scene-svg { width: 100%; height: 100%; transition: transform 0.9s var(--ease); }
.dest-card:hover .dest-art .scene-svg { transform: scale(1.045); }
.dest-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 38, 31, 0.12) 0%, transparent 35%, rgba(15, 31, 25, 0.15) 52%, rgba(13, 29, 24, 0.88) 100%);
}

.dest-top {
  position: absolute;
  top: 16px;
  left: 17px;
  right: 15px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--white);
}
.dest-index { font-family: Georgia, serif; font-size: 11px; letter-spacing: 0.1em; opacity: 0.72; }
.fav-btn {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 1px solid rgba(255, 253, 248, 0.4);
  border-radius: 50%;
  color: var(--white);
  background: rgba(18, 38, 31, 0.16);
  backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.fav-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fav-btn:hover { transform: scale(1.07); background: rgba(255, 253, 248, 0.22); }
.fav-btn.is-active { color: var(--accent); background: var(--white); }
.fav-btn.is-active svg { fill: currentColor; }

.dest-body {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 19px;
  z-index: 3;
  color: var(--white);
}
.dest-en { color: rgba(255, 253, 248, 0.68); font-size: 8px; font-weight: 700; letter-spacing: 0.24em; }
.dest-name-row { display: flex; align-items: baseline; gap: 9px; margin-top: 2px; }
.dest-name-row h3 { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: 0.05em; }
.dest-name-row span { color: rgba(255, 253, 248, 0.72); font-size: 9px; }
.dest-tagline {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: rgba(255, 253, 248, 0.86);
  font-size: 11px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.dest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 253, 248, 0.24);
  color: rgba(255, 253, 248, 0.82);
  font-size: 9px;
}
.dest-meta span + span::before { content: "·"; margin-right: 5px; opacity: 0.55; }
.dest-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  font-size: 10.5px;
  font-weight: 700;
}
.dest-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform 0.25s; }
.dest-card:hover .dest-cta svg { transform: translateX(4px); }

.empty-state {
  grid-column: 1 / -1;
  padding: 58px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}
.empty-state strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--serif); font-size: 22px; }

/* ---------- national city index ---------- */

.city-library {
  position: relative;
  margin-top: 0;
  padding: 25px 27px 18px;
  overflow: hidden;
  border: 1px solid rgba(23, 55, 45, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 0%, rgba(217, 195, 159, 0.22), transparent 32%),
    rgba(255, 253, 248, 0.55);
}
.city-library::before {
  content: "";
  position: absolute;
  top: -120px;
  right: 12%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(23, 55, 45, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.city-library-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 15px;
}
.city-library-eyebrow {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.city-library-head .kicker { margin-bottom: 6px; }
.city-library-head h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.city-library-head h3 span { color: var(--accent); }
.city-library-head p:not(.kicker) { margin-top: 5px; color: var(--muted); font-size: 10px; }
.city-library-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.city-search {
  position: relative;
  display: block;
  width: 250px;
}
.city-search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  transform: translateY(-50%);
  pointer-events: none;
}
.city-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 253, 248, 0.86);
  font-size: 11px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.city-search input:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(23, 55, 45, 0.06); }
.city-search input::placeholder { color: var(--muted-2); }
.city-province-select select {
  height: 42px;
  min-width: 126px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 253, 248, 0.86);
  font-size: 11px;
  cursor: pointer;
}
.city-province-select svg {
  right: 14px;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  pointer-events: none;
}
.city-results {
  position: relative;
  z-index: 1;
  max-height: 510px;
  overflow-y: auto;
  padding: 2px 9px 2px 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 55, 45, 0.28) transparent;
  overscroll-behavior: contain;
}
.city-results.is-expanded { max-height: none; overflow: visible; }
.city-results::-webkit-scrollbar { width: 6px; }
.city-results::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(23, 55, 45, 0.22); }
.city-province-group { padding: 11px 0 12px; border-bottom: 1px dashed rgba(23, 55, 45, 0.09); }
.city-province-group:last-child { border-bottom: 0; }
.city-province-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  padding: 4px 0;
  background: #fbf8f1;
}
.city-province-head strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.city-province-head span {
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 7px;
}
.city-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 5px;
}
.city-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: 31px;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--ink-2);
  font-size: 10.5px;
  text-align: left;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s;
}
.city-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.city-chip em {
  flex-shrink: 0;
  color: var(--muted-2);
  font-size: 7px;
  font-style: normal;
}
.city-chip:hover {
  border-color: var(--ink-2);
  background: var(--white);
  color: var(--ink);
  transform: translateY(-1px);
}
.city-chip.is-current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.city-chip.is-current em { color: rgba(255, 253, 248, 0.55); }
.city-filter-empty {
  padding: 38px 16px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.city-filter-empty strong { display: block; margin-bottom: 3px; color: var(--ink); font-family: var(--serif); font-size: 20px; }
.city-result {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 13px 42px 12px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.city-result:hover {
  border-color: var(--line-strong);
  background: var(--white);
  box-shadow: 0 7px 18px rgba(35, 48, 39, 0.06);
  transform: translateY(-2px);
}
.city-result.is-current { border-color: var(--ink); background: #eff4eb; box-shadow: inset 0 0 0 1px var(--ink); }
.city-result-top { display: flex; align-items: center; gap: 7px; padding-right: 2px; }
.city-result-province {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 3px;
  color: var(--ink-2);
  background: var(--paper-deep);
  font-size: 7px;
  font-weight: 700;
}
.city-result-spots { margin-left: auto; color: var(--muted-2); font-size: 7px; white-space: nowrap; }
.city-result strong {
  overflow: hidden;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.city-result-note {
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.city-result-arrow {
  position: absolute;
  top: 50%;
  right: 13px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transform: translateY(-50%);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.city-result-arrow svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.city-result:hover .city-result-arrow { border-color: var(--ink); background: var(--ink); color: var(--white); }
.city-result.is-current .city-result-arrow { border-color: var(--ink); background: var(--ink); color: var(--white); }
.city-library-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
  padding-top: 12px;
}
.city-library-foot > span { color: var(--muted); font-size: 9px; }
.city-library-foot .text-button { color: var(--ink-2); font-size: 10px; }
.featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 47px;
  padding-top: 29px;
  border-top: 1px solid var(--line);
}
.featured-head .kicker { margin-bottom: 7px; }
.featured-head h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.featured-head > p { max-width: 310px; color: var(--muted); font-size: 10px; line-height: 1.8; text-align: right; }
.featured-head + .filter-row { margin-top: 19px; }
.city-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 36px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.city-empty strong { color: var(--ink); font-family: var(--serif); font-size: 20px; }
.city-empty span { font-size: 10px; }

/* ---------- planner ---------- */

.planner-section {
  position: relative;
  padding: 100px 0 110px;
  background:
    radial-gradient(circle at 8% 12%, rgba(217, 195, 159, 0.34), transparent 26%),
    linear-gradient(180deg, #f1e9dc 0%, #f7f2e8 100%);
  border-top: 1px solid rgba(23, 55, 45, 0.06);
  border-bottom: 1px solid rgba(23, 55, 45, 0.06);
}
.planner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 54px;
  background: var(--line);
}

.planner-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 44px);
}

.planner-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 0 8px;
}
.planner-top .kicker { margin-bottom: 9px; }
.planner-top h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.planner-top h2 em {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.plan-meta { margin-top: 7px; color: var(--muted); font-size: 11px; letter-spacing: 0.03em; }
.plan-actions { display: flex; align-items: center; gap: 9px; padding-bottom: 2px; }
.auto-save { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.auto-save i { width: 5px; height: 5px; border-radius: 50%; background: #6c9a74; box-shadow: 0 0 0 3px rgba(108, 154, 116, 0.12); }

.planner-shell {
  display: grid;
  grid-template-columns: 322px minmax(0, 1fr) 318px;
  align-items: start;
  overflow: hidden;
  border: 1px solid rgba(23, 55, 45, 0.1);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(46, 56, 45, 0.13);
}

.settings-panel {
  padding: 27px 24px 22px;
  border-right: 1px solid var(--line);
  background: #faf6ed;
}
.itinerary-panel { padding: 25px 28px 20px; min-width: 0; }
.insights-panel {
  padding: 25px 21px 22px;
  border-left: 1px solid var(--line);
  background: #fbf8f1;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.panel-title > div > span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.panel-title h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 0.03em; }

/* settings */

.setting-group { margin-top: 20px; }
.settings-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.6);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 700;
}
.settings-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.25s var(--ease);
}
.settings-panel:not(.is-collapsed) .settings-toggle svg { transform: rotate(180deg); }
.settings-body { display: block; }
.setting-label,
.setting-label-row .setting-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.setting-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.setting-label-row .setting-label { margin-bottom: 0; }
.setting-label-row small { color: var(--muted-2); font-size: 8px; }

.select-wrap--field {
  position: relative;
  border-bottom: 1px solid var(--line-strong);
}
.select-wrap--field select {
  width: 100%;
  padding: 8px 23px 8px 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.select-wrap--field svg {
  position: absolute;
  right: 1px;
  top: 50%;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  pointer-events: none;
  transform: translateY(-50%);
}

.setting-row { display: grid; grid-template-columns: 1fr 0.82fr; gap: 12px; }
.field-input {
  width: 100%;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: rgba(255, 253, 248, 0.7);
  font-size: 11px;
}
.field-input:focus { border-color: var(--ink-2); }

.small-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.7);
}
.small-stepper button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.small-stepper button:hover { background: var(--paper-deep); }
.small-stepper svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.small-stepper span { font-size: 11px; font-weight: 700; }

.big-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.big-stepper button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}
.big-stepper button:hover { border-color: var(--ink); background: var(--paper); }
.big-stepper svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.big-stepper div { display: flex; align-items: baseline; gap: 3px; }
.big-stepper strong { font-family: Georgia, serif; font-size: 26px; font-weight: 500; line-height: 1; }
.big-stepper span { color: var(--muted); font-size: 10px; }

.budget-control {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0 5px;
  border-bottom: 1px solid var(--line-strong);
}
.budget-control span { font-family: Georgia, serif; font-size: 19px; }
.budget-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  appearance: textfield;
  -moz-appearance: textfield;
}
.budget-control input::-webkit-outer-spin-button,
.budget-control input::-webkit-inner-spin-button { appearance: none; margin: 0; }

.budget-range {
  width: 100%;
  height: 3px;
  margin: 15px 0 5px;
  border-radius: 3px;
  outline: 0;
  appearance: none;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--range-fill, 21%), rgba(23, 55, 45, 0.12) var(--range-fill, 21%));
  cursor: pointer;
}
.budget-range::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  appearance: none;
}
.budget-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.budget-scale { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 8px; }
.budget-presets { display: flex; gap: 5px; margin-top: 10px; }
.budget-presets button {
  flex: 1;
  padding: 5px 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font-size: 8px;
}
.budget-presets button:hover { border-color: var(--ink-2); background: var(--white); }

.tier-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(23, 55, 45, 0.055);
}
.tier-options button {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 5px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
}
.tier-options button span { font-size: 10px; font-weight: 700; }
.tier-options button small { color: var(--muted-2); font-size: 7px; white-space: nowrap; }
.tier-options button.is-active { border-color: rgba(23, 55, 45, 0.08); background: var(--white); box-shadow: 0 3px 8px rgba(23, 55, 45, 0.06); }

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(23, 55, 45, 0.055);
}
.segmented button {
  padding: 7px 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}
.segmented button.is-active { color: var(--ink); background: var(--white); box-shadow: 0 2px 6px rgba(23, 55, 45, 0.07); font-weight: 700; }

.interest-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.interest-chips button {
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.interest-chips button:hover { border-color: var(--line-strong); color: var(--ink); }
.interest-chips button.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }

.settings-panel .btn--block { margin-top: 23px; min-height: 45px; font-size: 12px; }
.setting-tip { margin-top: 9px; color: var(--muted-2); font-size: 8px; line-height: 1.6; text-align: center; }

/* itinerary toolbar */

.itinerary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.day-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 58px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.day-tab b { font-size: 10px; font-weight: 700; white-space: nowrap; }
.day-tab span { font-size: 8px; white-space: nowrap; opacity: 0.72; }
.day-tab:hover { background: var(--paper); }
.day-tab.is-active { color: var(--white); background: var(--ink); }
.day-tab--all { min-width: 47px; align-items: center; justify-content: center; }

.day-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 19px 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 55, 45, 0.08);
  border-radius: 13px;
  background: linear-gradient(110deg, #f1eee2 0%, #f8f5ec 62%, #f9f4e9 100%);
}
.day-overview-copy { display: flex; align-items: center; gap: 11px; min-width: 0; }
.day-overview-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(221, 107, 67, 0.1);
}
.day-overview-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.day-overview-copy h4 { font-family: var(--serif); font-size: 16px; line-height: 1.35; }
.day-overview-copy p { color: var(--muted); font-size: 9px; }
.day-overview-cost { flex-shrink: 0; text-align: right; }
.day-overview-cost span { display: block; color: var(--muted); font-size: 8px; }
.day-overview-cost strong { font-family: Georgia, serif; font-size: 18px; font-weight: 500; }

/* timeline */

.itinerary-content { min-height: 545px; }
.print-budget { display: none; }

.day-block + .day-block { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.day-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.day-block-head h4 { font-family: var(--serif); font-size: 20px; }
.day-block-head span { color: var(--muted); font-size: 9px; }

.timeline { position: relative; }
.time-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 22px minmax(0, 1fr);
  gap: 7px;
  padding-bottom: 13px;
}
.time-item:last-child { padding-bottom: 0; }

.time-col { padding-top: 13px; text-align: right; }
.time-col span { display: block; color: var(--ink-2); font-size: 10px; font-weight: 700; letter-spacing: 0.01em; }
.time-col em { display: block; margin-top: 1px; color: var(--muted-2); font-size: 7px; }

.time-rail { position: relative; display: flex; justify-content: center; }
.time-rail::before {
  content: "";
  position: absolute;
  top: 25px;
  bottom: -14px;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}
.time-item:last-child .time-rail::before { display: none; }
.time-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
}
.time-dot svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.time-item--attraction .time-dot { color: var(--accent); border-color: rgba(221, 107, 67, 0.32); background: #fdf2ea; }
.time-item--hotel .time-dot { color: #708d7b; background: #f1f5ec; }
.time-item--meal .time-dot { color: #ad8b4e; background: #fbf5e7; }
.time-item--custom .time-dot { color: #5c7f92; background: #edf5f5; }

.time-card {
  min-width: 0;
  padding: 13px 15px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.time-item--attraction .time-card:hover { border-color: rgba(23, 55, 45, 0.26); box-shadow: var(--shadow-sm); transform: translateX(2px); }

.time-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.time-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 4px;
  color: var(--ink-2);
  background: var(--paper);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.tag--accent { color: var(--accent-deep); background: var(--accent-soft); }
.rating { display: inline-flex; align-items: center; gap: 3px; color: #a97b3e; font-size: 8px; white-space: nowrap; }
.rating svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }

.time-card h4 { margin-top: 7px; font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: 0.01em; }
.time-card > p { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.65; }

.time-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; color: var(--muted); font-size: 8.5px; }
.foot-meta span { display: inline-flex; align-items: center; gap: 4px; }
.foot-meta svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.foot-price { color: var(--ink-2); font-weight: 700; }
.remove-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  opacity: 0.6;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.remove-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.remove-btn:hover { color: var(--danger); background: #f9ece8; opacity: 1; }

/* meal / hotel / transit cards */

.time-item--meal .time-card,
.time-item--hotel .time-card {
  padding: 10px 13px;
  border-color: transparent;
  background: rgba(242, 237, 226, 0.62);
  border-radius: 10px;
}
.time-item--meal .time-card:hover,
.time-item--hotel .time-card:hover { border-color: var(--line); }
.time-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.time-line-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.time-line-main strong { overflow: hidden; color: var(--ink-2); font-size: 10.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.time-line-main span { flex-shrink: 0; color: var(--muted); font-size: 8.5px; }
.time-line-price { flex-shrink: 0; color: var(--muted); font-size: 8.5px; }
.meal-note { margin-top: 2px; color: var(--muted-2); font-size: 8.5px; }

.time-item--transit .time-card { padding: 8px 12px; border-style: dashed; background: transparent; }
.transit-line { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; }
.transit-line svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.custom-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5c7f92;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.itinerary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8px;
}
.itinerary-footer > span { display: inline-flex; align-items: center; gap: 4px; }
.itinerary-footer svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* ---------- budget panel ---------- */

.budget-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  color: #4e7a5c;
  background: #e5efe5;
  font-size: 7px;
  font-weight: 700;
}
.budget-badge.is-warn { color: #a46d20; background: #faedd6; }
.budget-badge.is-over { color: var(--danger); background: #f8e4de; }

.budget-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 19px auto 15px;
  border-radius: 50%;
  background: conic-gradient(var(--ink) 0 25%, var(--accent) 25% 50%, var(--sun) 50% 70%, var(--sage) 70% 88%, var(--sand) 88% 100%);
  box-shadow: inset 0 0 0 1px rgba(23, 55, 45, 0.05);
}
.budget-ring::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: #fbf8f1;
  box-shadow: 0 0 0 1px rgba(23, 55, 45, 0.08), inset 0 2px 8px rgba(23, 55, 45, 0.04);
}
.budget-ring-center { position: relative; z-index: 1; text-align: center; }
.budget-ring-center span { display: block; color: var(--muted); font-size: 7px; }
.budget-ring-center strong {
  display: block;
  margin: 1px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.budget-ring-center small { display: block; color: var(--muted-2); font-size: 7px; }

.budget-legend { display: grid; gap: 6px; }
.legend-row { display: flex; align-items: center; gap: 7px; font-size: 8.5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.legend-label { color: var(--muted); }
.legend-amount { margin-left: auto; color: var(--ink-2); font-weight: 700; }

.budget-status {
  margin-top: 13px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #527760;
  background: #eaf1e8;
  font-size: 9px;
  line-height: 1.55;
}
.budget-status strong { color: var(--ink); }
.budget-status.is-warn { color: #9b6b28; background: #faf0dc; }
.budget-status.is-over { color: var(--danger); background: #f9e8e2; }
.budget-card .btn--block { min-height: 37px; margin-top: 10px; font-size: 9px; }

/* recommendations */

.recommend-card { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.recommend-card .panel-title h3 { font-size: 18px; }
.recommend-hint { margin-top: 5px; color: var(--muted-2); font-size: 8px; line-height: 1.55; }
.recommend-hint b { color: var(--accent); }
.recommend-list { display: grid; gap: 5px; margin-top: 12px; }
.rec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 8px;
  transition: background 0.2s;
}
.rec-item:hover { background: rgba(255, 253, 248, 0.9); }
.rec-thumb {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  color: var(--ink-2);
  background: var(--paper-deep);
}
.rec-thumb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rec-info { min-width: 0; flex: 1; }
.rec-info strong { display: block; overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.rec-info span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 7px; }
.rec-add {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.rec-add svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.rec-add:hover { color: var(--white); border-color: var(--accent); background: var(--accent); }
.rec-add.is-added { color: #5d8067; border-color: #b9cdbb; background: #edf3eb; pointer-events: none; }
.rec-add.is-added svg { stroke-width: 2.2; }
.rec-empty { padding: 18px 4px; color: var(--muted); font-size: 9px; text-align: center; }

.local-note {
  margin-top: 20px;
  padding: 12px 13px;
  border: 1px solid rgba(221, 107, 67, 0.18);
  border-radius: 10px;
  background: #fcf3eb;
}
.local-note-head { display: flex; align-items: center; gap: 5px; color: var(--accent-deep); font-size: 8px; font-weight: 700; }
.local-note-head svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.local-note p { margin-top: 5px; color: #8c6e5d; font-size: 8px; line-height: 1.65; }

/* ---------- guide ---------- */

.guide-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 104px clamp(24px, 5vw, 64px) 116px;
}
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card {
  position: relative;
  min-height: 270px;
  padding: 27px 27px 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.42);
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.guide-card:hover { background: var(--white); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.guide-card--accent { background: var(--ink); color: var(--white); border-color: var(--ink); }
.guide-card--accent:hover { background: #1e4538; }
.guide-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 11px;
}
.guide-card--accent .guide-number { color: rgba(255, 253, 248, 0.4); }
.guide-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
}
.guide-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.guide-card--accent .guide-icon { color: var(--sun); background: rgba(255, 253, 248, 0.1); }
.guide-card h3 { font-family: var(--serif); font-size: 23px; }
.guide-card p { max-width: 300px; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.85; }
.guide-card--accent p { color: rgba(255, 253, 248, 0.62); }
.guide-meta {
  position: absolute;
  left: 27px;
  bottom: 24px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
}
.guide-card--accent .guide-meta { color: rgba(255, 253, 248, 0.42); }

/* ---------- footer ---------- */

.site-footer {
  padding: 62px clamp(24px, 5vw, 64px) 28px;
  color: var(--paper);
  background: var(--ink);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  max-width: 1360px;
  margin: 0 auto;
  padding-bottom: 53px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.14);
}
.brand--footer .brand-mark { color: var(--ink); background: var(--paper); }
.brand--footer .brand-type small { color: rgba(246, 241, 231, 0.45); }
.footer-top > p { margin-left: auto; color: rgba(246, 241, 231, 0.5); font-family: var(--serif); font-size: 13px; line-height: 1.9; text-align: right; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.35);
  color: rgba(246, 241, 231, 0.82);
  font-size: 10px;
}
.footer-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1360px;
  margin: 23px auto 0;
  color: rgba(246, 241, 231, 0.34);
  font-size: 8px;
  letter-spacing: 0.03em;
}

/* ---------- dialog ---------- */

.activity-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 40px 100px rgba(20, 35, 28, 0.3);
}
.activity-dialog::backdrop {
  background: rgba(18, 36, 29, 0.5);
  backdrop-filter: blur(4px);
}
.activity-dialog[open] { animation: dialog-in 0.28s var(--ease); }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.activity-dialog form { padding: 27px 28px 24px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dialog-head .kicker { margin-bottom: 4px; }
.dialog-head h3 { font-family: var(--serif); font-size: 24px; }
.dialog-field { display: block; margin-top: 17px; }
.dialog-field > span { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--ink-2); font-size: 10px; font-weight: 700; }
.dialog-field > span small { color: var(--muted-2); font-weight: 400; }
.dialog-field input,
.dialog-field select,
.dialog-field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--paper);
  font-size: 12px;
  resize: vertical;
}
.dialog-field input:focus,
.dialog-field select:focus,
.dialog-field textarea:focus { border-color: var(--ink-2); background: var(--white); }
.dialog-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.dialog-money b { padding-left: 11px; font-family: Georgia, serif; font-size: 14px; font-weight: 500; }
.dialog-money input { border: 0; background: transparent; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.dialog-actions .btn { min-height: 42px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(246, 241, 231, 0.12);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 18px 45px rgba(22, 40, 32, 0.25);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.toast svg { width: 15px; height: 15px; fill: none; stroke: var(--sun); stroke-width: 2; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error svg { stroke: #f3b3a3; }
.noscript-note { padding: 20px; color: var(--danger); text-align: center; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1260px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(400px, 0.86fr); min-height: 750px; }
  .hero h1 { font-size: clamp(54px, 5.6vw, 74px); }
  .postcard--main { right: 34px; width: min(315px, 57%); height: 430px; }
  .postcard--back { width: 188px; height: 245px; top: 165px; }
  .postcard--front { width: 158px; height: 195px; bottom: 78px; }
  .floating-ticket { width: 218px; }
  .quick-planner { left: clamp(20px, 4vw, 50px); right: clamp(20px, 4vw, 50px); }
  .qp-field { padding: 3px 13px; }
  .qp-submit { padding: 0 16px; }
  .destination-grid { gap: 14px; }
  .dest-card { min-height: 350px; }
  .planner-shell { grid-template-columns: 295px minmax(0, 1fr) 290px; }
  .settings-panel { padding: 24px 20px 20px; }
  .itinerary-panel { padding: 23px 22px 18px; }
  .insights-panel { padding: 23px 17px 20px; }
}

@media (max-width: 1080px) {
  .main-nav { gap: 22px; margin-right: 12px; }
  .hero { grid-template-columns: 1fr; gap: 20px; min-height: auto; padding-top: 55px; padding-bottom: 174px; }
  .hero-copy { max-width: 690px; }
  .hero-visual { position: absolute; top: 70px; right: 2%; width: 410px; height: 470px; opacity: 0.34; pointer-events: none; }
  .postcard--main { right: 18px; width: 280px; height: 380px; }
  .postcard--back { left: 0; top: 120px; width: 170px; height: 220px; }
  .postcard--front { right: 0; bottom: 35px; width: 145px; height: 175px; }
  .floating-ticket, .round-stamp, .doodle { display: none; }
  .hero-copy { z-index: 3; }
  .hero-lede, .hero h1, .eyebrow, .hero-facts { position: relative; z-index: 3; }
  .hero-lede { max-width: 470px; }
  .quick-planner { grid-template-columns: 1.05fr 1fr 0.72fr 0.9fr 0.64fr auto; }
  .qp-field label { font-size: 8px; }
  .destination-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dest-card:nth-child(3n + 2) { transform: none; }
  .dest-card:nth-child(3n + 2):hover { transform: translateY(-7px); }
  .planner-shell { grid-template-columns: 290px minmax(0, 1fr); }
  .insights-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; border-top: 1px solid var(--line); border-left: 0; padding: 23px 24px; }
  .budget-card { border-right: 1px solid var(--line); padding-right: 24px; }
  .recommend-card { margin-top: 0; padding-top: 0; border-top: 0; }
  .local-note { grid-column: 1 / -1; margin-top: 0; }
  .budget-card .btn--block { max-width: 240px; }
  .recommend-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .site-header { height: 68px; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .hero { padding-top: 45px; padding-bottom: 170px; align-items: start; }
  .hero h1 { font-size: clamp(50px, 9vw, 70px); }
  .hero-visual { top: 40px; right: -70px; opacity: 0.2; }
  .quick-planner { grid-template-columns: 1.15fr 1fr 0.8fr 1fr 0.7fr; gap: 0; bottom: 26px; }
  .qp-field--people { border-left: 1px solid var(--line); padding-left: 10px; }
  .qp-submit { grid-column: 1 / -1; width: 100%; margin: 8px 0 0; }
  .qp-field { padding: 4px 10px; }
  .qp-field--dest { padding-left: 4px; }
  .hero-note { display: none; }
  .quick-planner { padding-bottom: 10px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .section-intro { text-align: left; }
  .section-head-side { align-items: flex-start; }
  .destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .dest-card { min-height: 350px; }
  .city-library-head { flex-wrap: wrap; align-items: flex-start; }
  .city-library-controls { width: 100%; }
  .city-search { flex: 1; width: auto; }
  .city-results { max-height: 470px; }
  .city-chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .featured-head > p { max-width: 100%; text-align: left; }
  .city-announcement-inner { font-size: 9px; }
  .planner-section { padding: 75px 0 80px; }
  .planner-top { align-items: flex-start; flex-direction: column; gap: 16px; }
  .plan-actions { width: 100%; }
  .auto-save { margin-right: auto; }
  .planner-shell { grid-template-columns: 1fr; }
  .settings-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-panel .setting-group { max-width: 100%; }
  .settings-toggle { display: flex; }
  .settings-panel.is-collapsed .settings-body { display: none; }
  .settings-panel.is-collapsed { padding-bottom: 16px; }
  .itinerary-panel { padding: 22px 20px 18px; }
  .insights-panel { grid-template-columns: 1fr; }
  .budget-card { border-right: 0; padding-right: 0; }
  .budget-ring { width: 190px; height: 190px; }
  .budget-legend { max-width: 360px; margin: 0 auto; }
  .budget-status, .budget-card .btn--block { max-width: 360px; margin-left: auto; margin-right: auto; }
  .recommend-card { border-top: 1px solid var(--line); padding-top: 20px; }
  .local-note { grid-column: auto; }
  .guide-grid { grid-template-columns: 1fr; gap: 12px; }
  .guide-card { min-height: 235px; }
  .footer-top { flex-wrap: wrap; }
  .footer-top > p { margin-left: 0; text-align: left; }
  .footer-link { width: 100%; }
}

@media (max-width: 620px) {
  .site-header { height: 62px; padding: 0 18px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-mark svg { width: 19px; height: 19px; }
  .brand-type { font-size: 17px; }
  .brand-type small { font-size: 6px; }
  .saved-button { width: 38px; padding: 0; justify-content: center; }
  .saved-button > span { display: none; }
  .saved-button b { position: absolute; top: -3px; right: -3px; margin: 0; }
  .btn--sm { min-height: 38px; padding: 0 13px; font-size: 10px; }
  .header-actions { gap: 7px; }
  .hero { padding: 35px 20px 235px; min-height: 720px; align-items: start; }
  .hero h1 { margin-top: 18px; font-size: clamp(44px, 13.4vw, 60px); line-height: 1.18; }
  .hero-lede { margin-top: 19px; font-size: 13px; line-height: 1.8; }
  .desktop-break { display: none; }
  .hero-facts { margin-top: 25px; }
  .hero-facts div { padding: 0 14px; }
  .hero-facts strong { font-size: 20px; }
  .hero-facts span { font-size: 8px; }
  .hero-visual { top: 28px; right: -140px; width: 360px; height: 400px; opacity: 0.14; }
  .hero-visual .postcard-caption,
  .hero-visual .postcard > span { display: none; }
  .postcard--main { width: 250px; height: 330px; }
  .postcard--back { left: 10px; top: 105px; width: 150px; height: 195px; }
  .postcard--front { width: 130px; height: 160px; }
  .quick-planner { left: 14px; right: 14px; bottom: 17px; grid-template-columns: 1fr 1fr; padding: 11px 10px; }
  .qp-field { border-left: 0; padding: 5px 7px; }
  .qp-field--dest { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 3px; }
  .qp-field:nth-child(2), .qp-field:nth-child(4) { border-left: 1px solid var(--line); }
  .qp-field--people { border-left: 0; }
  .qp-submit { min-height: 46px; margin-top: 7px; }
  .section { padding: 68px 20px; }
  .section-head h2, .planner-top h2, .guide-section h2 { font-size: 31px; }
  .section-intro { font-size: 11px; }
  .filter-row { gap: 5px; }
  .filter-chip { min-height: 32px; padding: 0 11px; font-size: 9px; }
  .destination-grid { gap: 10px; }
  .dest-card { min-height: 280px; border-radius: 16px; }
  .dest-body { left: 14px; right: 14px; bottom: 14px; }
  .dest-en { display: none; }
  .dest-name-row h3 { font-size: 24px; }
  .dest-tagline { font-size: 9.5px; }
  .dest-meta { margin-top: 8px; padding-top: 8px; font-size: 8px; }
  .dest-meta span:nth-child(2) { display: none; }
  .dest-cta { margin-top: 7px; font-size: 9px; }
  .city-library { margin-top: 24px; padding: 21px 14px 17px; border-radius: 17px; }
  .city-library-head { gap: 14px; margin-bottom: 15px; }
  .city-library-head h3 { font-size: 24px; }
  .city-library-head p:not(.kicker) { font-size: 9px; line-height: 1.6; }
  .city-library-controls { flex-direction: column; align-items: stretch; }
  .city-search { width: 100%; }
  .city-province-select select { width: 100%; }
  .city-results { max-height: 430px; }
  .city-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-province-head strong { font-size: 14px; }
  .city-chip { height: 32px; font-size: 10px; }
  .city-library-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .featured-head { margin-top: 35px; padding-top: 23px; }
  .featured-head h3 { font-size: 26px; }
  .city-announcement-inner { gap: 6px; padding: 7px 14px; font-size: 8px; }
  .city-announcement-inner p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .city-announcement-inner p strong { font-weight: 700; }
  .city-announcement-inner a { font-size: 8px; }
  .announcement-badge { font-size: 6px; }
  .city-proof { font-size: 8px; line-height: 1.6; text-align: left; }
  .dest-top { top: 12px; left: 12px; right: 11px; }
  .dest-index { font-size: 9px; }
  .fav-btn { width: 29px; height: 29px; }
  .planner-wrap { padding: 0 11px; }
  .planner-top { padding: 0 8px; }
  .planner-top h2 { gap: 6px; }
  .plan-actions { flex-wrap: wrap; }
  .auto-save { width: 100%; margin-bottom: 2px; }
  .plan-actions .btn--ghost { flex: 1; }
  .plan-actions .btn--dark { flex: 1.1; }
  .planner-shell { border-radius: 19px; }
  .settings-panel { padding: 21px 16px 18px; }
  .itinerary-panel { padding: 18px 13px 16px; }
  .insights-panel { padding: 20px 16px; }
  .itinerary-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .day-tabs { width: 100%; }
  .day-tab { min-width: 53px; padding: 7px 8px; }
  .day-overview { padding: 11px 12px; margin: 13px 0; }
  .day-overview-copy h4 { font-size: 14px; }
  .day-overview-cost strong { font-size: 15px; }
  .time-item { grid-template-columns: 40px 18px minmax(0, 1fr); gap: 4px; }
  .time-col { padding-top: 12px; }
  .time-col span { font-size: 9px; }
  .time-card { padding: 11px 11px 10px; }
  .time-card h4 { font-size: 18px; }
  .time-card > p { font-size: 10px; }
  .time-dot { width: 22px; height: 22px; margin-top: 10px; }
  .time-dot svg { width: 10px; height: 10px; }
  .foot-meta { gap: 7px; font-size: 8.5px; }
  .time-line-main strong { font-size: 10px; }
  .time-line-price { font-size: 8.5px; }
  .itinerary-content { min-height: 400px; }
  .itinerary-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .guide-section { padding: 68px 20px 75px; }
  .guide-grid { gap: 10px; }
  .footer-top { flex-direction: column; gap: 23px; padding-bottom: 30px; }
  .footer-top > p { font-size: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 7px; }
  .site-footer { padding: 43px 20px 24px; }
  .activity-dialog form { padding: 22px 18px 19px; }
  .dialog-head h3 { font-size: 21px; }
  .dialog-row { grid-template-columns: 1fr; gap: 0; }
  .dialog-actions .btn { flex: 1; padding: 0 12px; }
  .toast { font-size: 10px; padding: 11px 14px; }
}

@media (max-width: 390px) {
  .hero { min-height: 700px; }
  .hero-facts div { padding: 0 10px; }
  .hero-facts strong { font-size: 18px; }
  .dest-card { min-height: 255px; }
  .dest-name-row h3 { font-size: 21px; }
  .dest-name-row span { display: none; }
  .time-item { grid-template-columns: 35px 16px minmax(0, 1fr); }
  .time-card h4 { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   Print
   ========================================================= */

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; font-size: 10pt; }
  body::after, .site-header, .hero, .destinations, .guide-section, .site-footer,
  .settings-panel, .insights-panel, .planner-top .plan-actions, .itinerary-toolbar,
  .itinerary-footer, .toast, .activity-dialog { display: none !important; }
  .planner-section { padding: 0; background: #fff; border: 0; }
  .planner-section::before { display: none; }
  .planner-wrap { max-width: none; padding: 0; }
  .planner-top { display: block; margin-bottom: 8mm; padding: 0; }
  .planner-top .kicker { font-size: 7pt; }
  .planner-top h2 { font-size: 22pt; }
  .plan-meta { font-size: 8pt; }
  .planner-shell { display: block; border: 0; border-radius: 0; box-shadow: none; }
  .itinerary-panel { padding: 0; }
  .day-overview { background: #f4f2ec !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .day-block { break-inside: avoid; }
  .day-block + .day-block { margin-top: 7mm; padding-top: 5mm; }
  .time-card { break-inside: avoid; box-shadow: none !important; }
  .time-item--attraction .time-card:hover { transform: none; }
  .day-block-head h4 { font-size: 15pt; }
  .time-card h4 { font-size: 11pt; }
  .time-card > p { font-size: 8pt; }
  .time-line-main strong { font-size: 9pt; }
  .print-budget {
    display: block;
    margin: 6mm 0 0;
    padding: 4mm 5mm;
    border: 1px solid #d9d4c8;
    border-radius: 3mm;
    background: #f8f6f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-budget-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8mm; }
  .print-budget-head strong { font-size: 11pt; }
  .print-budget-head span { font-size: 8.5pt; }
  .print-budget p { margin-top: 1.5mm; color: #5f6e63; font-size: 7.5pt; }
  .budget-legend, .budget-status { display: none; }
}
