:root {
  --brand-blue: #004aad;
  --brand-navy: #062c73;
  --brand-sky: #00aeea;
  --brand-orange: #ff7a00;
  --brand-gold: #ffc531;
  --brand-ink: #172033;
  --brand-muted: #64748b;
  --brand-surface: #f8fbff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 174, 234, 0.08), transparent 28rem),
    var(--brand-surface);
}

@media (min-width: 768px) {
  #desktopNav { display: flex !important; }
}


.form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
}

.form-field {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 0.95rem 1rem;
  color: #0f172a;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.form-field::placeholder {
  color: #94a3b8;
}

.form-field:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(0, 174, 234, 0.18);
}

.form-field:hover {
  transform: translateY(-1px);
}

.error-summary {
  border-radius: 1rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  padding: 0.9rem 1rem;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 800;
}

.form-field[aria-invalid="true"] {
  border-color: #dc2626;
  background: #fff7f7;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.action-status {
  border-radius: 0.85rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 800;
}

.action-status[data-tone="success"] {
  background: #ecfdf5;
  color: #047857;
}

.action-status[data-tone="error"] {
  background: #fef2f2;
  color: #b91c1c;
}

.action-status[data-tone="info"] {
  background: #eff6ff;
  color: var(--brand-blue);
}

.trust-card {
  border-radius: 1.5rem;
  border: 1px solid #dbeafe;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 18px 50px rgba(0, 74, 173, 0.08);
}

.trust-card h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 900;
  color: #0f172a;
}

.trust-card p {
  margin-top: 0.5rem;
  line-height: 1.65;
  color: var(--brand-muted);
}

.trust-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(0, 174, 234, 0.16), rgba(255, 197, 49, 0.22));
  font-size: 1.35rem;
}

.preview-card {
  border-radius: 1.25rem;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 1.25rem;
}

.preview-card span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #c2410c;
}

.preview-card h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.preview-card p {
  margin-top: 0.5rem;
  color: var(--brand-muted);
  line-height: 1.6;
}

.step-number {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 900;
}

.feature-card,
.faq-card {
  border-radius: 1.25rem;
  border: 1px solid #dbeafe;
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 16px 42px rgba(0, 74, 173, 0.06);
}

.feature-card h3,
.faq-card h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.feature-card p,
.faq-card p {
  margin-top: 0.5rem;
  color: var(--brand-muted);
  line-height: 1.65;
}

.destination-chip {
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-blue);
  transition: background 160ms ease, transform 160ms ease;
}

.destination-chip:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.style-card {
  border-radius: 1.5rem;
  border: 1px solid #dbeafe;
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 16px 42px rgba(0, 74, 173, 0.06);
}

.style-card span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(0, 174, 234, 0.14), rgba(255, 122, 0, 0.14));
  font-size: 1.35rem;
}

.style-card h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.style-card p {
  margin-top: 0.5rem;
  color: var(--brand-muted);
  line-height: 1.6;
}

.scenic-card {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 1.25rem;
  text-align: left;
  box-shadow: 0 16px 42px rgba(0, 74, 173, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.scenic-card:hover,
.scenic-card:focus {
  border-color: var(--brand-sky);
  box-shadow: 0 20px 48px rgba(0, 74, 173, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.scenic-detail-panel {
  margin-top: 1rem;
  border-radius: 1.5rem;
  border: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 100%);
  padding: 1.25rem;
}

.scenic-map-link {
  display: inline-flex;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--brand-blue);
  padding: 0.75rem 1rem;
  font-weight: 900;
  color: #ffffff;
  transition: background 160ms ease;
}

.scenic-map-link:hover {
  background: var(--brand-navy);
}

.affiliate-card {
  border-radius: 1.25rem;
  border: 1px solid #dbeafe;
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 16px 42px rgba(0, 74, 173, 0.06);
}

.affiliate-card span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(0, 174, 234, 0.12);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--brand-blue);
}

.affiliate-card h4 {
  margin-top: 1rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.5;
}

.affiliate-card a {
  display: inline-flex;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--brand-orange);
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 900;
  transition: background 160ms ease, transform 160ms ease;
}

.affiliate-card a:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.plan-section-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid rgba(191, 219, 254, 0.95);
  background:
    radial-gradient(circle at top right, var(--plan-soft, #eff6ff), transparent 16rem),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: clamp(0.85rem, 3vw, 1.35rem);
  box-shadow: 0 22px 60px rgba(0, 74, 173, 0.11);
  word-break: break-word;
  overflow-wrap: break-word;
}

.plan-section-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.35rem;
  content: "";
  background: var(--plan-accent, var(--brand-blue));
}

.plan-section-card--blue { --plan-accent: var(--brand-blue); --plan-soft: #eff6ff; --plan-ink: #1d4ed8; }
.plan-section-card--orange { --plan-accent: var(--brand-orange); --plan-soft: #fff7ed; --plan-ink: #c2410c; }
.plan-section-card--sky { --plan-accent: var(--brand-sky); --plan-soft: #ecfeff; --plan-ink: #0891b2; }
.plan-section-card--gold { --plan-accent: var(--brand-gold); --plan-soft: #fffbeb; --plan-ink: #b45309; }
.plan-section-card--green { --plan-accent: #10b981; --plan-soft: #ecfdf5; --plan-ink: #047857; }
.plan-section-card--purple { --plan-accent: #8b5cf6; --plan-soft: #f5f3ff; --plan-ink: #6d28d9; }

.trip-detail-hero {
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
  border-radius: 2rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 197, 49, 0.28), transparent 16rem),
    radial-gradient(circle at 90% 20%, rgba(0, 174, 234, 0.25), transparent 18rem),
    linear-gradient(135deg, #062c73 0%, #004aad 48%, #0ea5e9 100%);
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 74, 173, 0.22);
}

.trip-detail-hero::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 15rem;
  height: 15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  content: "";
}

.trip-detail-hero-copy,
.trip-detail-pill-grid,
.trip-detail-note {
  position: relative;
  z-index: 1;
}

.trip-detail-eyebrow {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.4rem 0.75rem;
  color: #dff7ff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.trip-detail-hero h4 {
  margin-top: 0.85rem;
  max-width: 56rem;
  font-size: clamp(1.3rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.trip-detail-hero-copy > p:last-child {
  margin-top: 0.85rem;
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.75;
}

.trip-detail-pill-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 45%), 1fr));
}

.trip-detail-pill {
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.13);
  padding: 0.9rem;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.trip-detail-pill span,
.trip-detail-pill strong,
.trip-detail-pill em {
  display: block;
}

.trip-detail-pill span {
  font-size: 1.35rem;
}

.trip-detail-pill strong {
  margin-top: 0.35rem;
  color: #dff7ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trip-detail-pill em {
  margin-top: 0.25rem;
  color: #ffffff;
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.trip-detail-note {
  margin-top: 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
  color: #0f172a;
  line-height: 1.65;
}

.trip-detail-note strong {
  color: var(--brand-blue);
  font-weight: 950;
}

.plan-section-topline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
}

.plan-section-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, var(--plan-soft, #eff6ff), #ffffff);
  font-size: 1.45rem;
  box-shadow: inset 0 0 0 1px rgba(0, 74, 173, 0.08), 0 10px 28px rgba(15, 23, 42, 0.06);
}

.plan-section-topline p {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plan-ink, var(--brand-blue));
}

.plan-section-card h4 {
  margin-top: 0.2rem;
  color: #0f172a;
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.plan-section-subtitle {
  margin-top: 0.85rem;
  border-radius: 1rem;
  background: var(--plan-soft, #eff6ff);
  padding: 0.8rem 1rem;
  color: #334155;
  font-weight: 750;
  line-height: 1.55;
}

.plan-points {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.plan-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.9rem;
  color: var(--brand-muted);
  line-height: 1.6;
  box-shadow: inset 0 0 0 1px rgba(219, 234, 254, 0.9);
}

.plan-points li span {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 999px;
  background: var(--plan-accent, var(--brand-blue));
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 950;
}

.plan-points li p {
  margin: 0;
}

.plan-tips {
  margin-top: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--plan-soft, #eff6ff), #ffffff);
  padding: 1rem;
  color: var(--plan-ink, var(--brand-blue));
  box-shadow: inset 0 0 0 1px rgba(219, 234, 254, 0.9);
}

.plan-tips strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 950;
}

.plan-tips ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #475569;
  line-height: 1.65;
  list-style: disc;
}

.plan-section-footer {
  margin-top: 1rem;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-160%);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.75rem 1rem;
  color: var(--brand-blue);
  font-weight: 900;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--brand-gold);
  outline-offset: 3px;
}

button:disabled,
button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

button[data-loading="true"] {
  cursor: wait;
}

.noscript-warning {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 60;
  border-radius: 1rem;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  padding: 1rem;
  color: #9a3412;
  font-weight: 800;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  nav,
  footer,
  .skip-link,
  #donate,
  #faq,
  #how-it-works,
  #travel-styles,
  #plan-includes {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  #preview {
    display: block !important;
    padding: 0;
  }
}

.status-download-link {
  color: var(--brand-blue);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.status-download-link:hover,
.status-download-link:focus {
  color: var(--brand-navy);
}

.email-guide-panel {
  margin-top: 2rem;
}

.email-guide-card {
  border-radius: 1.6rem;
  border: 1px solid #bfdbfe;
  background:
    radial-gradient(circle at top left, rgba(255, 197, 49, 0.2), transparent 16rem),
    linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  padding: 1.25rem;
  box-shadow: 0 22px 60px rgba(0, 74, 173, 0.12);
}

.email-guide-eyebrow {
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.email-guide-card h3 {
  margin-top: 0.5rem;
  color: #0f172a;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.email-guide-card p:not(.email-guide-eyebrow) {
  margin-top: 0.6rem;
  color: #475569;
  line-height: 1.7;
}

.email-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.email-guide-primary,
.email-guide-secondary {
  border-radius: 999px;
  padding: 0.78rem 1rem;
  font-weight: 950;
}

.email-guide-primary {
  background: var(--brand-blue);
  color: #ffffff;
}

.email-guide-secondary {
  border: 1px solid #bfdbfe;
  background: #ffffff;
  color: var(--brand-blue);
}

.printable-guide-panel {
  margin-top: 2rem;
  border-radius: 1.75rem;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 1rem;
  box-shadow: 0 24px 70px rgba(0, 74, 173, 0.1);
}

.printable-guide-cover {
  border-radius: 1.35rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: #ffffff;
  padding: 1.5rem;
}

.printable-guide-cover p {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.printable-guide-cover h3 {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 950;
  line-height: 1.15;
}

.printable-guide-cover span {
  display: block;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.printable-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.printable-guide-print {
  border-radius: 999px;
  background: var(--brand-orange);
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-weight: 950;
}

.printable-guide-snapshot {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.printable-guide-snapshot div,
.printable-guide-section {
  border-radius: 1rem;
  border: 1px solid #dbeafe;
  background: #ffffff;
  padding: 1rem;
}

.printable-guide-snapshot strong,
.printable-guide-snapshot span {
  display: block;
}

.printable-guide-snapshot strong {
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.printable-guide-snapshot span {
  margin-top: 0.3rem;
  color: #0f172a;
  font-weight: 850;
}

.printable-guide-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .printable-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.printable-guide-section h4 {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 950;
}

.printable-guide-section ul {
  margin-top: 0.75rem;
  padding-left: 1.1rem;
  color: #475569;
  line-height: 1.65;
  list-style: disc;
}

.printable-guide-tips {
  margin-top: 1rem;
  border-radius: 0.85rem;
  background: #fff7ed;
  padding: 0.85rem;
  color: #9a3412;
}

.printable-guide-wide,
.printable-guide-note {
  margin-top: 1rem;
}

.printable-scenic-place {
  margin-top: 0.75rem;
  border-top: 1px solid #e0f2fe;
  padding-top: 0.75rem;
}

.printable-scenic-place p {
  margin-top: 0.35rem;
  color: #475569;
  line-height: 1.6;
}

.printable-scenic-place span,
.printable-guide-note {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media print {
  #previewCards,
  #fullPlanPreview,
  #scenicPreview,
  #affiliatePreview,
  #emailGuideMessage,
  .printable-guide-actions {
    display: none !important;
  }

  .printable-guide-panel {
    display: block !important;
    box-shadow: none;
    border: 0;
    padding: 0;
  }
}
/* ── Chatbot UI ─────────────────────────────────────── */
#chatMessages {
  scroll-behavior: smooth;
}

.typing-dots {
  display: inline-block;
  animation: typingPulse 1.4s infinite;
}

@keyframes typingPulse {
  0%, 60%, 100% { opacity: 1; }
  30% { opacity: 0.3; }
}

.chat-msg-user {
  justify-content: flex-end;
}

#chatAffiliateCards a {
  min-width: 120px;
}

/* ═══════════════════════════════════════════════════════════════
   TRAVELIYA FLOATING CHATBOT WIDGET
   Brand colors: blue #004aad · sky #00aeea · orange #ff7a00
   navy #062c73 · gold #ffc531
════════════════════════════════════════════════════════════════ */

/* ── Launcher button ─────────────────────────────────── */
.fcw-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #004aad 0%, #00aeea 100%);
  box-shadow: 0 8px 32px rgba(0, 74, 173, 0.45), 0 2px 8px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.fcw-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(0, 74, 173, 0.55), 0 4px 12px rgba(0,0,0,0.2);
}

.fcw-launcher:focus-visible {
  outline: 3px solid #ffc531;
  outline-offset: 3px;
}

/* Pulse ring animation */
.fcw-launcher::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(0, 174, 234, 0.35);
  animation: fcwPulse 2.4s ease-out infinite;
}

@keyframes fcwPulse {
  0%   { transform: scale(0.95); opacity: 0.7; }
  60%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

/* Stop pulse when open */
.fcw-launcher.fcw-open::before {
  animation: none;
  display: none;
}

.fcw-icon {
  width: 26px;
  height: 26px;
  color: #fff;
  transition: opacity 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}

.fcw-icon--hidden {
  display: none;
}

/* Unread badge */
.fcw-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #ff7a00;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
  padding: 0 5px;
  border: 2px solid #fff;
  transition: opacity 0.2s;
}

.fcw-badge--hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Chat panel ──────────────────────────────────────── */
.fcw-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 9998;
  width: 370px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 32px 80px rgba(6, 44, 115, 0.22),
    0 8px 24px rgba(0,0,0,0.12),
    0 0 0 1px rgba(0, 74, 173, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.fcw-panel--hidden {
  opacity: 0;
  transform: scale(0.88) translateY(16px);
  pointer-events: none;
}

/* ── Header ──────────────────────────────────────────── */
.fcw-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #062c73 0%, #004aad 60%, #00aeea 100%);
  flex-shrink: 0;
}

.fcw-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
}

.fcw-header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fcw-header-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.fcw-header-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.fcw-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
  animation: fcwStatusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes fcwStatusPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.fcw-header-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.fcw-header-close:hover {
  background: rgba(255,255,255,0.28);
}

/* ── Messages ────────────────────────────────────────── */
.fcw-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  min-height: 0;
}

.fcw-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.fcw-msg--user {
  flex-direction: row-reverse;
}

.fcw-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1;
}

.fcw-msg-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.fcw-msg-bubble--bot {
  background: linear-gradient(135deg, #004aad, #0061d5);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.fcw-msg-bubble--user {
  background: #f1f5f9;
  color: #172033;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.fcw-typing-bubble {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(135deg, #004aad, #0061d5);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}

.fcw-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  animation: fcwDotBounce 1.2s ease-in-out infinite;
}
.fcw-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.fcw-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes fcwDotBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-5px); }
}

/* ── Quick chips ─────────────────────────────────────── */
.fcw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px 8px;
  flex-shrink: 0;
  border-top: 1px solid #f1f5f9;
}

.fcw-chip {
  border: 1.5px solid #dbeafe;
  background: #eff6ff;
  color: #004aad;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.fcw-chip:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.fcw-chips--hidden {
  display: none;
}

/* ── Affiliate strip ─────────────────────────────────── */
.fcw-affiliate-strip {
  padding: 6px 14px 8px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.fcw-affiliate-strip--hidden {
  display: none;
}

.fcw-affiliate-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}

.fcw-affiliate-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fcw-affiliate-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1.5px solid #dbeafe;
  background: #eff6ff;
  color: #004aad;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}

.fcw-affiliate-card:hover {
  background: #dbeafe;
}

.fcw-affiliate-card-emoji {
  font-size: 14px;
  line-height: 1;
}

/* ── Input row ───────────────────────────────────────── */
.fcw-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px 14px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
  background: #fff;
}

.fcw-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  padding: 0 14px;
  font-size: 13px;
  color: #172033;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.fcw-input:focus {
  border-color: #004aad;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.12);
}

.fcw-input::placeholder {
  color: #94a3b8;
}

.fcw-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #004aad, #00aeea);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
}

.fcw-send:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 74, 173, 0.4);
}

.fcw-send:disabled {
  opacity: 0.55;
  transform: none;
  cursor: not-allowed;
}

/* ── Mobile tweaks ───────────────────────────────────── */
@media (max-width: 480px) {
  .fcw-launcher {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }

  .fcw-panel {
    bottom: 82px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 110px);
    border-radius: 20px;
  }
}

/* ════════════════════════════════════════════════════════════
   AI GENERATION LOADER
════════════════════════════════════════════════════════════ */
.ai-loader-overlay {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(4,15,45,0.80);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: aiLoaderFadeIn 0.28s ease forwards;
}
.ai-loader-overlay.hidden { display: none; }
@keyframes aiLoaderFadeIn { from { opacity:0 } to { opacity:1 } }

.ai-loader-card {
  background: #fff; border-radius: 28px; padding: 36px 32px 28px;
  max-width: 460px; width: 100%;
  box-shadow: 0 48px 120px rgba(0,0,0,0.40);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.ai-loader-globe {
  font-size: 56px; line-height: 1; margin-bottom: 16px;
  display: inline-block; animation: aiGlobeRock 3s ease-in-out infinite;
}
@keyframes aiGlobeRock {
  0%,100% { transform: rotate(-6deg) scale(1); }
  25%      { transform: rotate(0deg)  scale(1.07); }
  50%      { transform: rotate(6deg)  scale(1); }
  75%      { transform: rotate(0deg)  scale(1.07); }
}

.ai-loader-title {
  font-size: 19px; font-weight: 900; color: #062c73;
  margin: 0 0 6px; line-height: 1.35;
}

.ai-loader-step {
  font-size: 13px; font-weight: 700; color: #00aeea;
  margin: 0 0 18px; min-height: 20px;
}

.ai-loader-bar-wrap {
  width: 100%; height: 7px; background: #e8edf5;
  border-radius: 99px; overflow: hidden; margin-bottom: 22px;
}
.ai-loader-bar {
  height: 100%; width: 4%; border-radius: 99px;
  background: linear-gradient(90deg,#004aad 0%,#00aeea 50%,#ff7a00 100%);
  background-size: 300% 100%;
  transition: width 0.85s cubic-bezier(0.4,0,0.2,1);
  animation: aiBarShimmer 2.2s linear infinite;
}
@keyframes aiBarShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ai-loader-steps {
  list-style: none; padding: 0; margin: 0 0 20px; width: 100%;
  display: flex; flex-direction: column; gap: 7px; text-align: left;
}
.ai-step {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: #94a3b8;
  padding: 8px 12px; border-radius: 11px;
  border: 1.5px solid transparent; background: transparent;
  transition: all 0.32s ease;
}
.ai-step--active {
  color: #004aad; background: #eff6ff;
  border-color: #bfdbfe; font-weight: 800;
}
.ai-step--done {
  color: #16a34a; background: #f0fdf4; border-color: #bbf7d0;
}
.ai-step--done::after {
  content: '✓'; font-weight: 900; margin-left: auto; font-size: 14px;
}

.ai-loader-note {
  font-size: 11.5px; color: #94a3b8; margin: 0; line-height: 1.55;
}

@media (max-width: 480px) {
  .ai-loader-card  { padding: 26px 18px 20px; border-radius: 20px; }
  .ai-loader-globe { font-size: 42px; }
  .ai-loader-title { font-size: 16px; }
  .ai-step         { font-size: 12px; padding: 7px 10px; }
}

/* ════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER — nav dropdown
════════════════════════════════════════════════════════════ */
.lang-dropdown {
  min-width: 172px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.lang-dropdown li { list-style: none; }
.lang-opt {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 1.4;
}

/* FCW language indicator in header */
.fcw-lang-ind {
  font-size: 10px;
  opacity: 0.65;
  margin-left: 3px;
  white-space: nowrap;
}

/* Language ask card — inside chat messages */
.lang-ask-bubble {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  max-width: 300px;
}

/* FCW language ask bubble */
.fcw-lang-ask-bubble {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  max-width: 270px;
}

/* ════════════════════════════════════════════════════════════
   INLINE AFFILIATE ANCHOR LINKS inside plan text
════════════════════════════════════════════════════════════ */
a.traveliya-aff-link {
  color: #004aad;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s;
}
a.traveliya-aff-link:hover {
  color: #ff7a00;
  text-decoration-style: solid;
}

/* ════════════════════════════════════════════════════════════
   RTL SUPPORT (Arabic)
════════════════════════════════════════════════════════════ */
[dir="rtl"] .fcw-msg--user  { flex-direction: row; }
[dir="rtl"] .fcw-msg--bot   { flex-direction: row-reverse; }
[dir="rtl"] .ai-loader-steps { text-align: right; }
[dir="rtl"] .fcw-input-row   { direction: rtl; }
[dir="rtl"] .lang-opt        { text-align: right; }


.hidden {
  display: none !important;
}

.gear-card {
  display: block;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dbe4ff;
  transition: all 0.25s ease;
  text-decoration: none;
}

.gear-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.gear-title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.gear-action {
  color: #2563eb;
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════
   TRAVELIYA v2 — PREMIUM AFFILIATE & GEAR CARDS
════════════════════════════════════════════════════════════ */

/* Affiliate cards grid — premium layout */
#affiliateCards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.affiliate-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.affiliate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,74,173,0.1);
  border-color: #bfdbfe;
}

/* Gear cards */
#travelGearSection {
  margin-top: 2rem;
}

.gear-card-item {
  transition: transform 0.2s, box-shadow 0.2s;
}

.gear-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: #fed7aa !important;
}

/* Inline affiliate anchor links in plan text */
a.traveliya-inline-affiliate {
  color: #004aad;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s;
}

a.traveliya-inline-affiliate:hover {
  color: #ff7a00;
  text-decoration-style: solid;
}

/* Currency badge */
#currencyIndicator {
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  color: #1e40af;
}

/* Smart link badge */
.dynamic-badge {
  font-size: 0.62rem;
  background: #dcfce7;
  color: #166534;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
  vertical-align: middle;
}

/* Premium section header */
.section-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #004aad;
}

/* Mobile optimizations */
@media (max-width: 1023px) {
  #affiliateCards {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
@media (max-width: 640px) {
  #affiliateCards {
    grid-template-columns: 1fr 1fr;
  }
  #travelGearSection > div:last-child {
    grid-template-columns: 1fr 1fr;
  }
  .trip-detail-pill-grid {
    grid-template-columns: 1fr 1fr;
  }
  .plan-section-topline {
    gap: 0.6rem;
  }
  .plan-section-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }
  #smartRecsSection > div > div {
    grid-template-columns: 1fr 1fr;
  }
  .gear-card {
    padding: 12px;
  }
  #travelGearSection .gear-card-item {
    padding: 0.9rem !important;
  }
}
@media (max-width: 400px) {
  #affiliateCards,
  #travelGearSection > div:last-child,
  #smartRecsSection > div > div {
    grid-template-columns: 1fr;
  }
  .trip-detail-pill-grid {
    grid-template-columns: 1fr 1fr;
  }
}
