/* itinerary module styles — editorial route layout. Hanji & Celadon theme. */

.kh-itin {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kh-itin-intro {
  margin: 0 2px 2px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .01em;
}

/* ============================ summary strip =============================== */
.kh-itin-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-wash), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kh-itin-summary-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
}
.kh-itin-summary-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  line-height: .9;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.kh-itin-summary-label {
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-2);
  max-width: 120px;
}
.kh-itin-route {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  flex: 1 1 240px;
}
.kh-itin-route-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.kh-itin-route-path {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--accent-strong);
}
.kh-itin-route-empty {
  border-left: none;
  padding-left: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  flex-direction: row;
}

/* ============================ hub sections ================================ */
.kh-itin-hub {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.kh-itin-hub.has-wants {
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line));
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent-2) 18%, transparent);
}
.kh-itin-hub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kh-itin-hub-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.kh-itin-hub-title .kh-swatch {
  width: 13px;
  height: 13px;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-soft);
}
.kh-itin-count {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
}
.kh-itin-hub-wants {
  display: inline-flex;
  gap: 6px;
}
.kh-itin-want-pill,
.kh-itin-mywant-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  letter-spacing: .01em;
}
.kh-itin-want-pill {
  background: linear-gradient(150deg, var(--accent-2), var(--accent));
  color: #fbf7ee;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}
.kh-itin-mywant-pill {
  background: var(--surface);
  color: var(--accent-strong);
  border: 1px solid var(--line);
}

.kh-itin-note {
  margin: 11px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 11px;
  border-left: 2px solid var(--line);
}

/* swatch reused from map convention, redeclared so itinerary is standalone */
.kh-itin .kh-swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(35, 32, 27, .12);
  flex: 0 0 auto;
}

/* ============================ site list =================================== */
.kh-itin-sites {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.kh-itin-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: background .15s var(--ease);
}
.kh-itin-site:hover { background: var(--bg-2); }
.kh-itin-site + .kh-itin-site {
  border-top: 1px solid var(--line-soft);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.kh-itin-site-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 9px;
  min-width: 0;
}
.kh-itin-code {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 2px 7px;
  border-radius: 6px;
}
.kh-itin-name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.kh-itin-name-kr {
  font-size: 12px;
  color: var(--muted);
}
.kh-itin-mine {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: capitalize;
  letter-spacing: .01em;
}
.kh-itin-mine-want  { background: var(--accent); color: #fbf7ee; }
.kh-itin-mine-maybe { background: var(--gold); color: #fffaf0; }
.kh-itin-mine-skip  { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }

.kh-itin-tally {
  display: flex;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

/* emphasis: group wants this site */
.kh-itin-site.is-wanted {
  background: color-mix(in srgb, var(--accent-2) 8%, var(--surface));
  border-left-color: var(--accent-2);
}
.kh-itin-site.is-wanted:hover {
  background: color-mix(in srgb, var(--accent-2) 13%, var(--surface));
}
.kh-itin-site.is-wanted .kh-itin-name {
  font-weight: 700;
  color: var(--ink);
}
.kh-itin-site.is-wanted .kh-itin-want {
  color: var(--accent);
  font-weight: 700;
}

/* de-emphasis: someone skips, nobody wants */
.kh-itin-site.is-deprioritized { opacity: .5; }
.kh-itin-site.is-deprioritized .kh-itin-name {
  text-decoration: line-through;
  text-decoration-color: var(--line);
  font-weight: 400;
}

/* ============================ responsive ================================== */
@media (max-width: 560px) {
  .kh-itin-hub { padding: 15px 15px 13px; }
  .kh-itin-hub-title { font-size: 18px; }
  .kh-itin-summary { padding: 15px 16px; gap: 14px; }
  .kh-itin-summary-num { font-size: 32px; }
  .kh-itin-route {
    border-left: none;
    padding-left: 0;
    flex-basis: 100%;
  }
  .kh-itin-site {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}
