
.ai-search-page {
  --navy: #0b2c52;
  --navy-2: #1557a0;
  --gold: #f5a623;
  --gold-dark: #d4870a;
  --off: #f7f9fc;
  --text: #0d1f33;
  --muted: #5a7085;
  --line: rgba(21, 87, 160, 0.14);
  --user: #0b2c52;
  --bot: #eef4fb;
  background: var(--off);
  min-height: 70vh;
}

.ai-search-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ai-search-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}

.ai-search-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.ai-search-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ai-search-clear-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.ai-search-clear-btn:hover { background: #eef4fb; }
.ai-search-clear-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.ai-search-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-2);
  font-weight: 700;
}

.ai-search-brand h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy);
}

.ai-search-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
}

.ai-search-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.ai-search-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.ai-search-chat-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ai-search-page--empty .ai-search-chat-wrap {
  justify-content: center;
  padding-bottom: 24px;
}

.ai-search-hero {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 720px;
  width: 100%;
}

.ai-search-hero[hidden] { display: none !important; }

.ai-search-hero-title {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
}

.ai-search-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0 16px;
}

.ai-search-page--empty .ai-search-thread:empty { display: none; }

.ai-search-bot,
.ai-search-user-msg {
  max-width: 85%;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.ai-search-bot {
  background: var(--bot);
  color: var(--text);
  align-self: flex-start;
}

.ai-search-user-msg {
  background: var(--user);
  color: #fff;
  align-self: flex-end;
}

.ai-search-bot p { margin: 0; }

.ai-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ai-search-chips--starters {
  justify-content: center;
  margin-top: 0;
}

.ai-search-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
}

.ai-search-chip:hover {
  border-color: var(--navy-2);
  color: var(--navy-2);
}

.ai-search-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1c2430;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  position: sticky;
  bottom: 12px;
  box-shadow: 0 8px 24px rgba(11, 44, 82, 0.12);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.ai-search-page--empty .ai-search-composer {
  position: static;
}

.ai-search-composer textarea {
  flex: 1;
  border: 0;
  resize: none;
  font: inherit;
  min-height: 28px;
  max-height: 140px;
  outline: none;
  color: #f3f6fa;
  background: transparent;
  padding: 10px 0;
  line-height: 1.4;
}

.ai-search-composer textarea::placeholder {
  color: rgba(243, 246, 250, 0.45);
}

.ai-search-send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #2f6fed;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ai-search-send-icon { display: block; }

.ai-search-send:hover:not(:disabled) { background: #1f5fd6; }
.ai-search-send:disabled { opacity: 0.45; cursor: not-allowed; }

.ai-search-pending {
  color: var(--muted);
  font-size: 13px;
}


.ai-search-confirm {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ai-search-confirm[hidden] {
  display: none !important;
}

.ai-search-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 44, 82, 0.45);
}

.ai-search-confirm-card {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: 0 16px 40px rgba(11, 44, 82, 0.22);
  text-align: center;
}

.ai-search-confirm-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--navy);
}

.ai-search-confirm-card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.ai-search-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ai-search-confirm-no,
.ai-search-confirm-yes {
  min-width: 88px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  cursor: pointer;
}

.ai-search-confirm-no {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-2);
}

.ai-search-confirm-no:hover {
  background: #eef4fb;
}

.ai-search-confirm-yes {
  border: 0;
  background: var(--navy-2);
  color: #fff;
}

.ai-search-confirm-yes:hover {
  background: var(--navy);
}



.ai-search-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.ai-search-card {
  flex: 0 0 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ai-search-card-img {
  height: 140px;
  background: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ai-search-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-search-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ai-search-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ai-search-card-meta {
  font-size: 12px;
  color: var(--muted);
}

.ai-search-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.ai-search-card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.ai-search-card-actions .enquireBtn,
.ai-search-card-actions .ai-search-more {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 8px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.ai-search-card-actions .enquireBtn {
  background: var(--navy);
  color: #fff;
}

.ai-search-card-actions .ai-search-more {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.ai-search-more-row {
  margin-top: 8px;
}

.ai-search-more-row a {
  font-size: 13px;
  color: var(--navy-2);
}





.ai-search-auth-lock {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px 28px;
  background: linear-gradient(180deg, rgba(247, 249, 252, 0.55) 0%, rgba(247, 249, 252, 0.92) 48%, rgba(247, 249, 252, 0.98) 100%);
  border-radius: 16px;
}

.ai-search-auth-cta {
  border: 0;
  border-radius: 999px;
  background: var(--navy-2);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(11, 44, 82, 0.18);
}

.ai-search-auth-cta:hover { background: var(--navy); }

.ai-search-page--locked .ai-search-composer { pointer-events: none; }
.ai-search-page--locked .ai-search-chip { pointer-events: none; }

body.ai-search-confirm-open { overflow: hidden; }

@media (max-width: 640px) {
  .ai-search-top { flex-direction: column; }
  .ai-search-bot, .ai-search-user-msg { max-width: 100%; }
  .ai-search-hero-title { font-size: 24px; }
}
