/* ── PortCast · 실시간 항만 이동 인텔리전스 · 디자인 시스템 SSOT ──────────
   포트 블루 주색 + 제주 틸 보조 + 블루→틸 시그니처 그라디언트. Pretendard.
   Deep Navy 텍스트, Light Gray 표면, 화이트 카드, 부드러운 라운드·엘리베이션.
   오프라인 대비 시스템 폰트 폴백(display=swap). */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  /* 텍스트(Deep Navy 계열) */
  --fg: #0d1321; /* Deep Navy */
  --fg-2: #1f2a3c;
  --muted: #58616e;
  --faint: #97a0ad;
  /* 표면 */
  --bg: #ffffff; /* 카드 */
  --bg-2: #f2f4f7; /* Light Gray · 앱 배경 */
  --bg-3: #e9edf3;
  --border: #e6e9ef;
  --border-2: #d8dde6;
  /* 브랜드 컬러 */
  --blue: #2563eb; /* Port Blue · 주색·액션 */
  --sky: #38bdf8; /* Sky Blue · 라이트 강조 */
  --teal: #00b3a4; /* Jeju Teal · 보조·공급 */
  --navy: #0d1321; /* Deep Navy */
  /* 강조(별칭) */
  --accent: var(--blue);
  --accent-2: var(--sky);
  --accent-soft: #eaf1fe; /* 블루 틴트 */
  --teal-soft: #e0f6f3;
  --amber: #b7791f; /* 데이터 피크·주의 */
  --amber-soft: #fbf3e0;
  --red: #e5484d;
  --red-soft: #fdecec;
  /* 시그니처 그라디언트(블루 → 스카이 → 틸) */
  --grad: linear-gradient(120deg, #2563eb 0%, #38bdf8 55%, #00b3a4 100%);
  --grad-soft: linear-gradient(120deg, #eaf1fe 0%, #e0f6f3 100%);
  /* 시맨틱 별칭(컴포넌트가 참조) */
  --text: var(--fg);
  --surface: var(--bg);
  --brand: var(--blue);
  --brand-mark: var(--blue);
  --danger: var(--red);

  --font: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR",
    system-ui, sans-serif;
  --mono: "Pretendard", ui-monospace, "SF Mono", Menlo, monospace;

  --r-xs: 7px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --sh-sm: 0 1px 2px rgb(13 19 33 / 5%);
  --sh: 0 1px 2px rgb(13 19 33 / 5%), 0 8px 24px rgb(13 19 33 / 7%);
  --sh-blue: 0 8px 22px rgb(37 99 235 / 24%);
  --ring: 0 0 0 3px rgb(37 99 235 / 22%);
  /* 모바일 전용: 폰 폭 기준 */
  --container: 448px;
  /* 타입 스케일(모바일, 본문 16px 접근성 준수) */
  --t-body: 16px;
  --t-sec: 14px;
  --t-label: 12.5px;
  --t-h1: 27px;
  --t-metric: 34px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--fg);
  background: var(--bg-2);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
.app-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s4) calc(var(--s8) + env(safe-area-inset-bottom));
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--fg);
  color: #fff;
  padding: var(--s2) var(--s4);
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 50;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

/* ── 헤더 ── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s5) 0 var(--s4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 600;
  color: var(--fg);
  font-size: 15px;
  letter-spacing: -0.02em;
}
.brand .logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
}
.brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand .logo svg {
  width: 15px;
  height: 15px;
}
h1 {
  font-size: var(--t-h1);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0;
}
h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 var(--s3);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.01em;
}
h2 svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
}
.muted {
  color: var(--muted);
  font-size: var(--t-sec);
  letter-spacing: -0.006em;
}

/* ── 세그먼트 역할전환 ── */
.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-3);
  border-radius: var(--r-md);
  gap: 2px;
}
.seg a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--s3);
  border-radius: var(--r-xs);
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  transition: all 0.16s ease;
}
.seg a svg {
  width: 15px;
  height: 15px;
}
.seg a[aria-current="page"] {
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--sh-sm);
}

/* ── 카드 ── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin-bottom: var(--s3);
  box-shadow: var(--sh-sm);
  animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.card--flush {
  padding: var(--s4);
}

/* ── 시그니처 그라디언트 히어로(블루→틸) ── */
.hero {
  position: relative;
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin-bottom: var(--s3);
  color: #fff;
  background: var(--grad);
  box-shadow: var(--sh-blue);
  overflow: hidden;
  animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgb(255 255 255 / 20%), transparent 62%);
  pointer-events: none;
}
.hero > * {
  position: relative;
}
.hero .hero-k {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(255 255 255 / 92%);
}
.hero .hero-k svg {
  width: 16px;
  height: 16px;
  color: #fff;
}
.hero .hero-v {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero .hero-v small {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.9;
  margin-left: 3px;
}
.hero .hero-sub {
  margin-top: 3px;
  font-size: 13px;
  color: rgb(255 255 255 / 85%);
}
.hero .hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
}
.hero .hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 18%);
  backdrop-filter: blur(4px);
  font-size: 12.5px;
  font-weight: 600;
}
.hero .hero-pill svg {
  width: 14px;
  height: 14px;
}

/* ── KPI 스탯 타일 ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s4);
  animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.stat .k {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: -0.006em;
}
.stat .k svg {
  width: 14px;
  height: 14px;
  color: var(--faint);
}
.stat.is-accent .k svg {
  color: var(--accent);
}
.stat .v {
  font-family: var(--mono);
  font-size: 25px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat .v small {
  font-size: 13px;
  font-weight: 400;
  color: var(--faint);
  margin-left: 3px;
  letter-spacing: 0;
}

/* ── 배지 ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
}
.badge svg {
  width: 12px;
  height: 12px;
}
.badge--sim {
  background: var(--bg-3);
  color: var(--muted);
  border-color: var(--border);
}
.badge--live {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge--conf-high {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge--conf-mid {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge--conf-low {
  background: var(--red-soft);
  color: var(--red);
}

/* ── 공급 상태 ── */
.supply {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.supply svg {
  width: 18px;
  height: 18px;
}
.supply--ok {
  color: var(--teal);
}
.supply--mid {
  color: var(--amber);
}
.supply--low {
  color: var(--red);
}

/* ── SVG 차트 ── */
.chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart .grid-line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.chart .axis-label {
  fill: var(--faint);
  font-size: 10px;
  font-family: var(--mono);
}
.chart .area {
  fill: url(#areaFill);
}
.chart .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart .peak-dot {
  fill: var(--amber);
  stroke: var(--bg);
  stroke-width: 2.5;
}
.chart .peak-label {
  fill: var(--amber);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
}

/* ── 게이지 ── */
.gauge-track {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--bg-3);
  overflow: hidden;
}
.gauge-fill {
  height: 100%;
  border-radius: var(--r-pill);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 버튼·입력·셀렉트 ── */
button.primary {
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: var(--r-md);
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    transform 0.12s ease,
    opacity 0.16s ease;
}
button.primary svg {
  width: 17px;
  height: 17px;
}
button.primary:hover {
  opacity: 0.88;
}
button.primary:active {
  transform: scale(0.99);
}
button.ghost {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--r-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}
button.ghost svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
button.ghost:hover {
  background: var(--bg-2);
  border-color: var(--faint);
}

label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--s2);
  letter-spacing: -0.006em;
}
.select {
  position: relative;
}
.select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 var(--s4);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.16s ease;
}
.select select:hover {
  border-color: var(--faint);
}
.select .chevron {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--faint);
  pointer-events: none;
}
.select.small select {
  min-height: 36px;
  font-size: 13px;
  padding: 0 36px 0 var(--s3);
  background: var(--bg);
}
.select.small .chevron {
  width: 14px;
  height: 14px;
  right: 11px;
}
input[type="date"] {
  font-family: var(--mono);
  color: var(--fg);
}

/* ── 가로 날짜 레일(부킹앱 스타일 데이트 스트립) ── */
.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.rail-head #day-label {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.rail-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 18px;
  padding: 3px 18px 8px;
  margin: 0 calc(var(--s4) * -1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.rail::-webkit-scrollbar {
  display: none;
}
.daychip {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 54px;
  min-height: 68px;
  padding: 9px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  background: var(--bg);
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.daychip:hover {
  border-color: var(--faint);
}
.daychip .dw {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.daychip .dd {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.daychip .dot {
  width: 5px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--accent);
}
.daychip .dot[hidden] {
  visibility: hidden;
}
.daychip.is-today:not(.is-sel) {
  border-color: var(--fg);
}
.daychip.is-today:not(.is-sel) .dw {
  color: var(--fg);
  font-weight: 600;
}
.daychip.is-sel {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--sh-blue);
}
.daychip.is-sel .dw {
  color: rgb(255 255 255 / 82%);
}
.daychip.is-sel .dd {
  color: #fff;
}
.daychip.is-sel .dot {
  background: #fff;
}
.daychip:focus-visible {
  box-shadow: var(--ring);
}
.rail-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.rail-legend .dot {
  width: 5px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .daychip {
    transition: none;
  }
}

/* ── 언어 스위처(커스텀 드롭다운 · 지구본 + 자국어명) ── */
.langmenu {
  position: relative;
}
.langbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  font-family: var(--font);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.langbtn:hover {
  border-color: var(--faint);
}
.langbtn:focus-visible {
  box-shadow: var(--ring);
}
.langbtn .globe {
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex: none;
}
.langbtn .cur {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.langbtn .chevron {
  width: 15px;
  height: 15px;
  color: var(--faint);
  transition: transform 0.18s ease;
}
.langbtn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}
.lang-pop {
  position: absolute;
  z-index: 700;
  right: 0;
  top: calc(100% + 6px);
  min-width: 172px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh);
  animation: rise 0.16s ease both;
}
.lang-pop[hidden] {
  display: none;
}
.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.lang-opt:hover,
.lang-opt.is-active {
  background: var(--accent-soft);
}
.lang-opt .lo-check {
  width: 16px;
  height: 16px;
  color: var(--accent);
  opacity: 0;
  flex: none;
}
.lang-opt[aria-selected="true"] .lo-check {
  opacity: 1;
}
.lang-opt[aria-selected="true"] .lo-name {
  color: var(--accent);
  font-weight: 600;
}

/* ── 검색 콤보박스(편집형, WAI-ARIA) ── */
.combo {
  position: relative;
}
.search-card {
  position: relative;
  z-index: 20;
  overflow: visible;
}
.map-card {
  z-index: 10;
}
.combo-field {
  position: relative;
  display: flex;
  align-items: center;
}
.combo-field .lead {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--faint);
  pointer-events: none;
}
.combo input {
  width: 100%;
  min-height: 48px;
  padding: 0 40px 0 42px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.16s ease;
}
.combo input::placeholder {
  color: var(--faint);
  font-weight: 400;
}
.combo input:hover {
  border-color: var(--faint);
}
.combo input[aria-expanded="true"] {
  border-color: var(--accent);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.combo .clear {
  position: absolute;
  right: 8px;
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  border-radius: var(--r-pill);
  min-height: 0;
  padding: 0;
}
.combo .clear svg {
  width: 15px;
  height: 15px;
}
.combo .clear:hover {
  background: var(--bg-3);
  color: var(--fg-2);
}
.combo.has-value .clear {
  display: inline-flex;
}
.combo-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  margin: 0;
  padding: 0;
  max-height: 268px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--sh);
}
.combo-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  cursor: pointer;
  border-top: 1px solid var(--border);
}
.combo-opt:first-child {
  border-top: 0;
}
.combo-opt .ot {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.combo-opt .os {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.combo-opt mark {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 1px;
}
.combo-opt.is-active,
.combo-opt:hover {
  background: var(--accent-soft);
}
.combo-empty {
  padding: 16px 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ── 데이터 표 ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
th {
  text-align: left;
  color: var(--faint);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--s2);
  border-bottom: 1px solid var(--border);
}
td {
  padding: var(--s2);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  color: var(--fg-2);
}
tr:last-child td {
  border-bottom: 0;
}
tr:hover td {
  background: var(--bg-2);
}

/* ── 핫스팟 랭크 행 ── */
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rows li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}
.rows li:last-child {
  border-bottom: 0;
}
.rank {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: var(--r-xs);
  background: var(--bg-3);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
}
.rows li:first-child .rank {
  background: var(--amber-soft);
  color: var(--amber);
}
.row-main {
  flex: 1;
  min-width: 0;
}
.row-time {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.row-val {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.metric {
  font-family: var(--mono);
  font-size: var(--t-metric);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  margin: 2px 0;
}

/* ── 실제 지도(Leaflet · 기항지 → 목적지) ── */
.map {
  width: 100%;
  height: 232px;
  display: block;
  background: var(--bg-2);
  z-index: 0;
}
/* 미니멀 톤: OSM 타일을 차분하게 탈색해 에메랄드 경로가 튀도록 */
.map .leaflet-tile-pane {
  filter: saturate(0.55) brightness(1.04) contrast(0.94);
}
.map .leaflet-container {
  font-family: var(--font);
  background: var(--bg-2);
}
/* 경로 라인(에메랄드 파선) */
.map .route-line {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 9;
}
/* 커스텀 핀 */
.pin {
  position: relative;
  width: 20px;
  height: 20px;
}
.pin i {
  position: absolute;
  inset: 4px;
  border-radius: var(--r-pill);
  border: 2.5px solid #fff;
  box-shadow: var(--sh-sm);
}
.pin.term i {
  background: var(--fg);
}
.pin.dest i {
  background: var(--accent);
}
.pin.dest::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: var(--r-pill);
  background: var(--accent);
  opacity: 0.18;
  animation: pin-pulse 1.8s ease-out infinite;
}
@keyframes pin-pulse {
  0% { transform: scale(0.7); opacity: 0.28; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}
.pin b {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  background: rgb(255 255 255 / 92%);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1px 7px;
  box-shadow: var(--sh-sm);
}
.pin.dest b {
  color: var(--accent);
}
/* Leaflet 기본 UI 절제 */
.map .leaflet-control-attribution {
  font-size: 9px;
  background: rgb(255 255 255 / 82%);
  color: var(--faint);
  padding: 1px 6px;
}
.map .leaflet-control-attribution a {
  color: var(--muted);
}
.map .leaflet-control-zoom {
  border: none;
  box-shadow: var(--sh-sm);
}
.map .leaflet-control-zoom a {
  width: 28px;
  height: 28px;
  line-height: 28px;
  color: var(--fg-2);
  background: rgb(255 255 255 / 92%);
  border: 1px solid var(--border);
  font-weight: 500;
}
.map-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 500;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--fg);
  display: inline-flex;
  gap: 5px;
  align-items: center;
  box-shadow: var(--sh-sm);
}
.map-badge svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--accent);
}

.alert {
  border: 1px solid var(--red);
  background: var(--red-soft);
  color: var(--red);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  font-size: 13px;
  display: flex;
  gap: var(--s2);
  align-items: center;
}
.alert svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.safety {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  padding: var(--s2) 0;
}
.safety svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--amber);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
details summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  padding: var(--s2) 0;
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}
footer.foot {
  text-align: center;
  font-size: 12px;
  color: var(--faint);
  padding: var(--s5) 0 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card:nth-of-type(2) {
  animation-delay: 0.05s;
}
.card:nth-of-type(3) {
  animation-delay: 0.1s;
}
.stat:nth-child(2) {
  animation-delay: 0.04s;
}
.stat:nth-child(3) {
  animation-delay: 0.08s;
}
.stat:nth-child(4) {
  animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
