/* Japan Tour — 한국 여행 안내 테마 (Django 정적 프론트) */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  /* 밝은 톤 — 일본인 대상 한국 관광 (태극·한류 배경과 조화) */
  --bg-deep: #eef3fb;
  --bg-mid: #e3ebf8;
  --bg-card: rgba(255, 255, 255, 0.88);
  --surface-nav: rgba(255, 255, 255, 0.92);
  --surface-panel: rgba(255, 255, 255, 0.78);
  --surface-input: rgba(255, 255, 255, 0.96);
  --surface-muted: rgba(248, 250, 254, 0.94);
  --border: rgba(200, 60, 80, 0.14);
  --border-strong: rgba(199, 62, 85, 0.38);
  --text: #1c2838;
  --text-muted: #5c6b82;
  --muted: #5c6b82;
  --accent: #c73e55;
  --accent-hover: #e04d63;
  --accent-soft: rgba(199, 62, 85, 0.1);
  --gold: #b8860b;
  --gold-soft: rgba(212, 168, 83, 0.22);
  --k-red: #cd2e3a;
  --k-blue: #0047a0;
  --user-bg: linear-gradient(135deg, rgba(232, 240, 255, 0.98) 0%, rgba(255, 255, 255, 0.99) 100%);
  --bot-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.98) 100%);
  --shadow: 0 14px 40px rgba(28, 48, 88, 0.1);
  --title-gradient: linear-gradient(105deg, #1a2838 0%, #3d4f6a 42%, #c73e55 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Outfit", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  --font-body: "Noto Sans JP", "Noto Sans KR", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    url("/assets/bg-korea-theme.svg"),
    radial-gradient(ellipse 90% 70% at 88% 8%, rgba(205, 46, 58, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 55% at 8% 92%, rgba(0, 71, 160, 0.07), transparent 50%),
    radial-gradient(ellipse 60% 50% at 15% 25%, rgba(232, 90, 107, 0.06), transparent 45%),
    linear-gradient(165deg, #f5f8fd 0%, var(--bg-deep) 40%, #e8f0fa 100%);
  background-size: cover, auto, auto, auto, auto;
  background-position: center center, top right, bottom left, center left, center;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(238, 243, 251, 0.15) 50%,
    rgba(255, 255, 255, 0.25) 100%
  );
}

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 사이드바 */
.sidebar {
  width: min(300px, 92vw);
  flex-shrink: 0;
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-nav) 0%, var(--surface-muted) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.2);
}

.brand {
  margin-bottom: 1.25rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border);
  margin-bottom: 0.65rem;
}

.sidebar h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.25;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.78rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 1.25rem 0;
}

.field span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

select {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-input);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:hover,
select:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

#healthStatus {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-input);
  border: 1px solid var(--border);
  margin: 0.5rem 0 0;
}

/* 메인 */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-header {
  padding: 1.35rem 1.5rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-panel);
}

.main-header h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.main-header .muted {
  margin: 0.35rem 0 0;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bubble {
  max-width: min(720px, 94%);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.bubble.user {
  align-self: flex-end;
  background: var(--user-bg);
}

.bubble.assistant {
  align-self: flex-start;
  background: var(--bot-bg);
}

/* Guide 본문만 접기 — 번역(.translation)과 もっと見る 버튼은 잘리지 않음 */
.bubble.assistant .bubble-body {
  min-width: 0;
}

.bubble.assistant .bubble-body.collapsed {
  max-height: 220px;
  overflow: hidden;
  position: relative;
}

.bubble.assistant .bubble-body.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.97));
  pointer-events: none;
}

.expand-btn {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gold);
  font-size: 0.8rem;
  font-family: var(--font-display);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.expand-btn:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.retry-btn {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid #c0392b;
  background: transparent;
  color: #e74c3c;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.retry-btn:hover {
  background: #c0392b;
  color: #fff;
}

/* ---------- ローディングバブル ---------- */
.loading-status {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 1.3em;
}

.loading-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

.loading-bar-track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.35s ease;
}

.loading-pct {
  font-size: 0.75rem;
  font-family: var(--font-display);
  color: var(--gold);
  min-width: 2.8rem;
  text-align: right;
}

.bubble .label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

/* ── 챗봇 공연·행사 카드 ── */
.ev-section { margin-top: 0.9rem; }
.ev-title { font-size: .82rem; font-weight: 600; color: var(--gold, #c9a84c); margin: 0 0 .5rem; }
.ev-grid { display: flex; flex-direction: column; gap: .4rem; }
.ev-card {
  display: block;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-input);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s;
}
a.ev-card:hover { border-color: var(--gold, #c9a84c); }
.ev-name { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-meta { font-size: .72rem; color: var(--muted); margin-top: .1rem; }
.ev-src  { font-size: .65rem; background: rgba(201,168,76,.15); color: var(--gold, #c9a84c); border-radius: 3px; padding: .05em .3em; margin-left: .2em; }
.ev-venue { font-size: .72rem; color: var(--muted); margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-desc  { font-size: .7rem; color: var(--muted); margin-top: .1rem; line-height: 1.35; }

.translation {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.translation h4 {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}

.composer {
  display: flex;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem 1.35rem;
  border-top: 1px solid var(--border);
  background: var(--surface-panel);
  backdrop-filter: blur(10px);
  align-items: flex-end;
}

.composer textarea {
  flex: 1;
  resize: vertical;
  min-height: 52px;
  max-height: 180px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-input);
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.composer textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.composer textarea:focus {
  outline: none;
  border-color: rgba(232, 90, 107, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #c73e50 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(232, 90, 107, 0.35);
}

.btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #d9485a 100%);
  box-shadow: 0 8px 28px rgba(232, 90, 107, 0.45);
}

.btn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.secondary {
  width: 100%;
  margin-top: 0.85rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.error {
  color: #c0392b;
  font-size: 0.82rem;
}

/* ---------- ホーム（単独ページ） ---------- */
.page-home {
  min-height: 100vh;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-nav);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(28, 48, 88, 0.06);
  position: relative;
  z-index: 100;
}

.top-nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}

.home-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.jt-hero {
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.98) 100%);
  box-shadow: var(--shadow);
}

.jt-hero .jt-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.home-hero {
  text-align: center;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  font-weight: 700;
  margin: 0.35rem 0 0.75rem;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-lead {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.home-cta {
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
}

.jt-home-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  background: var(--surface-panel);
}

.jt-home-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.jt-home-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.jt-home-card code {
  font-size: 0.8em;
  color: var(--text);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.nav-back {
  display: inline-block;
  font-size: 0.84rem;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.nav-back:hover {
  color: var(--accent-hover);
}

/* ---------- ナビゲーション — 右側エリア ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.nav-username {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-chat-btn {
  margin-left: 0.25rem;
}

/* ---------- プロフィールドロップダウン ---------- */
.nav-guest-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-profile-menu {
  position: relative;
  align-items: center;
}

.nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(180,60,80,0.18);
  border-radius: 20px;
  padding: 0.3rem 0.65rem 0.3rem 0.35rem;
  cursor: pointer;
  color: var(--text, #1c2838);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.nav-profile-btn:hover {
  background: #fff;
  border-color: rgba(180,60,80,0.35);
  box-shadow: 0 2px 8px rgba(180,60,80,0.1);
}

.nav-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #c83c50) 0%, var(--gold, #c9a84c) 100%);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.nav-profile-name {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text, #1c2838);
}

.nav-chevron {
  color: #9aabbf;
  flex-shrink: 0;
  transition: transform .2s;
}
.nav-profile-btn[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 175px;
  background: #fff;
  border: 1px solid rgba(180,60,80,0.13);
  border-radius: var(--radius, 12px);
  box-shadow: 0 6px 24px rgba(60,80,120,0.14);
  padding: 0.35rem;
  z-index: 900;
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.nav-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity .15s, transform .15s, visibility 0s 0s;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1c2838;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 0.4rem;
  transition: background .12s;
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: #f3f6fb;
}
.nav-dropdown-item--danger {
  color: #c0392b;
}
.nav-dropdown-item--danger:hover {
  background: #fff0f0;
}

.nav-dropdown-divider {
  height: 1px;
  background: #e8edf5;
  margin: 0.3rem 0.5rem;
}

/* ---------- 認証モーダル ---------- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--bg-mid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.75rem 2rem 2rem;
  width: min(440px, 100%);
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: var(--accent-soft);
}

/* ---------- 認証タブ ---------- */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  gap: 0;
}

.auth-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.auth-tab:hover:not(.active) {
  color: var(--text);
}

/* ---------- 認証フォーム ---------- */
.auth-form {
  flex-direction: column;
  gap: 0;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.field-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-input);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-error {
  color: #c0392b;
  font-size: 0.82rem;
  min-height: 1.2em;
  margin: 0.2rem 0 0.4rem;
  line-height: 1.4;
}

.auth-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.85rem 0 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-btn:hover {
  color: var(--accent-hover);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .composer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn.primary {
    width: 100%;
  }

  .nav-right {
    gap: 0.35rem;
  }

  .nav-chat-btn {
    display: none;
  }

  .nav-username {
    max-width: 70px;
  }
}

/* ═══════════════════════════════════════
   WIZARD
═══════════════════════════════════════ */
.page-wizard {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.page-wizard .top-nav { flex-shrink: 0; }

.page-wizard .top-nav-brand {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 0.75rem;
}

.page-wizard .nav-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

.nav-user-label {
  flex: 1 1 auto;
  min-width: 6.5rem;
  max-width: 14rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.page-wizard .nav-logout-btn,
.page-wizard .nav-plan-mode,
.page-wizard .nav-saved-plans,
.page-wizard .nav-chat-shortcut {
  width: auto !important;
  margin-top: 0 !important;
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-plan-mode[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.nav-chat-shortcut { margin-left: 0; }

@media (max-width: 820px) {
  .page-wizard .top-nav {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0.75rem 0.9rem;
  }

  .page-wizard .top-nav-brand {
    flex: 1 0 100%;
    margin-right: 0;
  }

  .page-wizard .nav-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .nav-user-label {
    flex: 1 0 100%;
    min-width: 0;
    max-width: 100%;
    text-align: left;
  }
}

.chip-subsection-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0.9rem 0 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hotel-list-pager { margin-top: 0.65rem; }

.hotel-manual-block {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-input);
}
.hotel-manual-lead {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
  line-height: 1.5;
}
.hotel-results-cards {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Container */
.wizard-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Progress bar */
.wizard-progress-bar {
  height: 3px;
  background: rgba(28, 48, 88, 0.08);
  flex-shrink: 0;
}
.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.5s ease;
  width: 0%;
}

/* Step dots */
.wizard-steps-row {
  display: flex;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.55rem 0.5rem;
  background: var(--surface-panel);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.wizard-steps-row::-webkit-scrollbar { display: none; }

.wiz-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  padding: 0 0.4rem;
  opacity: 0.35;
  transition: opacity 0.3s;
}
.wiz-dot.active { opacity: 1; }
.wiz-dot.done   { opacity: 0.65; }

.wiz-dot-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-input);
  border: 1px solid rgba(28, 48, 88, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  transition: background 0.3s, border-color 0.3s;
}
.wiz-dot.active .wiz-dot-circle { background: var(--accent); border-color: var(--accent); color:#fff; }
.wiz-dot.done   .wiz-dot-circle { background: var(--gold);   border-color: var(--gold);   color:#fff; }

.wiz-dot-label {
  font-size: 0.56rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Stage & cards */
.wizard-stage {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.wiz-card {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 1.5rem;
  display: flex;
  justify-content: center;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.4,0,.2,1), opacity 0.3s;
}
.wiz-card.slide-prev { transform: translateX(-100%); opacity: 0; pointer-events: none; }
.wiz-card.active     { transform: translateX(0);     opacity: 1; pointer-events: auto; }

.wiz-card-inner { width: 100%; max-width: 620px; }
.wiz-card[data-step="8"] .wiz-card-inner { max-width: 720px; }

/* Nav bar */
.wizard-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface-nav);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  box-shadow: 0 -1px 0 rgba(28, 48, 88, 0.06);
}

/* ── Wizard text ── */
.wiz-hero { text-align: center; margin-bottom: 1.75rem; }
.wiz-badge {
  display: inline-block;
  font-size: 0.66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft); border: 1px solid var(--border);
  padding: .28rem .6rem; border-radius: 999px; margin-bottom: .6rem;
}
.wiz-hero h2, .wiz-step-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 700; margin: .3rem 0 .5rem;
  background: var(--title-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.wiz-step-header { margin-bottom: 1.5rem; }
.wiz-step-num {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; color: var(--gold); text-transform: uppercase; margin-bottom: .4rem;
}
.wiz-lead  { color: var(--text-muted); font-size: .9rem; margin: 0; line-height: 1.5; }
.wiz-sub   { font-size: .78rem; color: var(--text-muted); margin: .65rem 0 0; text-align: center; }
.wiz-section-label {
  font-size: .76rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: .6rem;
}
.wiz-notice {
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: rgba(212,168,83,.08); border: 1px solid rgba(212,168,83,.2);
  font-size: .86rem; color: var(--text-muted); line-height: 1.5;
}
.wiz-card-footer { text-align: center; margin-top: 1.25rem; }

.req { color: var(--accent); }
.opt { font-size: .7rem; color: var(--text-muted); font-weight: 400; }

/* ── OAuth ── */
.oauth-buttons { display: flex; flex-direction: column; gap: .65rem; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .72rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  text-decoration: none; font: inherit; font-size: .9rem; font-weight: 500;
  color: var(--text); background: rgba(255,255,255,.04); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.google-btn:hover { background: rgba(66,133,244,.12); border-color: rgba(66,133,244,.45); }
.line-btn:hover   { background: rgba(6,199,85,.1);   border-color: rgba(6,199,85,.4);   }

.auth-divider {
  display: flex; align-items: center; gap: .65rem;
  margin: 1rem 0; color: var(--text-muted); font-size: .78rem;
}
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background: var(--border); }

.auth-panel { margin-top: .25rem; }
.auth-panel-tabs {
  display: flex;
  gap: .35rem;
  margin-bottom: .85rem;
  padding: .25rem;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.auth-panel-tab {
  flex: 1;
  padding: .5rem .75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.auth-panel-tab.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.auth-field { display: flex; flex-direction: column; gap: .3rem; }
.auth-label { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.auth-field input {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  background: var(--surface);
  color: var(--text);
}
.auth-field input:focus {
  outline: none;
  border-color: var(--border-strong);
}
.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-terms input { margin-top: .15rem; flex-shrink: 0; }
.auth-terms-link { color: var(--accent); text-decoration: underline; }
.auth-submit { width: 100%; margin-top: .15rem; }
.auth-hint { font-size: .78rem; color: var(--text-muted); margin: 0; line-height: 1.4; }

.auth-inline-form  { display: flex; flex-direction: column; gap: .6rem; }
.auth-inline-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
}
.auth-inline-fields input {
  padding: .62rem .85rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-input);
  color: var(--text); font: inherit; font-size: .88rem; transition: border-color .2s;
}
.auth-inline-fields input:focus { outline: none; border-color: var(--border-strong); }

.auth-inline-btns { display: flex; gap: .6rem; }
.auth-inline-btns .btn { flex: 1; }

.btn-ghost {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font: inherit; font-size: .86rem; padding: .45rem 0;
  text-decoration: underline; text-underline-offset: 3px; transition: color .2s;
}
.btn-ghost:hover { color: var(--text); }

.btn.wiz-btn-outline {
  background: transparent; color: var(--text-muted); border: 1px solid var(--border);
  width: auto; margin: 0;
}
.btn.wiz-btn-outline:hover { color: var(--text); border-color: var(--border-strong); background: var(--accent-soft); }

/* Logged-in card */
.logged-in-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--gold); background: var(--gold-soft);
}
.logged-in-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.logged-in-name { font-weight: 600; font-size: 1rem; margin: 0 0 .15rem; color: var(--gold); }
.logged-in-sub  { font-size: .78rem; color: var(--text-muted); margin: 0; }

/* ── Flight card ── */
.wiz-flight-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem;
}
.flight-route { display: flex; align-items: flex-end; gap: .6rem; margin-bottom: 1.1rem; }
.flight-endpoint { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.flight-endpoint label, .field-sm label {
  font-size: .75rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: .35rem;
}
.flight-arrow { font-size: 1.3rem; color: var(--gold); padding-bottom: .45rem; flex-shrink: 0; }
.swap-btn {
  flex-shrink: 0; padding: .35rem .55rem; margin-bottom: .45rem;
  background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.3);
  border-radius: var(--radius-sm); color: var(--gold); font-size: 1rem;
  cursor: pointer; transition: background .15s;
}
.swap-btn:hover { background: rgba(212,175,55,.25); }
.flight-dates { display: grid; grid-template-columns: 1fr 1fr auto; gap: .65rem; align-items: end; }

.flight-dates input[type="date"] {
  width: 100%; padding: .58rem .7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-input);
  color: var(--text); font: inherit; font-size: .86rem;
}

.flight-reference-note {
  margin-top: .85rem;
  padding: .68rem .82rem .72rem;
  border: 1px solid rgba(28, 48, 88, 0.10);
  border-left: 2px solid rgba(190, 142, 0, 0.75);
  border-radius: 8px;
  background: rgba(255,255,255,.55);
  color: var(--text-muted);
}
.flight-reference-note strong {
  display: block;
  margin-bottom: .18rem;
  color: var(--text);
  font-size: .76rem;
  font-weight: 700;
}
.flight-reference-note p {
  margin: 0;
  font-size: .73rem;
  line-height: 1.55;
}
.flight-quarantine-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px dotted rgba(190, 142, 0, 0.75);
  color: #8a6500;
  font-weight: 600;
  cursor: help;
  outline: none;
}
.flight-quarantine-tip::after {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: .25rem;
  border-radius: 50%;
  background: rgba(190, 142, 0, 0.12);
  color: #8a6500;
  font-size: .6rem;
  font-weight: 700;
}
.flight-quarantine-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 9px);
  z-index: 20;
  width: min(360px, 78vw);
  padding: .68rem .75rem;
  border: 1px solid rgba(28, 48, 88, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 48, 88, 0.16);
  color: var(--text);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.55;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.flight-quarantine-tooltip span {
  display: block;
}
.flight-quarantine-tooltip span + span {
  margin-top: .38rem;
}
.flight-quarantine-tooltip::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: #fff;
}
.flight-quarantine-tip:hover .flight-quarantine-tooltip,
.flight-quarantine-tip:focus .flight-quarantine-tooltip,
.flight-quarantine-tip:focus-within .flight-quarantine-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aviation-notice {
  margin-top: .9rem; padding: .6rem .85rem; border-radius: var(--radius-sm);
  background: rgba(232,90,107,.07); border: 1px solid rgba(232,90,107,.2);
  font-size: .78rem; color: var(--text-muted);
}
.aviation-notice--active {
  background: rgba(100,200,120,.07); border-color: rgba(100,200,120,.25);
}
.notice-badge {
  display: inline-block; font-size: .62rem; font-weight: 600;
  padding: .12rem .4rem; border-radius: 999px;
  background: rgba(232,90,107,.2); color: var(--accent); margin-right: .35rem;
}
.notice-badge--active {
  background: rgba(100,200,120,.2); color: #6dc87a;
}
/* ── Wizard Step2 항공편 선택 목록 ─────────────────────────────────── */
.flight-leg-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  margin: 1rem 0 .35rem;
}
.flight-list-section {
  margin-top: 1rem;
}
.flight-list-header {
  font-size: .78rem; color: var(--text-muted);
  margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem;
}
.flight-list-spinner { font-size: .72rem; opacity: .7; }
.flight-list-cards {
  display: flex; flex-direction: column; gap: .4rem;
  max-height: 340px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.flight-trip-type {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .65rem 0 .35rem;
  flex-wrap: wrap;
}
.flight-trip-type-label {
  font-size: .78rem;
  color: var(--text-muted);
  min-width: 2.5rem;
}
.flight-trip-type .chip-grid { flex: 1; }
.flight-return-field { min-width: 0; }
.flight-list-empty { font-size: .78rem; color: var(--text-muted); padding: .4rem 0; }
.flight-list-warn {
  font-size: .75rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: .45rem .6rem;
  margin-bottom: .5rem;
}

.flight-sel-card {
  padding: .55rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.flight-sel-card:hover   { border-color: var(--gold); background: rgba(212,175,55,.06); }
.flight-sel-card.selected {
  border-color: var(--gold); background: rgba(212,175,55,.1);
  box-shadow: 0 0 0 1px var(--gold);
}
.fsc-airline {
  font-size: .8rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: .4rem; margin-bottom: .25rem;
}
.fsc-num   { font-size: .75rem; color: var(--gold); font-weight: 700; }
.fsc-days    { font-size: .65rem; color: var(--text-muted); font-weight: 400; margin-left: auto; }
.fsc-aliases { font-size: .65rem; color: var(--text-muted); font-weight: 400; }
.fsc-route {
  display: flex; align-items: center; gap: .35rem;
  font-size: .82rem; color: var(--text);
}
.fsc-ap    { font-size: .72rem; color: var(--text-muted); }
.fsc-time  { font-weight: 600; }
.fsc-arrow { color: var(--text-muted); font-size: .75rem; }
.fsc-meta  { font-size: .68rem; color: var(--text-muted); margin-left: auto; }
.fsc-delay { display: block; font-size: .68rem; color: #ff9500; margin-top: .15rem; }

/* ── 페이지네이션 ──────────────────────────────────────────────────── */
.flight-list-pager {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; margin-top: .6rem;
}
.pager-btn {
  padding: .3rem .75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
  color: var(--text); font-size: .78rem; cursor: pointer; transition: background .15s;
}
.pager-btn:hover:not(:disabled) { background: rgba(212,175,55,.15); border-color: var(--gold); color: var(--gold); }
.pager-btn:disabled { opacity: .35; cursor: default; }
.pager-info { font-size: .78rem; color: var(--text-muted); min-width: 3.5rem; text-align: center; }

/* ── Stepper ── */
.stepper {
  display: flex; align-items: center; gap: .55rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .45rem .75rem; background: var(--surface-input);
}
.step-btn {
  background: none; border: 1px solid var(--border); color: var(--text);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.step-btn:hover { background: var(--accent-soft); border-color: var(--border-strong); }
.step-btn.large { width: 46px; height: 46px; font-size: 1.5rem; border-radius: 50%; }
.step-val { font-family: var(--font-display); font-size: .95rem; font-weight: 600; min-width: 1.4rem; text-align: center; }

/* Duration */
.duration-wrap { display: flex; flex-direction: column; align-items: center; padding: 2rem 0; gap: 1rem; }
.nights-stepper { display: flex; align-items: center; gap: 2rem; }
.nights-display { display: flex; align-items: baseline; gap: .3rem; font-family: var(--font-display); }
.nights-display .duration-label { font-size: 3.5rem; font-weight: 700; line-height: 1; }

/* ── Option cards ── */
.option-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; margin-bottom: 1rem; }
.option-card {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 1.1rem .6rem; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: var(--bg-card); cursor: pointer; text-align: center;
  transition: border-color .2s, background .2s;
}
.option-card:hover   { border-color: var(--border-strong); background: #fff; box-shadow: 0 4px 14px rgba(28, 48, 88, 0.08); }
.option-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.option-icon { font-size: 1.65rem; }
.option-card strong { font-size: .82rem; font-weight: 600; color: var(--text); }
.option-card small  { font-size: .7rem; color: var(--text-muted); }
#accomOptions {
  grid-template-columns: repeat(2, minmax(9.5rem, 12rem));
  justify-content: center;
}

.accom-detail { margin-top: .5rem; }
.accom-detail label { font-size: .78rem; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: .35rem; }
.accom-detail input {
  width: 100%; padding: .62rem .85rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-input); color: var(--text); font: inherit;
}

/* ── Chips ── */
.chip-grid { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(28, 48, 88, 0.18);
  background: var(--surface-input);
  color: var(--text);
  font: inherit;
  font-size: .86rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(28, 48, 88, 0.06);
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.chip:hover {
  border-color: var(--border-strong);
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(28, 48, 88, 0.1);
}
.chip.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(199, 62, 85, 0.14) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(199, 62, 85, 0.15);
}

/* ── Budget ── */
.budget-section { display: flex; flex-direction: column; gap: .9rem; }
.field-sm { display: flex; flex-direction: column; }
.field-sm label { font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-bottom: .4rem; }
.budget-input-row { display: flex; align-items: center; gap: .45rem; }
.currency-sel { width: auto; padding: .55rem .6rem; flex-shrink: 0; }
.currency-sym { font-size: 1rem; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.budget-input-row input {
  flex: 1; padding: .62rem .85rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-input);
  color: var(--text); font: inherit; font-size: .95rem;
}
.budget-input-row input:focus { outline: none; border-color: var(--border-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-error { font-size: .78rem; color: #c0392b; min-height: 1.1em; margin: .25rem 0 0; }

/* ── Additional ── */
.add-grid { display: flex; flex-direction: column; gap: 1.1rem; }
.wiz-textarea {
  width: 100%; padding: .7rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-input);
  color: var(--text); font: inherit; font-size: .88rem; resize: vertical; min-height: 56px;
}

/* ── Plan map (Triple風) ── */
.plan-map-shell {
  margin-bottom: 1.25rem;
  padding: 1rem 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.plan-map-header { text-align: center; margin-bottom: 0.85rem; }
.plan-map-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.plan-map-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.plan-map-status {
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.plan-map-status--error {
  color: #7f1d1d;
  background: rgba(199, 62, 85, 0.08);
  border-color: rgba(199, 62, 85, 0.25);
}
.plan-map-status code {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.plan-map-canvas {
  width: 100%;
  height: min(52vw, 360px);
  min-height: 280px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(28, 48, 88, 0.1);
  overflow: hidden;
  background: #e8eef5;
}
.plan-map-fallback {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.plan-map-fallback a { color: var(--accent); font-weight: 600; }
.plan-day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 1rem 0 0.85rem;
}
.plan-day-tab {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(28, 48, 88, 0.15);
  background: var(--surface-input);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.plan-day-tab:hover { border-color: var(--border-strong); color: var(--text); }
.plan-day-tab.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.plan-day-stops {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.plan-day-edit-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.15rem 0 0.25rem;
}
.plan-transfer-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.08);
}
.plan-transfer-card__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
}
.plan-transfer-card__body {
  flex: 1;
  min-width: 0;
}
.plan-transfer-card__title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 0.18rem;
}
.plan-transfer-card__route {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.plan-transfer-card__route span:not(.plan-transfer-card__arrow) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan-transfer-card__meta {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #15803d;
}
.plan-transfer-card__arrow {
  flex-shrink: 0;
  color: #2563eb;
}
.plan-transfer-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.plan-transfer-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: #fff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}
.plan-transfer-card__actions a:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
@media (max-width: 560px) {
  .plan-transfer-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .plan-transfer-card__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
.plan-day-stop {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-input);
  box-shadow: 0 2px 8px rgba(28, 48, 88, 0.05);
  cursor: grab;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.plan-day-stop:active { cursor: grabbing; }
.plan-day-stop--fixed {
  cursor: default;
  background: #fbfcff;
}
.plan-day-stop--fixed:active { cursor: default; }
.plan-day-stop.is-dragging {
  opacity: 0.55;
  transform: scale(0.99);
}
.plan-day-stop.is-drop-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 10px 24px rgba(28, 48, 88, 0.1);
}
.plan-day-stop__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}
.plan-day-stop__drag {
  width: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 28px;
  text-align: center;
  user-select: none;
}
.plan-day-stop__drag--fixed {
  color: #c5ccda;
  cursor: default;
}
.plan-day-stop__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  background: #eef2f8;
}
.plan-day-stop__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plan-day-stop__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.plan-day-stop__body { flex: 1; min-width: 0; }
.plan-day-stop__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}
.plan-day-stop__name {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.plan-day-stop__lock {
  flex-shrink: 0;
  min-width: 3.5rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.plan-day-stop__lock:hover {
  border-color: var(--accent);
  color: var(--text);
}
.plan-day-stop__lock.is-locked {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.plan-day-stop__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.plan-day-stop__tip {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text);
}
.plan-day-stop__rec {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #2563eb;
  margin-right: 0.25rem;
}
.plan-map-infowin { font-size: 0.85rem; line-height: 1.45; max-width: 220px; }
.plan-map-infowin a { color: var(--accent); }
.plan-text-details {
  margin-top: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-muted);
}
.plan-text-summary {
  cursor: pointer;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  list-style: none;
}
.plan-text-summary::-webkit-details-marker { display: none; }
.plan-text-details .plan-content {
  margin: 0;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.plan-ticket-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.plan-ticket-link:hover { text-decoration: underline; }
.plan-place-search-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm, 6px);
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.25);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin: 0.35rem 0;
}
.plan-place-search-link:hover {
  background: rgba(66, 133, 244, 0.2);
  text-decoration: none;
}
.plan-inline-spot { margin: 0.5rem 0; }

/* ── Interpark ticket link preview ── */
.ticket-preview-card {
  display: flex;
  gap: 0.85rem;
  margin: 0.65rem 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated, #fff);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  max-width: 420px;
}
.ticket-preview-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(28, 48, 88, 0.08);
}
.ticket-preview-card--loading { pointer-events: none; opacity: 0.92; }
.ticket-preview-card--no-thumb { gap: 0; }
.ticket-preview-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0fe, #fce8e6);
}
.ticket-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ticket-preview-thumb--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.ticket-preview-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ticket-preview-site {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.ticket-preview-title {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text);
}
.ticket-preview-desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ticket-preview-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.15rem;
}
.bubble-body--rich { white-space: pre-wrap; }
.bubble-body--rich .ticket-preview-card { max-width: 100%; }
.chat-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  margin-left: 0.25rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(202, 163, 75, 0.08);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.chat-inline-link:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.ticket-platform-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ticket-platform-grid .ticket-preview-card { max-width: 100%; }
.plan-timeline-body .ticket-preview-card { max-width: 100%; }
.plan-ticket-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.plan-ticket-grid .ticket-preview-card { max-width: 100%; }
.plan-ticket-with-venue {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.plan-ticket-with-venue .plan-inline-spot {
  margin: 0;
}

/* ── Plan output ── */
.plan-loading { padding: 1.5rem 0; }
.plan-bar-wrap { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.plan-bar-track { flex:1; height: 5px; border-radius: 3px; background: rgba(28,48,88,.1); overflow: hidden; }
.plan-bar { height: 100%; width: 0%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .4s ease; }
.plan-pct   { font-size: .82rem; font-family: var(--font-display); color: var(--gold); min-width: 2.8rem; text-align: right; }
.plan-status { font-size: .88rem; color: var(--text-muted); margin: 0; }

.plan-source-badge {
  display: inline-flex; padding: .32rem .7rem; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid rgba(212,168,83,.25);
  font-size: .72rem; color: var(--gold); margin-bottom: 1rem;
}
.plan-source-badge--primary { margin-bottom: .75rem; }
.plan-source-badge--refs {
  background: rgba(66, 133, 244, .12);
  border-color: rgba(66, 133, 244, .28);
  color: #2a5db0;
}
.plan-refs-block {
  margin-top: .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.plan-refs-empty {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: .5rem 0 0;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  background: rgba(248, 250, 254, 0.9);
  border: 1px dashed rgba(28, 48, 88, 0.12);
}
.plan-content {
  font-size: .91rem; line-height: 1.75; color: var(--text); white-space: pre-wrap; word-break: break-word;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; margin-bottom: 1.25rem;
}
.plan-content .plan-inline-spot,
.plan-content .plan-place-card,
.plan-content .plan-place-card * {
  white-space: normal;
}
.bubble .plan-inline-spot,
.bubble .plan-place-card,
.bubble .plan-place-card * {
  white-space: normal;
}
.bubble .place-cards-section .plan-inline-spot {
  margin: .45rem 0 0;
}
.bubble .place-cards-section .plan-place-card {
  box-shadow: 0 6px 18px rgba(28, 48, 88, 0.08);
}
.plan-actions { display: flex; gap: .65rem; flex-wrap: wrap; }

/* ── Payment guide accordion ─────────────────────────────────────── */
.plan-payment-guide { margin-top: 1rem; }
.plan-pg-body { padding: .75rem 1rem 1rem; display: flex; flex-direction: column; gap: .65rem; border-top: 1px solid var(--border); }
.plan-pg-item { border-radius: var(--radius-sm); padding: .65rem .85rem; font-size: .85rem; line-height: 1.55; }
.plan-pg-item--ok   { background: rgba(34,197,94,.08);  border: 1px solid rgba(34,197,94,.22); }
.plan-pg-item--warn { background: rgba(251,146,60,.08); border: 1px solid rgba(251,146,60,.22); }
.plan-pg-item--cash { background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.22); }
.plan-pg-head { font-weight: 700; font-size: .86rem; margin-bottom: .35rem; }
.plan-pg-desc { color: var(--text-muted); }
.plan-pg-desc a { color: var(--accent); text-decoration: underline; }
.plan-pg-rows { display: flex; flex-direction: column; gap: .45rem; }
.plan-pg-row  { display: flex; align-items: flex-start; gap: .5rem; color: var(--text-muted); }
.plan-pg-tag  {
  flex-shrink: 0;
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  background: rgba(251,146,60,.15);
  color: #c2610a;
  white-space: nowrap;
}

.saved-plans-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(18, 28, 48, 0.58);
}
.saved-plans-overlay[hidden] { display: none; }
.saved-plans-panel {
  width: min(1040px, 100%);
  max-height: min(760px, 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 80px rgba(18, 28, 48, 0.34);
}
.saved-plans-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: #f8fafe;
}
.saved-plans-head h2 {
  margin: 0 0 .25rem;
  font-size: 1.08rem;
}
.saved-plans-head p {
  margin: 0;
  font-size: .82rem;
  color: var(--text-muted);
}
.saved-plans-head-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
}
.saved-plans-clear {
  width: auto !important;
  margin-top: 0 !important;
  white-space: nowrap;
}
.saved-plans-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.saved-plans-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 34%) 1fr;
}
.saved-plans-list {
  min-height: 0;
  max-height: calc(92vh - 96px);
  overflow: auto;
  border-right: 1px solid var(--border);
  background: #fff;
}
.saved-plan-item {
  width: 100%;
  display: block;
  padding: .9rem 1rem;
  text-align: left;
  color: var(--text);
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.saved-plan-item:hover,
.saved-plan-item.active {
  background: #fff7e7;
}
.saved-plan-item strong {
  display: block;
  margin-bottom: .25rem;
  font-size: .9rem;
}
.saved-plan-meta,
.saved-plan-excerpt {
  display: block;
  font-size: .76rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.saved-plan-detail {
  min-height: 0;
  max-height: calc(92vh - 96px);
  overflow: auto;
  padding: 1rem 1.15rem 1.2rem;
  background: #fff;
}
.saved-plan-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: .85rem;
}
.saved-plan-detail h3 {
  margin: 0 0 .3rem;
  font-size: 1.05rem;
}
.saved-plan-detail-actions {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.saved-plan-detail-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.75;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.saved-plan-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: .88rem;
}
@media (max-width: 760px) {
  .saved-plans-overlay { padding: .5rem; }
  .saved-plans-panel { max-height: 96vh; }
  .saved-plans-body { grid-template-columns: 1fr; }
  .saved-plans-list {
    max-height: 34vh;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .saved-plan-detail { max-height: 48vh; }
}

.travel-checklist {
  margin: 1rem 0 1.15rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}
.travel-checklist__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.travel-checklist__head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--gold);
}
.travel-checklist__head p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.travel-checklist__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
}
.travel-checklist__group {
  min-width: 0;
}
.travel-checklist__group h4 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: var(--text);
}
.travel-checklist__items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.travel-checklist__item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: start;
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(28, 48, 88, 0.1);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
}
.travel-checklist__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.travel-checklist__box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(28, 48, 88, 0.22);
  background: rgba(255, 255, 255, 0.72);
  margin-top: 0.05rem;
}
.travel-checklist__item input:checked + .travel-checklist__box {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}
.travel-checklist__copy {
  min-width: 0;
}
.travel-checklist__copy strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text);
}
.travel-checklist__copy p {
  margin: 0.18rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
}
.travel-checklist__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #8a5b00;
  background: rgba(212, 168, 83, 0.18);
  border: 1px solid rgba(212, 168, 83, 0.24);
}

/* ── Wizard responsive ── */
@media (max-width: 560px) {
  .travel-checklist { padding: 0.85rem; }
  .travel-checklist__head { display: block; }
  .travel-checklist__head p { margin-top: 0.25rem; }
  .travel-checklist__grid { grid-template-columns: 1fr; }
  .auth-inline-fields { grid-template-columns: 1fr; }
  .option-cards       { grid-template-columns: 1fr; }
  #accomOptions       { grid-template-columns: minmax(0, 12rem); }
  .flight-dates       { grid-template-columns: 1fr 1fr; }
  .wiz-dot-label      { display: none; }
  .wizard-nav-bar     { padding: .7rem 1rem; }
}

/* ── Nav logout button ── */
.nav-logout-btn {
  font-size: .78rem;
  padding: .3rem .75rem;
  opacity: .8;
}
.nav-logout-btn:hover { opacity: 1; }

/* ── Logged-in section logout row ── */
.logout-row {
  margin-top: .85rem;
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.btn-danger-ghost {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: .78rem;
  padding: .3rem .75rem;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-danger-ghost:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.7);
}
.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: .5rem 1.2rem;
  border-radius: var(--radius-sm, 6px);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-danger:hover { background: #b91c1c; }
.btn-danger:disabled { opacity: .6; cursor: not-allowed; }

/* ── Delete account modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #fff;
  border: 1px solid rgba(180,60,80,0.13);
  border-radius: var(--radius, 12px);
  padding: 1.75rem 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.modal-title {
  margin: 0 0 .6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c2838;
}
.modal-desc {
  font-size: .85rem;
  color: #5a6a7e;
  margin: 0 0 1rem;
  line-height: 1.55;
}
.modal-field {
  margin-bottom: .85rem;
}
.modal-field label {
  display: block;
  font-size: .8rem;
  color: #5a6a7e;
  margin-bottom: .35rem;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  margin-top: 1.1rem;
}

/* ── Place cards (Naver/place search results) ── */
.place-cards-section {
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  white-space: normal; /* .bubble pre-wrap 줄바꿈 간격 방지 */
}

.place-cards-title {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: .15rem;
}
.place-cards-title strong {
  color: var(--gold);
  font-weight: 700;
}

/* 컴팩트 카드: 썸네일 + 텍스트 한 줄, 클릭 시 Maps */
a.place-card,
.place-card {
  display: flex;
  align-items: stretch;
  gap: .55rem;
  padding: .45rem .55rem;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(28, 48, 88, 0.05);
  color: inherit;
  transition: border-color .2s, background .2s;
}
a.place-card:hover {
  border-color: rgba(212, 168, 83, 0.45);
  background: #fff;
  box-shadow: 0 4px 12px rgba(28, 48, 88, 0.1);
}

.place-thumb-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.place-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
}
.place-thumb--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 56px;
  text-align: center;
  opacity: .7;
}
img.place-thumb.place-thumb--fallback {
  object-fit: none;
  background: rgba(255, 255, 255, 0.04);
}

.place-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .12rem;
  justify-content: center;
}
.place-name {
  font-size: .84rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  line-height: 1.2;
}
.place-rating {
  font-weight: 600;
  color: var(--gold);
}
.place-reviews {
  font-weight: 400;
  color: var(--text-muted);
}
.place-open {
  font-size: .68rem;
  font-weight: 600;
  color: #34c759;
}
.place-closed {
  font-size: .68rem;
  font-weight: 600;
  color: #ff9f0a;
}
.place-badge {
  display: inline-block;
  padding: .1rem .4rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 600;
}
.price-badge {
  background: rgba(255, 255, 255, .05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, .12);
}
.place-addr {
  font-size: .7rem;
  color: var(--text-muted);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-maps-hint {
  font-size: .68rem;
  font-weight: 600;
  color: #4285f4;
}
a.place-card:hover .place-maps-hint {
  text-decoration: underline;
}

/* ── Flight cards (인천공항 API 결과) ──────────────────────────────── */
.flight-cards-section {
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  white-space: normal;
}

.flight-cards-title {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: .1rem;
}
.flight-cards-title strong {
  color: var(--gold);
  font-weight: 700;
}

.flight-card {
  display: flex;
  flex-direction: column;
  gap: .32rem;
  padding: .55rem .7rem;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.flight-card-header {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.flight-airline {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
}

.flight-num {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
}

.flight-codeshare {
  font-size: .68rem;
  color: var(--text-muted);
  padding: .1rem .35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.flight-status-badge {
  font-size: .65rem;
  font-weight: 700;
  padding: .12rem .45rem;
  border-radius: 999px;
  margin-left: auto;
}
.status-scheduled { background: rgba(100, 140, 220, .15); color: #7aaff0; border: 1px solid rgba(100, 140, 220, .3); }
.status-active    { background: rgba(52, 199, 89, .15);   color: #34c759; border: 1px solid rgba(52, 199, 89, .3); }
.status-landed    { background: rgba(90, 160, 230, .15);  color: #5aa0e6; border: 1px solid rgba(90, 160, 230, .3); }
.status-cancelled { background: rgba(232, 90, 107, .15);  color: var(--accent); border: 1px solid rgba(232, 90, 107, .3); }
.status-incident  { background: rgba(255, 149, 0, .15);   color: #ff9500; border: 1px solid rgba(255, 149, 0, .3); }
.status-diverted  { background: rgba(212, 168, 83, .15);  color: var(--gold); border: 1px solid rgba(212, 168, 83, .3); }
.status-unknown   { background: rgba(150, 160, 180, .1);  color: var(--text-muted); border: 1px solid var(--border); }

.flight-route-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.flight-endpoint {
  display: flex;
  flex-direction: column;
  gap: .06rem;
}
.flight-endpoint--arr {
  text-align: right;
  align-items: flex-end;
}

.flight-iata-code {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .05em;
}

.flight-time {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold);
}

.flight-terminal {
  font-size: .67rem;
  color: var(--text-muted);
}

.flight-arrow {
  flex: 1;
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
  opacity: .7;
}

.flight-delay {
  font-size: .72rem;
  color: #ff9500;
  font-weight: 600;
}

.flight-schedule-meta {
  font-size: .68rem;
  color: var(--text-muted);
  margin-top: .2rem;
}

/* ── Airport info card ────────────────────────────────────────────── */
.airport-info-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .75rem .9rem;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.airport-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}

.airport-iata {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .06em;
}

.airport-details {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .15rem;
}

/* ── Accommodation — Korean address selector (Step 3) ───────────── */
.addr-selector { margin-bottom: .9rem; }
.addr-row { display: flex; gap: .65rem; }
.addr-field { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.addr-label {
  font-size: .75rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.addr-select {
  width: 100%; padding: .62rem .85rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-mid); color: var(--text);
  font-size: .86rem; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2398a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center;
  padding-right: 2.2rem; transition: border-color .2s, box-shadow .2s;
}
.addr-select:focus {
  outline: none; border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.addr-select:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 480px) { .addr-row { flex-direction: column; gap: .5rem; } }

/* ── Accommodation search block ─────────────────────────────────── */
.accom-search-block { margin-top: .75rem; }
.accom-search-hint {
  font-size: .74rem; color: var(--text-muted); margin: .2rem 0 .45rem; line-height: 1.45;
}
.accom-detail-manual { margin-top: .75rem; }
.accom-detail-manual input {
  width: 100%; padding: .62rem .85rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-input); color: var(--text); font: inherit;
}
.region-cities-input {
  width: 100%;
  margin-top: .35rem;
  padding: .62rem .85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-input);
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  transition: border-color .2s, box-shadow .2s;
}
.region-cities-input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.region-city-section { margin-top: .25rem; }
.region-city-placeholder {
  margin: .5rem 0 0;
  padding: .75rem .85rem;
  font-size: .85rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background: var(--surface-input);
}
.region-city-load-error {
  margin: .5rem 0 0;
  font-size: .85rem;
  color: #c0392b;
}
.region-city-panels { display: flex; flex-direction: column; gap: 1rem; margin-top: .5rem; }
.region-city-panels:empty { display: none; }
.region-city-group {
  padding: .75rem .85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-input);
}
.region-city-group__title {
  margin: 0 0 .55rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.region-city-grid { margin: 0; }
.region-cities-other-fold {
  margin-top: 1rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.region-cities-other-fold summary {
  cursor: pointer;
  user-select: none;
  margin-bottom: .4rem;
}
.region-cities-other-fold[open] .region-cities-input { margin-top: .25rem; }
.req-badge {
  font-size: .72rem;
  font-weight: 600;
  color: #c0392b;
  margin-left: .35rem;
}
.accom-search-row { display: flex; align-items: stretch; gap: .5rem; margin-top: .35rem; }
.accom-search-row input {
  flex: 1;
  min-width: 0;
  width: auto; /* .accom-detail input { width:100% } 와 .btn.secondary { width:100% } 충돌 방지 */
  padding: .62rem .85rem; border-radius: var(--radius-sm);
  background: var(--bg-mid); border: 1px solid var(--border);
  color: var(--text); font-size: .88rem; transition: border-color .2s, box-shadow .2s;
}
.accom-search-row .btn.secondary {
  width: auto;
  margin-top: 0;
  flex-shrink: 0;
  white-space: nowrap;
}
.accom-search-row input:focus {
  outline: none; border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.accom-search-results {
  margin-top: .4rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.accom-result-item {
  display: block; width: 100%; text-align: left;
  padding: .6rem .9rem; background: var(--bg-card);
  border: none; border-bottom: 1px solid var(--border);
  color: var(--text); cursor: pointer; transition: background .15s;
}
.accom-result-item:last-child { border-bottom: none; }
.accom-result-item:hover { background: rgba(212,168,83,.09); }
.accom-result-item strong { display: block; font-size: .87rem; }
.accom-result-addr { font-size: .74rem; color: var(--text-muted); margin-top: .08rem; }
.accom-result-addr--ko { color: var(--text); }
.accom-selected-info {
  display: flex; align-items: flex-start; gap: .45rem;
  padding: .55rem .85rem; margin-top: .65rem;
  background: rgba(52,199,89,.07); border: 1px solid rgba(52,199,89,.22);
  border-radius: var(--radius-sm); font-size: .84rem; color: var(--text);
}
.accom-sel-name { font-weight: 700; }
.accom-sel-addr { font-size: .75rem; color: var(--text-muted); margin-top: .1rem; display: block; }
.accom-sel-address-main,
.accom-sel-address-sub {
  display: block;
}
.accom-sel-address-main {
  color: var(--text);
  font-weight: 650;
}
.accom-no-result { padding: .55rem .9rem; font-size: .82rem; color: var(--text-muted); }

/* ── Transport info panel (Step 4) ──────────────────────────────── */
.transport-info-panel {
  margin-top: .85rem; display: flex; flex-direction: column; gap: .55rem;
}
.ti-card {
  padding: .75rem .9rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .84rem; line-height: 1.65;
}
.ti-card strong { color: var(--text); display: block; margin-bottom: .2rem; }
.ti-card a {
  color: #4285f4; text-decoration: none;
  display: inline-block; margin-top: .15rem; margin-right: .75rem;
}
.ti-card a:hover { text-decoration: underline; }

/* ── Hotel recommendation cards (Step 3 undecided) ─────────────── */
.hotel-search-status {
  display: flex; align-items: center; gap: .5rem;
  font-size: .83rem; color: var(--text-muted); padding: .55rem 0;
}
.hotel-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin .7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hotel-results {
  margin-top: .55rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.hotel-results-label {
  font-size: .75rem; font-weight: 600; color: var(--text-muted);
  margin: 0; letter-spacing: .03em; line-height: 1.45;
}
.hotel-card {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .85rem; padding: .85rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.hotel-card:hover {
  border-color: rgba(212,168,83,.45);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.hotel-photo {
  width: 90px; height: 68px; object-fit: cover;
  border-radius: 6px; flex: 0 0 auto;
}
.hotel-card-info {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: .35rem;
}
.hotel-meta {
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
}
.hotel-rating {
  font-size: .78rem; color: var(--gold); font-weight: 600;
}
.hotel-rating-cnt {
  font-size: .72rem; color: var(--text-muted); font-weight: 400;
}
.hotel-price {
  font-size: .75rem; color: #a0e0a0; font-weight: 600;
  background: rgba(160,224,160,.12); border-radius: 4px; padding: .1rem .35rem;
}
/* 選択済みホテルパネル */
.hotel-selected-panel {
  margin-top: 1rem; padding: .85rem 1rem;
  background: rgba(212,168,83,.08); border: 1.5px solid rgba(212,168,83,.4);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: .3rem;
}
.hotel-sel-badge {
  font-size: .75rem; font-weight: 700; color: var(--gold); margin-bottom: .1rem;
}
.hotel-sel-rating { font-size: .78rem; color: var(--text-muted); }
.hotel-sel-addr   { font-size: .76rem; color: var(--text-muted); }
.hotel-sel-clear-btn {
  align-self: flex-start; margin-top: .4rem;
  font-size: .75rem; padding: .3rem .65rem;
}
.hotel-recommend-note {
  margin: .85rem 0 0;
  padding: .58rem .72rem;
  border: 1px solid rgba(28, 48, 88, 0.10);
  border-radius: 8px;
  background: rgba(255,255,255,.45);
  color: var(--text-muted);
  font-size: .74rem;
  line-height: 1.5;
}
.hotel-recommend-note span {
  display: block;
}
.hotel-recommend-note span + span {
  margin-top: .18rem;
}
.hotel-name {
  font-size: .92rem; font-weight: 700; color: var(--text);
  line-height: 1.4; word-break: keep-all; overflow-wrap: break-word;
}
.hotel-addr {
  font-size: .78rem; color: var(--text-muted);
  line-height: 1.5; word-break: keep-all; overflow-wrap: break-word;
}
.hotel-maps-link {
  font-size: .75rem; color: #6ea8ff; text-decoration: none;
  display: inline-flex; align-items: center; gap: .2rem;
  margin-top: .1rem; width: fit-content;
}
.hotel-maps-link:hover { text-decoration: underline; color: #8bb8ff; }
.hotel-select-btn {
  flex: 0 0 auto; width: auto !important; margin-top: 0 !important;
  white-space: nowrap; align-self: center;
  padding: .5rem .85rem; font-size: .8rem;
}
@media (max-width: 560px) {
  .hotel-card {
    flex-direction: column; align-items: stretch; gap: .65rem;
  }
  .hotel-select-btn {
    align-self: stretch; width: 100% !important; text-align: center;
  }
}

.link-inline { color: var(--accent); text-decoration: none; font-weight: 500; }
.link-inline:hover { text-decoration: underline; }

/* ── Plan content link & formatting ─────────────────────────────── */
.plan-content a { color: #4285f4; text-decoration: none; }
.plan-content a:hover { text-decoration: underline; }
.plan-content strong { color: var(--gold); }

/* ── Wizard: sports detail & plan reference cards ─────────────── */
.sports-detail-block {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border, rgba(255,255,255,.08));
}
.plan-refs-area { margin-top: 1.25rem; }
.plan-refs-section { margin-bottom: 1rem; }
.plan-refs-title {
  font-size: 1rem; font-weight: 600; color: var(--gold);
  margin: 0 0 .75rem;
}
.plan-refs-sub { font-size: .85rem; color: var(--muted); margin: .5rem 0 .35rem; }
.plan-refs-note { font-size: .75rem; color: var(--muted); margin-top: .5rem; }
.plan-vk-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.plan-vk-card {
  display: flex; align-items: center; gap: .6rem;
  background: var(--bg-card, #fff); border: 1px solid var(--border, rgba(200,60,80,.14));
  border-radius: .6rem; padding: .5rem .75rem;
  color: inherit; text-decoration: none; flex: 1 1 220px; min-width: 0;
  box-shadow: 0 1px 4px rgba(28,40,80,.07);
}
.plan-vk-card:hover { border-color: var(--gold, #b8860b); background: var(--surface-muted, #f8faff); }
.plan-vk-thumb-wrap { flex-shrink: 0; }
.plan-vk-thumb { width: 52px; height: 52px; border-radius: .4rem; object-fit: cover; display: block; }
.plan-vk-thumb--fallback {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: .4rem;
  background: var(--surface-muted, rgba(248,250,254,.94)); font-size: 1.5rem;
  border: 1px solid var(--border, rgba(200,60,80,.14));
}
.plan-vk-text { min-width: 0; }
.plan-vk-name { font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-vk-badge { font-size: .7rem; color: var(--gold, #c9a84c); }
.plan-vk-addr { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-ev-desc { font-size: .72rem; color: var(--muted); margin-top: .15rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-ev-source { font-size: .65rem; background: rgba(201,168,76,.15); color: var(--gold, #c9a84c); border-radius: 3px; padding: .05em .3em; margin-left: .25em; }
.plan-place-grid, .plan-sport-grid {
  display: flex; flex-direction: column; gap: .5rem;
}
.plan-sport-groups {
  display: flex;
  flex-direction: column;
  gap: .95rem;
}
.sport-league-group {
  padding: .7rem .8rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
}
.sport-league-title {
  margin: 0 0 .55rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
}
.sport-date-group + .sport-date-group {
  margin-top: .7rem;
  padding-top: .65rem;
  border-top: 1px dashed rgba(255,255,255,.12);
}
.sport-date-title {
  margin: 0 0 .45rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}
.plan-place-card-wide.place-card,
.plan-place-card-wide {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: .75rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: .5rem;
}
a.plan-place-card-wide:hover { border-color: var(--accent); }
.sport-event-card {
  display: block;
  padding: .65rem .85rem;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
  margin-bottom: .5rem;
}
.sport-event-card--notice {
  border-color: rgba(220, 160, 60, .35);
  background: rgba(220, 160, 60, .06);
}
.sport-notice-title { margin: .35rem 0 .2rem; font-weight: 600; }
.sport-notice-body { margin: 0 0 .5rem; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.plan-place-addr, .sport-venue {
  display: block; font-size: .78rem; color: var(--muted); margin-top: .2rem;
}
.plan-place-maps, .sport-official {
  display: inline-block; margin-top: .35rem;
  font-size: .78rem; color: var(--accent);
}
.sport-league {
  display: inline-block; font-size: .72rem;
  padding: .15rem .45rem; border-radius: 4px;
  background: rgba(100,140,220,.15); margin-right: .35rem;
}
.sport-match { margin-top: .25rem; }
.sport-venue-name { display: block; margin: .3rem 0 .1rem; font-size: .9rem; }

/* ── Plan inline place preview (Maps URL行の直下) ───────────────── */
.plan-line { margin: .35rem 0; line-height: 1.55; }
.plan-line--meta { margin-top: 1rem; padding-top: .75rem; border-top: 1px dashed var(--border); color: var(--text-muted); font-size: .92rem; }
.plan-line-spacer { height: .55rem; }

.wiz-sub-block {
  padding: .85rem 1rem;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.add-group--wide { grid-column: 1 / -1; }
.accom-search-msg {
  margin: 0;
  padding: .65rem .85rem;
  font-size: .88rem;
  color: var(--text-muted);
}
.accom-search-msg--hint {
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--border, #e8e8e8);
  margin-bottom: .25rem;
}
.accom-result-zip {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
}

.plan-day-block { margin: 1.25rem 0 1.5rem; }
.plan-day-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .85rem .15rem;
  color: var(--text);
}
.plan-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 .35rem;
  border-left: 3px solid var(--border);
}
.plan-timeline-item,
.plan-timeline-slot {
  position: relative;
  margin: 0 0 1rem .75rem;
  padding-left: .5rem;
}
.plan-timeline-item::before {
  content: "";
  position: absolute;
  left: -.95rem;
  top: .55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #c45c6a);
  opacity: .55;
}
.plan-timeline-body { min-width: 0; }
.plan-timeline-slot { margin-bottom: .5rem; }
.plan-slot-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
}
.plan-timeline-body .plan-inline-spot { margin-top: .5rem; }
.plan-inline-spot { margin: .65rem 0 1rem; }

.plan-place-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: .85rem;
  padding: .75rem .85rem;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.plan-place-card__thumb-link {
  flex-shrink: 0;
  display: block;
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.plan-place-card__thumb-link:hover { opacity: .92; }
.plan-place-card__photo-label {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.2;
}
.plan-place-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plan-place-card__img--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.75rem;
  opacity: .75;
}
img.plan-place-card__img.plan-place-card__img--fallback {
  object-fit: none;
  background: rgba(255, 255, 255, 0.04);
}
.plan-place-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  justify-content: center;
}
.plan-place-card__name {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plan-place-card__guide {
  margin: 0;
  font-size: .76rem;
  line-height: 1.45;
  color: var(--text);
  opacity: .9;
}
.plan-place-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
  font-size: .78rem;
  line-height: 1.3;
}
.plan-place-card__rating {
  font-weight: 600;
  color: var(--gold);
}
.plan-place-card__reviews {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: .15rem;
}
.plan-place-card__open {
  font-size: .7rem;
  font-weight: 600;
  color: #34c759;
}
.plan-place-card__closed {
  font-size: .7rem;
  font-weight: 600;
  color: #ff9f0a;
}
.plan-place-card__price {
  display: inline-block;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, .12);
}
.plan-place-card__addr {
  margin: 0;
  font-size: .74rem;
  color: var(--text-muted);
  line-height: 1.4;
  word-break: break-word;
}
.plan-place-card__actions {
  display: flex;
  gap: .5rem;
  margin-top: .25rem;
  flex-wrap: wrap;
}
.plan-place-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .32rem .7rem;
  border-radius: 6px;
  font-size: .76rem;
  font-weight: 600;
  text-decoration: none;
  color: #e8f0ff;
  background: rgba(66, 133, 244, 0.22);
  border: 1px solid rgba(66, 133, 244, 0.45);
  transition: background .15s, border-color .15s;
}
.plan-place-card__btn:hover {
  background: rgba(66, 133, 244, 0.35);
  text-decoration: none;
}
.plan-place-card__btn--route {
  color: #d4e6ff;
  background: rgba(100, 160, 240, 0.18);
  border-color: rgba(122, 175, 240, 0.4);
}
.plan-place-card__btn--route:hover {
  background: rgba(100, 160, 240, 0.3);
}

@media (max-width: 480px) {
  .plan-place-card { flex-direction: column; }
  .plan-place-card__thumb-link {
    width: 100%;
    height: 140px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html,
  body {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .top-nav,
  .wizard-progress-bar,
  .wizard-steps-row,
  .wizard-nav-bar,
  .plan-actions,
  .plan-map-shell,
  .btn {
    display: none !important;
  }

  .layout,
  .page-wizard,
  .wizard-container,
  .wizard-stage,
  .container,
  .home-container,
  .wizard-shell,
  .wiz-card,
  .wiz-card-inner,
  .plan-text-details,
  .plan-content,
  .travel-checklist {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .page-wizard,
  .wizard-container,
  .wizard-stage,
  .wiz-card,
  .wiz-card-inner {
    display: block !important;
  }

  .container,
  .home-container,
  .wizard-shell {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .wiz-card {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border: none !important;
    transition: none !important;
  }

  .wiz-card:not([data-step="8"]) {
    display: none !important;
  }

  .wiz-card[data-step="8"] {
    display: block !important;
    padding: 0 !important;
  }

  .plan-text-details,
  .plan-content,
  .travel-checklist {
    border: none !important;
    background: #fff !important;
    box-shadow: none !important;
    page-break-inside: auto;
    break-inside: auto;
  }

  .plan-content {
    padding: 0 !important;
  }

  .plan-place-card,
  .travel-checklist__group,
  .travel-checklist__item,
  .ticket-preview-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .plan-text-summary { display: none; }
}
.plan-maps-fallback {
  display: inline-block; font-size: .85rem;
  color: var(--accent, #2563eb); margin: .25rem 0;
}
.plan-maps-unresolved {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .5rem;
  margin: .35rem 0;
}
.plan-maps-unresolved__hint {
  font-size: .78rem; color: var(--muted);
}


/* ── Suggestion Chips (chat 초기 예시 질문) ── */
.suggestions {
  padding: .75rem 1rem .5rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.suggestions-label {
  font-size: .75rem;
  color: var(--muted, #64748b);
  margin: 0 0 .5rem;
}
.suggestions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.suggestion-chip {
  font-size: .78rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--accent, #2563eb);
  background: transparent;
  color: var(--accent, #2563eb);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.suggestion-chip:hover {
  background: var(--accent, #2563eb);
  color: #fff;
}
.suggestions.hidden { display: none; }

/* ── Streaming 버블 커서 ── */
.bubble-streaming::after {
  content: "▍";
  display: inline-block;
  animation: blink-cursor .6s step-end infinite;
  color: var(--accent, #2563eb);
  margin-left: 1px;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
