/* TUI Concierge · clean three-column layout
 * Colours: TUI live theme tokens (specs/brand_tokens.json)
 * Type: Outfit stands in for Ambit (licensed), Lato for body/UI
 */

:root {
  --tui-sky: #70cbf4;
  --tui-sky-100: #e3f5fd;
  --tui-sky-200: #c6eafb;
  --tui-navy: #092a5e;
  --tui-ink-navy: #1a115b;
  --tui-blue: #0c4af2;
  --tui-blue-hover: #0939bd;
  --tui-red: #d40e14;
  --change-bg: #fff6d6;
  --change-border: #f2cf63;
  --ok: #30b575;
  --ok-bg: #e6f6ee;
  --warn: #c98a04;
  --warn-bg: #fff4dc;
  --page: #f6f7f9;
  --surface: #ffffff;
  --line: #e6e8ec;
  --line-strong: #d5d9e0;
  --ink: #1f2937;
  --ink-2: #4c4c4c;
  --ink-3: #737373;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(9, 42, 94, 0.05);
  --font-head: "Ambit", "Outfit", system-ui, sans-serif;
  --font-body: "Lato", "TUIType", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--page);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
.hidden { display: none !important; }
.muted-sm { font-size: 12px; color: var(--ink-3); }
.ico { width: 18px; height: 18px; object-fit: contain; }

/* ---------- Header ---------- */
.topbar {
  height: 64px;
  background: var(--tui-sky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 34px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 24px;
  color: var(--tui-navy);
  letter-spacing: -0.01em;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tui-navy);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  list-style: none;
}
.btn-header::-webkit-details-marker { display: none; }
.btn-header:hover { background: #fff; }

.menu { position: relative; z-index: 40; }
.menu-panel {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 40;
  width: 300px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(9, 42, 94, 0.16);
  padding: 8px;
  border: 1px solid var(--line);
}
.menu-caption { font-size: 12px; color: var(--ink-3); padding: 6px 10px 8px; }
.menu-item {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: left;
}
.menu-item:hover { background: var(--page); }
.menu-item .ico { width: 24px; height: 24px; }
.menu-item strong { display: block; color: var(--tui-navy); font-weight: 700; font-size: 14px; }
.menu-item small { display: block; color: var(--ink-3); font-size: 12px; }

/* ---------- Workspace ---------- */
.workspace {
  height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 300px minmax(420px, 1fr) 470px;
  transition: grid-template-columns 0.25s ease;
}
.workspace.plan-collapsed { grid-template-columns: 300px minmax(420px, 1fr) 56px; }
.col { min-height: 0; display: flex; flex-direction: column; }
.col-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  color: var(--tui-navy);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- Column 1: Your trip ---------- */
.col-trip { background: var(--surface); border-right: 1px solid var(--line); }
.col-scroll { flex: 1; overflow-y: auto; padding: 24px 22px 12px; }
.col-trip .col-title { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section { padding: 18px 0 6px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.empty-note { font-size: 13px; color: var(--ink-3); }

.option-list { display: flex; flex-direction: column; gap: 8px; }
.option-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  text-align: left;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  transition: border-color 0.15s, background 0.15s;
}
.option-card:hover { border-color: var(--tui-sky); }
.option-card.active { border: 2px solid var(--tui-sky); background: #f4fbfe; padding: 10px 13px; }
.option-name { font-family: var(--font-head); font-weight: 500; color: var(--tui-navy); font-size: 15px; }
.option-price { font-family: var(--font-head); font-weight: 600; color: var(--tui-navy); font-size: 15px; }
.option-meta { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
.option-card.active .option-name::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tui-sky);
  margin-right: 8px;
  vertical-align: middle;
}

.diff-list { display: flex; flex-direction: column; gap: 8px; }
.diff-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: #fafbfc;
  border: 1px solid var(--line);
}
.diff-item svg { width: 18px; height: 18px; color: var(--tui-navy); margin-top: 2px; }
.diff-text { font-size: 14px; color: var(--ink); line-height: 1.35; }
.diff-foot { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; }
.diff-delta { font-weight: 700; color: var(--tui-navy); }
.link-btn {
  border: 0;
  background: none;
  color: var(--tui-blue);
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}
.link-btn:hover { text-decoration: underline; }

.trace-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trace-item { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; color: var(--ink); line-height: 1.35; }
.trace-item small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.trace-icon { width: 18px; height: 18px; margin-top: 1px; }
.trace-icon.done { color: var(--ok); }
.trace-icon.warning { color: var(--warn); }
.trace-icon.active { color: var(--tui-blue); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.col-foot { padding: 14px 22px; border-top: 1px solid var(--line); }

/* ---------- Column 2: Conversation ---------- */
.col-chat { background: var(--page); position: relative; }
.chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.chat-feed > * { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }

.empty-chat { margin: auto; text-align: center; max-width: 440px; }
.empty-chat .smile { width: 56px; height: 56px; margin: 0 auto 18px; }
.empty-chat h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 30px;
  color: var(--tui-navy);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.empty-chat p { margin: 0; color: var(--ink-3); font-size: 15px; }

.msg-user { display: flex; flex-direction: column; align-items: flex-end; }
.msg-user .text {
  max-width: 78%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--tui-navy);
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.45;
  padding: 12px 16px;
  border-radius: 18px 18px 4px 18px;
}
.msg-time { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.msg-bot { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.avatar svg { width: 26px; height: 26px; }
.msg-bot .text {
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.55;
  color: var(--tui-navy);
}
.msg-bot .text.error { color: #9b1c1c; font-size: 15px; }
.msg-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.thinking { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 15px; padding-top: 9px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--tui-sky); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.result-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--tui-navy);
}
.result-title svg { width: 22px; height: 22px; color: var(--ok); }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.pill-ok { background: var(--ok-bg); color: #1d7a4f; border: 1px solid #bfe6d1; }
.pill-neutral { background: var(--page); color: var(--tui-navy); border: 1px solid var(--line); }
.pill-change { background: #fde9a8; color: #7a5600; font-size: 11px; letter-spacing: 0.04em; padding: 2px 8px; }

.swap-old { display: flex; justify-content: space-between; color: var(--ink-3); text-decoration: line-through; font-size: 15px; padding: 2px 2px; }
.swap-arrow { color: var(--ink-3); padding: 2px 4px; }
.swap-new {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--change-bg);
  border: 1px solid var(--change-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--tui-navy);
  font-weight: 700;
}
.swap-new.removed { background: var(--page); border-color: var(--line); color: var(--ink-3); font-weight: 400; }
.moves { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.swap + .swap { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.result-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--tui-navy);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
}
.btn-outline:hover { border-color: var(--tui-navy); }
.btn-outline svg { width: 16px; height: 16px; }

.plan-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-summary div { background: var(--page); border-radius: var(--radius-sm); padding: 10px 12px; }
.plan-summary small { display: block; font-size: 12px; color: var(--ink-3); }
.plan-summary strong { font-family: var(--font-head); font-weight: 600; color: var(--tui-navy); font-size: 15px; }

.composer { padding: 10px 40px 22px; background: linear-gradient(to bottom, rgba(246, 247, 249, 0), var(--page) 30%); }
.composer > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips:empty { display: none; }
.chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--tui-navy);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-head);
  font-size: 14px;
}
.chip:hover { border-color: var(--tui-navy); }
.ask-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 8px 0 20px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(9, 42, 94, 0.06);
}
.ask-bar:focus-within { border-color: var(--tui-sky); box-shadow: 0 0 0 4px var(--tui-sky-100); }
.ask-icon { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.ask-bar input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--tui-navy);
  background: transparent;
}
.ask-bar input::placeholder { color: #9aa1ab; }
.ask-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--tui-navy);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.ask-send:disabled { opacity: 0.4; cursor: default; }
.ask-send svg { width: 20px; height: 20px; }

.alert-banner {
  margin: 16px 40px 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  border: 1px solid #f3d38b;
  color: #6b4a00;
  font-size: 14px;
}

/* ---------- Column 3: Your plan ---------- */
.col-plan { background: var(--surface); border-left: 1px solid var(--line); position: relative; overflow: hidden; }
.plan-inner { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.plan-sub { color: var(--ink-3); font-size: 15px; margin-top: 2px; }
.plan-head-actions { display: flex; gap: 8px; align-items: center; }
.segmented { display: inline-flex; background: var(--page); border-radius: 10px; padding: 3px; }
.seg {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--ink-3);
}
.seg.active { background: #fff; color: var(--tui-navy); box-shadow: var(--shadow); }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--tui-navy);
}
.icon-btn svg { width: 18px; height: 18px; }
.plan-view { flex: 1; overflow-y: auto; min-height: 0; }

.plan-rail {
  display: none;
  position: absolute;
  inset: 0;
  border: 0;
  background: #fff;
  writing-mode: vertical-rl;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--tui-navy);
  letter-spacing: 0.02em;
}
.plan-collapsed .plan-rail { display: block; }
.plan-collapsed .plan-inner { visibility: hidden; }

.empty-plan { padding: 64px 32px; text-align: center; color: var(--ink-3); }
.empty-plan .ghost-rail { margin: 0 auto 22px; width: 180px; display: flex; flex-direction: column; gap: 10px; }
.empty-plan .ghost-rail i { display: block; height: 14px; border-radius: 7px; background: var(--page); }
.empty-plan .ghost-rail i:nth-child(2) { width: 70%; }
.empty-plan .ghost-rail i:nth-child(3) { width: 85%; }
.empty-plan h3 { font-family: var(--font-head); font-weight: 500; color: var(--tui-navy); font-size: 18px; margin: 0 0 6px; }
.empty-plan p { margin: 0; font-size: 14px; }

/* A2UI 1.0 surface (Basic Catalog components, styled by tuiRole) */
.a2ui-surface { padding: 18px 24px 0; }
.a2ui-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.a2ui-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.a2ui-row.justify-spaceBetween, .a2ui-row.justify-space_between, .a2ui-row.justify-between { justify-content: space-between; }
.a2ui-text { min-width: 0; }
.a2ui-text.is-empty { display: none; }
.a2ui-text.variant-caption { font-size: 13px; color: var(--ink-3); }
.a2ui-img-icon { width: 22px; height: 22px; object-fit: contain; flex: none; }
.a2ui-divider { display: none; }
.a2ui-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }

.a2ui-surface > .a2ui-col { gap: 18px; }

[data-tui-role="tripSummaryCard"] { background: var(--page); border: 0; padding: 14px 16px; }
[data-tui-role="tripSubtitle"] { display: none; }
[data-tui-role="tripOptionTitle"] { font-family: var(--font-head); font-weight: 600; color: var(--tui-navy); font-size: 16px; }

[data-tui-role="daysTimeline"] { gap: 6px !important; }
[data-tui-role="dayCard"] {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 14px 30px;
  position: relative;
}
[data-tui-role="dayCard"]::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: -6px;
  width: 2px;
  background: var(--line);
}
[data-tui-role="daysTimeline"] > [data-tui-role="dayCard"]:last-child::before { bottom: 12px; }
[data-tui-role="dayCard"]::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--tui-navy);
  box-sizing: border-box;
}
[data-tui-role="dayCard"] > .a2ui-col { gap: 10px; }
[data-tui-role="dayCard"] > .a2ui-col > .a2ui-row:first-child { align-items: flex-start; justify-content: space-between; }
[data-tui-role="dayCard"] > .a2ui-col > .a2ui-row:first-child > .a2ui-col { gap: 0; }
[data-tui-role="dayPill"] { font-size: 12px; color: var(--ink-3); order: 0; }
[data-tui-role="dayThemeTitle"] { font-family: var(--font-head); font-weight: 600; color: var(--tui-navy); font-size: 16px; line-height: 1.3; }
[data-tui-role="dayCard"] .a2ui-row:has(> .a2ui-text.is-empty) > img { display: none; }
[data-tui-role="dayCard"] > .a2ui-col > .a2ui-row:first-child .a2ui-row .a2ui-text { font-size: 13px; color: var(--ink-3); }

[data-tui-role="stopCard"] { position: relative; padding: 13px 15px; transition: background 0.4s, border-color 0.4s; }
[data-tui-role="stopCard"]::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--tui-navy);
  box-sizing: border-box;
}
[data-tui-role="stopCard"] > .a2ui-col { gap: 4px; }
[data-tui-role="stopCard"] > .a2ui-col > .a2ui-row:first-child { justify-content: space-between; }
[data-tui-role="timePill"] { font-family: var(--font-head); font-weight: 600; color: var(--tui-navy); font-size: 14px; }
[data-tui-role="envBadge"] {
  font-size: 12px;
  color: var(--ink-3);
  background: var(--page);
  border-radius: 999px;
  padding: 1px 9px;
  white-space: nowrap;
}
[data-tui-role="priceTag"] { font-family: var(--font-head); font-weight: 600; color: var(--tui-navy) !important; font-size: 14px !important; white-space: nowrap; }
[data-tui-role="strikethroughOld"] { text-decoration: line-through; color: var(--ink-3); font-size: 13px; }
[data-tui-role="stopTitle"] { font-family: var(--font-head); font-weight: 500; color: var(--tui-navy); font-size: 16px; line-height: 1.3; }
[data-tui-role="stopCard"] .a2ui-text.variant-caption:not([data-tui-role]) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-tui-role="stopCard"] > .a2ui-col > .a2ui-row:last-child { justify-content: space-between; margin-top: 4px; }
[data-tui-role="walkNote"] { font-size: 12px !important; }
[data-tui-role="deltaBadge"] {
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a5600 !important;
  background: #fde9a8;
  border-radius: 6px;
  padding: 1px 7px;
}
.a2ui-btn-borderless {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--tui-navy);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-family: var(--font-head);
  white-space: nowrap;
}
.a2ui-btn-borderless:hover { border-color: var(--tui-navy); }

.a2ui-changed-stop {
  background: var(--change-bg) !important;
  border: 1.5px solid var(--change-border) !important;
}
.a2ui-changed-stop::before { border-color: #e0a800 !important; background: #ffe58a !important; }
.a2ui-flash { animation: flash 1.4s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(242, 207, 99, 0.9); } 100% { box-shadow: 0 0 0 10px rgba(242, 207, 99, 0); } }

[data-tui-role="tuiTipCard"] { background: var(--tui-sky-100); border: 0; }
[data-tui-role="tipBadge"] { font-family: var(--font-head); font-weight: 600; color: var(--tui-navy); font-size: 14px; }
[data-tui-role="tuiTipCard"] .a2ui-text:not([data-tui-role]) { color: var(--tui-navy); font-size: 14px; }
[data-tui-role="tuiTipCard"]:has(.a2ui-col > .a2ui-text:nth-child(2).is-empty) { display: none; }

[data-tui-role="basketFooter"] {
  position: sticky;
  bottom: 0;
  margin: 8px -24px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 24px;
  background: #fff;
}
[data-tui-role="basketFooter"] > .a2ui-row { justify-content: space-between; }
[data-tui-role="basketFooter"] .a2ui-col { gap: 0; }
[data-tui-role="basketTotal"] { font-family: var(--font-head); font-weight: 600; color: var(--tui-navy); font-size: 26px; line-height: 1.15; }
[data-tui-role="basketTotal"]::before { content: "Total"; display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.a2ui-btn-primary {
  border: 0;
  background: var(--tui-blue);
  color: #fff;
  border-radius: 999px;
  height: 52px;
  padding: 0 28px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 17px;
  box-shadow: 0 6px 16px rgba(12, 74, 242, 0.25);
}
.a2ui-btn-primary::after { content: "  →"; }
.a2ui-btn-primary:hover { background: var(--tui-blue-hover); }

/* Map view */
.map-frame { position: relative; height: 340px; margin: 18px 24px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--page); }
.google-map, .svg-map { position: absolute; inset: 0; }
.venue-list { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.venue {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.venue.changed { background: var(--change-bg); border-color: var(--change-border); }
.venue img { width: 24px; height: 24px; object-fit: contain; }
.venue-title { font-family: var(--font-head); font-weight: 500; color: var(--tui-navy); font-size: 14px; line-height: 1.3; }
.venue-sub { font-size: 12px; color: var(--ink-3); }
.venue a { font-size: 12px; color: var(--tui-blue); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Governance modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 42, 94, 0.45);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-card {
  width: min(880px, 96vw);
  max-height: 86vh;
  background: #fff;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(9, 42, 94, 0.25);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 26px 8px; }
.modal-title { font-family: var(--font-head); font-weight: 600; color: var(--tui-navy); font-size: 22px; margin: 0; }
.modal-sub { font-size: 13px; color: var(--ink-3); }
.modal-tabs { display: flex; gap: 4px; padding: 8px 26px 0; border-bottom: 1px solid var(--line); }
.mtab {
  border: 0;
  background: none;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.mtab.active { color: var(--tui-navy); border-bottom-color: var(--tui-navy); }
.modal-body { padding: 20px 26px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.gov-intro { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.gov-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.gov-row strong { color: var(--tui-navy); font-family: var(--font-head); font-weight: 500; font-size: 15px; }
.gov-row .sub { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
.gov-row code { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-3); word-break: break-all; }
.gov-group { font-family: var(--font-head); color: var(--ink-3); font-size: 13px; margin: 10px 0 0; text-transform: uppercase; letter-spacing: 0.05em; }
.wire-pre {
  background: #0d1b33;
  color: #d6e4ff;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
  max-height: 56vh;
  margin: 0;
}

@media (max-width: 1280px) {
  .workspace { grid-template-columns: 260px minmax(380px, 1fr) 420px; }
  .chat-feed, .composer { padding-left: 24px; padding-right: 24px; }
}

.watcher-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #6b4a00;
  background: var(--warn-bg);
  border: 1px solid #f3d38b;
  border-radius: 999px;
  padding: 2px 10px;
}

/* ===================== Visual layer: photos, cards, landmark banner ===================== */

/* Header banner stage */
.banner-stage {
  overflow: hidden;
  position: absolute;
  left: 50%;
  top: 0;
  height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
.banner-landmark { height: 60px; width: 196px; opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.6s; }
.banner-landmark.show { opacity: 1; transform: none; }
.banner-landmark svg { height: 100%; width: 100%; overflow: visible; }
.banner-landmark svg * { stroke: var(--tui-navy); stroke-width: 2.6; vector-effect: non-scaling-stroke; }
.banner-dest { display: flex; flex-direction: column; line-height: 1.15; opacity: 0; transform: translateX(-8px); transition: opacity 0.5s, transform 0.5s; }
.banner-dest.show { opacity: 1; transform: none; }
.banner-dest strong { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--tui-navy); }
.banner-dest span { font-size: 12px; color: rgba(9, 42, 94, 0.75); max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1280px) { .banner-dest { display: none; } }

/* Shared photo treatment */
.photo, [data-tui-role="photoFrame"], .option-thumb, .ready-photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #eef2f7 8%, #f7f9fc 18%, #eef2f7 33%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position-x: -200%; } }
.photo img, [data-tui-role="photoFrame"] img, .option-thumb img, .ready-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.photo img, .ready-photo img, .option-thumb img { opacity: 1; }
[data-tui-role="photoFrame"] img.is-loaded { opacity: 1; }
.has-broken-img, .no-photo img { display: none !important; }
.no-photo { animation: none; background: var(--tui-sky-100); }
.photo-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 42, 94, 0.72), rgba(9, 42, 94, 0) 55%); }
.photo-title { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; display: flex; flex-direction: column; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); }
.photo-title strong { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.15; }
.photo-title span { font-size: 13px; opacity: 0.92; }
.photo-credit, [data-tui-role="photoCredit"] {
  position: absolute;
  right: 6px;
  bottom: 5px;
  font-size: 10px !important;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(0, 0, 0, 0.32);
  padding: 1px 6px;
  border-radius: 6px;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--tui-navy);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  border-radius: 999px;
  padding: 2px 10px;
}

/* Timeline stop cards with hero photos */
[data-tui-role="stopCard"] { padding: 0 0 13px; overflow: hidden; }
[data-tui-role="stopCard"] > .a2ui-col { gap: 5px; }
[data-tui-role="stopCard"] > .a2ui-col > *:not([data-tui-role="photoFrame"]) { margin: 0 15px; }
[data-tui-role="stopCard"] [data-tui-role="photoFrame"] { height: 158px; margin-bottom: 8px; border-radius: 0; }
[data-tui-role="stopCard"]:hover [data-tui-role="photoFrame"] img.is-loaded { transform: scale(1.03); }
[data-tui-role="stopCard"]::before { top: 176px; }
[data-tui-role="stopCard"]:has(.has-broken-img)::before { top: 17px; }
[data-tui-role="stopCard"]:has(.has-broken-img) { padding-top: 13px; }
[data-tui-role="ratingBadge"] {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--tui-navy) !important;
  font-weight: 700;
  font-size: 12px !important;
  padding: 2px 9px;
  border-radius: 999px;
}
.a2ui-img-mediumFeature, .a2ui-img-header { width: 100%; height: 100%; }
.a2ui-changed-stop [data-tui-role="photoFrame"] { box-shadow: inset 0 -3px 0 var(--change-border); }

/* Hotel hero in the trip summary card */
[data-tui-role="tripSummaryCard"] { padding: 0 0 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
[data-tui-role="tripSummaryCard"] > .a2ui-col > *:not([data-tui-role="photoFrame"]) { margin: 0 16px; }
[data-tui-role="tripSummaryCard"] [data-tui-role="photoFrame"] { height: 180px; margin-bottom: 10px; }
[data-tui-role="hotelMeta"] { font-size: 13px; color: var(--ink-3); }
[data-tui-role="flightLine"] {
  display: inline-flex;
  align-self: flex-start;
  font-size: 13px !important;
  color: var(--tui-navy) !important;
  background: var(--page);
  border-radius: 999px;
  padding: 3px 12px;
  margin-top: 4px !important;
}
[data-tui-role="flightLine"]::before { content: "✈  "; }

/* Option cards (column 1) with thumbnails */
.option-card { grid-template-columns: 56px 1fr; align-items: center; gap: 0 12px; }
.option-card .option-price { grid-column: 2; font-size: 14px; }
.option-card.active { padding: 10px 13px; }
.option-thumb { width: 56px; height: 56px; border-radius: 10px; grid-row: 1 / span 2; }
.option-text { display: flex; flex-direction: column; min-width: 0; }
.option-text .option-name { line-height: 1.25; }
.option-meta { grid-column: auto; }
.stars { color: #e0a800; letter-spacing: 1px; font-size: 11px; }
.option-card.active .option-name::before { display: none; }

/* Chat: plan-ready hero, destination and activity cards */
.result-card.plan-ready { padding: 0 0 18px; overflow: hidden; }
.result-card.plan-ready > *:not(.ready-photo) { margin-left: 20px; margin-right: 20px; }
.ready-photo { height: 210px; margin-bottom: 16px; }
.swap-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.swap-new { align-items: center; }
.swap-name { flex: 1; }

.card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card-row-head { font-family: var(--font-head); font-weight: 600; color: var(--tui-navy); font-size: 16px; margin-top: 4px; }
.dest-card, .act-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.45s ease both;
}
.dest-card:nth-child(2), .act-card:nth-child(2) { animation-delay: 0.08s; }
.dest-card:nth-child(3), .act-card:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dest-card:hover, .act-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(9, 42, 94, 0.12); }
.dest-card .photo { height: 170px; }
.dest-card:hover .photo img, .act-card:hover .photo img { transform: scale(1.04); }
.dest-body, .act-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dest-body p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.facts span { font-size: 12px; background: var(--page); color: var(--tui-navy); border-radius: 999px; padding: 2px 9px; }
.btn-card {
  margin-top: auto;
  border: 0;
  background: var(--tui-navy);
  color: #fff;
  border-radius: 999px;
  height: 38px;
  font-family: var(--font-head);
  font-size: 14px;
}
.btn-card:hover { background: var(--tui-blue); }
.act-card .photo { height: 130px; }
.act-body strong { font-family: var(--font-head); font-weight: 500; color: var(--tui-navy); font-size: 15px; line-height: 1.3; }
.act-meta { font-size: 12px; color: var(--ink-3); }
.act-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.act-price { font-family: var(--font-head); font-weight: 600; color: var(--tui-navy); }
.btn-add {
  border: 1px solid var(--tui-blue);
  color: var(--tui-blue);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 13px;
}
.btn-add:hover { background: var(--tui-blue); color: #fff; }

/* Empty state destination strip */
.dest-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 28px auto 8px; width: min(640px, 92vw); }
.dest-tile {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--tui-sky-100);
  animation: rise 0.5s ease both;
  animation-delay: calc(var(--i) * 70ms);
}
.dest-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dest-tile:hover img { transform: scale(1.06); }
.dest-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 6px 7px;
  background: linear-gradient(to top, rgba(9, 42, 94, 0.8), transparent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  text-align: left;
}
.dest-strip-caption { font-size: 12px; color: var(--ink-3); }
.empty-chat { max-width: 660px; }

/* Map venue list photos */
.venue { grid-template-columns: 48px 1fr auto; }
.venue .venue-photo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.venue .venue-photo.icon-fallback { object-fit: contain; padding: 10px; background: var(--page); }

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

/* ===== Design review overrides (typesetter review, Nov 2026) ===== */
/* ===== Design review overrides (append to end of styles.css) ===== */

/* R1 · Empty-state destination strip: size to the column, not the viewport */
.empty-chat { max-width: 680px; width: 100%; }
.dest-strip { width: 100%; max-width: 640px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dest-tile img { object-position: center 40%; }
.dest-tile span {
  padding: 28px 8px 8px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  background: linear-gradient(to top, rgba(9, 42, 94, 0.85), rgba(9, 42, 94, 0) 100%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}
.dest-tile { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.dest-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(9, 42, 94, 0.18); }
.dest-tile:focus-visible { outline: 3px solid var(--tui-blue); outline-offset: 2px; }

/* R2 · Broken-image fallback: a calm placeholder glyph instead of a flat blue box */
.no-photo { background: var(--tui-sky-100) !important; }
.no-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tui-navy);
  opacity: 0.28;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19l5.5-6.5 4 4.5 3-3.5L21 19z'/%3E%3Ccircle cx='16.5' cy='7.5' r='2'/%3E%3C/svg%3E") center / 40% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19l5.5-6.5 4 4.5 3-3.5L21 19z'/%3E%3Ccircle cx='16.5' cy='7.5' r='2'/%3E%3C/svg%3E") center / 40% no-repeat;
}
.photo.no-photo::after { -webkit-mask-size: 48px; mask-size: 48px; }

/* R3 · Photo credits: legible on bright skies, bidi-safe for RTL names, never on top of titles */
.photo-credit, [data-tui-role="photoCredit"] {
  font-size: 10.5px !important;
  letter-spacing: 0.01em;
  background: rgba(9, 20, 40, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  max-width: 78%;
  unicode-bidi: plaintext;
}
.photo-title ~ .photo-credit { top: 8px; bottom: auto; }

/* R4 · Activity tag: sentence case comes from JS; stop capitalising every word */
.photo-tag { text-transform: none; font-size: 11.5px; letter-spacing: 0.01em; }

/* R5 · Left column option cards: top-aligned thumb, 2-line names, 1-line meta */
.option-card { grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 0 12px; padding: 12px; }
.option-card.active { padding: 11px; }
.option-card:hover:not(.active) { background: #fbfdff; box-shadow: 0 4px 14px rgba(9, 42, 94, 0.07); }
.option-thumb { width: 48px; height: 48px; border-radius: 10px; grid-row: auto; }
.option-text { gap: 2px; }
.option-text .option-name {
  font-size: 15px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}
.option-meta { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.option-meta .stars { font-size: 10px; letter-spacing: 0; margin-right: 2px; }
.option-label { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.option-text .option-price { margin-top: 4px; font-size: 15px; font-variant-numeric: tabular-nums; }
.option-price small { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--ink-3); margin-left: 4px; }

/* R6 · Plan header: subtitle spans the full column width, phrases never split */
.plan-head { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 4px; }
.plan-head > div:first-child { display: contents; }
.plan-head .col-title { grid-column: 1; grid-row: 1; }
.plan-head-actions { grid-column: 2; grid-row: 1; }
.plan-sub { grid-column: 1 / -1; grid-row: 2; font-size: 14px; line-height: 1.45; margin-top: 0; }
.plan-sub .nb { white-space: nowrap; }

/* R7 · Timeline stops: compact thumbnail layout (the hero-per-stop made a 4-night plan ~4,000px tall) */
[data-tui-role="stopCard"] { padding: 12px 14px 12px 12px; overflow: visible; }
[data-tui-role="stopCard"] > .a2ui-col {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 3px;
  align-items: start;
}
[data-tui-role="stopCard"] > .a2ui-col > *:not([data-tui-role="photoFrame"]) { grid-column: 2; margin: 0; }
[data-tui-role="stopCard"] > .a2ui-col { position: relative; }
/* Unwrap the frame so its img / rating / Google credit become grid items of the card */
[data-tui-role="stopCard"] [data-tui-role="photoFrame"] { display: contents; }
[data-tui-role="stopCard"] .a2ui-img-mediumFeature {
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 76px;
  height: 76px;
  margin-top: 2px;
  border-radius: 10px;
  opacity: 1;
  background: linear-gradient(110deg, #eef2f7 8%, #f7f9fc 18%, #eef2f7 33%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
[data-tui-role="stopCard"] .a2ui-img-mediumFeature.is-loaded { animation: none; background: none; }
[data-tui-role="stopCard"] [data-tui-role="ratingBadge"] {
  grid-column: 1;
  grid-row: 1 / span 4;
  left: 4px;
  top: 58px;
  font-size: 10.5px !important;
  padding: 0 6px;
  line-height: 1.6;
  box-shadow: 0 1px 3px rgba(9, 42, 94, 0.18);
}
/* Google Places attribution: below the card text, readable, never cropped */
[data-tui-role="stopCard"] [data-tui-role="photoCredit"] {
  grid-column: 2;
  order: 10;
  position: static;
  max-width: none;
  padding: 0;
  margin-top: 2px;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--ink-3) !important;
  white-space: normal;
}
[data-tui-role="stopCard"]:has(.has-broken-img) > .a2ui-col > * { grid-column: 1 / -1; }
[data-tui-role="stopCard"]:has(.has-broken-img) { padding-top: 12px; }
[data-tui-role="stopCard"]::before,
[data-tui-role="stopCard"]:has(.has-broken-img)::before { top: 18px; }
[data-tui-role="stopCard"]:hover .a2ui-img-mediumFeature.is-loaded { transform: none; filter: saturate(1.08) brightness(1.03); }

/* Stop text: no wrapping times, 2-line descriptions, balanced titles */
[data-tui-role="stopCard"] > .a2ui-col > [data-tui-role="photoFrame"] + .a2ui-row { gap: 8px; flex-wrap: nowrap; }
[data-tui-role="stopCard"] > .a2ui-col > [data-tui-role="photoFrame"] + .a2ui-row > .a2ui-row { min-width: 0; flex: 1; gap: 6px; }
[data-tui-role="timePill"] { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 13.5px; }
[data-tui-role="envBadge"] { overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 11.5px; }
[data-tui-role="stopCard"] .a2ui-img-icon { width: 18px; height: 18px; }
[data-tui-role="stopTitle"] { font-size: 15.5px; line-height: 1.3; text-wrap: balance; }
[data-tui-role="stopTitle"] + .a2ui-text:not([data-tui-role]) {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-tui-role="stopCard"] > .a2ui-col > .a2ui-row:last-child { margin-top: 2px; }
[data-tui-role="dayThemeTitle"] { text-wrap: balance; }
[data-tui-role="dayPill"] { font-size: 12px; letter-spacing: 0.02em; }

/* R8 · Changed stop: calm, unmistakable, and announced */
.a2ui-changed-stop { box-shadow: 0 0 0 3px rgba(242, 207, 99, 0.35); }
.a2ui-changed-stop::after {
  content: "Updated";
  position: absolute;
  top: -9px;
  right: 12px;
  font: 700 10.5px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b4a00;
  background: #ffe58a;
  border: 1px solid var(--change-border);
  border-radius: 999px;
  padding: 3px 8px;
}
.a2ui-flash { animation: flash 1.1s ease 2; }

/* R9 · Flight chip: the ✈ was glued to the airport code */
[data-tui-role="flightLine"] { gap: 6px; align-items: center; }
[data-tui-role="flightLine"]::before { content: "✈"; }
[data-tui-role="tripOptionTitle"] { text-wrap: balance; line-height: 1.3; }

/* R10 · Chat cards: one quiet CTA per card, 2-line activity titles that align */
.btn-card { background: #fff; color: var(--tui-navy); border: 1px solid var(--line-strong); height: 36px; font-weight: 500; }
.btn-card::after { content: " →"; }
.btn-card:hover, .dest-card:hover .btn-card { background: var(--tui-navy); border-color: var(--tui-navy); color: #fff; }
.act-body strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  text-wrap: balance;
}
.act-price, .plan-summary strong, .diff-delta { font-variant-numeric: tabular-nums; }
.msg-bot .text { text-wrap: pretty; }
.dest-body p { text-wrap: pretty; }

/* R11 · Header landmark: hairline strokes, sits on the header's bottom edge like a horizon */
.banner-stage { align-items: stretch; gap: 16px; }
.banner-stage::before {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -70px;
  width: 280px;
  height: 140px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.banner-stage:has(.banner-landmark.show)::before { opacity: 1; }
.banner-landmark {
  position: relative;
  align-self: flex-end;
  height: 58px;
  width: 186px;
  margin-bottom: -1px;
  transform: none;
  transition: opacity 0.25s ease;
}
.banner-landmark svg { display: block; overflow: visible; }
.banner-landmark svg * { stroke: var(--tui-navy); stroke-width: 5; vector-effect: none; }
.banner-dest { align-self: center; }
.banner-dest span { white-space: normal; max-width: 220px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* R12 · Idle plan state: not a loading skeleton */
.empty-plan .ghost-rail { width: 160px; gap: 14px; position: relative; padding-left: 22px; }
.empty-plan .ghost-rail::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; border-left: 2px dashed var(--line-strong); }
.empty-plan .ghost-rail i { position: relative; height: 10px; background: var(--page); }
.empty-plan .ghost-rail i::before { content: ""; position: absolute; left: -22px; top: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--tui-sky); background: #fff; box-sizing: border-box; }

[data-tui-role="priceTag"] { flex: none; }
@media (max-width: 1280px) {
  [data-tui-role="stopCard"] > .a2ui-col { grid-template-columns: 64px minmax(0, 1fr); }
  [data-tui-role="stopCard"] .a2ui-img-mediumFeature { width: 64px; height: 64px; }
  [data-tui-role="stopCard"] [data-tui-role="ratingBadge"] { top: 46px; }
  [data-tui-role="stopCard"] .a2ui-img-icon { display: none; }
}

/* Slightly larger stop thumbnails on wide screens: keep the timeline visual */
@media (min-width: 1441px) {
  [data-tui-role="stopCard"] > .a2ui-col { grid-template-columns: 92px minmax(0, 1fr); }
  [data-tui-role="stopCard"] .a2ui-img-mediumFeature { width: 92px; height: 92px; }
}
