:root {
  --paper: #f7f1e8;
  --paper-soft: #fbf8f2;
  --ink: #252525;
  --muted-ink: #6d665e;
  --hanok-wood: #8b5e3c;
  --soft-clay: #c98f70;
  --mist-blue: #b9c7c9;
  --ginkgo: #d7b56d;
  --seoul-night: #1f2a35;
  --line: rgba(37, 37, 37, 0.12);
  --card: rgba(255, 255, 255, 0.72);
  --cream: var(--paper);
  --muted: var(--muted-ink);
  --wood: var(--hanok-wood);
  --wood-dark: #4b3328;
  --apricot: #ead2c4;
  --coral: var(--soft-clay);
  --mist: var(--mist-blue);
  --green: #768c78;
  --shadow: 0 24px 70px rgba(31, 42, 53, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 8%, rgba(215, 181, 109, 0.13), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(185, 199, 201, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(37, 37, 37, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(139, 94, 60, 0.032) 1px, transparent 1px),
    var(--cream);
  background-size: 42px 42px;
  font-family: "Noto Sans TC", "Noto Sans KR", "Pretendard", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.72;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, rgba(251, 248, 242, 0.7), rgba(247, 241, 232, 0.18));
  mix-blend-mode: soft-light;
  content: "";
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--coral);
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 50;
  transform: translateY(-150%);
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.88);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-weight: 900;
  line-height: 1.1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--wood-dark);
  border-radius: 999px;
  background: var(--seoul-night);
  color: #fff;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.quick-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-left: auto;
  padding: 4px 0;
  white-space: nowrap;
  scrollbar-width: thin;
}

.quick-nav a,
.print-button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.print-button {
  cursor: pointer;
  flex: 0 0 auto;
  background: var(--seoul-night);
  color: #fff;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
  position: relative;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
  position: relative;
}

.section-heading::after {
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--hanok-wood), transparent);
  content: "";
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(139, 94, 60, 0.18);
  border-radius: 999px;
  color: var(--hanok-wood);
  background: rgba(255, 255, 255, 0.52);
  font-family: "Noto Sans KR", "Noto Sans TC", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.section-lead {
  max-width: 680px;
  color: var(--muted-ink);
  font-size: 17px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--hanok-wood);
  font-family: "Noto Sans KR", "Noto Sans TC", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 14px;
  font-family: "Noto Sans KR", "Noto Sans TC", sans-serif;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0.01em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.28;
}

h4 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.hero-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: center;
  min-height: calc(75vh - 58px);
  padding: 56px 0 70px;
}

.hero-cover::before {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 120px;
  height: 120px;
  border: 1px dashed rgba(215, 181, 109, 0.2);
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.hero-cover > *,
.day-hero > *,
.timeline-item .item-body > * {
  min-width: 0;
}

.subtitle {
  margin-bottom: 24px;
  color: var(--hanok-wood);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
}

.hero-note {
  max-width: 560px;
  color: var(--muted-ink);
  font-size: 18px;
  line-height: 1.8;
}

.hero-paper-card {
  background: #fdfbf7;
  padding: 30px;
  border-radius: 20px;
  border: 1px dashed var(--hanok-wood);
  box-shadow: 0 12px 32px rgba(139, 94, 60, 0.05);
  position: relative;
}

.stamp-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}


.cover-alert,
.info-card,
.restaurant-card,
.attraction-list article,
.transport-grid article,
.timeline-item .item-body,
.budget-controls,
.airport-flow li,
.day-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cover-alert {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-left: 7px solid var(--coral);
}

.cover-alert strong {
  color: var(--coral);
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* --- 旅行手帳風格視覺元件 --- */

.paper-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(139, 94, 60, 0.04);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.ticket-card {
  background: #fdfbf7;
  border: 1px dashed var(--hanok-wood);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  box-shadow: 0 8px 24px rgba(31, 42, 53, 0.04);
}

.ticket-card::before,
.ticket-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--paper);
  border-radius: 50%;
}

.ticket-card::before {
  left: -9px;
  top: calc(50% - 9px);
  border-right: 1px dashed var(--hanok-wood);
}

.ticket-card::after {
  right: -9px;
  top: calc(50% - 9px);
  border-left: 1px dashed var(--hanok-wood);
}

.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 2px double var(--soft-clay);
  color: var(--soft-clay);
  border-radius: 8px;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(-4deg);
  opacity: 0.85;
  margin: 4px;
  background: rgba(255, 255, 255, 0.4);
}

.stamp.ginkgo {
  border-color: var(--ginkgo);
  color: var(--ginkgo);
  transform: rotate(3deg);
}

.stamp.wood {
  border-color: var(--hanok-wood);
  color: var(--hanok-wood);
  transform: rotate(-2deg);
}

.route-line {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--hanok-wood) 0 8px, transparent 8px 14px);
  position: relative;
  margin: 20px 0;
  opacity: 0.6;
}

.route-line::before,
.route-line::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hanok-wood);
  top: -2px;
}

.route-line::before { left: 0; }
.route-line::after { right: 0; }

.mini-route {
  font-size: 13px;
  color: var(--muted-ink);
  font-family: "Noto Sans KR", "Noto Sans TC", sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.mini-route::before {
  content: "➔";
  color: var(--soft-clay);
}

/* Real photos hidden by default — remove this rule when adding actual travel photos */
.real-photo {
  display: none;
}

.timeline-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.shopping-note {
  background: var(--paper-soft);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(139, 94, 60, 0.03);
  position: relative;
}

.shopping-note::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 18px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, var(--soft-clay) 3px, transparent 4px);
  opacity: 0.5;
}

/* 顏色主題標記 */
.hanok-style { border-color: var(--wood); }
.city-style { border-color: var(--muted-ink); }
.cafe-style { border-color: var(--ginkgo); }
.river-style { border-color: var(--green); }
.market-style { border-color: var(--coral); }
.modern-style { border-color: var(--seoul-night); }
.airport-style { border-color: var(--seoul-night); }
.map-style { border-color: var(--wood); }


.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-grid .section-heading {
  grid-column: 1 / -1;
}

.info-card {
  padding: 20px;
}

.info-card h3 {
  color: var(--wood-dark);
}

.warning-card {
  border-left: 7px solid var(--coral);
}

.diet-card {
  border-left: 7px solid var(--green);
}

.compact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.compact-list div,
.item-facts div {
  display: grid;
  gap: 4px;
}

.compact-list dt,
.item-facts dt {
  color: var(--wood);
  font-size: 13px;
  font-weight: 900;
}

.compact-list dd,
.item-facts dd {
  margin: 0;
}

.day-card-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(280px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
}

.day-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border-radius: 20px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(139, 94, 60, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
  position: relative;
  overflow: hidden;
}

/* Notebook top index tab decoration */
.day-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  width: 42px;
  height: 10px;
  background: var(--soft-clay);
  opacity: 0.18;
  border-radius: 0 0 8px 8px;
  transition: background-color 180ms ease, opacity 180ms ease;
}

.day-card:hover::before {
  background: var(--hanok-wood);
  opacity: 0.42;
}

.day-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(139, 94, 60, 0.08);
}

.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.day-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--seoul-night);
  color: #fff !important;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 11px;
  font-weight: 900;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.day-card .date {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--hanok-wood);
  font-size: 13px;
  font-weight: 900;
}

.day-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--wood-dark);
}

.day-card p {
  color: var(--muted-ink);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag-row span {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(185, 199, 201, 0.25);
  color: var(--seoul-night) !important;
  border-radius: 4px;
  font-weight: 700;
}

.day-card strong {
  margin-top: auto;
  color: var(--soft-clay);
  font-size: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-weight: 700;
}


.day-section {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid rgba(139, 94, 60, 0.22);
}

.day-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.42);
  position: relative;
  overflow: hidden;
}

/* Subtle corner stamp decoration for day-hero */
.day-hero::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 2px dashed rgba(215, 181, 109, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.day-hero p:last-child {
  margin-bottom: 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 96px;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--hanok-wood), transparent);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 20px;
}

.timeline-item time {
  align-self: start;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--seoul-night);
  color: #fff;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.timeline-item::after {
  position: absolute;
  top: 15px;
  left: 87px;
  width: 21px;
  height: 21px;
  border: 4px solid var(--paper);
  border-radius: 999px;
  background: var(--ginkgo);
  content: "";
}

.timeline-item .item-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
}

.item-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.item-facts div {
  padding: 10px 11px;
  border: 1px solid rgba(37, 37, 37, 0.08);
  border-radius: 14px;
  background: rgba(251, 248, 242, 0.64);
}

.item-facts dt {
  color: var(--hanok-wood);
  letter-spacing: 0.06em;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.restaurant-card {
  overflow: hidden;
  border-radius: 26px;
}

.restaurant-card h3,
.restaurant-card .tag-list {
  padding-right: 18px;
  padding-left: 18px;
}

.restaurant-card h3 {
  margin-top: 20px;
  color: var(--seoul-night);
}

.tag-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding-top: 0;
  list-style: none;
}

.tag-list li {
  display: grid;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tag-list strong {
  color: var(--hanok-wood);
}

.tag-list span {
  color: var(--muted);
  font-size: 14px;
}

.attraction-list,
.transport-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.attraction-list article,
.transport-grid article {
  padding: 20px;
  border-radius: 22px;
}

.attraction-list h3,
.transport-grid h3 {
  color: var(--wood-dark);
  font-size: 20px;
}

.budget-section {
  width: min(1180px, calc(100% - 32px));
}

.budget-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 24px;
}

.budget-controls label {
  font-weight: 900;
}

.budget-controls input {
  width: 130px;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.budget-summary-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 8px;
}

.budget-summary-grid article {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 40px rgba(31, 42, 53, 0.08);
}

.budget-summary-grid span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--hanok-wood);
  background: rgba(215, 181, 109, 0.16);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.budget-summary-grid strong,
.budget-summary-grid small {
  display: block;
}

.budget-summary-grid small {
  margin-top: 6px;
  color: var(--muted-ink);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.budget-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.guide-table {
  min-width: 900px;
}

.budget-table th,
.budget-table td {
  padding: 15px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.budget-table thead th,
.budget-table tfoot th,
.budget-table tfoot td {
  background: var(--seoul-night);
  color: #fff;
}

.budget-table tbody th {
  color: var(--wood-dark);
}

.note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.wide-figure {
  margin-bottom: 18px;
}

.route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-card {
  position: relative;
  overflow: hidden;
}

.route-card::before {
  position: absolute;
  top: 26px;
  right: -18px;
  width: 120px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--hanok-wood) 0 10px, transparent 10px 18px);
  opacity: 0.28;
  content: "";
}

.route-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--seoul-night);
  background: rgba(185, 199, 201, 0.32);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-card h3 {
  font-size: 20px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 56px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.9);
}

.checklist input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--coral);
}

.airport-flow {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.airport-flow li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px 16px 16px 58px;
}

.airport-flow li::before {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
  counter-increment: flow;
  content: counter(flow);
}

.airport-flow span {
  color: var(--muted);
}

.source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.source-list a {
  color: var(--wood-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(139, 94, 60, 0.35);
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 34px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
}

.site-footer a {
  color: var(--wood-dark);
  font-weight: 900;
}

@media (max-width: 900px) {
  .nav-wrap {
    flex-wrap: wrap;
  }

  .quick-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .hero-cover,
  .info-grid,
  .day-hero,
  .timeline-item,
  .timeline-item .item-body,
  .restaurant-grid,
  .attraction-list,
  .transport-grid,
  .route-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    min-height: auto;
  }

  .timeline::before,
  .timeline-item::after {
    display: none;
  }

  .timeline-item time {
    justify-self: start;
  }

  .timeline-item h4,
  .timeline-item p,
  .item-facts {
    grid-column: auto;
    grid-row: auto;
  }

  .item-facts {
    grid-template-columns: 1fr;
  }

  .budget-summary-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 22px, 1160px);
    padding: 52px 0;
  }

  .nav-wrap {
    padding: 8px 11px;
  }

  .brand span:last-child {
    display: none;
  }

  .quick-nav a,
  .print-button {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 13px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 30px;
  }

  .day-card-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .day-card {
    min-height: auto;
    padding: 18px;
  }

  .day-hero {
    padding: 14px;
    border-radius: 22px;
  }

  .timeline-item .item-body,
  .info-card,
  .attraction-list article,
  .transport-grid article,
  .route-card {
    padding: 14px;
  }

  .budget-summary-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .budget-table {
    min-width: 920px;
  }

  .guide-table {
    min-width: 980px;
  }

  .route-card h3 {
    font-size: 19px;
  }

  .budget-controls {
    align-items: stretch;
  }

  .budget-controls input {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

@media print {
  :root {
    --shadow: none;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: #fbf8f2;
    color: #111;
    font-size: 11pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .site-header,
  .print-button,
  .skip-link,
  .site-footer {
    display: none !important;
  }

  .section {
    width: 100%;
    padding: 18mm 0 8mm;
    break-inside: avoid;
  }

  .hero-cover {
    min-height: auto;
    padding-top: 0;
  }

  .hero-cover,
  .info-grid,
  .day-hero,
  .timeline-item,
  .timeline-item .item-body,
  .restaurant-grid,
  .attraction-list,
  .transport-grid,
  .route-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .timeline::before,
  .timeline-item::after {
    display: none;
  }

  .timeline-item {
    break-inside: avoid;
  }

  .timeline-item h4,
  .timeline-item p,
  .item-facts {
    grid-column: auto;
    grid-row: auto;
  }

  .item-facts {
    grid-template-columns: 1fr 1fr;
  }

  .day-card-grid {
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
  }

  .budget-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .day-card,
  .info-card,
  .timeline-item .item-body,
  .restaurant-card,
  .attraction-list article,
  .transport-grid article,
  .airport-flow li {
    border-color: #ddd;
    box-shadow: none;
  }

  .real-photo {
    display: none;
  }

  a {
    text-decoration: none;
  }
}

/* --- 預算與採買手帳卡片樣式 --- */
.budget-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.budget-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
}
.budget-note h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--wood-dark);
}
.budget-note-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.budget-note-amounts div {
  background: rgba(251, 248, 242, 0.64);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(37, 37, 37, 0.05);
}
.budget-note-amounts small {
  display: block;
  font-size: 11px;
  color: var(--muted-ink);
  margin-bottom: 2px;
}
.budget-note-amounts span {
  font-weight: 700;
}
.budget-note-amounts .krw-range, .budget-note-amounts .krw-two {
  color: var(--wood-dark);
}
.budget-note-amounts .twd-range, .budget-note-amounts .twd-two {
  color: var(--soft-clay);
}
.budget-remark {
  margin: 0;
  font-size: 13px;
  color: var(--muted-ink);
  margin-top: auto;
}
.budget-blank {
  text-decoration: underline;
  color: var(--muted-ink);
  font-style: italic;
}
.budget-total {
  border: 1px solid var(--hanok-wood) !important;
  background: var(--paper-soft) !important;
  grid-column: 1 / -1;
}
.budget-total .budget-note-amounts {
  grid-template-columns: repeat(4, 1fr);
}
.budget-total .budget-note-amounts div {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--hanok-wood);
}
.budget-total .budget-note-amounts span {
  font-size: 18px;
  font-weight: 900;
}

/* 手錶與 POP MART 卡片格線 */
.watch-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

/* RWD 及列印樣式覆蓋 */
@media (max-width: 900px) {
  .budget-notes-grid,
  .watch-cards-grid {
    grid-template-columns: 1fr !important;
  }
  .budget-total .budget-note-amounts {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 560px) {
  .budget-total .budget-note-amounts {
    grid-template-columns: 1fr !important;
  }
}

@media print {
  .budget-notes-grid,
  .watch-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    page-break-inside: avoid;
  }
  .budget-note, .watch-card {
    box-shadow: none !important;
    border-color: #ddd !important;
    background: #fff !important;
  }
}
