/* ==========================================================
   Seoul Traditional Travel Guide — Stylesheet
   Color palette inspired by:
   - Joseon palace dancheong (단청) deep brown-red beams
   - Royal hanbok crimson silk
   - Hanok wooden rafters & tiled rooftops
   ========================================================== */

:root {
  /* ---- Fixed neutrals ---- */
  --color-bg:           #ffffff;  /* fixed */
  --color-surface-alt:  #f7f7f5;  /* fixed */
  --color-gray-light:   #ECECEC;  /* fixed */

  /* ---- Primary (palette base) ----
     Deep dancheong brown — the color of hanok rafters & palace beams */
  --color-primary:        #3D2817;
  --color-primary-light:  #6B4A2E;  /* lighter wood-brown variant */

  /* ---- Accent ----
     Royal dancheong red — Gyeongbokgung pillar crimson, hanbok silk */
  --color-accent:         #C8102E;
  --color-accent-light:   #FDECEE;  /* very pale rose for backgrounds */
  --color-accent-muted:   #E36577;  /* mid-tone red for hover/badges */
  --color-accent-bg:      #FBF5F0;  /* warm cream — inspired by hanji paper */

  /* ---- Zone accent colors ---- */
  --color-section1:       #8B5A2B;  /* Gyeongbokgung wood-brown */
  --color-section2:       #B83227;  /* Insadong terracotta */
  --color-nearby:         #2C7A7B;  /* pine green for nature/day trips */

  /* ---- Typography ---- */
  --font-sans: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Shadows ---- */
  --shadow-sm: 0 2px 6px rgba(61, 40, 23, 0.06);
  --shadow-md: 0 6px 18px rgba(61, 40, 23, 0.10);
  --shadow-lg: 0 16px 40px rgba(61, 40, 23, 0.16);

  /* ---- Layout ---- */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

/* ============== RESET ============== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: #2a1f15;
  background: var(--color-bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  min-width: 1024px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============== HEADER ============== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-gray-light);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* Language toggle wrapper — positioned just before hamburger */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
/* Make .lang-toggle relative for the sliding pill */
.lang-toggle {
  position: relative;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary);
  display: flex; align-items: center; gap: 10px;
}
.logo i { color: var(--color-accent); }
.main-nav {
  display: flex; gap: 26px;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.93rem;
  color: #4a3a2a;
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--color-accent); }
.main-nav a.active {
  color: var(--color-accent);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.hamburger {
  display: none;
  width: 28px; height: 24px;
  flex-direction: column; justify-content: space-between;
}
.hamburger span {
  display: block;
  width: 100%; height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 28px 80px;
  /* three-stop dark gradient from --color-primary */
  background: linear-gradient(135deg, #2a1b0e 0%, #3D2817 45%, #5a3a22 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(200, 16, 46, 0.20), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(227, 101, 119, 0.18), transparent 55%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 50% 100%, rgba(0,0,0,0.45), transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 880px;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 22px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.92);
}
.hero-ctas {
  display: flex; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 1.3rem;
  animation: bounce 1.8s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: #2a1b0e; }
.btn-secondary {
  background: #fff;
  color: var(--color-primary);
}
.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover { background: #a30d24; }

/* ============== SECTIONS ============== */
.section {
  padding: 90px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.section-alt {
  background: var(--color-surface-alt);
  max-width: 100%;
}
.section-alt > * {
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-badge.badge-zone1-bg { background: rgba(139, 90, 43, 0.13); color: var(--color-section1); }
.section-badge.badge-zone2-bg { background: rgba(184, 50, 39, 0.13); color: var(--color-section2); }
.section-badge.badge-nearby-bg { background: rgba(44, 122, 123, 0.13); color: var(--color-nearby); }

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 14px;
  line-height: 1.25;
}
.section-desc {
  font-size: 1.02rem;
  max-width: 640px;
  margin: 0 auto;
  color: #5a4838;
}

/* ============== THEME TABLE ============== */
.theme-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
}
.theme-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.theme-table thead {
  background: var(--color-primary);
  color: #fff;
}
.theme-table th,
.theme-table td {
  padding: 16px 18px;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-gray-light);
}
.theme-table th { font-weight: 700; letter-spacing: 0.5px; }
.theme-table tbody tr {
  transition: background 0.2s;
  cursor: pointer;
}
.theme-table tbody tr:hover { background: var(--color-accent-bg); }
.theme-table tbody tr.row-selected {
  background: var(--color-accent-light);
  box-shadow: inset 4px 0 0 var(--color-accent);
}
.theme-table td i { color: var(--color-accent); margin-right: 6px; }

.location-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.badge-zone1 { background: var(--color-section1); }
.badge-zone2 { background: var(--color-section2); }
.badge-nearby { background: var(--color-nearby); }

/* ============== MAP ============== */
.map-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  height: 600px;
}
.map-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-light);
}
#google-map {
  width: 100%; height: 100%;
  background: var(--color-gray-light);
}
.map-legend {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(255,255,255,0.96);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.84rem;
}
.legend-item {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
  user-select: none;
}
.legend-item.is-hidden { opacity: 0.35; text-decoration: line-through; }
.legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot-zone1 { background: var(--color-section1); }
.dot-zone2 { background: var(--color-section2); }
.dot-downtown { background: var(--color-primary-light); }
.dot-nearby { background: var(--color-nearby); }

.map-side-panel {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.map-filter-bar {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
  border-bottom: 1px solid var(--color-gray-light);
  background: var(--color-surface-alt);
}
.map-filter-btn {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 100px;
  background: #fff;
  color: #5a4838;
  border: 1px solid var(--color-gray-light);
  transition: all 0.2s;
}
.map-filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.map-filter-btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.map-place-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.map-place-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}
.map-place-item:hover,
.map-place-item.is-active {
  background: var(--color-accent-bg);
}
.map-place-item.is-hidden { display: none; }
.map-place-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-place-info { flex: 1; min-width: 0; }
.map-place-name {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--color-primary);
}
.map-place-sub {
  font-size: 0.78rem;
  color: #7a6a55;
  margin-top: 2px;
}
.map-place-link {
  color: var(--color-accent);
  font-size: 0.85rem;
  padding: 6px;
}

/* ============== SPOT CARDS ============== */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.spot-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  transform-style: preserve-3d;
}
.spot-card:hover {
  box-shadow: var(--shadow-md);
}
.card-featured {
  background: linear-gradient(135deg, #FBF5F0 0%, #FDECEE 100%);
  border-color: var(--color-accent-muted);
  position: relative;
}
.card-featured::before {
  content: '★ Featured';
  position: absolute;
  top: 14px; right: 14px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  z-index: 1;
}

/* Accordion */
.acc-card .acc-trigger {
  display: block;
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  position: relative;
}
.acc-chevron {
  position: absolute;
  top: 24px; right: 24px;
  transition: transform 0.3s;
  color: var(--color-accent);
}
.acc-card.is-open .acc-chevron { transform: rotate(180deg); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
}
.acc-card.is-open .acc-body {
  max-height: 1200px;
  padding-bottom: 24px;
}

.card-header {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 14px;
}
.card-icon-wrap {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.card-name {
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--color-primary);
  line-height: 1.3;
}
.card-kr {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--color-section1);
  margin-left: 4px;
}
.card-loc {
  font-size: 0.83rem;
  color: #7a6a55;
  margin-top: 4px;
}
.card-loc i { color: var(--color-accent); margin-right: 4px; }

.card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--color-gray-light);
  color: #4a3a2a;
}
.tag-culture  { background: #F3E8FF; color: #6B21A8; }
.tag-food     { background: #FEF3C7; color: #92400E; }
.tag-souvenir { background: #FCE7F3; color: #9D174D; }
.tag-cafe     { background: #FFEDD5; color: #9A3412; }
.tag-nature   { background: #D1FAE5; color: #065F46; }
.tag-history  { background: #FEE2E2; color: #991B1B; }
.tag-activity { background: #DBEAFE; color: #1E40AF; }
.tag-scenic   { background: #E0F2FE; color: #0369A1; }
.tag-hidden   { background: #FAE8FF; color: #86198F; }
.tag-kids     { background: #FCE7F3; color: #BE185D; }

.card-desc {
  font-size: 0.96rem;
  color: #4a3a2a;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-gray-light);
}

.info-box {
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.info-row {
  font-size: 0.88rem;
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0;
}
.info-row strong { color: var(--color-primary); margin-right: 4px; }
.info-row i { color: var(--color-accent); width: 16px; }
.info-row-tip i { color: #D97706; }
.info-row-entry i { color: #059669; }

.card-recommend,
.card-check {
  font-size: 0.88rem;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  margin-bottom: 9px;
}
.card-recommend {
  background: #FFFBEB;
  color: #92400E;
  border-left: 3px solid #F59E0B;
}
.card-check {
  background: #ECFDF5;
  color: #065F46;
  border-left: 3px solid #10B981;
}
.card-recommend i, .card-check i { margin-right: 6px; }

.card-map-btns {
  display: flex; gap: 8px;
  margin-top: 14px;
}
.card-map-btn {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  transition: background 0.2s;
}
.card-map-btn:hover { background: var(--color-accent); }
.card-map-btn i { margin-right: 6px; }

/* ============== FOOD GRID ============== */
.food-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.food-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.food-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.food-emoji { font-size: 2.5rem; margin-bottom: 10px; }
.food-card h4 {
  color: var(--color-primary);
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.food-kr {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-section1);
  margin-top: 2px;
}
.food-card p {
  font-size: 0.86rem;
  color: #5a4838;
  line-height: 1.55;
}
.food-notice {
  margin-top: 32px;
  text-align: center;
  padding: 14px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ============== TRANSPORT ============== */
.transport-section {
  background: #FFF7ED;
  max-width: 100%;
}
.transport-section > * {
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
}
.transport-banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.transport-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
}
.transport-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.transport-card h4 {
  color: var(--color-primary);
  font-size: 1.12rem;
  margin-bottom: 12px;
}
.transport-card ul li {
  padding: 6px 0;
  font-size: 0.92rem;
  color: #4a3a2a;
  border-bottom: 1px dashed var(--color-gray-light);
}
.transport-card ul li:last-child { border-bottom: none; }

/* ============== TIPS QUICK ============== */
.tips-quick-section {
  background: var(--color-surface-alt);
  max-width: 100%;
}
.tips-quick-section > * {
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
}
.tips-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.tips-quick-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tips-quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tips-quick-card i {
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.tips-quick-card h4 {
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.tips-quick-card p {
  font-size: 0.9rem;
  color: #5a4838;
}

/* ============== TIPS DETAIL ============== */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.tip-card {
  border-radius: var(--radius-md);
  padding: 28px;
  border-left: 5px solid;
  transition: transform 0.3s, box-shadow 0.3s;
}
.tip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tip-icon { font-size: 2rem; margin-bottom: 12px; }
.tip-card h4 {
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.tip-card p {
  font-size: 0.94rem;
  color: #4a3a2a;
  line-height: 1.6;
}
.tip-yellow { background: #FFFBEB; border-color: #F59E0B; }
.tip-orange { background: #FFF7ED; border-color: #EA580C; }
.tip-green  { background: #ECFDF5; border-color: #10B981; }
.tip-blue   { background: #EFF6FF; border-color: #3B82F6; }

/* ============== COURSES ============== */
.course-list {
  display: flex; flex-direction: column;
  gap: 18px;
}
.course-card {
  display: flex; gap: 24px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
  transition: transform 0.3s, box-shadow 0.3s;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.course-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  min-width: 60px;
}
.course-content { flex: 1; }
.course-content h4 {
  color: var(--color-primary);
  font-size: 1.18rem;
  margin-bottom: 6px;
}
.course-meta {
  font-weight: 400;
  font-size: 0.88rem;
  color: #7a6a55;
}
.course-content p {
  font-size: 0.92rem;
  color: #5a4838;
  margin-bottom: 14px;
}
.course-route {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.route-step {
  padding: 8px 14px;
  background: var(--color-accent-bg);
  color: var(--color-primary);
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid #F3E0D0;
}
.route-arrow {
  color: var(--color-accent);
  font-weight: 700;
}

/* ============== CHECKLIST ============== */
.checklist-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
}
.checklist-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 9px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background 0.2s;
}
.checklist-item:hover { background: var(--color-accent-bg); }
.check-box {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-gray-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.check-box i {
  color: #fff;
  font-size: 0.78rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.checklist-item.is-checked .check-box {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.checklist-item.is-checked .check-box i { opacity: 1; }
.checklist-item.is-checked .check-label {
  text-decoration: line-through;
  color: #9a8a7a;
}
.check-label {
  font-size: 0.95rem;
  color: #4a3a2a;
}

.progress-wrap { margin-top: 24px; }
.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: var(--color-gray-light);
  border-radius: 100px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent-muted), var(--color-accent));
  border-radius: 100px;
  transition: width 0.4s;
}
.progress-text {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
  color: #5a4838;
}
.progress-complete {
  margin-top: 16px;
  padding: 14px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s, max-height 0.4s, margin-top 0.4s;
}
.progress-complete.is-visible {
  opacity: 1;
  max-height: 60px;
  margin-top: 16px;
}
.progress-complete i { margin-right: 8px; }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding: 50px 28px 36px;
  text-align: center;
}
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-logo i { color: var(--color-accent-muted); margin-right: 8px; }
.footer-note {
  font-size: 0.88rem;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.7);
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* ============== BACK TO TOP ============== */
#back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
  z-index: 900;
}
#back-to-top:hover { background: var(--color-primary); }
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============== FADE UP ============== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== LANGUAGE TOGGLE ============== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-gray-light);
  border-radius: 100px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  position: relative;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7a6a55;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.25s;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  z-index: 1;
}
.lang-btn.active {
  color: #fff;
}
/* sliding pill behind active button */
.lang-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--color-accent);
  border-radius: 100px;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.lang-toggle.is-ko::before {
  transform: translateX(100%);
}
/* flag emoji size */
.lang-btn .flag { font-size: 1rem; line-height: 1; }

/* transition fade for language switch — whole-page soft blink */
body {
  transition: opacity 0.18s ease;
}
body.lang-switching {
  opacity: 0.15;
}

/* ============== INFO WINDOW (Google Maps) ============== */
.gm-iw-wrap {
  font-family: var(--font-sans);
  padding: 4px 6px 6px;
  max-width: 240px;
}
.gm-iw-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.gm-iw-sub {
  font-size: 0.82rem;
  color: #6a5847;
  margin-bottom: 10px;
}
.gm-iw-link {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1023px) {
  .map-layout { grid-template-columns: 1fr; height: auto; }
  .map-container { height: 460px; }
  .map-side-panel { height: 460px; }
  .spot-grid { grid-template-columns: 1fr; }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .transport-banner { grid-template-columns: 1fr; }
  .tip-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { min-width: 0; }
  .section { padding: 64px 18px; }
  .header-inner { padding: 14px 18px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 18px;
    gap: 0;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-gray-light);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--color-gray-light);
    font-size: 0.95rem;
  }
  .main-nav a:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .lang-btn { padding: 6px 10px; font-size: 0.78rem; }
  .lang-btn .flag { font-size: 0.9rem; }

  .hero { padding: 90px 20px 60px; min-height: 88vh; }
  .hero-sub { font-size: 1rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 1.5rem; }

  .food-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .food-card { padding: 18px 12px; }

  .course-card { flex-direction: column; gap: 12px; padding: 20px; }
  .course-num { font-size: 1.8rem; min-width: auto; }

  .checklist-wrap { padding: 22px 18px; }

  #back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }

  .theme-table th,
  .theme-table td { padding: 12px 10px; font-size: 0.85rem; }

  .map-container, .map-side-panel { height: 380px; }
}
