/* 삿포로 여행 — Airbnb 디자인 톤 (DESIGN.md 기반)
   Rausch #ff385c · 순백 캔버스 · Inter(Cereal 대체) · 둥근 모서리 */

:root {
  --primary: #ff385c;
  --primary-active: #e00b41;
  --ink: #222222;
  --body: #3f3f3f;
  --muted: #6a6a6a;
  --muted-soft: #929292;
  --hairline: #dddddd;
  --hairline-soft: #ebebeb;
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-strong: #f2f2f2;
  --on-primary: #ffffff;
  --shadow: rgba(0,0,0,0.02) 0 0 0 1px, rgba(0,0,0,0.04) 0 2px 6px 0, rgba(0,0,0,0.1) 0 4px 8px 0;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 9999px;
  --maxw: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── 상단 네비 ───────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
  margin-right: 8px;
  white-space: nowrap;
  text-decoration: none;
}
.nav a.tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a.tab:hover { color: var(--ink); background: var(--surface-soft); }
.nav a.tab.active { color: var(--on-primary); background: var(--primary); }

/* ── 레이아웃 ───────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px 16px 64px; }

.page-head { margin-bottom: 28px; }
.page-head h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.page-head .sub { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* 히어로 (홈) */
.hero {
  background: linear-gradient(135deg, #fff5f7 0%, #ffffff 60%);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  margin-bottom: 28px;
}
.hero .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--primary);
}
.hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.6px; margin: 8px 0 4px; }
.hero .dates { font-size: 16px; color: var(--body); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.chip b { color: var(--primary); font-weight: 700; }

/* 섹션 제목 */
.section-title {
  font-size: 18px; font-weight: 700; letter-spacing: -0.3px;
  margin: 32px 0 14px;
}
.section-title:first-child { margin-top: 0; }

/* 카드 */
.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 18px 18px;
  margin-bottom: 14px;
}
.card h3 { font-size: 16px; font-weight: 700; }

/* Day 카드 */
.day {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 16px;
}
.day-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 16px 18px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--hairline-soft);
}
.day-badge {
  background: var(--primary); color: var(--on-primary);
  font-size: 12px; font-weight: 700;
  border-radius: var(--r-full);
  padding: 4px 12px; white-space: nowrap;
}
.day-head .dh-title { font-size: 15px; font-weight: 700; }
.day-head .dh-date { font-size: 13px; color: var(--muted); font-weight: 500; }

/* 타임라인 */
.timeline { list-style: none; padding: 8px 18px 14px; }
.timeline li {
  position: relative;
  padding: 12px 0 12px 78px;
  border-bottom: 1px solid var(--hairline-soft);
}
.timeline li:last-child { border-bottom: none; }
.timeline .time {
  position: absolute; left: 0; top: 13px;
  font-size: 12px; font-weight: 700; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.timeline .act { font-size: 15px; font-weight: 600; color: var(--ink); }
/* 지도 링크 */
a.maplink {
  color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid #ffd1da;
  transition: border-color .15s, color .15s;
}
a.maplink:hover { color: var(--primary); border-bottom-color: var(--primary); }
a.maplink .pin {
  font-size: 12px; color: var(--primary); margin-left: 4px;
  vertical-align: 1px; border-bottom: none;
}
/* 저장 목록 전체 보기 버튼 */
.map-all {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none;
  background: var(--primary); color: var(--on-primary);
  font-size: 14px; font-weight: 600;
  border-radius: var(--r-full); padding: 11px 20px;
  margin-bottom: 4px;
}
.map-all:hover { background: var(--primary-active); }
.timeline .desc { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.timeline .tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--primary); background: #fff0f3;
  border-radius: var(--r-full); padding: 2px 8px; margin-right: 6px;
  vertical-align: 1px;
}

/* 표 */
.table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md); overflow: hidden;
  margin-bottom: 14px;
}
.table th, .table td {
  text-align: left; padding: 12px 14px; font-size: 14px;
  border-bottom: 1px solid var(--hairline-soft);
}
.table th {
  background: var(--surface-soft); color: var(--muted);
  font-weight: 600; width: 38%; white-space: nowrap;
}
.table td { color: var(--ink); font-weight: 500; }
.table tr:last-child th, .table tr:last-child td { border-bottom: none; }
.table b { color: var(--primary); }

/* 항공 요약 카드 */
.flight-card {
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 20px 18px; margin-bottom: 14px;
}
.flight-card .fc-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4px; color: var(--muted);
}
.flight-route {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 6px;
}
.flight-route .pt { text-align: center; }
.flight-route .code { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.flight-route .time { font-size: 15px; font-weight: 600; color: var(--primary); margin-top: 2px; }
.flight-route .ap { font-size: 12px; color: var(--muted); margin-top: 2px; }
.flight-route .mid { flex: 1; text-align: center; color: var(--muted-soft); }
.flight-route .mid .dur { font-size: 12px; color: var(--muted); }
.flight-route .line {
  height: 2px; background: var(--hairline);
  position: relative; margin: 6px 0;
}
.flight-route .line::after {
  content: '✈'; position: absolute; right: -2px; top: -9px;
  color: var(--primary); font-size: 14px;
}
.flight-card .fc-meta { font-size: 13px; color: var(--muted); }
.flight-card .flt-no { font-weight: 700; color: var(--ink); }

/* 정보 박스 / 콜아웃 */
.callout {
  border-radius: var(--r-md); padding: 14px 16px; margin: 14px 0;
  font-size: 14px; line-height: 1.5;
}
.callout.note { background: var(--surface-soft); border: 1px solid var(--hairline-soft); color: var(--body); }
.callout.warn { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; }
.callout.tip { background: #fff0f3; border: 1px solid #ffd1da; color: #9f1239; }
.callout b { font-weight: 700; }
.callout .ico { font-weight: 700; margin-right: 4px; }

/* 리스트 */
.ul { padding-left: 2px; list-style: none; }
.ul li {
  position: relative; padding: 7px 0 7px 20px;
  font-size: 14px; color: var(--body); line-height: 1.5;
  border-bottom: 1px solid var(--hairline-soft);
}
.ul li:last-child { border-bottom: none; }
.ul li::before {
  content: ''; position: absolute; left: 2px; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.ul li b { color: var(--ink); font-weight: 700; }

/* 캡처 이미지 */
.shot {
  width: 100%; border-radius: var(--r-md);
  border: 1px solid var(--hairline); margin-bottom: 8px; display: block;
}
.shot-cap { font-size: 13px; color: var(--muted); margin-bottom: 22px; }

/* 홈 바로가기 카드 */
.links { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.link-card {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 18px 16px; transition: box-shadow .15s, transform .1s;
}
.link-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.link-card .lc-ico { font-size: 22px; }
.link-card .lc-title { font-size: 16px; font-weight: 700; margin-top: 8px; }
.link-card .lc-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* 푸터 */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 24px 16px 40px; text-align: center;
  color: var(--muted-soft); font-size: 13px;
  max-width: var(--maxw); margin: 0 auto;
}

a { color: var(--primary); }

@media (max-width: 480px) {
  .links { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .timeline li { padding-left: 70px; }
}
