/* ==========================================================================
   Saathi chat — launcher, panel, messages, cards, hand-off.
   Rebuilt from scratch 27 Sep 2026. Namespaced .sx-* / #saathi-*; nothing
   here styles the rest of the site. Behaviour: assets/js/saathi-chat.js.
   ========================================================================== */

#saathi-fab, #saathi-fab-bubble, #saathi-panel {
  --sx-ink: #13241b;
  --sx-ink-2: #3d4f45;
  --sx-muted: #6b7a71;
  --sx-line: #e6e1d6;
  --sx-line-2: #d9d3c5;
  --sx-paper: #f6f3ec;
  --sx-surface: #ffffff;
  --sx-night: #12291d;
  --sx-night-2: #1d3a2a;
  --sx-brand: #2e8553;
  --sx-brand-deep: #1f5e3a;
  --sx-brand-wash: #e7f2ea;
  --sx-accent: #b9492f;
  --sx-amber: #b7791f;
  --sx-amber-wash: #fdf6e7;
  --sx-radius: 18px;
  --sx-shadow: 0 24px 60px -12px rgba(18, 41, 29, .32), 0 2px 8px rgba(18, 41, 29, .08);
  --sx-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--sx-font);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
/* Site-wide element rules (section/footer padding, heading sizes, button minimums)
   must not reach inside the widget. */
#saathi-panel > .sx-head, #saathi-panel > .sx-body, #saathi-panel > .sx-compose, #saathi-panel form { margin: 0; }
#saathi-panel.sx-panel { padding: 0; }
#saathi-panel button { min-height: 0; min-width: 0; line-height: 1; text-transform: none; letter-spacing: normal; box-shadow: none; }
#saathi-panel textarea { min-height: 0; }
#saathi-panel *, #saathi-panel *::before, #saathi-panel *::after,
#saathi-fab *, #saathi-fab-bubble * { box-sizing: border-box; }
.sx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Launcher ─────────────────────────────────────────────────────────── */
.sx-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 9990;
  display: inline-flex; align-items: center; gap: 11px;
  height: 60px; padding: 6px 20px 6px 6px; margin: 0;
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #0e2418 0%, #1a442e 100%); color: #fff; text-align: left;
  box-shadow: 0 16px 36px -8px rgba(18, 41, 29, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s cubic-bezier(.16, 1, .3, 1), padding .2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sx-fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 42px -8px rgba(26, 68, 46, .65), 0 0 0 2px rgba(63, 191, 116, .3);
}
.sx-fab:focus-visible { outline: 3px solid #9fd3b3; outline-offset: 3px; }
.sx-fab-face {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  background: #fdfbf6; display: grid; place-items: center; flex: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.sx-fab-face img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.sx-fab-text { display: flex; flex-direction: column; line-height: 1.15; }
.sx-fab-text strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 4px; }
.sx-fab-sparkle { font-size: 12px; }
.sx-fab-text small { font-size: 11.5px; opacity: .85; margin-top: 2px; color: #a3dec0; font-weight: 500; }
.sx-fab-close { display: none; }
.sx-fab.is-open { padding: 6px; }
.sx-fab.is-open .sx-fab-text { display: none; }
.sx-fab.is-open .sx-fab-face { display: none; }
.sx-fab.is-open .sx-fab-close { display: block; width: 48px; height: 48px; padding: 14px; }

.sx-live {
  position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px;
  border-radius: 50%; background: #22c55e; border: 2.5px solid #0e2418;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
  animation: sxLivePulse 2s infinite;
}
@keyframes sxLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── Proactive nudge ──────────────────────────────────────────────────── */
.sx-nudge {
  position: fixed; right: 24px; bottom: 98px; z-index: 9990;
  display: flex; align-items: flex-start; gap: 4px;
  max-width: 290px; padding: 4px; border-radius: 18px;
  background: var(--sx-surface); color: var(--sx-ink);
  box-shadow: var(--sx-shadow); border: 1px solid var(--sx-line);
  animation: sxRise .32s cubic-bezier(.16, 1, .3, 1);
}
.sx-nudge[hidden] { display: none; }
.sx-nudge::after {
  content: ""; position: absolute; right: 30px; bottom: -7px; width: 14px; height: 14px;
  background: var(--sx-surface); border-right: 1px solid var(--sx-line); border-bottom: 1px solid var(--sx-line);
  transform: rotate(45deg);
}
.sx-nudge-body { display: block; flex: 1; border: 0; background: none; padding: 11px 4px 11px 13px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.sx-nudge-text { font-size: 13.5px; line-height: 1.45; font-weight: 550; }
.sx-nudge-x { border: 0; background: none; width: 28px; height: 28px; border-radius: 50%; color: var(--sx-muted); cursor: pointer; display: grid; place-items: center; flex: none; }
.sx-nudge-x:hover { background: var(--sx-paper); color: var(--sx-ink); }

/* ── Panel ────────────────────────────────────────────────────────────── */
.sx-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 10050;
  width: 416px; height: min(720px, calc(100vh - 116px)); height: min(720px, calc(100dvh - 116px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fbf9f5; color: var(--sx-ink);
  border-radius: 24px;
  box-shadow: 0 28px 70px -12px rgba(12, 30, 20, .38), 0 4px 16px rgba(0, 0, 0, .06);
  border: 1px solid rgba(226, 221, 212, .85);
  transform-origin: 100% 100%;
  animation: sxOpen .24s cubic-bezier(.16, 1, .3, 1);
  will-change: transform, opacity;
}
.sx-panel[hidden] { display: none; }

.sx-head {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px 13px 16px;
  background: linear-gradient(135deg, #0e2317 0%, #193f2c 100%);
  color: #fff; flex: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sx-back { display: none !important; }
.sx-avatar {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: #fdfbf6; display: grid; place-items: center; flex: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2), 0 0 0 2px rgba(255, 255, 255, .15);
}
.sx-avatar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.sx-head-text { flex: 1; min-width: 0; }
.sx-head-text .sx-title {
  margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em;
  line-height: 1.2; color: #fff; display: flex; align-items: center; gap: 7px;
}
.sx-tag {
  font-size: 10px; font-weight: 750; letter-spacing: .06em; padding: 2px 7px;
  border-radius: 6px; background: linear-gradient(135deg, rgba(63, 191, 116, .25) 0%, rgba(46, 133, 83, .4) 100%);
  color: #7ef5ab; border: 1px solid rgba(126, 245, 171, .3);
}
.sx-head-text .sx-sub {
  margin: 3px 0 0; font-size: 12px; color: rgba(255, 255, 255, .78);
  display: flex; align-items: center; gap: 6px;
}
.sx-head-text .sx-sub::before {
  content: ""; display: inline-block; width: 6.5px; height: 6.5px; border-radius: 50%;
  background: #3fbf74; box-shadow: 0 0 6px #3fbf74; flex: none;
}
.sx-head-actions { display: flex; gap: 3px; }
.sx-icon {
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: inherit;
  display: grid; place-items: center; cursor: pointer; transition: all .16s ease;
}
.sx-head .sx-icon:hover { background: rgba(255, 255, 255, .14); transform: scale(1.05); }
.sx-icon:focus-visible { outline: 2px solid #9fd3b3; outline-offset: 1px; }

.sx-body { position: relative; flex: 1; min-height: 0; }
.sx-log {
  height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: var(--sx-line-2) transparent;
}
.sx-log > * { flex-shrink: 0; }   /* never squash messages or card rows when the log overflows */
.sx-jump {
  position: absolute; right: 14px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--sx-line); background: var(--sx-surface); color: var(--sx-ink);
  box-shadow: 0 6px 16px rgba(18, 41, 29, .14); display: grid; place-items: center; cursor: pointer;
}
.sx-jump[hidden] { display: none; }

/* ── Welcome ──────────────────────────────────────────────────────────── */
.sx-welcome { padding: 6px 2px 4px; animation: sxIn .3s ease both; }
.sx-welcome-art { width: 60px; height: 60px; border-radius: 18px; background: var(--sx-surface); border: 1px solid var(--sx-line); display: grid; place-items: center; margin-bottom: 14px; overflow: hidden; }
.sx-welcome-art img { width: 54px; height: 54px; object-fit: contain; }
.sx-welcome .sx-welcome-title { margin: 0 0 6px; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--sx-ink); }
.sx-welcome p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--sx-ink-2); }
.sx-welcome p strong { color: var(--sx-ink); font-weight: 650; }
.sx-context {
  margin-top: 14px; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: var(--sx-surface); border: 1px solid var(--sx-line);
}
.sx-context-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--sx-brand-wash); color: var(--sx-brand-deep); display: grid; place-items: center; flex: none; }
.sx-context small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sx-muted); }
.sx-context span { display: block; font-size: 13.5px; font-weight: 600; color: var(--sx-ink); line-height: 1.3; }
.sx-trust { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--sx-muted); }
.sx-trust span { display: inline-flex; align-items: center; gap: 5px; }
.sx-trust svg { color: var(--sx-brand); }

/* ── Category Mood Filter Bar ─────────────────────────────────────────── */
.sx-cat-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 14px 0 10px;
  padding: 2px 2px 4px;
}
.sx-cat-bar::-webkit-scrollbar { display: none; }
.sx-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226, 221, 212, .9);
  background: var(--sx-surface);
  color: var(--sx-ink-2);
  font: inherit;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: all .16s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 1px 3px rgba(18, 41, 29, .04);
  flex: none;
}
.sx-cat-pill:hover {
  background: #fdfbf7;
  border-color: var(--sx-brand);
  color: var(--sx-brand-deep);
  transform: translateY(-1px);
}
.sx-cat-pill.is-active {
  background: linear-gradient(135deg, #1d4d35 0%, #122f20 100%);
  border-color: #1d4d35;
  color: #fff;
  box-shadow: 0 2px 8px rgba(18, 41, 29, .22);
}

/* ── Click to ask starters ────────────────────────────────────────────── */
.sx-starters {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sx-starters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.sx-starters-head span {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sx-muted);
}
.sx-starters-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: sxIn .22s cubic-bezier(.16, 1, .3, 1) both;
}
.sx-starter-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: 16px;
  background: var(--sx-surface);
  border: 1px solid rgba(226, 221, 212, .85);
  color: inherit;
  cursor: pointer;
  transition: all .18s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 2px 6px rgba(18, 41, 29, .03);
}
.sx-starter-btn:hover {
  background: #ffffff;
  border-color: rgba(46, 133, 83, .45);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 41, 29, .08);
}
.sx-starter-btn:active {
  transform: scale(.99);
}
.sx-starter-btn.is-active {
  border-color: var(--sx-brand);
  background: var(--sx-brand-wash);
}
.sx-starter-btn.is-clicked:not(.is-active) {
  opacity: .5;
  cursor: default;
}
.sx-starter-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #eaf5ee 0%, #d8ebd0 100%);
  color: var(--sx-brand-deep);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 2px 5px rgba(46, 133, 83, .08);
}
.sx-starter-ic svg {
  width: 18px;
  height: 18px;
}
.sx-starter-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sx-starter-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sx-ink);
  line-height: 1.25;
}
.sx-starter-text small {
  font-size: 11.5px;
  color: var(--sx-muted);
  line-height: 1.35;
}
.sx-starter-arr {
  color: var(--sx-muted);
  opacity: .5;
  flex: none;
  transition: transform .18s cubic-bezier(.16, 1, .3, 1), opacity .18s ease, color .18s ease;
}
.sx-starter-btn:hover .sx-starter-arr {
  opacity: 1;
  color: var(--sx-brand);
  transform: translateX(4px);
}

/* Popular destination quick-chips */
.sx-starters-dest {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--sx-line);
}
.sx-starters-subhead {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--sx-muted);
  margin-bottom: 7px;
}
.sx-dest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sx-dest-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sx-surface);
  border: 1px solid rgba(226, 221, 212, .85);
  font-size: 12px;
  font-weight: 650;
  color: var(--sx-ink);
  cursor: pointer;
  transition: all .16s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 1px 3px rgba(18, 41, 29, .03);
}
.sx-dest-chip:hover {
  background: #ffffff;
  border-color: var(--sx-brand);
  color: var(--sx-brand-deep);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(46, 133, 83, .12);
}
.sx-dest-chip:active {
  transform: scale(.96);
}
.sx-dest-chip.is-active {
  border-color: var(--sx-brand);
  background: var(--sx-brand-wash);
  color: var(--sx-brand-deep);
}
.sx-dest-chip.is-clicked:not(.is-active) {
  opacity: .5;
  cursor: default;
}

/* ── Messages ─────────────────────────────────────────────────────────── */
.sx-row { display: flex; gap: 9px; align-items: flex-end; animation: sxIn .2s cubic-bezier(.16, 1, .3, 1) both; }
.sx-row.me { justify-content: flex-end; }
.sx-row .sx-mini {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sx-surface); border: 1.5px solid var(--sx-line);
  flex: none; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.sx-row .sx-mini img { width: 26px; height: 26px; object-fit: cover; border-radius: 50%; }
.sx-row .sx-mini.ghost { visibility: hidden; }
.sx-row .sx-mini.person { background: #f7e3dc; border-color: #efc9bc; color: var(--sx-accent); font-size: 12px; font-weight: 700; }
.sx-msg {
  max-width: 86%; padding: 12px 15px; font-size: 14px; line-height: 1.55; word-wrap: break-word; overflow-wrap: anywhere;
  background: #ffffff; color: var(--sx-ink); border: 1px solid rgba(226, 221, 212, .85);
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 2px 8px rgba(18, 41, 29, .03);
}
.sx-row.me .sx-msg {
  background: linear-gradient(135deg, #18412c 0%, #0f281b 100%);
  color: #fff; border-color: transparent;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 14px rgba(15, 40, 27, .18);
}
.sx-msg.agent { border-left: 3px solid var(--sx-accent); }
.sx-agent-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--sx-accent); margin-bottom: 4px; }
.sx-agent-label em { font-style: normal; font-weight: 600; color: var(--sx-muted); }

.sx-msg p { margin: 0 0 8px; }
.sx-msg p:last-child, .sx-msg ul:last-child, .sx-msg ol:last-child { margin-bottom: 0; }
.sx-msg strong { font-weight: 650; }
.sx-msg em { font-style: italic; }
.sx-msg h3, .sx-msg h4 { font-size: 15px; font-weight: 700; margin: 10px 0 4px; line-height: 1.3; }
.sx-msg ul, .sx-msg ol { margin: 4px 0 8px; padding-left: 20px; }
.sx-msg li { margin: 3px 0; }
.sx-msg li::marker { color: var(--sx-brand); }
.sx-msg hr { border: 0; border-top: 1px solid var(--sx-line); margin: 10px 0; }
.sx-msg code { font-size: 12.5px; background: var(--sx-paper); padding: 1px 5px; border-radius: 5px; }
.sx-msg a { color: var(--sx-brand-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(31, 94, 58, .35); }
.sx-row.me .sx-msg a { color: #fff; }
.sx-msg a.sx-btn-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 14px; border-radius: 10px;
  background: var(--sx-night); color: #fff; text-decoration: none; font-weight: 650; font-size: 13.5px;
}
.sx-caret { display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--sx-brand); border-radius: 2px; animation: sxBlink 1s steps(2) infinite; }

/* ── Modern Lively Typing Indicator ──────────────────────────────────── */
.sx-typing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: #ffffff;
  border: 1px solid rgba(226, 221, 212, .85);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(18, 41, 29, .04);
}
.sx-typing-head {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 650;
  color: var(--sx-brand-deep);
}
.sx-typing-sparkle svg {
  width: 13px;
  height: 13px;
  color: var(--sx-brand);
  animation: sxSparkleSpin 3s ease-in-out infinite;
}
.sx-typing-dots {
  display: inline-flex;
  gap: 3.5px;
}
.sx-typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sx-brand);
  opacity: .3;
  animation: sxDot 1.1s infinite ease-in-out;
}
.sx-typing-dots i:nth-child(2) { animation-delay: .18s; }
.sx-typing-dots i:nth-child(3) { animation-delay: .36s; }

.sx-status {
  align-self: flex-start; margin-left: 34px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--sx-muted); animation: sxIn .2s ease both;
}
.sx-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--sx-line-2); border-top-color: var(--sx-brand); animation: sxSpin .8s linear infinite; }

.sx-notice {
  align-self: center; max-width: 92%; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.45;
  color: var(--sx-brand-deep); background: var(--sx-brand-wash); border-radius: 12px; padding: 7px 12px;
}
.sx-error { color: #9b2c1f; }
.sx-error a { color: inherit; }

/* Reply actions */
.sx-actions { display: flex; align-items: center; gap: 2px; margin: -4px 0 2px 34px; }
.sx-act {
  width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--sx-muted);
  display: grid; place-items: center; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.sx-act:hover { background: rgba(18, 41, 29, .06); color: var(--sx-ink); }
.sx-act.on { color: var(--sx-brand); }
.sx-act-note { font-size: 11.5px; color: var(--sx-muted); margin-left: 4px; }

/* ── Follow-up suggestion chips ────────────────────────────────────────── */
.sx-followups {
  margin: 6px 0 10px 34px;
  animation: sxIn .22s cubic-bezier(.16, 1, .3, 1) both;
}
.sx-followup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sx-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid rgba(46, 133, 83, .25);
  color: var(--sx-brand-deep);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.35;
  transition: all .16s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 2px 6px rgba(18, 41, 29, .04);
}
.sx-chip:hover {
  background: var(--sx-brand-wash);
  border-color: var(--sx-brand);
  color: var(--sx-brand-deep);
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 4px 12px rgba(46, 133, 83, .16);
}
.sx-chip:active {
  transform: scale(.96);
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.sx-cards {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 2px -16px 2px; padding: 2px 16px 8px 50px; scroll-padding-inline: 50px 16px; scrollbar-width: none;
  animation: sxIn .25s ease both;
}
.sx-cards::-webkit-scrollbar { display: none; }
.sx-card {
  flex: 0 0 236px; scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: 16px; overflow: hidden;
  color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.sx-cards.single .sx-card { flex-basis: calc(100% - 34px); }
.sx-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(18, 41, 29, .35); }
.sx-card-img { position: relative; height: 128px; background: #e9e4d8; }
.sx-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-card-kind {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--sx-ink); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.sx-card-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sx-card-title { font-size: 14px; font-weight: 650; line-height: 1.3; color: var(--sx-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-card-meta { font-size: 12.5px; color: var(--sx-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sx-card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sx-price small { display: block; font-size: 11px; color: var(--sx-muted); }
.sx-price b { font-size: 15px; font-weight: 700; color: var(--sx-ink); }
.sx-card-cta { padding: 7px 12px; border-radius: 999px; background: var(--sx-brand-wash); color: var(--sx-brand-deep); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.sx-card:hover .sx-card-cta { background: var(--sx-brand); color: #fff; }

.sx-quote {
  margin-left: 34px; border: 1px solid #ecd49a; background: var(--sx-amber-wash); border-radius: 16px; padding: 14px; animation: sxIn .25s ease both;
}
.sx-quote-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sx-amber); }
.sx-quote h4 { margin: 6px 0 4px; font-size: 15px; font-weight: 700; color: var(--sx-ink); }
.sx-quote p { margin: 0; font-size: 12.5px; color: var(--sx-ink-2); line-height: 1.5; }
.sx-quote-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 12px; gap: 10px; }
.sx-quote-foot b { font-size: 18px; font-weight: 750; color: var(--sx-ink); display: block; }
.sx-quote-foot small { font-size: 12px; color: var(--sx-muted); }
.sx-quote a { padding: 9px 14px; border-radius: 10px; background: var(--sx-night); color: #fff; font-weight: 650; font-size: 13px; text-decoration: none; white-space: nowrap; }

.sx-bookings { margin-left: 34px; display: flex; flex-direction: column; gap: 8px; animation: sxIn .25s ease both; }
.sx-booking { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--sx-surface); border: 1px solid var(--sx-line); }
.sx-booking div { flex: 1; min-width: 0; }
.sx-booking strong { display: block; font-size: 13.5px; font-weight: 650; }
.sx-booking span { display: block; font-size: 12px; color: var(--sx-muted); margin-top: 2px; }
.sx-booking button { border: 0; border-radius: 10px; padding: 8px 12px; background: var(--sx-night); color: #fff; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }

/* ── Hand-off to a person ─────────────────────────────────────────────── */
.sx-queue { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--sx-amber-wash); border: 1px solid #efdcaa; animation: sxIn .25s ease both; }
.sx-queue-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--sx-amber); box-shadow: 0 0 0 0 rgba(183, 121, 31, .5); animation: sxPulse 1.6s infinite; flex: none; }
.sx-queue strong { display: block; font-size: 13.5px; font-weight: 650; color: #7a4f12; }
.sx-queue span { display: block; font-size: 12px; color: #8c6a33; margin-top: 2px; }

.sx-rate { padding: 16px; border-radius: 16px; background: var(--sx-surface); border: 1px solid var(--sx-line); text-align: center; animation: sxIn .25s ease both; }
.sx-rate h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.sx-rate p { margin: 0 0 10px; font-size: 12.5px; color: var(--sx-muted); }
.sx-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 10px; }
.sx-stars button { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--sx-line-2); transition: transform .12s ease, color .12s ease; }
.sx-stars button.on, .sx-stars:hover button { color: #e8a317; }
.sx-stars button:hover ~ button { color: var(--sx-line-2); }
.sx-stars button:hover { transform: scale(1.12); }
.sx-rate textarea { width: 100%; min-height: 56px; resize: vertical; border: 1px solid var(--sx-line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; margin-bottom: 10px; background: var(--sx-paper); }
.sx-rate-submit { width: 100%; border: 0; border-radius: 10px; padding: 10px; background: var(--sx-night); color: #fff; font: inherit; font-weight: 650; font-size: 13.5px; cursor: pointer; }
.sx-rate-submit:disabled { opacity: .5; cursor: default; }
.sx-rate-done { font-size: 13px; font-weight: 600; color: var(--sx-brand-deep); line-height: 1.5; }
.sx-star-row { display: flex; justify-content: center; gap: 2px; margin-bottom: 6px; }
.sx-star-row span { color: var(--sx-line-2); display: inline-flex; }
.sx-star-row span svg { width: 18px; height: 18px; }
.sx-star-row span.on { color: #e8a317; }

.sx-closed { align-self: center; text-align: center; padding: 6px 0 2px; }
.sx-closed button { border: 0; border-radius: 999px; padding: 10px 18px; background: var(--sx-night); color: #fff; font: inherit; font-weight: 650; font-size: 13.5px; cursor: pointer; }

/* ── Past chats drawer ────────────────────────────────────────────────── */
.sx-drawer { position: absolute; inset: 0; background: var(--sx-paper); display: flex; flex-direction: column; animation: sxSlide .22s ease both; z-index: 2; }
.sx-drawer[hidden] { display: none; }
.sx-drawer-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--sx-line); font-size: 15px; }
.sx-drawer-head .sx-icon:hover { background: rgba(18, 41, 29, .06); }
.sx-drawer-list { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.sx-conv { display: block; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 12px; padding: 11px 12px; cursor: pointer; font: inherit; color: inherit; }
.sx-conv:hover { background: var(--sx-surface); }
.sx-conv strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-conv span { display: block; font-size: 12px; color: var(--sx-muted); margin-top: 2px; }
.sx-empty { padding: 32px 18px; text-align: center; font-size: 13.5px; color: var(--sx-muted); line-height: 1.5; }

/* ── Composer ─────────────────────────────────────────────────────────── */
.sx-compose {
  flex: none; background: #ffffff; border-top: 1px solid rgba(226, 221, 212, .8);
  padding: 10px 14px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.sx-inputbar {
  display: flex; align-items: flex-end; gap: 8px; margin: 0;
  padding: 5px 6px 5px 14px; border-radius: 18px; background: #f5f2eb;
  border: 1.5px solid transparent;
  transition: all .18s cubic-bezier(.16, 1, .3, 1);
}
.sx-inputbar:focus-within {
  border-color: var(--sx-brand);
  box-shadow: 0 0 0 3.5px rgba(46, 133, 83, .14);
  background: #ffffff;
}
.sx-inputbar textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; resize: none;
  font: inherit; font-size: 14.5px; line-height: 1.45; color: var(--sx-ink); padding: 8px 0; max-height: 132px; box-shadow: none;
}
.sx-inputbar textarea::placeholder { color: #8a968f; }
.sx-inputbar textarea:disabled { cursor: not-allowed; }
.sx-send {
  width: 38px; height: 38px; border: 0; border-radius: 12px; flex: none; cursor: pointer;
  background: #d5ded8; color: #7a8a81; display: grid; place-items: center;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
}
.sx-send:disabled {
  opacity: .45;
  cursor: default;
}
.sx-send:not(:disabled) {
  background: linear-gradient(135deg, #2e8553 0%, #1b633b 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 133, 83, .38);
  transform: scale(1.04);
}
.sx-send:not(:disabled):hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(46, 133, 83, .48);
}
.sx-send:not(:disabled):active {
  transform: scale(.95);
}
.sx-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px;
  font-size: 11.5px; color: var(--sx-muted);
}
.sx-foot a {
  display: inline-flex; align-items: center; gap: 5px; color: #1d7a45; font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: color .15s ease;
}
.sx-foot a:hover { color: #135c32; }
/* ── Guided Lead Intake Card: Luxury Concierge Edition ────────────────── */
.sx-lead-card {
  margin: 10px 2px 14px 28px;
  background: #ffffff;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 20px 18px 16px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  animation: sxIn .28s cubic-bezier(.16, 1, .3, 1) both;
  position: relative;
  box-sizing: border-box;
}

.sx-lead-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.sx-lead-bar {
  flex: 1;
  height: 3.5px;
  border-radius: 99px;
  background: #f1f5f9;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
}
.sx-lead-bar.is-active {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

.sx-lead-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sx-lead-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 9px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 650;
  color: #334155;
  cursor: pointer;
  transition: all .15s ease;
}
.sx-lead-back-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateX(-1px);
}
.sx-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3.5px 10px;
  border-radius: 99px;
}
.sx-lead-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: sxLivePulse 2s infinite;
}

.sx-lead-title {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.sx-lead-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.48;
}

.sx-lead-section {
  margin-bottom: 14px;
}
.sx-lead-sec-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.sx-lead-sec-ic {
  display: inline-flex;
  align-items: center;
  color: #15803d;
}

.sx-lead-field {
  margin-bottom: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sx-lead-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #334155;
}
.sx-lead-req {
  color: #ef4444;
  margin-left: 2px;
  font-weight: 700;
}
.sx-lead-opt {
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
}

/* ── Modern Unified Input Wrap (Flex siblings prevent any text overlap) ── */
.sx-lead-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 48px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  transition: all .2s cubic-bezier(.16, 1, .3, 1) !important;
  gap: 10px !important;
}
.sx-lead-input-wrap:hover {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}
.sx-lead-input-wrap:focus-within {
  border-color: #15803d !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3.5px rgba(21, 128, 61, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.sx-lead-input-ic {
  position: static !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  color: #94a3b8 !important;
  pointer-events: none !important;
  transition: color .18s ease !important;
}
.sx-lead-input-wrap:focus-within .sx-lead-input-ic {
  color: #15803d !important;
}

.sx-lead-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 550 !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
}
.sx-lead-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
}

/* ── Seamless Unified Phone Group (Zero double border) ────────────────── */
.sx-lead-phone-group {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 48px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  transition: all .2s cubic-bezier(.16, 1, .3, 1) !important;
  overflow: hidden !important;
}
.sx-lead-phone-group:hover {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}
.sx-lead-phone-group:focus-within {
  border-color: #15803d !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3.5px rgba(21, 128, 61, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.sx-lead-code-box {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 6px 0 12px !important;
  flex: 0 0 auto !important;
  height: 100% !important;
  background: #f8fafc !important;
  cursor: pointer !important;
  transition: background .15s ease !important;
}
.sx-lead-phone-group:focus-within .sx-lead-code-box,
.sx-lead-phone-group:hover .sx-lead-code-box {
  background: #ffffff !important;
}
.sx-lead-code {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  padding: 0 16px 0 0 !important;
  margin: 0 !important;
}
.sx-lead-code-arr {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  display: flex !important;
  align-items: center !important;
  color: #64748b !important;
}

.sx-lead-phone-div {
  width: 1px !important;
  height: 24px !important;
  background: #e2e8f0 !important;
  flex: 0 0 1px !important;
}

.sx-lead-phone-box {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  padding: 0 12px !important;
  gap: 8px !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.sx-lead-phone-box .sx-lead-input-ic {
  color: #25D366 !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
}
.sx-lead-phone-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 550 !important;
  color: #0f172a !important;
  letter-spacing: 0.02em !important;
  box-sizing: border-box !important;
}
.sx-lead-phone-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

/* ── Primary Action Button ────────────────────────────────────────────── */
.sx-lead-btn {
  width: 100% !important;
  height: 48px !important;
  margin-top: 16px !important;
  border: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(22, 101, 52, 0.28) !important;
  transition: all .22s cubic-bezier(.16, 1, .3, 1) !important;
}
.sx-lead-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 8px 22px rgba(22, 101, 52, 0.36) !important;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
}
.sx-lead-btn:active {
  transform: translateY(0) scale(0.99) !important;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.2) !important;
}
.sx-lead-btn:disabled {
  opacity: .55 !important;
  cursor: default !important;
  transform: none !important;
  box-shadow: none !important;
}
.sx-lead-btn-arr {
  display: inline-flex !important;
  align-items: center !important;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1) !important;
}
.sx-lead-btn:hover .sx-lead-btn-arr {
  transform: translateX(4px) !important;
}

/* ── Trust Indicators ─────────────────────────────────────────────────── */
.sx-lead-trust-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid #f1f5f9 !important;
}
.sx-lead-trust-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 550 !important;
  color: #64748b !important;
  white-space: nowrap !important;
}
.sx-lead-trust-ic {
  display: inline-flex !important;
  align-items: center !important;
  color: #10b981 !important;
}
.sx-lead-trust-sep {
  color: #cbd5e1 !important;
  font-size: 11px !important;
}
/* ── Destination Search & Autocomplete ────────────────────────────────── */
.sx-dest-search-wrap {
  position: relative;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 10px;
}
.sx-dest-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
  line-height: 1;
  z-index: 2;
}
.sx-dest-search-input {
  width: 100% !important;
  height: 46px !important;
  padding: 0 36px 0 38px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 550 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
  box-sizing: border-box !important;
  transition: all .2s cubic-bezier(.16, 1, .3, 1) !important;
}
.sx-dest-search-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
}
.sx-dest-search-input:focus {
  outline: none !important;
  border-color: #15803d !important;
  box-shadow: 0 0 0 3.5px rgba(21, 128, 61, 0.12) !important;
  background: #ffffff !important;
}
.sx-dest-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all .15s ease;
  z-index: 2;
}
.sx-dest-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}
.sx-dest-popular-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.sx-dest-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.16), 0 4px 10px rgba(0, 0, 0, 0.04);
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
}
.sx-dest-ac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  border-radius: 8px;
  cursor: pointer;
  transition: all .12s ease;
}
.sx-dest-ac-item:hover, .sx-dest-ac-item.is-active {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 600;
}
.sx-dest-ac-icon {
  font-size: 14px;
  flex: none;
}
.sx-dest-ac-count {
  margin-left: auto;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}
.sx-dest-ac-empty {
  padding: 14px;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
}

/* ── Chips (Months & Destinations) ────────────────────────────────────── */
.sx-lead-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sx-lead-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  transition: all .18s cubic-bezier(.16, 1, .3, 1);
  box-sizing: border-box;
}
.sx-lead-chip:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
  transform: translateY(-1px);
}
.sx-lead-chip.is-on {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
  border-color: #15803d !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(21, 128, 61, 0.28) !important;
  font-weight: 650 !important;
  transform: translateY(-1px);
}

/* ── Travellers Pills ─────────────────────────────────────────────────── */
.sx-lead-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.sx-lead-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: all .18s cubic-bezier(.16, 1, .3, 1);
  box-sizing: border-box;
}
.sx-lead-pill:hover {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
  transform: translateY(-1px);
}
.sx-lead-pill.active {
  background: #f0fdf4 !important;
  border-color: #15803d !important;
  color: #15803d !important;
  font-weight: 650 !important;
  box-shadow: 0 0 0 1px #15803d, 0 3px 10px rgba(21, 128, 61, 0.12) !important;
  transform: translateY(-1px);
}
.sx-lead-pill-ic {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
}

/* ── Error & Alert ────────────────────────────────────────────────────── */
.sx-lead-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 550;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #b91c1c;
  margin-top: 10px;
  animation: sxIn .2s ease;
}

/* ── Success State ────────────────────────────────────────────────────── */
.sx-lead-success {
  text-align: center;
  padding: 18px 8px 10px;
}
.sx-lead-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  box-shadow: 0 8px 22px rgba(21, 128, 61, 0.35);
  position: relative;
}
.sx-lead-check svg {
  width: 24px;
  height: 24px;
}
.sx-lead-check::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, 0.35);
  animation: sxPulse 2s infinite;
}
.sx-lead-success h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.sx-lead-success p {
  margin: 0 0 16px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.52;
}
.sx-lead-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #128c46 0%, #25d366 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
}
.sx-lead-wa-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42);
  filter: brightness(1.03);
}
.sx-lead-wa-ic {
  display: inline-flex;
  align-items: center;
}

/* ── Phones: full-screen sheet ────────────────────────────────────────── */
@media (max-width: 640px) {
  .sx-panel {
    inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh;
    z-index: 100000;   /* above the mobile bottom nav (99999): the sheet owns the screen */
    border-radius: 0; border: 0; animation: sxSheet .3s cubic-bezier(.2, .8, .2, 1);
  }
  .sx-back { display: grid !important; margin-left: -6px; }
  .sx-x { display: none; }
  .sx-head { padding: 10px 8px 10px 10px; padding-top: max(10px, env(safe-area-inset-top)); }
  .sx-msg { max-width: 90%; }
  .sx-inputbar textarea { font-size: 16px; } /* no iOS zoom on focus */
  .sx-nudge { right: 12px; left: 12px; max-width: none; bottom: 88px; }
  .sx-lead-card {
    margin-left: 14px;
    margin-right: 0;
    padding: 16px 13px 12px;
  }
  .sx-lead-input, .sx-lead-phone-input, .sx-lead-code, .sx-dest-search-input {
    font-size: 16px !important; /* Prevents auto-zoom on iOS devices */
  }
}
body.saathi-sheet-open { overflow: hidden; }

@keyframes sxOpen { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sxSheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sxRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sxSlide { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes sxDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3.5px); } }
@keyframes sxSpin { to { transform: rotate(360deg); } }
@keyframes sxBlink { 50% { opacity: 0; } }
@keyframes sxPulse { 0% { box-shadow: 0 0 0 0 rgba(183, 121, 31, .45); } 70% { box-shadow: 0 0 0 10px rgba(183, 121, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(183, 121, 31, 0); } }
@keyframes sxSparkleSpin { 0% { transform: scale(1) rotate(0deg); opacity: .8; } 50% { transform: scale(1.25) rotate(180deg); opacity: 1; } 100% { transform: scale(1) rotate(360deg); opacity: .8; } }

@media (prefers-reduced-motion: reduce) {
  #saathi-panel *, #saathi-panel, .sx-fab, .sx-nudge { animation: none !important; transition: none !important; }
}
