/* =====================================================================
   ChatGPT booking mockup (v2 design system) — compact
   Treated as a real product screenshot inside a hairline-bordered card.
   Sized down so the hero stays mostly visible without scrolling.
   ===================================================================== */

.chat-mock {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.chat-mock-frame {
  background: var(--bg);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
}

.chat-mock-titlebar {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.chat-mock-dots { display: flex; gap: 6px; }
.chat-mock-dots span {
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--hairline-strong);
  display: inline-block;
}
.chat-mock-url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  max-width: 190px;
  margin: 0 auto;
  border: 1px solid var(--hairline);
}

.chat-mock-body {
  padding: 18px 18px 8px;
  height: 420px;               /* fixed — frame never grows; convo scrolls within */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}
.chat-mock-body::-webkit-scrollbar { width: 6px; }
.chat-mock-body::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 99px; }

.chat-row { display: flex; gap: 10px; }
.chat-row-user { justify-content: flex-end; }
.chat-row-ai { align-items: flex-start; }

.chat-avatar {
  width: 24px; height: 24px;
  border-radius: var(--r-xs);
  background: var(--blue);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-bubble {
  padding: 8px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.4;
  max-width: 76%;
}
.chat-bubble-user {
  background: var(--blue-pale);
  color: var(--ink);
  border-bottom-right-radius: 6px;
}
.chat-text { font-size: 13.5px; line-height: 1.5; color: var(--ink); max-width: 92%; }

.chat-typing {
  display: inline-flex; gap: 4px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 12px;
}
.chat-typing span {
  width: 6px; height: 6px;
  background: var(--ink-mute);
  border-radius: 999px;
  animation: typingDot 1.1s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.caret {
  display: inline-block;
  width: 2px; height: 1em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: -2px;
  animation: caretBlink 1s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Hotel card — compact */
.hotel-card {
  margin-top: 12px;
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 340px;
}
.hotel-card-img {
  position: relative;
  height: 108px;
  background: var(--surface);
  overflow: hidden;
}
.hotel-card-img-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hotel-card-badge {
  position: absolute;
  left: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.hotel-card-badge-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
}

.hotel-card-body { padding: 14px 15px; }
.hotel-card-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.hotel-card-name {
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 6px;
}
.hotel-card-meta {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex; gap: 7px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.hotel-card-meta .dot { color: var(--ink-faint); }
.hotel-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  border-top: 1px solid var(--hairline);
  padding-top: 11px;
}
.hotel-card-price {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-feature-settings: var(--tnum);
}
.hotel-card-pricesub {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-left: 4px;
  letter-spacing: 0;
}
.hotel-card-rate { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.hotel-card-cta {
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

/* Confirm — compact */
.confirm-card {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--blue-pale-2);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  max-width: 340px;
}
.confirm-tick {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.confirm-title { font-family: var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.confirm-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 2px;
  font-feature-settings: var(--tnum);
}

/* Composer — compact */
.chat-composer {
  padding: 11px 13px 13px;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 9px;
  align-items: center;
}
.chat-composer-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink-mute);
}
.chat-composer-send {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--blue);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 600px) {
  .chat-mock-body { padding: 16px 14px 6px; height: 360px; }
  .chat-bubble, .chat-text { font-size: 13px; }
  .hotel-card-img { height: 96px; }
}
