/* dvh fallback for pre-2022 browsers */
@supports not (height: 1dvh) {
  .h-dvh { height: 100vh; }
  .w-dvw { width: 100vw; }
}

/* ── Theme tokens ─────────────────────────────────────────────────────────
   Every color on the chat page is defined here. The .chat-ui block holds
   dark-theme defaults; .chat-ui.light overrides them for light mode.
   Toggle the `light` class on the <body> to switch themes.
   ──────────────────────────────────────────────────────────────────────── */

.chat-ui {
  /* Tailwind semantic overrides (bg-surface, text-primary, etc.) */
  --color-surface: #212121;
  --color-primary: #ececec;
  --color-sidebar: #171717;
  --color-secondary: #aaa;
  --color-muted: #888;
  --color-hover: rgba(139, 92, 246, 0.15);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-input: #2f2f2f;

  /* Surfaces */
  --chat-card: #1e1e1e;
  --chat-code-bg: #1a1a1a;
  --chat-image-bg: #161616;
  --chat-subtle-bg: #2a2a2a;

  /* Text */
  --chat-text-strong: #fff;
  --chat-text-body: #ececec;
  --chat-text-dim: #ccc;
  --chat-text-tertiary: #aaa;
  --chat-text-faint: #444;

  /* Borders */
  --chat-border: #2f2f2f;
  --chat-border-strong: #3a3a3a;
  --chat-border-hover: #555;

  /* Interactive */
  --chat-hover-subtle: rgba(255, 255, 255, 0.06);
  --chat-hover-active: rgba(255, 255, 255, 0.12);
  --chat-overlay: rgba(0, 0, 0, 0.55);

  /* Scrollbar */
  --chat-scrollbar: #424242;

  /* Accents */
  --chat-accent: #a78bfa;
  --chat-accent-light: #c4b5fd;
  --chat-accent-strong: #8b5cf6;
  --chat-accent-bg: rgba(167, 139, 250, 0.14);
  --chat-link: #818cf8;
  --chat-link-hover: #a5b4fc;
  --chat-success: #4ade80;
  --chat-star: #fbbf24;
  --chat-metric-red: #f87171;
  --chat-avatar-user: var(--color-primary);
  --chat-avatar-assistant: var(--color-primary);
  --chat-text-on-accent: #fff;

  /* Badges */
  --chat-badge-agent-bg: rgba(99, 102, 241, 0.15);
  --chat-badge-lender-bg: rgba(34, 197, 94, 0.15);

  /* Chart.js (read via getComputedStyle) */
  --chat-tooltip-bg: #2a2a2a;
  --chat-tooltip-text: #e4e4e4;
  --chat-tooltip-border: #3a3a3a;
  --chat-chart-grid: #2f2f2f;
  --chat-chart-text: #888;
  --chat-chart-pie-border: #1e1e1e;
  --chat-chart-1: #a78bfa;
  --chat-chart-2: #60a5fa;
  --chat-chart-3: #fb7185;
  --chat-chart-4: #4ade80;
  --chat-chart-5: #fb923c;
  --chat-chart-6: #38bdf8;
  --chat-chart-7: #e879f9;
  --chat-chart-8: #facc15;
  --chat-chart-9: #22d3ee;
  --chat-chart-10: #c084fc;
  --chat-chart-11: #f9a8d4;
  --chat-chart-12: #2dd4bf;

  --chat-cta-bg: var(--color-primary);
  --chat-cta-focus: var(--color-primary);

  /* Font-size scale */
  --text-chat-base: 16px;
  --text-chat-sm: 13px;
  --text-chat-micro: 11px;
}

.chat-ui.light {
  --color-surface: #ffffff;
  --color-primary: #200955;
  --color-sidebar: #ffffff;
  --color-secondary: #64748b;
  --color-muted: #94a3b8;
  --color-hover: rgba(55, 0, 182, 0.05);
  --color-border: #e2e8f0;
  --color-input: #ffffff;

  --chat-card: #ffffff;
  --chat-code-bg: #f8fafc;
  --chat-image-bg: #f1f5f9;
  --chat-subtle-bg: #f1f5f9;

  --chat-text-strong: #200955;
  --chat-text-body: #334155;
  --chat-text-dim: #475569;
  --chat-text-tertiary: #64748b;
  --chat-text-faint: #cbd5e1;

  --chat-border: #e2e8f0;
  --chat-border-strong: #cbd5e1;
  --chat-border-hover: #94a3b8;

  --chat-hover-subtle: rgba(0, 0, 0, 0.03);
  --chat-hover-active: rgba(0, 0, 0, 0.08);
  --chat-overlay: rgba(0, 0, 0, 0.25);

  --chat-scrollbar: #cbd5e1;

  --chat-accent: #3700B6;
  --chat-accent-light: #3700B6;
  --chat-accent-strong: #200955;
  --chat-accent-bg: rgba(32, 9, 85, 0.08);
  --chat-link: #3700B6;
  --chat-link-hover: #200955;
  --chat-success: #16a34a;
  --chat-star: #f59e0b;
  --chat-metric-red: #dc2626;
  --chat-avatar-user: #3700B6;
  --chat-avatar-assistant: #3700B6;
  --chat-text-on-accent: #fff;

  --chat-badge-agent-bg: rgba(32, 9, 85, 0.10);
  --chat-badge-lender-bg: rgba(22, 163, 74, 0.10);

  --chat-tooltip-bg: #ffffff;
  --chat-tooltip-text: #200955;
  --chat-tooltip-border: #e2e8f0;
  --chat-chart-grid: #e2e8f0;
  --chat-chart-text: #64748b;
  --chat-chart-pie-border: #ffffff;
  --chat-chart-1: #3700B6;
  --chat-chart-2: #2563eb;
  --chat-chart-3: #e85d75;
  --chat-chart-4: #16a34a;
  --chat-chart-5: #ea8c1f;
  --chat-chart-6: #0ea5e9;
  --chat-chart-7: #d946ef;
  --chat-chart-8: #eab308;
  --chat-chart-9: #06b6d4;
  --chat-chart-10: #8b5cf6;
  --chat-chart-11: #f472b6;
  --chat-chart-12: #14b8a6;

  --chat-cta-bg: #3700B6;
  --chat-cta-focus: #3700B6;

  /* Tailwind @theme overrides — keep in sync with application.tailwind.css */
  --color-chat-card: #ffffff;
  --color-chat-text-strong: #200955;
  --color-chat-text-body: #334155;
  --color-chat-text-dim: #475569;
  --color-chat-text-tertiary: #64748b;
  --color-chat-text-faint: #cbd5e1;
  --color-chat-border: #e2e8f0;
  --color-chat-border-strong: #cbd5e1;
  --color-chat-accent: #3700B6;
  --color-chat-accent-strong: #200955;
  --color-chat-accent-bg: rgba(32, 9, 85, 0.08);
  --color-chat-cta: #3700B6;
  --color-chat-link: #3700B6;
  --color-chat-link-hover: #200955;
  --color-chat-success: #16a34a;
  --color-chat-error: #dc2626;
  --color-chat-overlay: rgba(0, 0, 0, 0.25);
  --color-chat-text-on-accent: #fff;
}

.chat-ui.light .thinking-phrase {
  background: linear-gradient(
    90deg,
    #cbd5e1 0%,
    #94a3b8 35%,
    #94a3b8 50%,
    #94a3b8 65%,
    #cbd5e1 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Layout ────────────────────────────────────────────────────────────── */

/* Sidebar — desktop only (mobile uses Tailwind utility classes for drawer) */
@media (min-width: 768px) {
  #sidebar {
    width: 300px;
  }

  #sidebar.animate-width {
    transition: width 200ms ease;
  }

  #sidebar.collapsed {
    width: 56px;
  }
}

#sidebar {
  overflow: hidden;
}

/* Backdrop fade transition */
.sidebar-backdrop-enter-active,
.sidebar-backdrop-leave-active {
  transition: opacity 200ms ease;
}
.sidebar-backdrop-enter-from,
.sidebar-backdrop-leave-to {
  opacity: 0;
}

#sidebar.collapsed .label-text,
#sidebar.collapsed .collapse-toggle,
#sidebar.collapsed .sidebar-recents,
#sidebar.collapsed .user-info {
  display: none;
}

#sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

#sidebar.collapsed .nav-item {
  width: 36px;
  height: 36px;
  padding: 0;
  gap: 0;
  justify-content: center;
  margin: 0 auto;
}

#sidebar.collapsed .user-section {
  justify-content: center;
  gap: 0;
  padding: 8px 0;
}

#sidebar.collapsed .user-section:hover {
  background: transparent;
}

#sidebar.collapsed .logo-btn:hover .logo-icon {
  display: none;
}

#sidebar.collapsed .logo-btn:hover .drawer-icon {
  display: block;
  color: var(--color-primary);
}

/* Scrollbar */
.chat-scroll-area {
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--chat-scrollbar) transparent;
}
.chat-scroll-area::-webkit-scrollbar { width: 6px; }
.chat-scroll-area::-webkit-scrollbar-thumb { background: var(--chat-scrollbar); border-radius: 6px; }

/* Header fade overlay */
.header-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 24px;
  background: linear-gradient(to bottom, var(--color-surface), transparent);
  pointer-events: none;
}

/* ── Composer attachment previews ──────────────────────────────────────── */

.composer-previews {
  scrollbar-width: none;
}
.composer-previews::-webkit-scrollbar { display: none; }

/* ── Messages ──────────────────────────────────────────────────────────── */

.conversation-container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px 280px;
}

@media (min-width: 768px) {
  .conversation-container {
    padding: 24px 24px 280px;
  }
}

.message {
  display: flex;
  gap: 16px;
  padding: 16px 0;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-chat-micro);
  font-weight: 600;
}

.message.user {
  justify-content: flex-end;
}

.message.latest {
  scroll-margin-bottom: 280px;
}

.message-bubble {
  background: var(--color-input);
  border-radius: 20px;
  padding: 10px 16px;
  max-width: 80%;
  font-size: var(--text-chat-base);
  line-height: 1.6;
  color: var(--chat-text-body);
}

.message-bubble p {
  margin: 0;
}

.user-bubble {
  max-width: 100%;
}

.message-avatar.user {
  background: var(--chat-avatar-user);
  color: var(--chat-text-on-accent);
}

.message-avatar.assistant {
  background: var(--chat-avatar-assistant);
  color: var(--chat-text-on-accent);
}

.message-avatar.assistant svg {
  width: 16px;
  height: 16px;
  transform: translateY(-1px);
}

.message-content {
  flex: 1;
  min-width: 0;
  font-size: var(--text-chat-base);
  line-height: 1.6;
  color: var(--chat-text-body);
}

.message-content p {
  margin-bottom: 8px;
}

.message-content p:last-child {
  margin-bottom: 0;
}

/* ── Markdown body ─────────────────────────────────────────────────────── */

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  font-weight: 600;
  color: var(--color-primary);
  margin: 16px 0 8px;
}

.markdown-body h1 { font-size: 1.5em; }
.markdown-body h2 { font-size: 1.25em; }
.markdown-body h3 { font-size: 1.1em; }

.markdown-body h1:first-child,
.markdown-body h2:first-child,
.markdown-body h3:first-child {
  margin-top: 0;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.5em;
  margin-bottom: 12px;
}

.markdown-body ul { list-style: disc; }
.markdown-body ol { list-style: decimal; }

.markdown-body li {
  margin-bottom: 4px;
}

.markdown-body li > p {
  margin-bottom: 4px;
}

.markdown-body strong {
  font-weight: 600;
  color: var(--chat-text-strong);
}

.markdown-body em {
  font-style: italic;
}

.markdown-body code {
  background: var(--chat-subtle-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: var(--text-chat-sm);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.markdown-body pre {
  background: var(--chat-code-bg);
  border: 1px solid var(--chat-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--chat-scrollbar) transparent;
}

.markdown-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: var(--text-chat-sm);
  line-height: 1.5;
}

.markdown-body blockquote {
  border-left: 3px solid var(--chat-text-faint);
  padding-left: 14px;
  margin: 12px 0;
  font-size: var(--text-chat-sm);
  color: var(--chat-text-tertiary);
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--chat-border);
  margin: 16px 0;
}

.markdown-body table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: var(--text-chat-base);
  scrollbar-width: thin;
  scrollbar-color: var(--chat-scrollbar) transparent;
}

.markdown-body table::-webkit-scrollbar { height: 6px; }
.markdown-body table::-webkit-scrollbar-thumb { background: var(--chat-scrollbar); border-radius: 6px; }

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--chat-border);
  padding: 8px 12px;
  text-align: left;
}

.markdown-body th {
  background: var(--chat-code-bg);
  font-weight: 600;
}

.markdown-body a {
  color: var(--chat-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.markdown-body a:hover {
  color: var(--chat-link-hover);
}

/* ── Thinking block ────────────────────────────────────────────────────── */

.thinking-block {
  margin-bottom: 8px;
}

.thinking-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: normal;
  color: var(--chat-text-tertiary);
  user-select: none;
  padding: 2px 0;
}

.thinking-header svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.thinking-label {
  color: inherit;
}

.thinking-header .chevron {
  transition: transform 0.2s ease;
}

.thinking-block.collapsed .chevron {
  transform: rotate(-90deg);
}

.thinking-body {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 500px;
  opacity: 1;
}

.thinking-block.collapsed .thinking-body {
  max-height: 0;
  opacity: 0;
}

.thinking-body-inner {
  padding: 8px 0 4px 14px;
  border-left: 3px solid var(--chat-text-faint);
  margin-left: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--chat-text-tertiary);
}

.thinking-phrase {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--color-muted) 0%,
    var(--color-secondary) 35%,
    var(--color-secondary) 50%,
    var(--color-secondary) 65%,
    var(--color-muted) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2.5s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Typewriter cursor */
.typing-cursor {
  display: inline;
  color: var(--chat-text-tertiary);
  font-weight: 400;
  margin-left: 1px;
  animation: cursor-blink 0.8s steps(2, start) infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Suggested-reply chips ─────────────────────────────────────────────── */

.suggested-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: var(--text-chat-base);
  font-weight: 500;
  line-height: 1.4;
  color: var(--chat-text-dim);
  background: transparent;
  border: 1px solid var(--chat-border-strong);
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.chip-btn:hover {
  background: var(--color-hover);
  border-color: var(--chat-border-hover);
  color: var(--chat-text-strong);
}

.chip-btn:active {
  background: var(--chat-hover-active);
}

.chat-ui.light .chip-btn {
  border-color: color-mix(in srgb, var(--chat-accent-strong) 25%, transparent);
  color: var(--chat-text-strong);
  background: #ffffff;
  font-weight: 500;
}

.chat-ui.light .chip-btn:hover {
  background: var(--chat-accent-bg);
  border-color: color-mix(in srgb, var(--chat-accent-strong) 40%, transparent);
  color: var(--chat-text-strong);
}

.chat-ui.light .chip-btn:active {
  background: color-mix(in srgb, var(--chat-accent) 14%, transparent);
}

.chat-ui.light .message-bubble {
  border: 1px solid var(--color-border);
}

.chat-ui.light .user-bubble {
  background: var(--chat-accent);
  color: var(--chat-text-on-accent, #fff);
  border: none;
}

.chat-ui.light .user-bubble p {
  color: var(--chat-text-on-accent, #fff);
}

.chat-ui.light #sidebar {
  border-right: 1px solid var(--color-border);
}

.chat-ui.light .chat-map-info {
  background: var(--chat-avatar-assistant);
  border-color: var(--chat-avatar-assistant);
}

.chat-ui.light .chat-map-info-title,
.chat-ui.light .chat-map-info-desc {
  color: var(--chat-text-on-accent);
}

/* ── Response Actions ──────────────────────────────────────────────────── */

.response-actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.response-action-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--chat-text-tertiary);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.response-action-btn:hover {
  color: var(--chat-text-body);
  background: var(--color-hover);
}

.response-action-btn.active {
  color: var(--chat-text-body);
}

.chat-ui.light .response-action-btn.active {
  color: var(--chat-avatar-assistant);
}

/* ── Pinned input (active chat) ────────────────────────────────────────── */

.input-area.pinned {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 12px 0;
  background: linear-gradient(transparent, var(--color-surface) 40%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .input-area.pinned {
    padding: 0 24px 0;
  }
}

.input-area.pinned > * {
  pointer-events: auto;
}

/* ── Card Carousel (shared shell) ──────────────────────────────────────── */

.card-carousel {
  position: relative;
  margin: 16px -8px;
}

.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 8px 8px;
}

.carousel-track::-webkit-scrollbar { display: none; }

/* ── Property Cards ────────────────────────────────────────────────────── */

.property-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: var(--chat-card);
  border: 1px solid var(--chat-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  border-color: var(--chat-border-hover);
}

.property-card.no-link { cursor: default; }

.property-card-image {
  position: relative;
  height: 130px;
  background: var(--chat-image-bg);
  overflow: hidden;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chat-text-faint);
}

.property-card-highlight {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: var(--text-chat-micro);
  font-weight: 600;
  color: var(--chat-accent-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.chat-ui.light .property-card-highlight {
  background: var(--chat-accent);
  backdrop-filter: none;
  color: var(--chat-text-on-accent);
}

.property-card-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--chat-text-strong);
}

.property-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.property-card-address {
  font-size: var(--text-chat-sm);
  font-weight: 500;
  color: var(--chat-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}

.property-card-location {
  font-size: var(--text-chat-sm);
  color: var(--chat-text-tertiary);
}

.property-card-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-chat-sm);
  color: var(--chat-text-tertiary);
  margin-top: 4px;
}

.property-card-stats span + span::before {
  content: "|";
  margin-right: 6px;
  opacity: 0.4;
}

.property-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--chat-subtle-bg);
}

.property-card-metric {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.property-card-metric .metric-value {
  font-size: var(--text-chat-base);
  font-weight: 600;
  color: var(--chat-text-strong);
}

.property-card-metric .metric-label {
  font-size: var(--text-chat-micro);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.metric-suffix {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--chat-text-tertiary);
}

.carousel-arrow {
  display: none;
}

/* ── Airbnb Cards ──────────────────────────────────────────────────────── */

.airbnb-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: var(--chat-card);
  border: 1px solid var(--chat-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.airbnb-card:hover {
  border-color: var(--chat-border-hover);
}

.airbnb-card.no-link { cursor: default; }
.airbnb-card.no-link:hover { border-color: inherit; }

.airbnb-card-image {
  position: relative;
  height: 130px;
  background: var(--chat-image-bg);
  overflow: hidden;
}

.airbnb-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.airbnb-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chat-text-faint);
}

.airbnb-card-rating {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: var(--text-chat-micro);
  font-weight: 600;
  color: var(--chat-text-on-accent);
  display: flex;
  align-items: center;
  gap: 3px;
}

.airbnb-card-rating svg {
  width: 11px;
  height: 11px;
  color: var(--chat-star);
  transform: translateY(-1px);
}

.airbnb-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.airbnb-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--chat-text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.airbnb-card-stats {
  display: flex;
  gap: 6px;
  font-size: var(--text-chat-sm);
  color: var(--chat-text-tertiary);
  margin-top: 4px;
}

.airbnb-card-stats span + span::before {
  content: "|";
  margin-right: 6px;
  opacity: 0.4;
}

.airbnb-card-address {
  font-size: var(--text-chat-sm);
  font-weight: 500;
  color: var(--chat-text-dim);
  margin-top: 4px;
}

.airbnb-card-location {
  font-size: var(--text-chat-sm);
  color: var(--chat-text-tertiary);
}

.airbnb-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--chat-subtle-bg);
}

.airbnb-card-metric {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.airbnb-card-metric .metric-value {
  font-size: var(--text-chat-base);
  font-weight: 600;
  color: var(--chat-text-strong);
}

.airbnb-card-metric .metric-label {
  font-size: var(--text-chat-micro);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Partner Cards ─────────────────────────────────────────────────────── */

.partner-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: var(--chat-card);
  border: 1px solid var(--chat-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.partner-card:hover {
  border-color: var(--chat-border-hover);
}

.partner-card.no-link { cursor: default; }
.partner-card.no-link:hover { border-color: inherit; }

.partner-card-header {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 16px 12px 0;
}

.partner-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--chat-image-bg);
  flex-shrink: 0;
}

.partner-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-card-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chat-text-faint);
}

.partner-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: var(--text-chat-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.partner-card-badge--agent {
  background: var(--chat-badge-agent-bg);
  color: var(--chat-link);
}

.partner-card-badge--lender {
  background: var(--chat-badge-lender-bg);
  color: var(--chat-success);
}

.partner-card-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  text-align: center;
}

.partner-card-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--chat-text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-card-company {
  font-size: var(--text-chat-sm);
  color: var(--chat-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-card-geo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: var(--text-chat-sm);
  color: var(--color-muted);
  margin-top: 2px;
}

.partner-card-description {
  font-size: var(--text-chat-sm);
  color: var(--chat-text-tertiary);
  margin-top: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.partner-card-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--chat-subtle-bg);
}

.partner-card-stars {
  display: flex;
  gap: 1px;
  color: var(--chat-star);
}

.partner-card-stars svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

.partner-card-rating-text {
  font-size: var(--text-chat-sm);
  font-weight: 500;
  color: var(--chat-text-tertiary);
}

/* ── Chat Map ──────────────────────────────────────────────────────────── */

.chat-map-wrapper {
  margin: 12px 0;
  position: relative;
}

.chat-map-container {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--chat-border);
}

.chat-map-caption {
  margin-top: 6px;
  font-size: 14px;
  color: var(--chat-text-tertiary);
  line-height: 1.4;
}

.chat-map-pin {
  cursor: pointer;
  transition: transform 0.15s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.chat-map-pin:hover {
  transform: scale(1.15);
}

.chat-map-pin.has-label {
  cursor: pointer;
  filter: none;
}

.chat-map-pin-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: var(--text-chat-micro);
  font-weight: 600;
  color: var(--chat-text-on-accent);
  background: var(--chat-accent);
  border-radius: 9999px;
  white-space: nowrap;
}

.chat-map-info {
  position: absolute;
  transform: translate(-50%, -100%);
  background: var(--chat-card);
  border: 1px solid var(--chat-border-strong);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 140px;
  max-width: 220px;
  z-index: 10;
  pointer-events: auto;
}

.chat-map-info-title {
  font-size: var(--text-chat-sm);
  font-weight: 600;
  color: var(--chat-text-body);
  line-height: 1.3;
}

.chat-map-info-desc {
  font-size: var(--text-chat-sm);
  color: var(--chat-text-tertiary);
  margin-top: 2px;
  line-height: 1.4;
}

/* Card-based map tooltips (reuses full card components at 0.75 scale) */
.chat-map-card-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 10;
  pointer-events: auto;
  width: 220px;
}

.chat-map-card-tooltip > .airbnb-card,
.chat-map-card-tooltip > .property-card {
  width: 220px;
  flex: none;
  transform: scale(0.9);
  transform-origin: bottom center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ── Calculator Widget ─────────────────────────────────────────────────── */

.chat-calculator {
  margin: 12px 0;
  background: var(--chat-card);
  border: 1px solid var(--chat-border);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
}

.calc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 0;
}

.calc-icon {
  color: var(--chat-accent);
  flex-shrink: 0;
}

.calc-title {
  font-size: var(--text-chat-base);
  font-weight: 600;
  color: var(--chat-text-strong);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-label {
  font-size: var(--text-chat-sm);
  font-weight: 500;
  color: var(--chat-text-body);
}

.calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  font-family: inherit;
  font-size: var(--text-chat-base);
  font-weight: 500;
  color: var(--chat-text-body);
  background: var(--color-input);
  border: 1px solid var(--chat-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease;
  -moz-appearance: textfield;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-input:focus {
  border-color: var(--chat-accent-strong);
}

.calc-input.has-prefix {
  padding-left: 24px;
}

.calc-input.has-suffix {
  padding-right: 24px;
}

.calc-input-addon {
  position: absolute;
  font-size: var(--text-chat-base);
  font-weight: 500;
  color: var(--color-muted);
  pointer-events: none;
}

.calc-input-prefix {
  left: 10px;
}

.calc-input-suffix {
  right: 10px;
}

.calc-select-wrap {
  position: relative;
}

.calc-select {
  width: 100%;
  height: 38px;
  padding: 0 28px 0 10px;
  font-family: inherit;
  font-size: var(--text-chat-base);
  font-weight: 500;
  color: var(--chat-text-body);
  background: var(--color-input);
  border: 1px solid var(--chat-border);
  border-radius: 8px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.calc-select:focus {
  border-color: var(--chat-accent-strong);
}

.calc-select option {
  background: var(--chat-card);
  color: var(--chat-text-body);
}

.calc-select-chevron {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  pointer-events: none;
}

.calc-results {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--chat-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-output-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.calc-output-label {
  font-size: var(--text-chat-sm);
  font-weight: 500;
  color: var(--chat-text-body);
}

.calc-output-value {
  font-size: var(--text-chat-base);
  font-weight: 600;
  color: var(--chat-text-strong);
  font-variant-numeric: tabular-nums;
}

.calc-output-highlight .calc-output-label {
  font-weight: 500;
  color: var(--chat-accent-light);
}

.calc-output-highlight .calc-output-value {
  font-size: var(--text-chat-base);
  font-weight: 700;
  color: var(--chat-accent);
}

/* ── Chart Widget ──────────────────────────────────────────────────────── */

.chat-chart {
  margin: 12px 0;
  background: var(--chat-card);
  border: 1px solid var(--chat-border);
  border-radius: 12px;
  overflow: hidden;
}

.chat-chart-title {
  padding: 14px 16px 0;
  font-size: var(--text-chat-base);
  font-weight: 600;
  color: var(--chat-text-strong);
}

.chat-chart-subtitle {
  padding: 2px 16px 0;
  font-size: var(--text-chat-sm);
  color: var(--chat-text-tertiary);
}

.chat-chart-canvas {
  padding: 8px 12px 12px;
  height: 220px;
}

/* ── Starter prompt suggestions ────────────────────────────────────────── */

.starter-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: var(--text-chat-base);
  color: var(--chat-text-tertiary);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.starter-prompt:hover {
  background: var(--color-hover);
  color: var(--chat-accent-strong);
}

.starter-prompt-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.starter-prompt-arrow,
.search-result-arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) {
  .starter-prompt:hover .starter-prompt-arrow,
  .group\/result:hover .search-result-arrow {
    opacity: 1;
    color: var(--chat-accent-strong);
    transform: translateX(0);
  }
}





/* ── Chat disclaimer ───────────────────────────────────────────────────── */

.chat-disclaimer {
  text-align: center;
  font-size: 14px;
  color: var(--chat-text-tertiary);
  padding: 4px 24px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 639px) {
  .chat-disclaimer {
    padding: 2px 12px 2px;
  }
}

/* ── Onboarding dialog ─────────────────────────────────────────────────
   The shell (.onboarding-dialog) has a fixed width AND height so that
   transitioning between steps never resizes or repositions the panel. Each
   step's content lives inside .onboarding-step which fills the dialog and
   is the element animated by the Vue <Transition>. */

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--chat-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.onboarding-dialog {
  position: relative;
  width: 100%;
  /* Sized so the question step's 640px option column sits inside the
     .onboarding-step horizontal padding (160px each side):
     640 + 160 + 160 = 960. Yields a 3:2 dialog (960 × 640). */
  max-width: 960px;
  height: 640px;
  max-height: calc(100dvh - 48px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.55),
    0 18px 30px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.onboarding-mobile-header {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 56px;
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

@media (max-width: 639px) {
  .onboarding-mobile-header {
    display: flex;
  }
}

.onboarding-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--chat-accent-bg), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Step container — each rendered step fills the dialog and is animated as a
   single unit. Using flex column + space-between anchors title/content/footer
   to top/middle/bottom so layouts feel consistent across steps. */
.onboarding-step {
  /* Single source of truth for the card "slot" used by both the intro
     marquee (PropertyCard) and the question grid (.onboarding-option).
     Keeping these identical is what makes the header above and footer
     below stay perfectly anchored as the user moves through the flow. */
  --onboarding-card-w: 240px;
  --onboarding-card-h: 300px;
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center the stack and let `gap` control spacing directly. Using
     space-between would let the dialog's free vertical space inflate the
     gaps regardless of this value, which makes the layout feel airier the
     emptier the dialog is — the opposite of "tight". */
  justify-content: center;
  gap: 24px;
  padding: 44px 160px 44px;
  width: 100%;
}

.onboarding-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
  padding: 0;
}

.onboarding-title {
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--color-primary);
  margin: 0;
  text-wrap: balance;
}

.onboarding-subtitle {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-secondary);
  white-space: nowrap;
  margin: 0;
}

@media (max-width: 640px) {
  .onboarding-subtitle {
    white-space: normal;
    max-width: 480px;
  }
}

/* On question screens the description is allowed to wrap (it's longer copy). */
.onboarding-subtitle-wrap {
  white-space: normal;
  max-width: 620px;
}

/* Intro carousel — full bleed, edge to edge of the dialog. Cancels out the
   .onboarding-step horizontal padding (160px each side) so the cards reach
   the dialog's inner border on both sides. */
.onboarding-marquee {
  position: relative;
  width: calc(100% + 320px);
  margin: 0 -160px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.onboarding-marquee-track {
  display: flex;
  width: max-content;
  animation: onboarding-marquee 38s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.onboarding-marquee-card {
  /* Fixed margin (not flex gap) so the duplicated track loops back to
     translateX(-50%) without a 1-gap visual jump. */
  margin-right: 16px;
  flex: 0 0 var(--onboarding-card-w);
  height: var(--onboarding-card-h);
}

/* Inside the marquee, anchor the metrics row to the bottom of the card so
   the locked height doesn't leave a dead band of empty space below the
   property details. */
.onboarding-marquee-card .property-card-metrics {
  margin-top: auto;
}

@keyframes onboarding-marquee {
  from { -webkit-transform: translateX(0); transform: translateX(0); }
  to   { -webkit-transform: translateX(var(--marquee-offset, -50%)); transform: translateX(var(--marquee-offset, -50%)); }
}

@media (max-width: 639px) {
  .onboarding-marquee-track { animation-duration: 60s; }
  .onboarding-marquee {
    zoom: 1.11;
    --text-chat-base: 16px;
    --text-chat-sm: 13px;
    --text-chat-micro: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-marquee-track { animation-duration: 240s; }
}

/* Options — always a single stacked column. The desktop stack is sized so
   the trio + gaps equals the height of the intro marquee's property cards
   (var(--onboarding-card-h) = 300px), keeping the visual "slot" between
   intro and question steps anchored. Width is generous on desktop to give
   visual presence inside the 1040px dialog; collapsed on mobile in the
   media query below.
   Math: 3 × option-height + 2 × 12px gap = 300px → option-height = 92px. */
.onboarding-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  gap: 12px;
}

.onboarding-option {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  text-align: left;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  /* Right padding reserves room for the absolute-positioned check icon. */
  padding: 14px 56px 14px 20px;
  width: 100%;
  height: 92px;
  color: var(--color-primary);
  font-family: inherit;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 120ms ease,
    box-shadow 180ms ease;
}

/* Below ~900px (phones, small tablets) the dialog itself shrinks. The
   desktop horizontal padding (160px each side) was tuned for a 960px-wide
   shell and would obliterate content at phone widths, so we collapse it to
   a phone-friendly gutter and let everything that depends on it (progress
   padding, step padding, marquee bleed math) follow suit. The option column
   stays single-stack with content-sized height to avoid clipping wrapped
   descriptions. */
@media (max-width: 900px) {
  .onboarding-overlay {
    padding: 12px;
  }

  .onboarding-step {
    padding: 32px 24px 32px;
  }

  .onboarding-marquee {
    width: calc(100% + 48px);
    margin: 0 -24px;
  }

  .onboarding-options {
    max-width: 480px;
  }

  .onboarding-option {
    height: auto;
    min-height: 80px;
  }
}

@media (max-width: 639px) {
  .onboarding-overlay {
    padding: 0;
  }

  .onboarding-dialog {
    max-width: none;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: none;
  }

  .onboarding-step {
    justify-content: flex-start;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 0;
  }

  .onboarding-content {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .onboarding-options {
    min-height: 264px;
  }

  .onboarding-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 0 12px 18px;
  }
}

.onboarding-option:hover {
  border-color: var(--chat-border-hover);
  background: var(--chat-hover-subtle);
}

.onboarding-option:active {
  transform: translateY(0);
}

.onboarding-option:focus-visible {
  outline: 2px solid var(--chat-accent);
  outline-offset: 2px;
}

.onboarding-option.selected {
  border-color: var(--chat-accent);
  background: var(--chat-accent-bg);
  box-shadow: 0 0 0 1px var(--chat-accent), 0 8px 24px -12px rgba(139, 92, 246, 0.45);
}

.onboarding-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.onboarding-option.disabled:hover {
  border-color: var(--color-border);
  background: transparent;
  transform: none;
}

.onboarding-option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.onboarding-option-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}

.onboarding-option-desc {
  font-size: var(--text-chat-base);
  color: var(--color-secondary);
  line-height: 1.4;
}

.onboarding-option-check {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--chat-border-strong);
  color: transparent;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.onboarding-option-check.visible {
  background: var(--chat-accent);
  border-color: var(--chat-accent);
  color: var(--color-surface);
  /* translateY(-50%) carries forward from the base rule's vertical centering;
     transforms don't compound across rules, so it has to be repeated here. */
  transform: translateY(-50%) scale(1.05);
}

.onboarding-footer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: stretch;
}

.onboarding-footer-center {
  justify-content: center;
  padding-top: 12px;
}

.onboarding-cta {
  appearance: none;
  border: none;
  background: var(--chat-cta-bg);
  color: var(--color-surface);
  font-family: inherit;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  width: 260px;
  text-align: center;
  border-radius: 999px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.onboarding-cta:hover {
  opacity: 0.88;
}

.onboarding-cta:active {
  transform: none;
}

.onboarding-cta:focus-visible {
  outline: 2px solid var(--chat-cta-focus);
  outline-offset: 3px;
}

.onboarding-cta:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 639px) {
  .onboarding-cta {
    width: 100%;
    height: 60px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Step-to-step transition — fade + small slide. The dialog shell stays put;
   only the .onboarding-step contents animate. The dialog only ever advances
   forward, so there's no `step-back` direction. */
.step-forward-leave-active .onboarding-content,
.step-forward-leave-active .onboarding-marquee,
.step-forward-leave-active .onboarding-options {
  transition: opacity 100ms ease-in;
}

.step-forward-leave-to .onboarding-content,
.step-forward-leave-to .onboarding-marquee,
.step-forward-leave-to .onboarding-options { opacity: 0; }

.step-forward-enter-active .onboarding-content {
  transition: opacity 250ms ease-out, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
}
.step-forward-enter-active .onboarding-marquee,
.step-forward-enter-active .onboarding-options {
  transition: opacity 250ms ease-out, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 80ms;
}

.step-forward-enter-from .onboarding-content,
.step-forward-enter-from .onboarding-marquee,
.step-forward-enter-from .onboarding-options {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  .step-forward-enter-active,
  .step-forward-leave-active {
    transition-duration: 80ms;
    transform: none !important;
  }
}

/* Match the 0.9rem root scale from additional.css so the property lightbox
   renders at the same visual size as it does on /airbnbs-for-sale pages. */
.chat-lightbox {
  zoom: 0.9;
}

.chat-lightbox .fixed.overflow-y-scroll {
  bottom: 0;
  height: auto;
}
