/* =============================================================================
   AI-Wise Page Styles
   All values are exact pixel values from Figma (node 256:10177)
   No changes to main.css — this file loads only on /ai-search route
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. DESIGN TOKENS (exact from Figma variable definitions)
   ----------------------------------------------------------------------------- */
.ai-wise-page {
  /* Brand */
  --aw-brand-100: #eef291;
  --aw-brand-300: #e0e846;
  --aw-brand-500: #c8d200;
  --aw-brand-900: #4e5200;
  --aw-brand-950: #353800;

  /* Dark grays */
  --aw-gray-200: #e8e8e8;
  --aw-gray-300: #d9d9d9;
  --aw-gray-400: #a8a8a8;
  --aw-gray-500: #757575;
  --aw-gray-700: #4f4f4f;
  --aw-gray-800: #383838;
  --aw-gray-900: #262626;
  --aw-gray-950: #1a1a1a;
  --aw-gray-980: #111111;

  /* Shadows */
  --aw-shadow-sm: 0px 1px 3px 0px rgba(10,13,18,0.1), 0px 1px 2px -1px rgba(10,13,18,0.1);
  --aw-shadow-xs: 0px 1px 2px 0px rgba(10,13,18,0.05);
}

/* -----------------------------------------------------------------------------
   2. PAGE LAYOUT
   ----------------------------------------------------------------------------- */
.ai-wise-page {
  background: #111111;
  color: #e8e8e8;
  min-height: 100vh;
  font-family: 'Neue', sans-serif;
  overflow: hidden;
}

body.ai-wise-body {
  background: #111111 !important;
}

.ai-wise__layout {
  display: flex;
  height: calc(100vh - 80px);
  overflow: hidden;
}

/* -----------------------------------------------------------------------------
   3. LEFT SIDEBAR
   ----------------------------------------------------------------------------- */
.ai-sidebar {
  width: 64px;
  flex-shrink: 0;
  background: #111111;
  border-right: 1px solid #262626;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 8px;
}

.ai-sidebar__icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}

.ai-sidebar__icon-btn:hover {
  background: #1a1a1a;
}

.ai-sidebar__icon-btn img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.ai-sidebar__icon-btn:hover img {
  opacity: 1;
}

.ai-sidebar__spacer {
  flex: 1;
}

.ai-sidebar__icon-btn--bottom {
  margin-top: auto;
}

/* -----------------------------------------------------------------------------
   4. CHAT PANEL
   ----------------------------------------------------------------------------- */
.ai-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #111111;
  position: relative;
}

.ai-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 32px 48px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ai-chat__messages::-webkit-scrollbar {
  width: 4px;
}

.ai-chat__messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-chat__messages::-webkit-scrollbar-thumb {
  background: #383838;
  border-radius: 4px;
}

/* User message bubble */
.ai-chat__message {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat__message--user {
  align-items: flex-end;
}

.ai-chat__message--user .ai-chat__bubble {
  background: #1a1a1a;
  border: 1px solid #262626;
  border-radius: 12px 12px 2px 12px;
  padding: 12px 16px;
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #e8e8e8;
  max-width: 480px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.ai-chat__message-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.ai-chat__message-action-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.15s;
}

.ai-chat__message-action-btn:hover {
  opacity: 1;
}

.ai-chat__message-action-btn img {
  width: 20px;
  height: 20px;
}

/* AI message — grid: icon col1, first text col2, second+ text and widgets span full width */
.ai-chat__message--ai {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
}

.ai-chat__ai-icon {
  width: 40px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0;
  overflow: visible;
  grid-column: 1;
  grid-row: 1;
}

.ai-chat__ai-icon img,
.ai-chat__ai-icon svg {
  width: 40px;
  height: 52px;
  margin-left: -6px;
  margin-top: -6px;
}

/* Pulse animation — only the star path inside the SVG, circle stays static */
@keyframes ai-star-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.55); }
  100% { transform: scale(1); }
}

.ai-chat__message--typing .ai-chat__ai-star {
  animation: ai-star-pulse 1.2s ease-in-out infinite;
  transform-origin: 14px 14px;
}

.ai-chat__ai-body {
  display: contents;
}

/* First text: col2, row1 — inline with icon */
.ai-chat__ai-body > .ai-chat__ai-text:first-child {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

/* Second+ texts: span full width from icon's left edge */
.ai-chat__ai-body > .ai-chat__ai-text:nth-child(n+2) {
  grid-column: 1 / -1;
}

/* Answer widgets: span full width from icon's left edge */
.ai-chat__ai-body > [data-answer-type] {
  grid-column: 1 / -1;
}

/* Venue cards list and other body children: span full width */
.ai-chat__ai-body > .ai-chat__venue-cards,
.ai-chat__ai-body > .ai-chat__ai-list {
  grid-column: 1 / -1;
}

.ai-chat__ai-text {
  font-family: 'Neue', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  letter-spacing: -0.36px;
  color: #d9d9d9;  /* gray/300 */
}

/* Plain bullet list (non-venue responses) */
.ai-chat__ai-list {
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #e8e8e8;
  margin: 6px 0 0 0;
  padding-left: 16px;
  list-style: disc;
}

.ai-chat__ai-list li {
  margin-bottom: 4px;
}

/* -----------------------------------------------------------------------------
   VENUE CARDS LIST — Figma node 266:10303
   Scrollable list of ranked venue cards inside the AI message body.
   ----------------------------------------------------------------------------- */

/* Wrapper: no bullets, no padding, scrollable, gap between cards */
.ai-chat__venue-cards {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Single card */
.ai-venue-card {
  background: #1a1a1a;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Top section: image + content + right column */
.ai-venue-card__top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #262626;
  min-height: 111px;
}

/* Venue thumbnail */
.ai-venue-card__image {
  width: 144px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #262626;
}

/* Middle content column */
.ai-venue-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Name row: name + verified badge */
.ai-venue-card__name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}

.ai-venue-card__name {
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-venue-card__badge {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ai-venue-card__badge--premium {
  width: 18px;
  height: 18px;
}

/* Type + location row */
.ai-venue-card__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
}

.ai-venue-card__type-badge {
  background: #4f4f4f;
  border-radius: 4px;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 16px;
  flex-shrink: 0;
}

.ai-venue-card__type-label {
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: #a8a8a8;
  letter-spacing: 0.1px;
  line-height: normal;
}

.ai-venue-card__star-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.ai-venue-card__star-count {
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: #a8a8a8;
  letter-spacing: 0.1px;
  line-height: normal;
}

.ai-venue-card__location {
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 24px;
  color: #757575;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Google rating row */
.ai-venue-card__rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
}

.ai-venue-card__rating-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.ai-venue-card__rating-text {
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 24px;
  color: #757575;
  white-space: nowrap;
}

.ai-venue-card__google-icon {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

/* Capacity / details row */
.ai-venue-card__details-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 20px;
  margin-top: 8px;
}

.ai-venue-card__detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ai-venue-card__detail-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.ai-venue-card__detail-text {
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  color: #757575;
  white-space: nowrap;
}

/* Right column: matched rooms thumbnail + buttons */
.ai-venue-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 180px;
  flex-shrink: 0;
}

.ai-venue-card__matched-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Figma node 266:10007 — stacked room image thumbnail */
.ai-venue-card__room-stack {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  overflow: visible;
}

/* Back card: rotates from bottom anchor so top swings out, bottom stays fixed */
.ai-venue-card__room-stack-back {
  position: absolute;
  width: 42px;
  height: 43px;
  bottom: 0;
  left: 0;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.56);
  object-fit: cover;
  background: #262626;
  transform: rotate(14.04deg);
  transform-origin: center bottom;
  opacity: 0.6;
}

/* Front card: sits flat on top, anchored to bottom */
.ai-venue-card__room-stack-front {
  position: absolute;
  width: 42px;
  height: 43px;
  bottom: 0;
  left: 1px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.56);
  box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.15);
  object-fit: cover;
  background: #262626;
}

.ai-venue-card__matched-label {
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #fcfcfc;
  line-height: normal;
}

/* Figma node 266:10011: number uses Neue Plak Text Bold, color #fcfcfc */
.ai-venue-card__matched-label strong {
  font-family: 'Neue', 'Neue', sans-serif;
  font-weight: 700;
  color: #fcfcfc;
}

/* Action buttons row */
.ai-venue-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-end;
}

.ai-venue-card__add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 8px 12px;
  border: 1px solid #4e5200;
  border-radius: 8px;
  background: transparent;
  font-family: 'Neue', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #7e8500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ai-venue-card__add-btn:hover {
  background: rgba(126,133,0,0.08);
}

.ai-venue-card__add-btn--added {
  background: #353800;
  color: #EEF291;
  border-color: transparent;
  cursor: pointer;
}

.ai-venue-card__add-btn--added:hover {
  background: #424500;
}

.ai-venue-card__arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid #4e5200;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  text-decoration: none;
}

.ai-venue-card__arrow-btn:hover {
  background: rgba(126,133,0,0.08);
}

.ai-venue-card__arrow-btn {
  position: relative;
}

/* Tooltip */
.ai-venue-card__arrow-tooltip {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  white-space: nowrap;
  z-index: 10;
}

.ai-venue-card__arrow-btn:hover .ai-venue-card__arrow-tooltip {
  opacity: 1;
  visibility: visible;
}

.ai-venue-card__arrow-tooltip-content {
  display: block;
  background: #383838;
  color: #fff;
  font-family: 'Neue', 'Neue', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0px 2px 2px 0px rgba(10,13,18,0.04),
              0px 4px 6px 0px rgba(10,13,18,0.03),
              0px 12px 16px 0px rgba(10,13,18,0.08);
}

.ai-venue-card__arrow-tooltip-caret {
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #383838;
}

.ai-venue-card__arrow-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Footer note: check icon + italic text */
.ai-venue-card__footer {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.ai-venue-card__footer-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ai-venue-card__footer-text {
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: normal;
  color: #a8a8a8;
}

/* Mobile: move __right below image/content row */
@media (max-width: 680px) {
  .ai-venue-card__top {
    flex-wrap: wrap;
    border-bottom: none;
  }

  .ai-venue-card__image {
    order: 1;
    width: 100px;
    height: 88px;
    aspect-ratio: 144 / 96;
  }

  .ai-venue-card__content {
    order: 2;
  }

  .ai-venue-card__right {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: unset;
    padding-top: 12px;
    border-top: 1px solid #262626;
    padding-bottom: 12px;
    border-bottom: 1px solid #262626;
  }

  .ai-venue-card__actions {
    width: 100%;
  }

  .ai-venue-card__add-btn {
    flex: 1;
  }
}

.ai-chat__ai-prompt {
  font-family: 'Neue', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 24px;
  color: #e8e8e8;
  margin-top: 4px;
}

/* -----------------------------------------------------------------------------
   5. CHIPS — universal base (all chip types: city, event-type, attendance)
   ----------------------------------------------------------------------------- */
/* Answer widget wrapper — flex-col, gap 16px between label, chips, button */
.ai-chat__answer-widget {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

/* "Popular event locations" label above city chips — Figma node 266:8007 */
.ai-chat__chips-section-label {
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.28px;
  color: #a8a8a8;  /* gray/400 */
}

.ai-chat__venue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 70%;
}

.ai-chat__chip {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  height: 40px;
  min-height: 40px;
  border: 0.5px solid #4f4f4f;  /* gray/700 */
  border-radius: 8px;
  background: #1a1a1a;           /* gray/950 */
  cursor: pointer;
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 28px;
  color: #a8a8a8;               /* gray/400 */
  opacity: 0.9;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

/* Tall variant — event-type chips with icons */
.ai-chat__chip--tall {
  flex-direction: column;
  height: auto;
  min-height: 72px;
  line-height: 16px;
  white-space: normal;
  padding: 12px 8px;
}

.ai-chat__chip-icon {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

.ai-chat__chip:hover {
  border: 0.5px solid #7E8500;  /* brand/600 */
  background: rgba(33, 35, 1, 0.6);
}

.ai-chat__chip--selected {
  border: 0.5px solid #7E8500;  /* brand/600 */
  background: #212301;           /* brand/980 */
  color: #e0e846;                /* brand/300 */
  opacity: 1;
}

.ai-chat__chip--selected .ai-chat__chip-icon {
  opacity: 1;
}

/* -----------------------------------------------------------------------------
   5b. ATTENDANCE CHIPS (two-row flex-col variant — from Figma node 266:7904)
   ----------------------------------------------------------------------------- */
.ai-chat__venue-chips--attendance {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.ai-chat__venue-chips--attendance .ai-chat__chips-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
}


/* -----------------------------------------------------------------------------
   6. INPUT BAR (bottom of chat)
   ----------------------------------------------------------------------------- */
.ai-chat__input-wrap {
  padding: 0 24px 24px 24px;
  flex-shrink: 0;
}

/* Actions bar — Figma 366:12748 (375×40px) — mobile only */
.ai-chat__actions {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding-top: 4px;
  padding-bottom: 4px;
  background: #1a1a1a;
}

.ai-chat__actions-left {
  display: flex;
  align-items: center;
}

.ai-chat__actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat__action-btn {
  display: flex;
  align-items: center;
  gap: 0px;
  cursor: pointer;
}

.ai-chat__action-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.ai-chat__action-label {
  font-size: 12px;
  line-height: 1;
  color: #8C8C8C;
  white-space: nowrap;
}

.ai-chat__action-chevron {
  flex-shrink: 0;
  margin-left: 8px;
}

.ai-chat__input-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #1a1a1a;          /* gray/950 */
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 8px 8px 8px 16px;
}

.ai-chat__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #e8e8e8;
  caret-color: #e0e846;
  resize: none;
  min-height: 24px;
  max-height: 200px;
  overflow-y: auto;
  display: block;
  padding: 8px 0;
}

.ai-chat__input::placeholder {
  color: #757575;               /* gray/500 */
}

.ai-chat__send-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: #383838;          /* disabled state — grey */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: not-allowed;
  transition: background 0.15s, transform 0.1s;
  padding: 0;
  box-sizing: border-box;
}

.ai-chat__send-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.ai-chat__send-btn--active {
  background: #e0e846 !important;
  cursor: pointer;
}

.ai-chat__send-btn--active:hover {
  background: #eef291 !important;
}

.ai-chat__send-btn--active:active {
  transform: scale(0.95);
}

.ai-chat__send-btn--active svg path {
  stroke: #111111;
}

.ai-chat__send-btn:not(.ai-chat__send-btn--active) svg path {
  stroke: #757575;
}

/* -----------------------------------------------------------------------------
   7. RESPONSIVE BREAKPOINTS — page-level only (navbar handled in navbar.css)
   ----------------------------------------------------------------------------- */

/* Mobile: no sidebar, full-width chat, panel as bottom sheet */
@media (max-width: 767px) {
  /* Fix iPhone Safari: use dvh so layout fits inside the visible viewport,
     not behind the address bar or home indicator.
     .ai-wise-page becomes a fixed-height flex column;
     .ai-wise__layout fills the remaining space with flex:1. */
  .ai-wise-page {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: unset;
    overflow: hidden;
  }

  .ai-wise-page > .app-navigation {
    flex-shrink: 0;
  }

  .ai-wise__layout {
    flex: 1;
    height: unset;
    min-height: 0;
    overflow: hidden;
  }

  .ai-sidebar {
    display: none;
  }

  .ai-chat__messages {
    padding: 20px 16px 16px 16px;
  }

  .ai-chat__input-wrap {
    padding: 0;
  }

  .ai-chat__input-bar {
    border-bottom: none;
    border-radius: 12px 12px 0 0;
  }

  /* Actions bar mobile — left group starts at x=12px */
  .ai-chat__actions {
    display: flex;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    height: auto;
    border-top: 1px solid #262626;
  }

  .ai-chat__venue-chips,
  .ai-chat__answer-widget {
    max-width: 100%;
    box-sizing: border-box;
  }

  .ai-chat__venue-chips--attendance {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .ai-chat__venue-chips--attendance .ai-chat__chips-row {
    display: contents;
  }

  .ai-chat__venue-chips--attendance .ai-chat__chip {
    height: 40px !important;
    min-height: 40px !important;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 8px;
  }


}

/* ── Choose another location button ─────────────────────────────────────── */
.ai-chat__choose-location-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  height: 32px;
}

.ai-chat__choose-location-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: #212301;  /* brand/980 */
  border-radius: 6px;
  padding: 8px;
  overflow: hidden;
}

.ai-chat__choose-location-icon-wrap img,
.ai-chat__choose-location-icon-wrap svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.ai-chat__choose-location-label {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.28px;  /* tracking-[-0.28px] */
  color: #d9d9d9;            /* gray/300 */
  white-space: nowrap;
}

.ai-chat__choose-location-label img,
.ai-chat__choose-location-label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Pick exact dates button (Figma node 266:8098) ──────────────────────── */
/* Shares identical visual structure with .ai-chat__choose-location-btn     */
.ai-chat__pick-dates-btn {
  display: flex;
  align-items: center;
  gap: 12px;         /* gap-[12px] */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  height: 32px;
}

/* Disabled state — answer already submitted, keep visible but non-interactive */
.ai-chat__choose-location-btn:disabled,
.ai-chat__choose-location-btn[data-answered="true"],
.ai-chat__pick-dates-btn:disabled,
.ai-chat__pick-dates-btn[data-answered="true"] {
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}

.ai-chat__choose-location-btn[data-answered="true"] *,
.ai-chat__pick-dates-btn[data-answered="true"] * {
  pointer-events: none;
}

/* Hidden native date input — positioned under button for browser picker */
.ai-chat__date-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* ============================================================
   AI LOCATION POPUP — Figma node 266:8737
   ============================================================ */

/* Backdrop */
.ai-location-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* Popup container */
.ai-location-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 520px;
  max-width: 95vw;
  max-height: 80vh;
  overflow: hidden;
  flex-direction: column;

  background: #1a1a1a;
  border: 1px solid #383838;
  border-radius: 8px;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ai-location-popup[aria-hidden="false"] {
  display: flex;
}

/* Search bar */
.ai-location-popup__search-wrap {
  background: #1a1a1a;
  padding: 12px 12px 1px 12px;
  flex-shrink: 0;
}

.ai-location-popup__search-box {
  position: relative;
  height: 38px;
}

.ai-location-popup__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.ai-location-popup__search-input {
  width: 100%;
  height: 38px;
  background: #262626;
  border: none;
  border-radius: 8px !important;
  padding: 8px 12px 8px 36px;
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.1504px;
  color: #d9d9d9;
  outline: none;
  box-sizing: border-box;
}

.ai-location-popup__search-input::placeholder {
  color: #757575;
}

/* Scrollable body */
.ai-location-popup__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-location-popup__body::-webkit-scrollbar {
  width: 4px;
}
.ai-location-popup__body::-webkit-scrollbar-track {
  background: #262626;
}
.ai-location-popup__body::-webkit-scrollbar-thumb {
  background: #383838;
  border-radius: 2px;
}

/* Override listing-sidebar accordion styles inside the popup */
.ai-location-popup .listing-sidebar__filter {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.ai-location-popup .listing-sidebar__filter-accordion__header {
  display: none !important;
}

.ai-location-popup .listing-sidebar__filter-accordion__panel {
  height: auto !important;
  visibility: visible !important;
  overflow: visible !important;
}

.ai-location-popup .listing-sidebar__filter-accordion__inner {
  padding: 0 !important;
}

.ai-location-popup .collapsable-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Country group */
.ai-location-popup .listing-sidebar__filter-location__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Country heading row */
.ai-location-popup .listing-sidebar__filter-location--country {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
}

.ai-location-popup .listing-sidebar__filter-location--country__flag {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Hide country radio input */
.ai-location-popup .listing-sidebar__filter-location--country input[type="radio"] {
  display: none !important;
}

.ai-location-popup .listing-sidebar__filter-location--country__title {
  display: flex;
  align-items: center;
  cursor: default;
  text-decoration: none !important;
}

.ai-location-popup .listing-sidebar__filter-location--country__name {
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.1504px;
  color: #ffffff;
  white-space: nowrap;
}

/* City pills container */
.ai-location-popup .listing-sidebar__filter-location--country__city--container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-location-popup .listing-sidebar__filter-location--country__city--item {
  display: contents;
}

/* Hide city radio input, style label as pill */
.ai-location-popup .listing-sidebar__filter-location--country__city--item input[type="radio"] {
  display: none !important;
}

.ai-location-popup .listing-sidebar__filter-location--country__city--item label {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 8px 12px;
  background: #383838;
  border: 1px solid #4f4f4f;
  border-radius: 8px;
  font-family: 'Neue', sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  color: #d9d9d9;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  box-sizing: border-box;
}

.ai-location-popup .listing-sidebar__filter-location--country__city--item label:hover {
  background: #4f4f4f;
  border-color: #595959;
}

/* Selected pill state */
.ai-location-popup .listing-sidebar__filter-location--country__city--item input[type="radio"]:checked + label {
  background: #212301;
  border-color: #7e8500;
  color: #e0e846;
}

/* Hide location text search — not in Figma design */
.ai-location-popup .listing-sidebar__filter-location__filter {
  display: none !important;
}

/* Hide search results popover */
.ai-location-popup .listing-sidebar__filter-location__results__wrapper {
  display: none !important;
}

/* Footer */
.ai-location-popup__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  padding: 1px 16px 0;
  background: #1a1a1a;
  border-top: 1px solid #262626;
  border-radius: 0 0 8px 8px;
}

.ai-location-popup__cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  color: #a8a8a8;
  cursor: pointer;
}

.ai-location-popup__cancel-btn:hover {
  color: #d9d9d9;
}

.ai-location-popup__confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  padding: 10px 14px;
  background: #c8d200;
  border: none;
  border-radius: 8px;
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.15s;
  box-sizing: border-box;
}

.ai-location-popup__confirm-btn:hover {
  background: #d4df00;
}

/* Mobile-only header — hidden on desktop */
.ai-location-popup__header {
  display: none;
}

/* ============================================================
   AI LOCATION POPUP — Mobile bottom sheet
   ============================================================ */
@media (max-width: 767px) {
  .ai-location-popup {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  /* Header — Figma node 366:13287: 347×40 content in 16px side padding, 12px top/bottom */
  .ai-location-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 12px 16px;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  /* Text node 366:13291 */
  .ai-location-popup__header-title {
    font-family: 'Neue', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    color: #ffffff;
  }

  /* Button node 366:13293: 40×40px */
  .ai-location-popup__header-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }

  .ai-location-popup__footer {
    border-radius: 0;
    height: auto;
    padding: 16px 16px max(24px, env(safe-area-inset-bottom));
  }
}

/* ============================================================
   AI DATE PICKER POPUP — Figma node 266:8368
   Exact values from Figma MCP get_design_context
   ============================================================ */

/* Backdrop */
.ai-datepicker-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* Popup container
   Figma: width=624px, height=534px, bg=#1a1a1a, border=#262626,
   border-radius=8px, shadow=0px 25px 50px -12px rgba(0,0,0,0.25) */
.ai-datepicker-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 624px;
  max-width: 95vw;
  flex-direction: column;
  background: #1a1a1a;
  border: 1px solid #262626;
  border-radius: 8px;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.ai-datepicker-popup[aria-hidden="false"] {
  display: flex;
}

/* ── Header (Figma node 266:8369)
   height=45px (1px border + 44px content area)
   pt=24px, pb=16px, px=16px
   bg=#1a1a1a ── */
.ai-datepicker-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 24px 16px 16px 16px;
  background: #1a1a1a;
}

/* Figma: font=Neue Plak Regular, size=14px, line-height=20px,
   letter-spacing=-0.1504px, color=#ffffff */
.ai-datepicker-popup__title {
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.1504px;
  color: #ffffff;
}

/* Close button — x-close icon 16×16 (Figma node 266:8372) */
.ai-datepicker-popup__close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

/* ── Calendar body (Figma node 266:8373)
   pt=24px, px=24px, height=423px ── */
.ai-datepicker-popup__body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-shrink: 0;
  padding: 24px 24px 0 24px;
  gap: 0;
  overflow: hidden;
}

/* ── Single calendar panel (Figma node 266:8374 / 266:8528)
   width=296px, height=388px, bg=#1a1a1a, border-radius=8px ── */
.ai-datepicker-popup__calendar {
  flex: 1;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 0 16px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Month navigation row (Figma node 266:8378)
   height=32px, justify-content=space-between ── */
.ai-datepicker-popup__month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  flex-shrink: 0;
}

/* Spacer keeps the label centred when only one nav arrow shows */
.ai-datepicker-popup__nav-spacer {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Nav button — Figma: p=6px, rounded=6px, size=32×32 */
.ai-datepicker-popup__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 6px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  line-height: 0;
  transition: background 0.15s;
}

.ai-datepicker-popup__nav-btn:hover {
  background: #262626;
}

/* Month label — Figma: font=Neue Plak SemiBold, size=14px,
   line-height=20px, color=#d9d9d9, text-align=center */
.ai-datepicker-popup__month-label {
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  color: #d9d9d9;
  text-align: center;
  white-space: nowrap;
}

/* ── Calendar grid (Figma: 7 cols × 40px cells, gap=0)
   Day headers + date rows — all cells 40×40px ── */
.ai-datepicker-popup__grid {
  display: grid;
  grid-template-columns: repeat(7, 40px);
  gap: 0;
}

/* Cell base — Figma: size=40×40px, border-radius=20px */
.ai-datepicker-popup__cell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Day-of-week header text
   Figma: font=Neue Plak SemiBold, size=14px, line-height=20px,
   color=#a8a8a8, text-align=center */
.ai-datepicker-popup__cell--header {
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  color: #a8a8a8;
  text-align: center;
  cursor: default;
  border-radius: 0;
}

/* Date cell text — default (current month)
   Figma: font=Neue Plak Regular, size=14px, line-height=20px,
   color=#a8a8a8 */
.ai-datepicker-popup__cell--day {
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  color: #a8a8a8;
  cursor: pointer;
  border-radius: 20px;
  transition: background 0.12s;
  user-select: none;
}

/* Adjacent-month overflow days — Figma: color=#757575 */
.ai-datepicker-popup__cell--day.is-overflow {
  color: #757575;
  cursor: default;
  pointer-events: none;
}

/* Today highlight — Figma node 266:8410: bg=#383838, color=#a8a8a8 */
.ai-datepicker-popup__cell--day.is-today {
  background: #383838;
  color: #a8a8a8;
}

/* Hover on regular day cells */
.ai-datepicker-popup__cell--day:not(.is-overflow):not(.is-selected):hover {
  background: #262626;
}

/* Selected date — Figma node 266:8573 / 266:8585:
   outer bg=#353800 (brand/950), inner circle bg=#c8d200 (brand/b-500),
   font=Neue Plak SemiBold, color=#383838 (gray/800)
   We layer two backgrounds: the pill via box-shadow + the circle via bg */
.ai-datepicker-popup__cell--day.is-selected {
  background: #c8d200;
  border-radius: 20px;
  font-weight: 600;
  color: #383838;
}

/* "Today" ring when also selected */
.ai-datepicker-popup__cell--day.is-today.is-selected {
  background: #c8d200;
  color: #383838;
}

/* ── Footer (Figma node 266:8641)
   height=65px, px=16px, pt=1px, bg=#1a1a1a,
   border-top=1px solid #262626, border-radius=0 0 8px 8px ── */
.ai-datepicker-popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 65px;
  padding: 16px;
  background: #1a1a1a;
  border-top: 1px solid #262626;
  border-radius: 0 0 8px 8px;
}

/* Cancel button — Figma: px=14px, py=10px, font=Neue Plak Text Bold,
   size=14px, line-height=20px, color=#a8a8a8 */
.ai-datepicker-popup__cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  color: #a8a8a8;
  cursor: pointer;
}

.ai-datepicker-popup__cancel-btn:hover {
  color: #d9d9d9;
}

/* Confirm button — Figma: w=100px, px=14px, py=10px,
   bg=#c8d200 (brand/b-500), border-radius=8px,
   font=Neue Plak Text Bold, size=14px, line-height=20px, color=#1a1a1a */
.ai-datepicker-popup__confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  padding: 10px 14px;
  background: #c8d200;
  border: none;
  border-radius: 8px;
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.15s;
  box-sizing: border-box;
}

.ai-datepicker-popup__confirm-btn:hover {
  background: #d4df00;
}

/* Disabled confirm until a date is selected */
.ai-datepicker-popup__confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Mobile-only next button: hidden on desktop */
.ai-datepicker-popup__nav-btn--mobile-next {
  display: none;
}

/* ── Mobile: bottom sheet, single calendar ── */
@media (max-width: 680px) {
  .ai-datepicker-popup {
    width: 100%;
    max-width: 100vw;
    max-height: 90vh;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
  }

  /* Show only one calendar — hide right panel */
  #ai-cal-right {
    display: none;
  }

  /* Show the mobile-only next button, hide the spacer */
  .ai-datepicker-popup__nav-btn--mobile-next {
    display: flex;
  }

  .ai-datepicker-popup__nav-spacer {
    display: none;
  }

  .ai-datepicker-popup__body {
    flex-direction: column;
    padding: 16px 0 0 0;
    gap: 0;
    align-items: stretch;
  }

  #ai-cal-left {
    width: 100%;
  }

  .ai-datepicker-popup__month-nav {
    padding: 0 16px;
  }

  .ai-datepicker-popup__grid {
    grid-template-columns: repeat(7, 1fr);
    justify-items: center;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
  }

  .ai-datepicker-popup__cell {
    width: 100%;
    aspect-ratio: 1;
  }
}

/* =============================================================================
   HISTORY PANEL — slide-out from left sidebar
   ============================================================================= */

/* Parent layout needs position:relative for absolute child */
.ai-wise__layout {
  position: relative;
}

.ai-history-panel {
  position: absolute;
  top: 0;
  left: 64px;
  width: 0;
  height: 100%;
  background: #111111;
  border-right: 1px solid #262626;
  overflow: hidden;
  transition: width 0.22s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.ai-history-panel--open {
  width: 260px;
}

.ai-history-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px 16px;
  /* border-bottom: 1px solid #262626; */
  flex-shrink: 0;
}

.ai-history-panel__title {
  font-family: 'Neue', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #E8E8E8;
  white-space: nowrap;
}

.ai-history-panel__close-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.ai-history-panel__close-btn:hover {
  opacity: 1;
}

.ai-history-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.ai-history-panel__body::-webkit-scrollbar {
  width: 4px;
}

.ai-history-panel__body::-webkit-scrollbar-thumb {
  background: #383838;
  border-radius: 4px;
}

.ai-history-panel__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.ai-history-panel__item:hover {
  background: #1a1a1a;
}

.ai-history-panel__item--active {
  background: #1a1a1a;
}

.ai-history-panel__item-title {
  font-size: 13px;
  font-weight: 500;
  color: #e8e8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 228px;
}

.ai-history-panel__item--active .ai-history-panel__item-title {
  color: #c8d200;
}

.ai-history-panel__item-preview {
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  color: #A8A8A8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 228px;
}

.ai-history-panel__item-date {
  font-size: 11px;
  color: #4f4f4f;
}

.ai-history-panel__empty,
.ai-history-panel__loading {
  padding: 24px 16px;
  font-size: 13px;
  color: #757575;
  text-align: center;
}


/* =============================================================================
   AUTH GATE OVERLAY — Figma node 354:9474
   Shows over the chat when a guest user sees venue results.
   ============================================================================= */

/* Full-size overlay anchored to .ai-chat — hidden until JS adds .is-visible */
/* Figma: background #1A1A1A at 70% opacity + background blur 16 */
.ai-auth-gate {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 500;
  align-items: flex-start;
  justify-content: center;
  padding-top: 148px;
  padding-bottom: 32px;
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-y: auto;
}

.ai-auth-gate.is-visible {
  display: flex;
}

/* Backdrop div no longer needed for color/blur — kept as empty spacer */
.ai-auth-gate__backdrop {
  position: absolute;
  inset: 0;
}

/* White modal card: 520px wide, radius 16px, shadow */
.ai-auth-gate__modal {
  position: relative;
  z-index: 1;
  width: 520px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0px 20px 24px -4px rgba(10, 13, 18, 0.08),
    0px 8px 8px -4px rgba(10, 13, 18, 0.03),
    0px 3px 3px -1.5px rgba(10, 13, 18, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Reset text colors inherited from dark .ai-chat background */
  color: #212324;
}

/* Ensure all text inside the gate modal uses dark-on-white colors */
.ai-auth-gate__modal *:not(.error-message):not(.error-message *):not(.form-checkbox),
.ai-auth-gate__modal .auth-modal--content__header--title,
.ai-auth-gate__modal .auth-modal--content__header--description,
.ai-auth-gate__modal .auth-modal__switch--title,
.ai-auth-gate__modal .auth-modal--content--google-btn,
.ai-auth-gate__modal .auth-modal--content__form--forget-password-link {
  color: inherit;
}

/* Title: large dark bold text */
.ai-auth-gate__modal .auth-modal--content__header--title {
  color: #212324;
}

/* Description: slightly lighter */
.ai-auth-gate__modal .auth-modal--content__header--description {
  color: #595959;
}

/* Google button text */
.ai-auth-gate__modal .auth-modal--content--google-btn {
  color: #212324;
}

/* Hover: white text on both buttons */
.ai-auth-gate__modal .auth-modal--content__form--submit-btn:hover,
.ai-auth-gate__modal .auth-modal--content--google-btn:hover {
  color: #ffffff !important;
}

/* Forgot password link */
.ai-auth-gate__modal .auth-modal--content__form--forget-password-link {
  color: #212324;
}

/* Switch title (Don't have an account?) */
.ai-auth-gate__modal .auth-modal__switch--title {
  color: #212324;
}

/* 16px border-radius on modal container */
.ai-auth-gate__modal .dialog__container {
  border-radius: 16px;
  overflow: hidden;
}

/* 8px border-radius on inputs, buttons inside auth gate */
.ai-auth-gate__modal .auth-form__input-group {
  border-radius: 8px;
  overflow: hidden;
}
.ai-auth-gate__modal .auth-modal--content__form--submit-btn,
.ai-auth-gate__modal .auth-modal--content--google-btn {
  border-radius: 8px;
}

/* Header: Figma 354:9477/9478 — pt 24px, px 24px, gap 16px between icon and text, gap 2px between title and subtitle */
.ai-auth-gate__header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: none;
}

.ai-auth-gate__google-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.ai-auth-gate__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  width: 100%;
}

/* Title: Figma 354:9481 — 16px/24px SemiBold #262626 */
.ai-auth-gate__title {
  font-family: 'Neue', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #262626;
  margin: 0;
}

/* Subtitle: Figma 354:9482 — 14px/20px Regular #595959 */
.ai-auth-gate__subtitle {
  font-family: 'Neue', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #595959;
  margin: 0;
}

/* Actions: Figma 354:9486/9487 — pt 32px, px 24px, pb 24px, gap 12px */
.ai-auth-gate__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px 24px;
}

/* Shared button base */
.ai-auth-gate__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Neue Text', 'Neue', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
}

.ai-auth-gate__btn:hover {
  opacity: 0.88;
}

/* "Continue with Google": Figma 354:9488 — #1a1a1a bg, white text */
.ai-auth-gate__btn--google {
  background: #1a1a1a;
  color: #ffffff;
}

/* "Try another way": Figma 354:9489 — white bg, 1px #d9d9d9 border, #4f4f4f text */
.ai-auth-gate__btn--other {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  color: #4f4f4f;
  font: inherit;
}

/* Primary sign-in button inside gate */
.ai-auth-gate__btn--primary {
  background: #c8d200;
  color: #111111;
  border: none;
  font-family: 'Neue Text', 'Neue', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.ai-auth-gate__btn--primary:hover { opacity: 0.88; }

@media (max-width: 767px) {
  .ai-history-panel {
    display: none;
  }
}

/* ── Mobile: ai-auth-gate as bottom sheet ── */
@media (max-width: 680px) {
  .ai-auth-gate {
    position: fixed;
    align-items: flex-end;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    overflow-y: hidden;
  }

  .ai-auth-gate__modal {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  }

  .ai-auth-gate__modal .dialog__container {
    overflow: visible;
  }

}

/* =============================================================================
   CONFIRMATION CARD — shown when auto_continue === true
   Applied filters appear as label: value rows before venues load.
   ============================================================================= */

.ai-chat__confirm-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.ai-chat__confirm-filter-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Neue', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.ai-chat__confirm-filter-label {
  color: #6b6b6b;
  font-weight: 400;
  min-width: 80px;
  flex-shrink: 0;
}

.ai-chat__confirm-filter-value {
  color: #e8e8e8;
  font-weight: 400;
  white-space: nowrap;
}

