/* Lee's Air, AI service assistant widget
   Visual language matches the site design system (navy / gold / cream). */

:root {
  --a-navy: #10233f;
  --a-navy-2: #16304f;
  --a-panel: #0d1b30;
  --a-gold: #a9924f;
  --a-gold-lt: #c7b06a;
  --a-cream: #f3f1e8;
  --a-muted: #b9c2cf;
  --a-urgent: #d9534f;
  --a-ok: #3ecf8e;
}

/* ---------- Launcher ---------- */
.lee-launcher {
  position: fixed; bottom: 22px; right: 22px; z-index: 900;
  background: var(--a-gold); color: var(--a-navy);
  border: none; border-radius: 10px;
  padding: 14px 22px; font: 700 15px/1 'Work Sans', -apple-system, sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.lee-launcher:hover { background: var(--a-gold-lt); transform: translateY(-2px); }
.lee-launcher.hidden { display: none; }
.lee-launcher .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--a-navy);
  animation: leePulse 2.2s infinite;
}
@keyframes leePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Panel ---------- */
.lee-chat {
  position: fixed; bottom: 22px; right: 22px; z-index: 901;
  width: 400px; max-width: calc(100vw - 32px);
  height: 620px; max-height: calc(100vh - 44px);
  background: var(--a-panel);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  display: none; flex-direction: column; overflow: hidden;
  font-family: 'Work Sans', -apple-system, sans-serif;
}
.lee-chat.open { display: flex; animation: leeSlide .22s ease; }
@keyframes leeSlide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.lee-head {
  background: var(--a-navy); padding: 15px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.lee-head img { height: 34px; width: auto; }
.lee-head .who { flex: 1; }
.lee-head .who b { color: var(--a-cream); font-size: 14.5px; display: block; }
.lee-head .who span { color: var(--a-ok); font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.lee-head .who span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--a-ok); }
.lee-head button {
  background: none; border: none; color: var(--a-muted);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 4px;
}
.lee-head button:hover { color: var(--a-cream); }

/* ---------- Messages ---------- */
.lee-body {
  flex: 1; overflow-y: auto; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent;
}
.lee-body::-webkit-scrollbar { width: 6px; }
.lee-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }

.lee-msg { max-width: 86%; font-size: 14.5px; line-height: 1.5; }
.lee-msg.bot {
  align-self: flex-start; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--a-cream); padding: 12px 15px;
  border-radius: 14px 14px 14px 4px;
}
.lee-msg.user {
  align-self: flex-end; background: var(--a-gold); color: var(--a-navy);
  padding: 11px 15px; border-radius: 14px 14px 4px 14px; font-weight: 600;
}
.lee-msg.bot strong { color: var(--a-gold-lt); }
.lee-msg.bot a { color: var(--a-gold-lt); text-decoration: underline; }
.lee-msg.bot ul { margin: 8px 0 2px; padding-left: 18px; }
.lee-msg.bot li { margin-bottom: 5px; }

/* Safety / urgent callout */
.lee-msg.bot.urgent {
  background: rgba(217,83,79,.16); border-color: rgba(217,83,79,.5);
}
.lee-msg.bot.urgent strong { color: #ff9b98; }

/* Typing dots */
.lee-typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 15px;
  background: rgba(255,255,255,.07); border-radius: 14px 14px 14px 4px; }
.lee-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--a-muted); animation: leeBounce 1.3s infinite; }
.lee-typing i:nth-child(2) { animation-delay: .18s; }
.lee-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes leeBounce { 0%,60%,100% { transform: none; opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Quick replies ---------- */
.lee-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 10px; }
.lee-chips button {
  background: rgba(255,255,255,.06); color: var(--a-cream);
  border: 1px solid rgba(255,255,255,.18); border-radius: 7px;
  padding: 8px 14px; font: 600 13px 'Work Sans', sans-serif; cursor: pointer;
  transition: background .15s;
}
.lee-chips button:hover { background: rgba(255,255,255,.14); border-color: var(--a-gold); }
.lee-chips button.primary { background: var(--a-gold); color: var(--a-navy); border-color: var(--a-gold); }
.lee-chips button.primary:hover { background: var(--a-gold-lt); }
.lee-chips button.call { background: rgba(62,207,142,.14); border-color: rgba(62,207,142,.5); color: #8ff0c4; }

/* ---------- Composer ---------- */
.lee-foot {
  border-top: 1px solid rgba(255,255,255,.09); padding: 12px 14px;
  display: flex; gap: 9px; align-items: center; background: rgba(0,0,0,.16);
}
.lee-foot input {
  flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 11px 16px; color: var(--a-cream);
  font: 400 14.5px 'Work Sans', sans-serif; outline: none;
}
.lee-foot input::placeholder { color: rgba(185,194,207,.65); }
.lee-foot input:focus { border-color: var(--a-gold); }
.lee-foot button {
  background: var(--a-gold); color: var(--a-navy); border: none;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  font-size: 17px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lee-foot button:hover { background: var(--a-gold-lt); }

.lee-disclaimer { font-size: 10.5px; color: rgba(185,194,207,.6); text-align: center; padding: 0 14px 9px; }

/* Booking summary card */
.lee-summary {
  background: rgba(169,146,79,.12); border: 1px solid rgba(169,146,79,.42);
  border-radius: 12px; padding: 13px 15px; font-size: 13.5px; color: var(--a-cream);
  align-self: stretch;
}
.lee-summary b { color: var(--a-gold-lt); display: block; margin-bottom: 7px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.lee-summary div { margin-bottom: 4px; }
.lee-summary span { color: var(--a-muted); }

@media (max-width: 480px) {
  .lee-chat { width: 100%; height: 100%; max-height: 100%; bottom: 0; right: 0; border-radius: 0; }
  .lee-launcher { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 14px; }
}

/* ---------- Quick prompts ---------- */
.lee-quick {
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  max-height: 46vh;
  overflow-y: auto;
  padding: 10px 12px 12px;
}
.lee-quick[hidden] { display: none; }
.lee-quick-head {
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-light, #d8bd7a);
  font-weight: 700;
  margin-bottom: 8px;
}
.lee-quick-group {
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  font-weight: 700;
  margin: 11px 0 6px;
}
.lee-quick-group:first-child { margin-top: 0; }
.lee-quick-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #eef2f8;
  font: inherit;
  font-size: 13px;
  padding: 8px 11px;
  border-radius: 9px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lee-quick-list button:hover {
  background: rgba(199,164,90,.18);
  border-color: rgba(199,164,90,.45);
}

/* Composer toggle for the prompt menu */
.lee-quick-toggle {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #cfd8e6;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lee-quick-toggle:hover { background: rgba(199,164,90,.2); color: #fff; }

/* ---------- live agent handoff ---------- */
.lee-note {
  align-self: center;
  text-align: center;
  font-size: 12px;
  color: var(--gold-light, #d8bd7a);
  background: rgba(199,164,90,.10);
  border: 1px solid rgba(199,164,90,.28);
  border-radius: 20px;
  padding: 6px 14px;
  margin: 6px auto;
  max-width: 90%;
}
.lee-msg.agent {
  align-self: flex-start;
  background: rgba(199,164,90,.16);
  border: 1px solid rgba(199,164,90,.42);
  color: #f3ead6;
}
.lee-msg.agent b {
  display: block;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-light, #d8bd7a);
  margin-bottom: 3px;
}


/* Menu button reads as pressed while its panel is open. */
.lee-quick-toggle.on { background: rgba(199,164,90,.3); color: #fff; }
.lee-quick-list button { font-size: 13.5px; padding: 9px 12px; }
.lee-quick-head { display: flex; justify-content: space-between; align-items: center; }
