/* Trip to go — 여행 추천 화면 (단독 페이지) */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --line: #e7e2d8;
  --text: #1f2933;
  --muted: #6b7280;
  --brand: #0f766e;
  --brand-dark: #0b5c56;
  --brand-soft: #e3f3f0;
  --accent: #ea580c;
  --warn-bg: #fff7ed;
  --warn-line: #fed7aa;
  --warn-text: #9a3412;
  --good-bg: #ecfdf5;
  --good-text: #047857;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 41, 51, 0.05), 0 6px 20px rgba(31, 41, 51, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hidden { display: none !important; }
button { font-family: inherit; }

/* ---------- 상단 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: inherit; }
.brand-mark { font-size: 22px; align-self: center; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--brand-dark); }
.brand-sub { font-size: 13px; color: var(--muted); }

.btn {
  border: none; border-radius: var(--radius-sm); padding: 12px 18px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.primary:disabled { background: #a7cfc9; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--brand-dark); border: 1.5px solid var(--line); padding: 8px 14px; font-size: 13.5px; }
.btn.ghost:hover { background: var(--brand-soft); border-color: var(--brand); }

/* ---------- 질문 단계 ---------- */
.wizard { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 32px 16px 40px; }
.hero { text-align: center; margin-bottom: 24px; }
.hero h1 { font-size: 30px; letter-spacing: -0.03em; margin: 0 0 8px; }
.hero p { margin: 0; color: var(--muted); font-size: 15px; }

.wizard-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 24px;
}

.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.steps li { flex: 1; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.steps li.on { color: var(--brand-dark); font-weight: 700; }
.steps li.on::before, .steps li.done::before { background: var(--brand); }
.steps li.done::before { opacity: 0.45; }

.q { display: flex; flex-direction: column; gap: 10px; }
.q-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.q-title small { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 6px; }

/* 권역 카드 */
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.region-card {
  position: relative; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); cursor: pointer; padding: 0; text-align: left; box-shadow: var(--shadow);
  transition: transform 0.12s, border-color 0.12s;
}
.region-card:hover { transform: translateY(-2px); }
.region-card.on { border-color: var(--brand); }
.region-card img, .region-card .noimg { width: 100%; height: 120px; object-fit: cover; display: block; background: var(--brand-soft); }
.region-card .rc-body { padding: 10px 12px 12px; }
.region-card .rc-name { font-size: 17px; font-weight: 800; }
.region-card .rc-hl { font-size: 12px; color: var(--muted); }
.region-card .rc-check {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; display: none; align-items: center; justify-content: center; font-weight: 800;
}
.region-card.on .rc-check { display: flex; }

/* 선택 버튼 */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px;
  padding: 10px 14px; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: var(--text); transition: border-color 0.12s, background 0.12s;
}
.choice:hover { border-color: var(--brand); }
.choice.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.choice .ic { font-size: 18px; }
.choice small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.choice.disabled-look { opacity: 0.75; }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.field {
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--text); background: var(--surface);
}
.field:focus { outline: none; border-color: var(--brand); }
.stepper { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 6px 10px; }
.stepper span { font-size: 14px; color: var(--muted); }
.stepper button {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 16px; cursor: pointer; line-height: 1;
}
.stepper b { min-width: 18px; text-align: center; font-size: 16px; }

.place-search { position: relative; flex: 1; min-width: 220px; }
.place-search .field { width: 100%; }
.place-search.set .field { border-color: var(--brand); background: var(--brand-soft); }
.place-search .clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: none;
  color: var(--muted); cursor: pointer; font-size: 14px;
}
.suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 220px; overflow-y: auto;
}
.suggest div { padding: 9px 12px; font-size: 13.5px; cursor: pointer; border-bottom: 1px solid var(--line); }
.suggest div:last-child { border-bottom: none; }
.suggest div:hover { background: var(--brand-soft); }

.toggle { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.toggle input { margin-top: 3px; accent-color: var(--brand); }

.wizard-nav { display: flex; gap: 10px; }
.wizard-nav .btn.primary { flex: 1; }
.status { text-align: center; font-size: 14px; color: var(--muted); min-height: 20px; }
.status.error { color: #dc2626; font-weight: 700; }
.status.loading { color: var(--brand-dark); font-weight: 700; }
.linkish { background: none; border: none; color: var(--brand-dark); cursor: pointer; font-size: 13.5px; padding: 0; text-decoration: underline; }

/* 문장 입력 */
.ask-input {
  width: 100%; resize: vertical; min-height: 92px; padding: 14px 16px; font-size: 17px; font-family: inherit;
  border: 2px solid var(--line); border-radius: 14px; color: var(--text); background: var(--surface); line-height: 1.5;
}
.ask-input:focus { outline: none; border-color: var(--brand); }
.examples { display: flex; flex-wrap: wrap; gap: 6px; }
.example {
  border: 1px dashed var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.example:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); }

/* 이렇게 이해했어요 */
.understood { display: flex; flex-direction: column; gap: 8px; background: var(--brand-soft); border-radius: 14px; padding: 14px 16px; }
.said { font-size: 15px; font-weight: 600; color: var(--brand-dark); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.u-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.u-chip { background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 13.5px; font-weight: 600; }
.u-chip em { font-style: normal; font-size: 11px; color: var(--accent); margin-left: 3px; }
.u-none { font-size: 13.5px; color: var(--muted); }
.q-title .src {
  font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px;
}
.q-title .src.ai { color: #6d28d9; border-color: #ddd6fe; background: #f5f3ff; }
.understood .notice { margin: 0; background: var(--surface); }
.cities { display: flex; flex-wrap: wrap; gap: 6px; }
.cities .example { background: var(--surface); }

.region-card .rank {
  position: absolute; top: 8px; left: 8px; background: rgba(31, 41, 51, 0.75); color: #fff; font-size: 11.5px;
  font-weight: 800; border-radius: 999px; padding: 3px 9px;
}
.region-card .rank.top { background: var(--accent); }
.region-card .rc-name small { font-size: 12px; font-weight: 500; color: var(--muted); }
.rc-why { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.rc-why span { font-size: 11.5px; background: var(--good-bg); color: var(--good-text); border-radius: 6px; padding: 1px 7px; }

.more-regions { font-size: 14px; }
.more-regions summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); padding: 4px 0; }
.mr-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.mr-label { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 42px; }
.region-chip {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--text);
}
.region-chip small { font-weight: 500; color: var(--muted); }
.region-chip:hover { border-color: var(--brand); }
.region-chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }


/* ---------- 결과 ---------- */
.result { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 16px 24px 32px; }
.chipbar {
  position: sticky; top: 57px; z-index: 900; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 10px 0; background: var(--bg);
}
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }

.result-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.itinerary { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat b { display: block; font-size: 20px; letter-spacing: -0.02em; color: var(--brand-dark); }
.stat span { font-size: 12px; color: var(--muted); }

.notice {
  font-size: 13px; color: #475569; background: var(--surface-2); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 6px;
}

.daytabs { display: flex; gap: 6px; flex-wrap: wrap; }
.daytabs button {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--muted);
}
.daytabs button.on { border-color: var(--c, var(--brand)); color: #fff; background: var(--c, var(--brand)); }

.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.day-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.day-head .dn { font-size: 18px; font-weight: 800; color: var(--c); }
.day-head .dd { font-size: 15px; font-weight: 700; }
.day-head .dm { font-size: 13px; color: var(--muted); margin-left: auto; }
.day-start { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; }
.day-start::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #16a34a; }

.timeline { position: relative; margin-left: 14px; padding-left: 22px; border-left: 2px dashed var(--line); }
.move { font-size: 12.5px; color: var(--muted); padding: 8px 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.move .mt { font-weight: 700; color: var(--text); }
.move.unavailable { color: #dc2626; }
.move.unavailable .mt { color: #dc2626; }
.move .tag { font-size: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

.stop {
  position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px;
  background: var(--surface-2); border: 1.5px solid transparent; border-radius: 14px; padding: 10px; cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.stop:hover { border-color: var(--line); }
.stop.active { border-color: var(--c); box-shadow: var(--shadow); background: var(--surface); }
.stop .num {
  position: absolute; left: -36px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--c);
  color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}
.stop .ph { width: 104px; height: 88px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); display: block; }
.stop .body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.stop .time { font-size: 13px; font-weight: 700; color: var(--c); }
.stop .time small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.stop .name { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.badge { font-size: 11px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.reasons { display: flex; flex-wrap: wrap; gap: 4px; }
.reasons span { font-size: 12px; background: var(--good-bg); color: var(--good-text); border-radius: 6px; padding: 2px 8px; }
.warn { font-size: 12px; color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: 4px 8px; }
.info { font-size: 12.5px; color: var(--muted); }
.info summary { cursor: pointer; color: var(--brand-dark); font-weight: 600; }
.info div { margin-top: 3px; }
.info b { color: var(--text); margin-right: 6px; }
.info .src { font-size: 11px; color: #9aa2b1; }

.meal {
  margin: 8px 0 2px; padding: 8px 12px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa;
  font-size: 13px; color: #7c2d12; display: flex; flex-direction: column; gap: 6px;
}
.meal-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.meal .ml { font-weight: 800; }
.meal small { color: var(--muted); margin-left: 2px; }
.meal-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mlh { font-size: 12px; font-weight: 700; color: #92400e; margin-right: 2px; }
.mli { font-size: 12.5px; background: #fff; border: 1px solid #fde68a; border-radius: 999px; padding: 2px 9px; color: var(--text); }
.food { margin-top: 12px; background: #fffbeb; border: 1px dashed #fcd34d; border-radius: 12px; padding: 10px 12px; }
.food-title { font-size: 13.5px; font-weight: 800; color: #92400e; margin-bottom: 4px; }
.food-title small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.food-item { font-size: 13px; padding: 2px 0; }
.food-item span { color: var(--muted); font-size: 12px; margin-left: 4px; }
.pin.food { width: 22px; height: 22px; font-size: 12px; background: #fef3c7; border-color: #f59e0b; }

.empty { font-size: 14px; color: var(--muted); padding: 10px 0; }

/* 일정에 못 넣은 추천 후보 (카드) */
.extra { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.extra-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.extra-head b { font-size: 15px; }
.extra-head small { font-size: 12.5px; color: var(--muted); }
.extra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.xcard { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 8px; }
.xcard img, .xcard .noimg { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--brand-soft); }
.xbody { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xname { font-size: 14px; font-weight: 800; }
.xname .badge { margin-left: 4px; }
.xdesc { font-size: 12.5px; color: #475569; line-height: 1.45; }
.pin.extra { width: 20px; height: 20px; font-size: 12px; background: #94a3b8; }

/* 조건 묶음 (어디로·언제·누구와·무엇을·어떻게) */
.cgroups { display: flex; flex-direction: column; gap: 8px; }
/* overflow를 숨기면 장소 검색 결과 목록이 잘린다 → visible */
.cg { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: visible; position: relative; }
.cg.open { z-index: 2; }
.cg.open { border-color: var(--brand); box-shadow: var(--shadow); }
.cg-head {
  width: 100%; display: grid; grid-template-columns: 28px 64px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 12px 14px; background: none; border: none; cursor: pointer; text-align: left; color: var(--text);
  border-radius: 14px;
}
.cg-icon { font-size: 18px; }
.cg-title { font-size: 15px; font-weight: 800; }
.cg-sum { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.cg-sum span { font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.cg-act { font-size: 13px; color: var(--brand-dark); font-weight: 700; }
.cg-body { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 12px; border-top: 1px dashed var(--line); }
.cg-sub { font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.cg-sub small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.cg-hint { font-size: 12.5px; color: var(--muted); }
.choice.small { padding: 6px 11px; font-size: 13px; }
.suggest small { display: block; font-size: 11.5px; color: var(--muted); }

/* 결과 머리 · 안내 · 알림 */
.result-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 8px 0 4px; }
.result-head h2 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.result-sub { font-size: 14px; color: var(--muted); }
.result-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.notices { font-size: 13px; color: #475569; background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 8px 12px; }
.notices summary { cursor: pointer; font-weight: 600; }
.notices div { margin-top: 4px; }
.muted { color: var(--muted); }
.maplink { display: inline-block; margin-top: 6px; color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.maplink:hover { text-decoration: underline; }
.map-credit { font-size: 11px; color: var(--muted); text-align: right; margin-top: 4px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2000; max-width: 92vw;
  background: #1f2933; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13.5px; box-shadow: var(--shadow);
}
.mobile-bar { display: none; }

/* 지도 */
.mapcol { position: relative; min-width: 0; }
.map-sticky { position: sticky; top: 112px; }
#map {
  height: calc(100vh - 140px); min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden;
}
#map.osm .leaflet-tile-pane { filter: saturate(0.8) brightness(1.05) sepia(0.08); }
.map-toggle { display: none; }
.pin {
  width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.pin.start { background: #16a34a; font-size: 11px; }
.pin.active { transform: scale(1.25); }

.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 18px 16px 24px; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .result-grid { grid-template-columns: 1fr; }
  .mapcol { order: -1; }
  .map-sticky { position: static; }
  #map { height: 300px; min-height: 0; }
  .mapcol.folded #map { display: none; }
  .map-toggle {
    display: block; margin-bottom: 8px; border: 1px solid var(--line); background: var(--surface);
    border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .chipbar { position: static; }  /* 좁은 화면에서 고정하면 지도·일정을 가림 */
  .result-actions { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  }
  .mobile-bar button { border: none; background: none; padding: 12px 0; font-size: 14px; font-weight: 700; color: var(--brand-dark); cursor: pointer; }
  .result { padding-bottom: 72px; }
  .cg-head { grid-template-columns: 24px 56px minmax(0, 1fr); }
  .cg-act { display: none; }
}

/* ---------- 인쇄 · PDF ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .topbar, .foot, .no-print, .toast, .mobile-bar { display: none !important; }
  .result { padding: 0; max-width: none; }
  .result-grid { display: block; }
  .mapcol { break-before: page; }
  .map-sticky { position: static; }
  #map { height: 520px; box-shadow: none; }
  .day, .stop, .xcard, .food { break-inside: avoid; box-shadow: none; }
  .stop { background: #fff; border: 1px solid var(--line); }
  .info summary { color: var(--text); }
  .notices { display: none; }
  a { color: inherit; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 16px; }
  .brand-sub { display: none; }
  .hero h1 { font-size: 24px; }
  .wizard { padding-top: 20px; }
  .wizard-card { padding: 18px 16px; }
  .region-grid { grid-template-columns: 1fr; }
  .region-card { display: grid; grid-template-columns: 110px 1fr; }
  .region-card img, .region-card .noimg { height: 100%; min-height: 84px; }
  .result { padding: 8px 16px 24px; }
  .stop { grid-template-columns: 76px minmax(0, 1fr); }
  .stop .ph { width: 76px; height: 76px; }
  .steps li { font-size: 0; }
}
