/* Quam Activities — conversion-focused design */
:root {
  --navy: #0b2a3c;
  --navy-deep: #071e2b;
  --teal: #0e7c7b;
  --teal-light: #e6f4f3;
  --coral: #ff6b4a;
  --coral-dark: #e8552f;
  --sand: #faf8f4;
  --sand-dark: #f1ece3;
  --gold: #f5a623;
  --ink: #1a2b36;
  --muted: #5b6b76;
  --line: #e4e0d6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(11, 42, 60, 0.10);
  --shadow-lg: 0 18px 50px rgba(11, 42, 60, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }

.container { width: min(1320px, 100% - 44px); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy); white-space: nowrap; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff; display: grid; place-items: center; font-size: 20px;
}
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--teal); }

.contact-trio { display: flex; gap: 8px; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 13.5px;
  padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--navy); background: #fff;
  transition: all .18s ease; white-space: nowrap;
  position: relative;
}
.cart-badge {
  position: absolute; top: -7px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #e2483d; color: #fff;
  font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.cart-badge[hidden] { display: none; }

/* ---------- Quam booking overlay (our own lightframe with tour header) ---------- */
.quam-bk-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(9, 24, 34, .55); display: flex; align-items: center; justify-content: center; padding: 18px; }
.quam-bk-sheet { background: #fff; border-radius: 18px; width: min(920px, 100%); height: min(88vh, 920px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.35); animation: quamBkIn .22s ease; }
@keyframes quamBkIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.quam-bk-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex: 0 0 auto; background: #fff; }
.quam-bk-head img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.quam-bk-head .t { font-weight: 800; font-size: 15.5px; color: var(--navy); line-height: 1.3; }
.quam-bk-head .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.quam-bk-close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 15px; cursor: pointer; color: var(--navy); flex: 0 0 auto; }
.quam-bk-close:hover { border-color: var(--teal); color: var(--teal); }
.quam-bk-frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; }
.quam-bk-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 16px 24px; background: #f4f7f8; }
@media (max-width: 640px) {
  .quam-bk-overlay { padding: 0; }
  .quam-bk-sheet { width: 100%; height: 100%; border-radius: 0; }
}
.contact-btn:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.contact-btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.contact-btn.primary:hover { background: var(--coral-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.55) saturate(1.1);
}
.hero-inner { position: relative; padding: 96px 0 84px; max-width: 760px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero p.sub { font-size: 19px; opacity: 0.92; max-width: 620px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; padding: 15px 30px; border-radius: 999px;
  border: none; cursor: pointer; transition: all .18s ease;
}
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 26px rgba(255,107,74,0.42); }
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; font-weight: 600; opacity: 0.92; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy-deep); color: #fff; }

.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; }
.section .lede { font-size: 18px; color: var(--muted); max-width: 680px; margin-bottom: 40px; }
.section-navy .lede { color: rgba(255,255,255,0.78); }

/* ---------- Featured ---------- */
.featured-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.featured-media { position: relative; min-height: 380px; }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.desk-badge {
  position: absolute; top: 18px; left: 18px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em;
  padding: 8px 15px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.featured-body { padding: 44px 42px; display: flex; flex-direction: column; justify-content: center; }
.featured-body h3 { font-size: 30px; font-weight: 800; margin: 10px 0 12px; letter-spacing: -0.01em; }
.featured-body .vendor { color: var(--muted); font-weight: 600; font-size: 15px; }
.featured-body p.desc { color: var(--muted); margin-bottom: 22px; }
.concierge-says {
  background: var(--teal-light); border-left: 4px solid var(--teal);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin-bottom: 24px;
  font-size: 15px;
}
.concierge-says strong { color: var(--teal); display: block; font-size: 12px; letter-spacing: 0.1em; margin-bottom: 4px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.price-from { font-size: 15px; color: var(--muted); }
.price-big { font-size: 38px; font-weight: 800; color: var(--navy); }
.price-per { color: var(--muted); font-size: 15px; }

/* ---------- Tour grid ---------- */
.filter-bar { display: flex; gap: 10px; margin-bottom: 34px; flex-wrap: wrap; }
.filter-chip {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink);
  transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--teal); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.tour-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tour-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tour-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tour-card:hover .tour-card-media img { transform: scale(1.05); }
.card-rank {
  position: absolute; top: 12px; left: 12px;
  background: rgba(7,30,43,0.85); color: #fff; backdrop-filter: blur(4px);
  font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.tour-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tour-card-body .cat { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.tour-card-body h3 { font-size: 19px; font-weight: 750; line-height: 1.3; margin-bottom: 6px; }
.tour-card-body h3 a { color: var(--ink); }
.tour-card-body h3 a:hover { color: var(--teal); }
.tour-card-body .vendor-line { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.tour-card-body .blurb { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.card-price { font-size: 14px; color: var(--muted); }
.card-price strong { font-size: 22px; color: var(--navy); font-weight: 800; }
.btn-check {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  transition: all .18s ease; white-space: nowrap;
}
.btn-check:hover { background: var(--teal); transform: translateY(-1px); }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; }
table.compare th {
  background: var(--navy); color: #fff; text-align: left; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 16px 18px; font-weight: 700;
}
table.compare td { padding: 18px; border-top: 1px solid var(--line); font-size: 15px; vertical-align: top; }
table.compare tr:hover td { background: var(--sand); }
.compare-name { font-weight: 750; }
.compare-name a { color: var(--ink); }
.compare-says { font-size: 13.5px; color: var(--muted); font-style: italic; margin-top: 6px; display: block; }
.compare-says strong { color: var(--teal); font-style: normal; font-size: 11px; letter-spacing: 0.08em; display: block; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.why-card { background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.why-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-light); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.why-card h3 { font-size: 18px; font-weight: 750; margin-bottom: 10px; }
.why-card p { font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 22px; font-size: 16.5px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q:hover { color: var(--teal); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; color: var(--muted); font-size: 15.5px; }
.faq-item.open .faq-a { padding: 0 22px 22px; max-height: 400px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-toggle { font-size: 22px; color: var(--teal); transition: transform .2s ease; flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%); border-radius: 22px; padding: 56px 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { opacity: 0.88; font-size: 17px; max-width: 520px; }
.cta-phone { font-size: 30px; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 12px; }
.cta-phone:hover { color: var(--gold); }
.cta-contact { display: flex; flex-direction: column; gap: 10px; }
.cta-email { font-size: 18px; font-weight: 700; color: #fff; opacity: .92; display: inline-flex; align-items: center; gap: 10px; }
.cta-email:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.82); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.72); margin-bottom: 10px; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-contact { font-size: 16px; margin-bottom: 8px; }
.footer-contact a { color: #fff; font-weight: 700; display: inline; }
.footer-note { font-size: 13.5px; opacity: 0.6; max-width: 340px; margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; opacity: 0.6; }

/* ---------- Tour detail ---------- */
.breadcrumb { font-size: 13.5px; color: var(--muted); padding: 22px 0 6px; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--teal); }
/* ---------- Tour showcase hero ---------- */
.showcase { width: min(1600px, 100% - 28px); margin: 8px auto 0; }
.showcase-grid {
  display: grid; gap: 10px; border-radius: 22px; overflow: hidden;
  grid-template-columns: 1.9fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: clamp(340px, 54vh, 620px);
}
.show-main { grid-row: 1 / 3; width: 100%; height: 100%; object-fit: cover; }
.show-thumb { padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; min-height: 0; }
.show-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.show-thumb:hover img { transform: scale(1.06); }
.tour-head { padding: 30px 0 4px; max-width: 900px; }
.tour-layout { display: grid; grid-template-columns: 1fr 390px; gap: 44px; padding: 26px 0 60px; align-items: start; }
.tour-main { min-width: 0; }
.tour-body { max-width: 780px; min-width: 0; }
.booking-panel { position: sticky; top: 92px; }
.tour-head h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; }
.tour-head .vendor-line { color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.meta-box { background: var(--sand); border-radius: 12px; padding: 14px 16px; }
.meta-box .label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.meta-box .value { font-weight: 700; font-size: 15.5px; }
.included-list { list-style: none; margin: 14px 0; }
.included-list li { padding: 8px 0 8px 30px; position: relative; font-size: 15.5px; }
.included-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.booking-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 28px; position: sticky; top: 92px;
}
.booking-panel h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.booking-panel .from-price { margin-bottom: 16px; }
.booking-panel .from-price strong { font-size: 30px; color: var(--navy); }
.help-box { background: var(--teal-light); border-radius: 12px; padding: 18px; margin-top: 20px; }
.help-box strong { display: block; margin-bottom: 6px; }
.help-box p { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.tour-body h2 { font-size: 24px; font-weight: 800; margin: 36px 0 14px; }
.tour-body p { color: #33454f; margin-bottom: 16px; font-size: 16.5px; }
.meet-box { background: var(--sand); border-radius: 14px; padding: 24px; margin-top: 24px; }
.meet-map { border-radius: 12px; overflow: hidden; margin: 14px 0 10px; border: 1px solid #e2e8eb; box-shadow: var(--shadow); }
.meet-map iframe { width: 100%; height: 300px; border: 0; display: block; }
.directions-link { font-weight: 700; color: var(--teal); font-size: 15px; text-decoration: none; }
.directions-link:hover { text-decoration: underline; }
.cancel-note { background: #fff8f0; border: 1px solid #f0dfc2; border-radius: 12px; padding: 18px 20px; margin-top: 20px; font-size: 15px; }

/* Mobile sticky book bar */
.mobile-book-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: #fff; border-top: 1px solid var(--line); padding: 12px 18px;
  align-items: center; justify-content: space-between; box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
}
.mobile-book-bar .m-price strong { font-size: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .tour-layout { grid-template-columns: 1fr; }
  .booking-panel { position: static; }
  /* Showcase becomes a swipeable strip on mobile */
  .showcase { width: 100%; margin-top: 4px; }
  .showcase-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    height: 300px; border-radius: 0; gap: 8px; padding: 0 14px;
    scrollbar-width: none;
  }
  .showcase-grid::-webkit-scrollbar { display: none; }
  .showcase-grid .show-main, .showcase-grid .show-thumb {
    flex: 0 0 86%; scroll-snap-align: center; border-radius: 14px; overflow: hidden;
  }
  .tour-head { padding-top: 22px; }
  .booking-panel { display: none; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-media { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-book-bar { display: flex; }
  body { padding-bottom: 76px; }
}
@media (max-width: 600px) {
  .contact-btn span.lbl { display: none; }
  .contact-btn { padding: 9px 11px; }
  /* Concise mobile header: mark + name only, Call + Cart buttons */
  .brand { font-size: 17px; gap: 8px; white-space: nowrap; flex-shrink: 1; min-width: 0; }
  .brand-mark { width: 32px; height: 32px; font-size: 17px; flex-shrink: 0; }
  .brand small { display: none; }
  .contact-trio a.contact-btn:nth-child(2),
  .contact-trio a.contact-btn:nth-child(3) { display: none; }
  .header-inner { gap: 8px; }
  .section { padding: 54px 0; }
  .hero-inner { padding: 64px 0 56px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
}

/* ---- Concierge chat ---- */
.quam-chat-panel { position: fixed; top: 0; right: 0; height: 100dvh; width: min(400px, 100vw); background: #fff; z-index: 10000; display: flex; flex-direction: column; box-shadow: -12px 0 48px rgba(4,32,44,.25); transform: translateX(105%); transition: transform .32s cubic-bezier(.32,.72,.28,1); border-left: 1px solid rgba(4,32,44,.08); }
.quam-chat.open .quam-chat-panel { transform: none; }
.quam-chat-head { background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%); color: #fff; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.quam-chat-title { font-weight: 800; font-size: 17px; }
.quam-chat-status { font-size: 13px; opacity: .9; display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.qdot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; box-shadow: 0 0 6px #4ade80; }
.quam-chat-close { background: rgba(255,255,255,.14); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; cursor: pointer; }
.quam-chat-close:hover { background: rgba(255,255,255,.28); }
.quam-chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: #f4f7f8; }
.qmsg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; }
.qmsg p { margin: 0 0 8px; } .qmsg p:last-child { margin: 0; }
.qmsg.user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 5px; }
.qmsg.ai { align-self: flex-start; background: #fff; color: #1d2b33; border-bottom-left-radius: 5px; box-shadow: 0 1px 3px rgba(4,32,44,.08); }
.qmsg.sys { align-self: center; background: #e8f3f1; color: #0e5a52; font-size: 13px; text-align: center; border-radius: 12px; max-width: 94%; }
.qmsg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.qmsg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9fb3ba; animation: qtick 1.1s infinite; }
.qmsg.typing span:nth-child(2) { animation-delay: .18s; } .qmsg.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes qtick { 0%,60%,100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.quam-chat-suggest { padding: 10px 14px 4px; background: #f4f7f8; }
.quam-chat-suggest-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a8b92; margin-bottom: 8px; }
.quam-chat-suggest button { display: inline-block; margin: 0 8px 8px 0; padding: 8px 13px; border-radius: 999px; border: 1px solid #cfe0e2; background: #fff; font-size: 13px; font-weight: 600; color: #0e5a52; cursor: pointer; }
.quam-chat-suggest button:hover { background: #e8f3f1; }
.quam-chat-input { display: flex; gap: 8px; padding: 12px 14px; background: #fff; border-top: 1px solid #e4ecee; }
.quam-chat-input input { flex: 1; border: 1px solid #d5e0e3; border-radius: 999px; padding: 11px 16px; font-size: 14.5px; outline: none; }
.quam-chat-input input:focus { border-color: var(--teal); }
.quam-chat-input button { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--coral); color: #fff; font-size: 18px; cursor: pointer; flex-shrink: 0; }
.quam-chat-input button:hover { filter: brightness(1.08); }
.quam-chat-foot { text-align: center; font-size: 11.5px; color: #8a9aa1; padding: 8px; background: #fff; border-top: 1px solid #eef2f3; }
.quam-chat-fab { display: none; }
@media (max-width: 600px) {
  .quam-chat-fab { display: flex; align-items: center; justify-content: center; position: fixed; right: 16px; bottom: 84px; width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--teal); font-size: 24px; box-shadow: 0 6px 20px rgba(4,32,44,.35); z-index: 9000; cursor: pointer; }
}
