:root {
  --seoul: #ff5d8f;
  --gyeongju: #f5a623;
  --busan: #1aa7a1;
  --jeonju: #e8743b;
  --incheon: #6c5ce7;
  --ink: #2b2640;
  --bg: #fffaf3;
  --card: #ffffff;
  --shadow: 0 8px 20px rgba(43, 38, 64, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--seoul), var(--gyeongju), var(--busan), var(--jeonju), var(--incheon));
  padding: 64px 24px 48px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("BANNER.jpg") center calc(50% + 1.5cm) / 60% no-repeat;
  opacity: 0.45;
  mix-blend-mode: overlay;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-kicker { font-weight: 600; opacity: .9; margin: 0 0 8px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 44px); }
.hero-sub { margin: 0; font-size: 18px; opacity: .95; }
.hero-verse {
  margin: 22px auto 0;
  max-width: 560px;
  padding: 14px 20px 12px;
  background: rgba(255,255,255,.12);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
  text-align: center;
  position: relative;
}
.hero-verse::before {
  content: "✦";
  display: block;
  font-size: 18px;
  color: #ffd97d;
  margin-bottom: 6px;
  letter-spacing: 8px;
}
.hero-verse p {
  margin: 0 0 6px;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(15px, 3.2vw, 19px);
  line-height: 1.55;
  background: linear-gradient(135deg, #ffe08a, #fff5cc, #ffc966);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
}
.hero-verse p:last-of-type { margin-bottom: 10px; }
.hero-verse cite {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 12px;
  color: rgba(255,245,200,.7);
  letter-spacing: .06em;
}

/* ---------- Nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  padding: 8px 16px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  flex: 1;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-links a.active { color: #fff; }
.nav-links a.seoul.active { background: var(--seoul); }
.nav-links a.gyeongju.active { background: var(--gyeongju); }
.nav-links a.busan.active { background: var(--busan); }
.nav-links a.jeonju.active { background: var(--jeonju); }
.nav-links a.incheon.active { background: var(--incheon); }

/* ---------- Overview ---------- */
.overview { padding: 48px 16px; max-width: 1000px; margin: 0 auto; }
.overview h2 { text-align: center; font-size: 26px; margin-bottom: 28px; }
.timeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.tl-item {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  text-align: center;
  min-width: 150px;
  border-top: 6px solid transparent;
}
.tl-item.seoul { border-top-color: var(--seoul); }
.tl-item.gyeongju { border-top-color: var(--gyeongju); }
.tl-item.busan { border-top-color: var(--busan); }
.tl-item.jeonju { border-top-color: var(--jeonju); }
.tl-item.incheon { border-top-color: var(--incheon); }
.tl-dates { display: block; font-size: 13px; color: #777; }
.tl-city { display: block; font-size: 18px; font-weight: 700; margin: 4px 0; }
.tl-status { display: block; font-size: 12px; color: #2e9e6b; font-weight: 600; }
.tl-price { font-size: 11px; color: #888; font-weight: 600; white-space: nowrap; }
.tl-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  padding: 0 4px;
}
.tl-arrow::before {
  content: "➜";
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  background: linear-gradient(120deg, var(--seoul), var(--gyeongju), var(--busan), var(--jeonju), var(--incheon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- City sections ---------- */
.city { padding: 56px 16px; max-width: 800px; margin: 0 auto; }
.city-header h2 { font-size: 30px; margin: 0; }
.city-range { font-size: 15px; color: #777; margin: 4px 0 28px; }
.cancel-note { color: #c0392b; font-weight: 600; font-size: 14px; margin-top: -16px; margin-bottom: 24px; }

.seoul .city-header h2 { color: var(--seoul); }
.gyeongju .city-header h2 { color: var(--gyeongju); }
.busan .city-header h2 { color: var(--busan); }
.jeonju .city-header h2 { color: var(--jeonju); }
.incheon .city-header h2 { color: var(--incheon); }

.stay-card, .day-card, .food-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.stay-card.visible, .day-card.visible, .food-card.visible {
  opacity: 1;
  transform: none;
}

.stay-card { border-left: 6px solid #ccc; }
.seoul .stay-card { border-left-color: var(--seoul); }
.gyeongju .stay-card { border-left-color: var(--gyeongju); }
.busan .stay-card { border-left-color: var(--busan); }
.jeonju .stay-card { border-left-color: var(--jeonju); }
.incheon .stay-card { border-left-color: var(--incheon); }

.stay-card h3, .day-card h3, .food-card h3 { margin: 0 0 10px; font-size: 18px; }
.day-note { color: #777; font-style: italic; margin: 0 0 10px; }
.day-card ul, .food-card ul { margin: 0; padding-left: 20px; }
.day-card li, .food-card li { margin-bottom: 6px; }
.food, .next-leg { margin: 12px 0 0; font-size: 14px; color: #555; }
.next-leg em { font-size: 12px; color: #999; font-style: normal; }
.price { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 700; color: #2e9e6b; background: #eaf7ef; padding: 2px 8px; border-radius: 10px; }
.food-card .price { margin-left: 6px; }
.map-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.seoul .map-link { color: var(--seoul); }
.gyeongju .map-link { color: var(--gyeongju); }
.busan .map-link { color: var(--busan); }
.jeonju .map-link { color: var(--jeonju); }
.incheon .map-link { color: var(--incheon); }

.day-card a.loc, .food-card a.loc { font-weight: 600; text-decoration: underline dotted; }
.seoul a.loc { color: var(--seoul); }
.gyeongju a.loc { color: var(--gyeongju); }
.busan a.loc { color: var(--busan); }
.jeonju a.loc { color: var(--jeonju); }
.incheon a.loc { color: var(--incheon); }

/* ---------- Budget ---------- */
.budget {
  background: #fff;
  padding: 56px 16px;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 60px;
}
.budget h2 { text-align: center; font-size: 28px; }
.budget-total {
  text-align: center;
  margin: 12px 0 32px;
  display: flex;
  flex-direction: column;
}
.big-number { font-size: 48px; font-weight: 800; color: var(--jeonju); }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bar-label { width: 130px; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.bar { flex: 1; background: #f1eee6; border-radius: 8px; height: 14px; overflow: hidden; }
.fill { height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--busan), var(--seoul)); transition: width 1s ease; }
.bar-value { width: 70px; text-align: right; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.budget-note { text-align: center; font-size: 14px; color: #555; margin: 6px 0; }
.budget-warning {
  background: #fdecea;
  border-left: 5px solid #c0392b;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 20px 0;
  text-align: left;
}
.budget-warning strong { display: block; color: #c0392b; font-size: 15px; margin-bottom: 4px; }
.budget-warning p { margin: 0; font-size: 13px; color: #7a2e26; }
/* ---------- Budget table ---------- */
.budget-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 14px;
}
.budget-table thead th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--jeonju);
  font-size: 13px;
  color: #888;
  font-weight: 600;
}
.budget-table th.bt-eur, .budget-table td:last-child { text-align: right; }
.budget-table td { padding: 8px 12px; border-bottom: 1px solid #f0ece4; }
.bt-group td {
  background: #faf7f2;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 12px 8px;
  border-bottom: none;
  color: var(--ink);
}
.bt-sub td {
  background: #f5f2ec;
  font-weight: 700;
  color: var(--jeonju);
  border-top: 1px solid #e0d8d0;
}
.bt-total td {
  background: var(--jeonju);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  padding: 14px 12px;
}

/* ---------- T-money ---------- */
.tmoney-card {
  background: #f0f9ff;
  border-left: 5px solid var(--busan);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 24px;
}
.tmoney-card h3 { margin: 0 0 10px; font-size: 17px; }
.tmoney-info { font-size: 13px; color: #555; margin: 0 0 14px; }
.tmoney-table { width: 100%; border-collapse: collapse; }
.tmoney-table td { padding: 7px 8px; font-size: 13px; border-bottom: 1px solid #ddeef7; vertical-align: middle; }
.tmoney-table td:nth-child(2) { text-align: right; color: #888; white-space: nowrap; }
.tmoney-table td:nth-child(3) { text-align: right; font-weight: 700; color: #2e9e6b; white-space: nowrap; padding-left: 10px; }
.tmoney-sub td { background: #e8f4fb; }
.tmoney-total td { background: var(--busan); color: #fff; font-size: 14px; border-radius: 0; }
.tmoney-total td:nth-child(2), .tmoney-total td:nth-child(3) { color: #fff; }

/* ---------- Converter ---------- */
.converter {
  margin-top: 24px;
  text-align: center;
}
.converter h3 { margin: 0 0 18px; font-size: 18px; }
.conv-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.conv-row { display: flex; align-items: center; gap: 10px; }
.conv-row input {
  width: 150px;
  padding: 12px 14px;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid #e0d8d0;
  border-radius: 12px;
  outline: none;
  text-align: right;
  color: var(--ink);
  background: var(--bg);
  -moz-appearance: textfield;
}
.conv-row input::-webkit-outer-spin-button,
.conv-row input::-webkit-inner-spin-button { -webkit-appearance: none; }
.conv-row input:focus { border-color: var(--jeonju); }
.conv-unit { font-size: 24px; font-weight: 800; color: var(--jeonju); }
.conv-sep { font-size: 26px; color: #ccc; }
.conv-note { margin: 14px 0 0; font-size: 13px; color: #888; }

.naver-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #03C75A;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  border-radius: 3px;
  text-decoration: none;
  margin-left: 3px;
  vertical-align: middle;
  line-height: 1;
}
.naver-link {
  display: inline-block;
  margin-left: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #03C75A;
  text-decoration: none;
}

/* ---------- Vidéos ---------- */
.videos { padding: 56px 16px; max-width: 900px; margin: 0 auto; }
.videos h2 { text-align: center; font-size: 28px; margin-bottom: 24px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.video-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.video-card h3 { margin: 0 0 10px; font-size: 16px; }
.video-card video { width: 100%; border-radius: 12px; display: block; background: #000; }

footer { text-align: center; padding: 24px; color: #999; font-size: 13px; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    box-shadow: var(--shadow);
    padding: 10px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .hero::before {
    background: url("BANNER.jpg") center / cover no-repeat;
  }
  .timeline { flex-direction: column; }
  .tl-arrow::before { transform: rotate(90deg); }
  .bar-label { width: 100px; font-size: 12px; }
}
