@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;700&display=swap');

/* Same visual family as the Sydney & New Zealand tripnote site: white page, ink text,
   one blue accent, thin lines. Type is set larger here for easy reading on a phone. */
:root {
  --ink: #17212d;
  --body: #414b59;
  --muted: #6b7686;
  --line: #e6eaf0;
  --blue: #3563e9;
  --light: #f6f8fd;
  --white: #fff;
  --free: #0f7a52;
  --leaf: #b4541f;
  --check: #9a5b00;
  font-family: 'DM Sans', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  letter-spacing: -.01em;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #87a6ff; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { max-width: 880px; width: calc(100% - 64px); margin: auto; }
.skip { position: absolute; top: -60px; left: 8px; background: #fff; padding: 12px; z-index: 100; }
.skip:focus { top: 8px; }

/* header */
.site-header { background: #fffffff5; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1100; }
.header-inner { height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { font-size: 24px; font-weight: 800; display: inline-flex; align-items: center; letter-spacing: -1.2px; }
.brand-mark { color: var(--blue); font-size: 30px; margin-right: 8px; font-weight: 400; line-height: 1; }
.brand-dot { color: var(--blue); }
nav { margin-left: auto; display: flex; gap: 6px; height: 100%; align-items: center; }
nav > a { font-size: 15px; font-weight: 500; color: var(--muted); padding: 10px 12px; border-radius: 8px; }
nav > a:hover { color: var(--blue); background: var(--light); }
.edition { font-size: 11px; letter-spacing: 1.7px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 22px; }

/* intro */
.intro { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 56px 0 40px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.6px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.eyebrow > span { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
h1 { font-size: clamp(60px, 11vw, 96px); letter-spacing: -.055em; line-height: 1.02; font-weight: 600; margin: 16px 0 24px; }
.title-in { font-size: .55em; color: var(--blue); }
.title-accent { color: var(--ink); }
.intro-bottom h2 { font-size: 22px; letter-spacing: -.6px; font-weight: 600; margin-bottom: 8px; }
.intro-bottom p { font-size: 17px; color: var(--body); max-width: 34em; }
.trip-ticket { width: 250px; flex: none; border: 1px solid #e0e6f0; border-radius: 12px; padding: 22px; transform: rotate(3deg); box-shadow: 0 6px 20px #253d6c0d; background: #fff; }
.ticket-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; letter-spacing: 2px; font-weight: 700; }
.ticket-head > span:last-child { color: var(--muted); font-weight: 400; }
.ticket-leaf { color: var(--blue); font-size: 20px; }
.ticket-dates { font-size: 19px; font-weight: 600; margin-top: 22px; padding-bottom: 20px; border-bottom: 1px dashed #d8dfea; }
.ticket-dates span { color: #a8b0bd; margin: 0 6px; }
.ticket-foot { font-size: 13px; color: var(--muted); margin-top: 14px; display: flex; justify-content: space-between; gap: 8px; }

/* notice */
.notice { border: 1px solid #dfe7f8; border-radius: 14px; background: var(--light); padding: 20px 22px; margin-bottom: 28px; }
.notice-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.notice-title span { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--blue); }
.notice-title small { font-size: 13px; color: var(--muted); }
.notice p { font-size: 16px; color: var(--body); }
.notice strong { color: var(--ink); }

/* day strip */
.day-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 0 44px; }
.day-strip a { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.day-strip a:hover { border-color: #c6d2e8; background: var(--light); }
.day-strip .ds-day { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; display: flex; align-items: center; gap: 7px; }
.day-strip .ds-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.day-strip .ds-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }

/* section heads */
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; padding-bottom: 14px; border-bottom: 1px solid #252e3a; }
.section-head h2 { margin-top: 6px; font-size: 26px; font-weight: 600; letter-spacing: -.9px; line-height: 1.25; text-wrap: balance; }
.count-label { font-size: 12px; color: var(--muted); letter-spacing: .4px; white-space: nowrap; margin-bottom: 4px; }
.section-note { font-size: 15px; color: var(--muted); margin: 14px 0 22px; max-width: 46em; }
.block { margin-top: 64px; }

/* day */
.day { margin-bottom: 64px; }
.day-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid #252e3a; }
.date-rail { display: flex; flex-direction: column; align-items: center; line-height: 1; padding-top: 2px; }
.date-rail .month { font-size: 11px; letter-spacing: 1.4px; color: var(--muted); font-weight: 600; }
.date-rail strong { font-size: 40px; font-weight: 600; letter-spacing: -2px; margin: 6px 0; }
.date-rail .weekday { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; }
.day-head .region { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; color: var(--muted); }
.day-head h2 { font-size: 26px; font-weight: 600; letter-spacing: -.9px; line-height: 1.25; margin-top: 6px; text-wrap: balance; }
.day-meta { margin: 16px 0 8px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.day-meta b { color: var(--ink); font-weight: 600; }

.stops { list-style: none; margin: 0; padding: 0; }
.stop { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.stop-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stop-num { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.stop-num.ghost { background: #fff !important; border: 1.5px dashed #b9c1ce; color: var(--muted); }
.stop-time { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.stop h3 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; line-height: 1.35; }
.stop p { font-size: 16px; color: var(--body); margin-top: 6px; max-width: 40em; }
.stop-foot { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 12px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.free { background: #e9f7f0; border-color: #cdebdc; color: var(--free); }
.tag.leaf { background: #fdf1e8; border-color: #f6dcc8; color: var(--leaf); }
.tag.coffee, .tag.latte { background: #eef2ff; border-color: #d9e2ff; color: #2d55cf; }
.tag.check { background: #fff8e6; border-color: #f3e2b3; color: var(--check); }
.tag.opt { border-style: dashed; border-color: #b9c1ce; }
.maplink { font-size: 14px; color: var(--blue); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 2px; }
.maplink:hover { text-decoration: underline; }

/* per-day map */
.map-panel { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
.map-panel h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.map-panel h3 i { width: 10px; height: 10px; border-radius: 50%; }
.daymap { width: 100%; height: 400px; border-radius: 12px; margin-top: 12px; background: #e9eeeb; z-index: 0; }
.allmap { height: 520px; }
.map-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.map-filters button { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--body); padding: 9px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; }
.map-filters button i { width: 9px; height: 9px; border-radius: 50%; }
.map-filters button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.map-caption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.num-marker { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; color: #fff; font: 700 13px/22px 'DM Sans', sans-serif; text-align: center; box-shadow: 0 2px 8px #0005; }
.leaflet-popup-content { font: 14px/1.5 'DM Sans', 'Noto Sans KR', sans-serif; margin: 12px 14px; }
.leaflet-popup-content strong { display: block; font-size: 15px; color: var(--ink); }
.leaflet-popup-content span { color: var(--muted); }
.leaflet-popup-content a { color: var(--blue); font-weight: 600; display: inline-block; margin-top: 4px; }

/* cafes */
.cafe-group { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.cafe-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cafe-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cafe-area { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--blue); }
.cafe-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; }
.cafe-card p { font-size: 15.5px; color: var(--body); flex: 1; }
.aside-note { font-size: 15px; color: var(--muted); margin-top: 18px; max-width: 46em; }

/* pairs */
.pairs { margin: 0; }
.pairs > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pairs dt { font-size: 16px; font-weight: 600; }
.pairs dd { margin: 0; font-size: 16px; color: var(--body); max-width: 40em; }

footer { display: flex; gap: 28px; align-items: center; margin-top: 64px; border-top: 1px solid var(--line); padding: 28px 0 40px; }
footer > .brand { color: #9aa3b1; font-size: 20px; }
footer p { font-size: 13px; color: var(--muted); }
.back-top { font-size: 14px; color: var(--muted); white-space: nowrap; margin-left: auto; padding: 10px 0; }

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .shell { width: calc(100% - 36px); }
  .header-inner { height: 60px; gap: 10px; }
  .brand { font-size: 20px; } .brand-mark { font-size: 24px; margin-right: 5px; }
  .edition { display: none; }
  nav { gap: 0; overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav > a { font-size: 14px; padding: 10px 8px; flex: none; }
  .intro { display: block; padding: 32px 0 26px; }
  h1 { font-size: 64px; margin: 12px 0 18px; }
  .intro-bottom h2 { font-size: 19px; }
  .intro-bottom p { font-size: 16px; }
  .trip-ticket { width: 100%; transform: none; margin-top: 22px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: none; }
  .ticket-head { font-size: 11px; gap: 8px; letter-spacing: 1px; }
  .ticket-head > span:last-child { display: none; }
  .ticket-dates { font-size: 15px; margin: 0; padding: 0; border: 0; white-space: nowrap; }
  .ticket-foot { display: none; }
  .notice { padding: 16px; margin-bottom: 20px; }
  .day-strip { grid-template-columns: 1fr; gap: 8px; padding-bottom: 36px; }
  .day-strip a { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .day-strip .ds-day { flex: none; width: 76px; }
  .section-head h2, .day-head h2 { font-size: 22px; }
  .day { margin-bottom: 52px; }
  .day-head, .stop { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .date-rail strong { font-size: 32px; }
  .stop { padding: 18px 0; }
  .stop h3 { font-size: 18px; }
  .stop-time { font-size: 13px; }
  .map-panel { padding: 12px; border-radius: 14px; }
  .daymap { height: 340px; }
  .allmap { height: 420px; }
  .cafe-list { grid-template-columns: 1fr; }
  .pairs > div { grid-template-columns: 1fr; gap: 4px; }
  .block { margin-top: 52px; }
  footer { flex-wrap: wrap; gap: 10px 24px; margin-top: 48px; }
  footer > div { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
