:root {
  --ink: #252019;
  --muted: #755f50;
  --paper: #fff3df;
  --panel: #fffaf1;
  --line: #f0cfaa;
  --green: #17846f;
  --red: #d24f35;
  --gold: #f4a62a;
  --blue: #2484a5;
  --coral: #f26b4f;
  --rose: #ffe3d4;
  --mint: #daf3e7;
  --hanji: rgba(255, 255, 255, 0.52);
  --shadow: 0 18px 55px rgba(122, 73, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(164, 88, 43, 0.04) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(164, 88, 43, 0.035) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #ffe7c2 0, #fff3df 220px, #fff8ed 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 243, 223, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 28px, var(--gold) 28px 56px, var(--green) 56px 84px, var(--blue) 84px 112px);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(22px, 8vw, 34px);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}

h1::after {
  content: " · 한국";
  color: var(--coral);
}

h2 {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.05;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.clock {
  display: flex;
  gap: 9px;
  min-width: 124px;
  justify-content: flex-end;
  text-align: right;
}

.clock span {
  display: block;
  font-size: 18px;
  font-weight: 850;
}

.clock small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.tabs {
  position: sticky;
  top: 68px;
  z-index: 19;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 14px;
  background: rgba(255, 243, 223, 0.96);
  border-bottom: 1px solid var(--line);
}

.tab,
.mini-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.tab:hover,
.mini-button:hover,
.map-pill:hover {
  transform: translateY(-1px);
}

.tab {
  min-height: 42px;
  padding: 0 16px;
}

.tab.active {
  background: var(--coral);
  color: var(--panel);
  border-color: var(--coral);
}

.mini-button {
  min-height: 34px;
  padding: 0 12px;
}

.mini-button.light {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.18);
  color: #fffdf8;
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px 14px 30px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.hero {
  position: relative;
  min-height: 460px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 11px;
  padding: 18px;
  overflow: hidden;
  border-radius: 8px;
  color: #fffdf8;
  background:
    linear-gradient(90deg, rgba(58, 37, 25, 0.88), rgba(209, 91, 56, 0.38)),
    var(--today-photo, url("https://images.unsplash.com/photo-1538485399081-7c8ed89808b7?auto=format&fit=crop&w=1600&q=80")) center/cover;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 16px;
  background:
    radial-gradient(circle at 12px -2px, transparent 13px, rgba(255, 217, 131, 0.82) 14px 16px, transparent 17px) 0 0 / 48px 18px repeat-x;
  opacity: 0.9;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 720px;
  margin-top: 7px;
  font-size: 16px;
  line-height: 1.42;
}

.hero .eyebrow {
  color: #ffd983;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  font-weight: 850;
  text-align: left;
}

.hero-meta span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-overview {
  display: grid;
  gap: 9px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.46);
}

.hero-overview span {
  display: block;
  color: rgba(255, 253, 248, 0.74);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-overview strong {
  display: block;
  margin-top: 3px;
  color: #fffdf8;
  font-size: 17px;
  line-height: 1.2;
}

.hero-overview p {
  margin-top: 4px;
  color: rgba(255, 253, 248, 0.86);
  font-size: 14px;
  line-height: 1.35;
}

.hero-weather {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.46);
}

.hero-weather #weather-status {
  color: rgba(255, 253, 248, 0.78);
  font-size: 12px;
}

.hero-weather dt {
  color: rgba(255, 253, 248, 0.72);
}

.hero-weather dd {
  color: #fffdf8;
}

.alert,
.warning-note {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(182, 64, 49, 0.28);
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: #fff7f2;
  line-height: 1.45;
}

.good-news {
  border-color: rgba(23, 132, 111, 0.32);
  border-left-color: var(--green);
  background: #eaf8ec;
}

.alert strong {
  display: block;
  margin-bottom: 4px;
}

.grid,
.cards {
  display: grid;
  gap: 12px;
  align-items: start;
}

.today-grid {
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.tile,
.card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--panel);
}

.weather-tile {
  border-top-color: var(--blue);
}

.stay-tile {
  border-top-color: var(--coral);
}

.next-tile {
  border-top-color: var(--green);
}

.currency-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border-top-color: var(--coral);
  background:
    linear-gradient(135deg, rgba(255, 233, 190, 0.98), rgba(255, 250, 241, 0.98));
}

.currency-toggle {
  border-color: rgba(210, 79, 53, 0.28);
  background: #fff7e8;
  color: #88432f;
  font-size: 13px;
}

.checklist-tile {
  border-top-color: var(--blue);
}

.stay-tile,
.next-tile {
  background:
    linear-gradient(135deg, rgba(255, 241, 212, 0.96), rgba(255, 250, 241, 0.98));
}

.tile,
.card,
.phrase {
  box-shadow: 0 10px 26px rgba(122, 73, 39, 0.08);
}

.tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

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

.phone-line {
  margin-top: 8px;
  color: var(--green);
  font-weight: 850;
}

.tiny-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--rose);
  color: #88432f;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.currency-input {
  display: grid;
  gap: 6px;
}

.currency-input span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.currency-field {
  position: relative;
  display: block;
}

.currency-field input {
  width: 100%;
  min-height: 52px;
  padding: 10px 64px 10px 12px;
  border: 1px solid rgba(210, 79, 53, 0.28);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  font-weight: 850;
}

.currency-field b {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
}

.currency-result {
  padding: 12px;
  border-radius: 8px;
  background: #dff5e7;
  color: #105c4d;
  font-size: 24px;
  font-weight: 900;
}

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

.quick-amounts button {
  min-height: 42px;
  border: 1px solid rgba(210, 79, 53, 0.28);
  border-radius: 8px;
  background: #fff7e8;
  color: #88432f;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

.weather-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 9px 0 0;
}

.weather-list div {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.clean-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  line-height: 1.45;
}

.clean-list li {
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

.activity-checklist {
  display: grid;
  gap: 10px;
}

.activity-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(240, 207, 170, 0.9);
  border-radius: 8px;
  background: #fff1d4;
}

.activity-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.activity-check span,
.activity-check small,
.activity-check em {
  display: block;
  min-width: 0;
}

.activity-check strong {
  line-height: 1.25;
}

.activity-check small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.activity-check em {
  margin-top: 7px;
  color: var(--coral);
  font-style: normal;
  font-weight: 850;
}

.activity-check input:checked + span strong {
  color: var(--muted);
  text-decoration: line-through;
}

.activity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.section-intro {
  max-width: 780px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.subsection-title {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.day {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.day-date {
  color: var(--coral);
  font-weight: 900;
}

.day h3 {
  margin-bottom: 6px;
}

.day-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.day-activities {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.day-activity {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(240, 207, 170, 0.9);
  border-radius: 8px;
  background: #fff7e8;
}

.day-activity strong,
.day-activity span,
.day-activity small {
  display: block;
}

.day-activity span {
  margin-top: 4px;
  color: var(--coral);
  font-weight: 850;
}

.day-activity small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.day p,
.card p {
  color: var(--muted);
  line-height: 1.5;
}

.cards {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.card strong {
  display: block;
  margin-top: 10px;
}

.route-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 10px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 8px;
  background: #ffe3d4;
  overflow-x: auto;
}

.route-map::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 34px;
  right: 34px;
  height: 4px;
  background: var(--blue);
  transform: translateY(-50%);
}

.route-map span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 10px;
  border: 3px solid var(--blue);
  border-radius: 999px;
  background: var(--panel);
  font-weight: 850;
  text-align: center;
}

.phrase-tools {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.phrase-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.phrase-filter {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff7e8;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.phrase-filter.active {
  border-color: var(--green);
  background: var(--green);
  color: #fffdf8;
}

.phrase-tools input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.phrase-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.phrase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.phrase b {
  font-size: 18px;
}

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

.spice {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1d4;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.food-card {
  padding: 0;
  overflow: hidden;
}

.food-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f8e4c8;
}

.food-copy {
  padding: 16px;
}

.korean-name {
  margin: 4px 0 10px;
  color: var(--coral);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
}

.stop-cards {
  grid-template-columns: 1fr;
}

.stop-card {
  display: grid;
  gap: 12px;
}

.journey-card {
  border-top-color: var(--gold);
}

.journey-hotel {
  border-top-color: var(--coral);
  background: linear-gradient(135deg, #fff2df, #fffaf1);
}

.journey-transfer {
  border-top-color: var(--blue);
  background: linear-gradient(135deg, #eaf6fb, #fffaf1);
}

.journey-flight {
  border-top-color: var(--green);
  background: linear-gradient(135deg, #e8f8ee, #fffaf1);
}

.journey-train {
  border-top-color: #d8911f;
  background: linear-gradient(135deg, #fff3cf, #fffaf1);
}

.journey-activity {
  border-top-color: var(--red);
  background: linear-gradient(135deg, #ffe8df, #fffaf1);
}

.journey-baggage {
  border-top-color: #9a6b2f;
  background: linear-gradient(135deg, #f8ead7, #fffaf1);
}

.journey-car {
  border-top-color: #2484a5;
  background: linear-gradient(135deg, #e6f4ef, #fffaf1);
}

.journey-type {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stop-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stop-dates {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--rose);
  color: #88432f;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.address-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #fff1d4;
}

.compact-address {
  margin-top: 12px;
  padding: 10px;
}

.address-block span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.address-block p {
  color: var(--ink);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mint);
  color: #0f5f53;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.map-pill.unavailable {
  background: #f8e4c8;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(16px, 4vw, 36px) 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (min-width: 720px) {
  .topbar {
    padding: 16px clamp(20px, 4vw, 36px);
  }

  .tabs {
    top: 77px;
    padding: 10px clamp(20px, 4vw, 36px);
  }

  main {
    padding: 22px clamp(20px, 4vw, 36px) 36px;
  }

  .hero {
    min-height: 430px;
    padding: clamp(26px, 5vw, 44px);
  }

  .hero-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .phrase {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .day {
    grid-template-columns: 130px 1fr;
  }

  .day-activity {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .clock {
    gap: 14px;
    min-width: 170px;
  }

  .clock span {
    font-size: 22px;
  }

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

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

@media (max-width: 390px) {
  h1::after {
    content: "";
  }

  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .clock {
    gap: 7px;
    min-width: 112px;
  }

  .clock span {
    font-size: 16px;
  }

  .tab {
    padding: 0 13px;
  }

  .hero {
    padding: 16px;
  }

  .weather-list {
    gap: 8px;
  }
}
