/* ═══════════════════════════════════════════════════════════════════
   LetsTrippo — ai-builder.css
   Upload to: public_html/css/ai-builder.css
   Styles the AI package builder section + all rendered output cards
   Palette: #0a0e17 navy · #c9a96e gold · #f4ede0 cream · #8a7d6e stone
   ═══════════════════════════════════════════════════════════════════ */

/* ── SECTION WRAPPER ─────────────────────────────────────────────── */
.lt-ai-section {
  background: #0a0e17;
  padding: 5rem 0 4rem;
  border-top: 1px solid rgba(201,169,110,0.08);
  border-bottom: 1px solid rgba(201,169,110,0.08);
}

.lt-ai-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── SECTION HEADING ─────────────────────────────────────────────── */
.lt-ai-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #c9a96e;
  text-align: center;
  margin-bottom: 0.75rem;
  display: block;
}

.lt-ai-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: #f4ede0;
  text-align: center;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.lt-ai-title em {
  font-style: italic;
  color: #e2c898;
}

.lt-ai-subtitle {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(244,237,224,0.38);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ── INPUT AREA ──────────────────────────────────────────────────── */
.lt-input-wrap {
  margin-bottom: 1.25rem;
}

.lt-input-row {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.18);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
  margin-bottom: 0.75rem;
}

.lt-input-row:focus-within {
  border-color: rgba(201,169,110,0.45);
}

#lt-ai-input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: #f4ede0;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
}

#lt-ai-input::placeholder {
  color: rgba(244,237,224,0.22);
}

#lt-mic-btn {
  width: 52px;
  background: rgba(201,169,110,0.07);
  border: none;
  border-left: 1px solid rgba(201,169,110,0.1);
  color: rgba(201,169,110,0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

#lt-mic-btn:hover { color: #c9a96e; background: rgba(201,169,110,0.12); }
#lt-mic-btn.listening { color: #e2c898; background: rgba(201,169,110,0.18); animation: ltPulse 1s ease-in-out infinite; }

@keyframes ltPulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

#lt-build-btn {
  width: 100%;
  padding: 0.9rem;
  background: #c9a96e;
  border: none;
  border-radius: 100px;
  color: #0a0e17;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

#lt-build-btn:hover { background: #e2c898; transform: translateY(-1px); }

/* ── SUGGESTION CHIPS ────────────────────────────────────────────── */
.lt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.lt-chip {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  padding: 0.38rem 0.9rem;
  border: 1px solid rgba(201,169,110,0.18);
  border-radius: 100px;
  color: rgba(201,169,110,0.65);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.lt-chip:hover {
  border-color: #c9a96e;
  color: #c9a96e;
  background: rgba(201,169,110,0.07);
}

/* ── BUILDING STATE ──────────────────────────────────────────────── */
.lt-building {
  background: rgba(17,24,35,0.9);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 1.5rem;
}

.lt-building-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.lt-building-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #c9a96e;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lt-building-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(244,237,224,0.4);
}

.lt-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #c9a96e;
  animation: ltPulse 1s ease-in-out infinite;
}

.lt-building-query {
  font-size: 0.85rem;
  color: rgba(244,237,224,0.45);
  font-style: italic;
  margin-bottom: 1.5rem;
  padding: 0.6rem 0.875rem;
  background: rgba(201,169,110,0.05);
  border-radius: 8px;
  border-left: 2px solid rgba(201,169,110,0.2);
}

.lt-build-steps { margin-bottom: 1.25rem; }

.lt-build-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

.lt-step-in { opacity: 1; transform: none; }

.lt-step-icon { font-size: 1rem; flex-shrink: 0; }

.lt-step-text {
  font-size: 0.85rem;
  color: #f4ede0;
  font-weight: 400;
}

.lt-step-sub {
  font-size: 0.72rem;
  color: rgba(244,237,224,0.3);
  margin-top: 1px;
}

.lt-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lt-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(201,169,110,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.lt-progress-fill {
  height: 100%;
  background: #c9a96e;
  border-radius: 2px;
  width: 0;
  transition: width 0.5s ease;
}

.lt-progress-pct {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  color: rgba(201,169,110,0.55);
  min-width: 32px;
  text-align: right;
}

/* ── PACKAGE OUTPUT WRAPPER ──────────────────────────────────────── */
.lt-package {
  background: rgba(17,24,35,0.95);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 1.5rem;
}

/* ── PACKAGE HEADER ──────────────────────────────────────────────── */
.lt-pkg-header {
  background: #111827;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201,169,110,0.1);
}

.lt-pkg-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a96e;
}

.lt-pkg-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 100px;
  color: #c9a96e;
}

/* ── GREETING ────────────────────────────────────────────────────── */
.lt-greeting {
  padding: 1.25rem 1.5rem 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(244,237,224,0.55);
  font-style: italic;
}

/* ── HERO CARD ───────────────────────────────────────────────────── */
.lt-pkg-hero {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(201,169,110,0.08);
}

.lt-pkg-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: #f4ede0;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.lt-pkg-tagline {
  font-size: 0.85rem;
  color: rgba(244,237,224,0.4);
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.6;
}

.lt-pkg-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lt-meta-chip {
  font-size: 0.75rem;
  padding: 0.28rem 0.75rem;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 100px;
  color: rgba(201,169,110,0.75);
}

/* ── SECTION LABELS ──────────────────────────────────────────────── */
.lt-section-label {
  padding: 1rem 1.5rem 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.45);
}

/* ── DAY CARDS ───────────────────────────────────────────────────── */
.lt-days {
  padding: 0 1.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.lt-day {
  background: rgba(26,34,53,0.6);
  border: 1px solid rgba(201,169,110,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.lt-day-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: rgba(17,24,35,0.6);
  border-bottom: 1px solid rgba(201,169,110,0.07);
}

.lt-day-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0a0e17;
  border: 1px solid rgba(201,169,110,0.25);
  color: #c9a96e;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lt-day-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #f4ede0;
  line-height: 1.3;
}

.lt-day-body {
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* ── TIME SLOTS ──────────────────────────────────────────────────── */
.lt-time-slot {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.lt-time-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a96e;
  min-width: 62px;
  padding-top: 3px;
  flex-shrink: 0;
  font-weight: 500;
}

.lt-time-text {
  font-size: 0.84rem;
  color: rgba(244,237,224,0.6);
  line-height: 1.7;
}

/* ── STAY ────────────────────────────────────────────────────────── */
.lt-stay {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.875rem;
  background: rgba(201,169,110,0.05);
  border: 1px solid rgba(201,169,110,0.12);
  border-radius: 8px;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: rgba(244,237,224,0.55);
  line-height: 1.6;
}

.lt-stay-icon { flex-shrink: 0; font-size: 0.875rem; }

/* ── LOCAL TIP ───────────────────────────────────────────────────── */
.lt-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.875rem;
  background: rgba(122,158,124,0.05);
  border: 1px solid rgba(122,158,124,0.12);
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(168,196,170,0.7);
  line-height: 1.65;
}

.lt-tip-icon { flex-shrink: 0; font-size: 0.875rem; }

/* ── INCLUDED ────────────────────────────────────────────────────── */
.lt-included {
  padding: 0 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lt-incl-item {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: rgba(90,143,92,0.08);
  border: 1px solid rgba(90,143,92,0.15);
  border-radius: 100px;
  color: rgba(168,196,170,0.8);
}

/* ── PRICE ───────────────────────────────────────────────────────── */
.lt-price-row {
  padding: 0 1.5rem 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.lt-price-option {
  background: rgba(26,34,53,0.6);
  border: 1px solid rgba(201,169,110,0.1);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.lt-price-featured {
  border-color: rgba(201,169,110,0.35);
  background: rgba(201,169,110,0.06);
}

.lt-price-tier {
  font-family: 'DM Mono', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.45);
  margin-bottom: 0.4rem;
}

.lt-price-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #c9a96e;
  line-height: 1.2;
}

.lt-price-note {
  padding: 0 1.5rem 1rem;
  font-size: 0.72rem;
  color: rgba(244,237,224,0.25);
  font-style: italic;
}

/* ── SAYUJ NOTE ──────────────────────────────────────────────────── */
.lt-sayuj-note {
  margin: 0 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(201,169,110,0.05);
  border: 1px solid rgba(201,169,110,0.12);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 0.5rem;
}

.lt-sayuj-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1A1A2E;
  border: 1px solid rgba(201,169,110,0.3);
  color: #c9a96e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.lt-sayuj-text {
  font-size: 0.84rem;
  color: rgba(244,237,224,0.55);
  line-height: 1.75;
  font-style: italic;
}

/* ── SAVE TO MEMBER PROMPT ───────────────────────────────────────── */
.lt-save-prompt {
  margin: 0 1.5rem 0.5rem;
  padding: 1rem 1.25rem;
  background: rgba(201,169,110,0.07);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lt-save-prompt-text {
  flex: 1;
}

.lt-save-prompt-text h4 {
  font-size: 13px;
  font-weight: 500;
  color: #f4ede0;
  margin-bottom: 2px;
}

.lt-save-prompt-text p {
  font-size: 11px;
  color: rgba(244,237,224,0.4);
  line-height: 1.5;
}

.lt-save-btn {
  padding: 0.5rem 1.25rem;
  background: #c9a96e;
  color: #0a0e17;
  border: none;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.lt-save-btn:hover { background: #e2c898; }

/* ── BOOK LINKS ──────────────────────────────────────────────────── */
.lt-book-grid {
  padding: 0 1.5rem 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}

.lt-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.875rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Jost', sans-serif;
  text-align: center;
}

.lt-book-hotels {
  background: rgba(26,34,53,0.8);
  border: 1px solid rgba(201,169,110,0.15);
  color: rgba(244,237,224,0.7);
}

.lt-book-act {
  background: rgba(26,34,53,0.8);
  border: 1px solid rgba(201,169,110,0.15);
  color: rgba(244,237,224,0.7);
}

.lt-book-home {
  background: rgba(26,34,53,0.8);
  border: 1px solid rgba(201,169,110,0.15);
  color: rgba(244,237,224,0.7);
}

.lt-book-btn:hover {
  border-color: rgba(201,169,110,0.4);
  color: #f4ede0;
  background: rgba(201,169,110,0.08);
}

/* ── UPSELL ──────────────────────────────────────────────────────── */
.lt-upsell {
  margin: 0 1.5rem 1rem;
  padding: 1.25rem;
  background: rgba(26,34,53,0.6);
  border: 1px solid rgba(201,169,110,0.12);
  border-radius: 12px;
  text-align: center;
}

.lt-upsell-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.5);
  margin-bottom: 0.4rem;
}

.lt-upsell-text {
  font-size: 0.85rem;
  color: rgba(244,237,224,0.45);
  line-height: 1.7;
  margin-bottom: 0.875rem;
}

.lt-upsell-btn {
  display: inline-block;
  padding: 0.55rem 1.5rem;
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 100px;
  color: #c9a96e;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
}

.lt-upsell-btn:hover {
  background: rgba(201,169,110,0.08);
  border-color: #c9a96e;
}

/* ── REBUILD BUTTON ──────────────────────────────────────────────── */
.lt-rebuild-btn {
  display: block;
  width: calc(100% - 3rem);
  margin: 0 1.5rem 1.5rem;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid rgba(244,237,224,0.08);
  border-radius: 8px;
  color: rgba(244,237,224,0.3);
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.lt-rebuild-btn:hover {
  border-color: rgba(244,237,224,0.18);
  color: rgba(244,237,224,0.6);
}

/* ── ERROR STATE ─────────────────────────────────────────────────── */
.lt-error {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.lt-error-icon { font-size: 2rem; margin-bottom: 0.75rem; }

.lt-error-msg {
  font-size: 0.88rem;
  color: rgba(244,237,224,0.45);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* ── SHAKE ANIMATION ─────────────────────────────────────────────── */
@keyframes ltShake {
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-6px)}
  40%{transform:translateX(6px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lt-ai-section { padding: 3.5rem 0 3rem; }
  .lt-book-grid { grid-template-columns: 1fr; }
  .lt-price-row { grid-template-columns: 1fr; }
  .lt-suggestions { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
  .lt-pkg-meta-row { flex-direction: column; }
  .lt-save-prompt { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .lt-save-btn { width: 100%; text-align: center; }
}
