/* ==========================================================================
   planner.css — Itinera Luxury AI Trip Planner
   Aesthetics: Deep obsidian dark mode, Amber #F59E0B / #F0B429 accents,
   Fraunces serif typography, Glassmorphism, and responsive timeline tracks.
   ========================================================================== */

:root {
  --itinera-bg: #09090b;
  --itinera-card-bg: rgba(18, 18, 24, 0.75);
  --itinera-card-border: rgba(255, 255, 255, 0.08);
  --itinera-card-hover-border: rgba(245, 158, 11, 0.5);
  --itinera-amber: #f59e0b;
  --itinera-amber-glow: rgba(245, 158, 11, 0.25);
  --itinera-amber-hover: #d97706;
  --itinera-text: #f4f4f5;
  --itinera-muted: #a1a1aa;
  --itinera-dark-badge: rgba(255, 255, 255, 0.05);
  --itinera-font-serif: "Fraunces", Georgia, serif;
  --itinera-font-sans: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
}

html[data-theme-luxury] {
  background-color: var(--itinera-bg);
  color: var(--itinera-text);
  font-family: var(--itinera-font-sans);
}

body.planner-body {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 60%), #09090b;
  color: var(--itinera-text);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--itinera-font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Container */
.planner-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* ============================================================
   DESTINATION & TRAVEL TIMELINE STEP PROGRESS BAR
   ============================================================ */
.planner-progress-wrapper {
  margin-bottom: 2.5rem;
}

.planner-progress-title {
  font-family: var(--itinera-font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.02em;
}

.planner-progress-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.progress-step-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.progress-step-item.active,
.progress-step-item.completed {
  opacity: 1;
}

.progress-step-bar {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.progress-step-item.active .progress-step-bar {
  background: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.progress-step-item.completed .progress-step-bar {
  background: #f59e0b;
}

.progress-step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a1a1aa;
  font-family: var(--itinera-font-sans);
  transition: color 0.3s ease;
}

.progress-step-item.active .progress-step-label {
  color: #ffffff;
  font-weight: 700;
}

.progress-step-item.completed .progress-step-label {
  color: #f59e0b;
}

@media (max-width: 640px) {
  .planner-progress-title {
    font-size: 1.6rem;
  }
  .planner-progress-grid {
    gap: 0.4rem;
  }
  .progress-step-label {
    font-size: 0.7rem;
  }
}

/* ============================================================
   TOP NAVIGATION HEADER
   ============================================================ */
.itinera-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(12, 12, 16, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 1rem;
  z-index: 50;
  gap: 1rem;
}

.itinera-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.itinera-logo-badge {
  background: #f59e0b;
  color: #000;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.itinera-nav-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.itinera-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.2s ease;
}

.itinera-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.itinera-nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.itinera-nav-link.active i {
  color: #f59e0b;
}

.nav-counter-badge {
  background: #f59e0b;
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  margin-left: 0.25rem;
}

.itinera-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-command-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-command-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.search-command-btn kbd {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.68rem;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.8);
}

.quota-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
}

.topbar-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.user-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f59e0b;
  color: #000;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* ============================================================
   PLANNER STEP 1: DESTINATION & INPUT FORM
   ============================================================ */
.planner-section-header {
  margin-bottom: 1.5rem;
}

.planner-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.planner-section-desc {
  color: var(--itinera-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Popular Destinations Grid */
.destination-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.dest-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 190px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #18181b;
}

.dest-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.6);
}

.dest-card.selected {
  border-color: #f59e0b;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.25);
}

.dest-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.75);
}

.dest-card:hover .dest-card__image {
  transform: scale(1.04);
  filter: brightness(0.85);
}

.dest-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.dest-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.15rem;
}

.dest-card__country {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: capitalize;
  margin: 0;
}

.dest-card__badge-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f59e0b;
  color: #000;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dest-card.selected .dest-card__badge-check {
  display: flex;
}

/* Custom City Input & Form Fields */
.form-card-container {
  background: rgba(18, 18, 24, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.5);
}

.field-group {
  margin-bottom: 1.35rem;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-prefix {
  position: absolute;
  left: 1.1rem;
  color: #f59e0b;
  font-size: 0.95rem;
  pointer-events: none;
}

.luxury-input, .luxury-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.luxury-input:focus, .luxury-select:focus {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.03);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.luxury-select option {
  background: #18181b;
  color: #fff;
}

.form-grid-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .form-grid-three {
    grid-template-columns: 1fr;
  }
}

/* Button */
.btn-amber-proceed {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.btn-amber-proceed:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
  filter: brightness(1.05);
}

.btn-amber-proceed:active {
  transform: translateY(0);
}

/* ============================================================
   STEP 2: BUDGET & TRAVEL STYLE
   ============================================================ */
.budget-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tier-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 158, 11, 0.3);
}

.tier-card.selected {
  background: rgba(245, 158, 11, 0.08);
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.18);
}

.tier-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}

.tier-cost {
  font-size: 0.82rem;
  color: #f59e0b;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.tier-desc {
  font-size: 0.78rem;
  color: var(--itinera-muted);
  margin: 0;
  line-height: 1.4;
}

/* Experiences Chips */
.experience-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.exp-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.exp-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(245, 158, 11, 0.3);
}

.exp-chip.selected {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

/* Synthesis Loader */
.ai-synthesizing-modal {
  display: none;
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.spinner-glow {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(245, 158, 11, 0.2);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.synthesis-status-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.synthesis-subtext {
  font-size: 0.85rem;
  color: var(--itinera-muted);
  margin: 0;
}

/* ============================================================
   AI GENERATED MASTER PLAN PRESENTATION (MATCHING SCREENSHOTS)
   ============================================================ */
.master-plan-output {
  display: none;
  margin-top: 1rem;
}

.master-plan-card {
  background: rgba(18, 18, 24, 0.85);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 12px 40px -6px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.master-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.master-plan-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.master-plan-title {
  font-family: var(--itinera-font-serif);
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.master-plan-subtitle {
  font-size: 0.88rem;
  color: var(--itinera-muted);
  margin: 0;
}

.master-plan-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-book-paymob {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-book-paymob:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-save-trips {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s ease;
}

.btn-save-trips:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.master-plan-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.75rem;
  max-width: 960px;
}

/* Stats Summary Box */
.master-plan-stats-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--itinera-muted);
  margin-bottom: 0.35rem;
}

.stat-val-budget {
  font-family: var(--itinera-font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #f59e0b;
}

.stat-val-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-val-verified {
  font-family: var(--itinera-font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
}

/* ============================================================
   DAY BY DAY TIMELINE (MATCHING SCREENSHOTS 2, 3, 4, 5, 6)
   ============================================================ */
.days-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.day-card {
  background: rgba(18, 18, 24, 0.75);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.4);
}

.day-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.day-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.day-badge-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-title-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.day-count-tag {
  font-size: 0.82rem;
  color: var(--itinera-muted);
  font-weight: 500;
}

/* Timeline Layout */
.timeline-track-container {
  position: relative;
  padding-left: 2rem;
}

/* Connected Vertical Track Line */
.timeline-track-container::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 15px;
  bottom: 25px;
  width: 2px;
  background: rgba(245, 158, 11, 0.25);
}

.timeline-item-row {
  position: relative;
  margin-bottom: 1.25rem;
}

.timeline-item-row:last-child {
  margin-bottom: 0;
}

/* Glowing Node Dot */
.timeline-node-dot {
  position: absolute;
  left: -2rem;
  top: 1.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #09090b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
  transform: translateX(0);
}

.timeline-activity-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.2s ease;
}

.timeline-activity-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateX(4px);
}

.activity-info-col {
  flex: 1;
}

.activity-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.activity-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f59e0b;
  white-space: nowrap;
}

.activity-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.activity-desc {
  font-size: 0.82rem;
  color: var(--itinera-muted);
  margin: 0;
  line-height: 1.45;
}

.activity-meta-col {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

.activity-price {
  font-family: var(--itinera-font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f59e0b;
}

.activity-category-badge {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Toast */
.itinera-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #18181b;
  border: 1px solid #f59e0b;
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  gap: 0.65rem;
  z-index: 1000;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .itinera-topbar {
    border-radius: 16px;
    padding: 0.6rem 0.85rem;
  }
  .itinera-nav-pills {
    display: none;
  }
  .timeline-activity-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .activity-meta-col {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============ LM-01 LIGHT MODE (planner) ============
 * planner.css is a dark-first stylesheet. Under light mode remap to tokens.
 * Scoped under body.planner-body (only the planner page) + html:not(.dark).
 */
html:not(.dark) body.planner-body {
  --itinera-bg: hsl(var(--background));
  --itinera-text: hsl(var(--foreground));
  --itinera-muted: hsl(var(--muted-foreground));
  --itinera-card-border: hsl(var(--border));
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.10) 0%, transparent 60%), hsl(var(--background)) !important;
  color: hsl(var(--foreground)) !important;
}

/* white text -> foreground */
html:not(.dark) body.planner-body .planner-progress-title,
html:not(.dark) body.planner-body .progress-step-item.active .progress-step-label,
html:not(.dark) body.planner-body .itinera-logo,
html:not(.dark) body.planner-body .itinera-nav-link:hover,
html:not(.dark) body.planner-body .itinera-nav-link.active,
html:not(.dark) body.planner-body .search-command-btn:hover,
html:not(.dark) body.planner-body .topbar-icon-btn:hover,
html:not(.dark) body.planner-body .dest-card__title,
html:not(.dark) body.planner-body .luxury-input,
html:not(.dark) body.planner-body .luxury-select,
html:not(.dark) body.planner-body .luxury-select option,
html:not(.dark) body.planner-body .tier-title,
html:not(.dark) body.planner-body .exp-chip:hover,
html:not(.dark) body.planner-body .synthesis-status-text,
html:not(.dark) body.planner-body .master-plan-title,
html:not(.dark) body.planner-body .stat-val-number,
html:not(.dark) body.planner-body .day-title-text,
html:not(.dark) body.planner-body .activity-name,
html:not(.dark) body.planner-body .itinera-toast,
html:not(.dark) body.planner-body .btn-save-trips {
  color: hsl(var(--foreground)) !important;
}

/* dimmed white text -> muted */
html:not(.dark) body.planner-body .itinera-nav-link,
html:not(.dark) body.planner-body .search-command-btn,
html:not(.dark) body.planner-body .topbar-icon-btn,
html:not(.dark) body.planner-body .dest-card__country,
html:not(.dark) body.planner-body .field-label,
html:not(.dark) body.planner-body .exp-chip,
html:not(.dark) body.planner-body .master-plan-desc,
html:not(.dark) body.planner-body .activity-category-badge,
html:not(.dark) body.planner-body .search-command-btn kbd {
  color: hsl(var(--muted-foreground)) !important;
}

/* dark glass panels -> subtle cards */
html:not(.dark) body.planner-body .itinera-topbar,
html:not(.dark) body.planner-body .itinera-nav-pills,
html:not(.dark) body.planner-body .search-command-btn,
html:not(.dark) body.planner-body .topbar-icon-btn,
html:not(.dark) body.planner-body .luxury-input,
html:not(.dark) body.planner-body .luxury-select,
html:not(.dark) body.planner-body .tier-card,
html:not(.dark) body.planner-body .tier-card:hover,
html:not(.dark) body.planner-body .exp-chip,
html:not(.dark) body.planner-body .btn-save-trips,
html:not(.dark) body.planner-body .btn-save-trips:hover,
html:not(.dark) body.planner-body .master-plan-stats-box,
html:not(.dark) body.planner-body .timeline-activity-card,
html:not(.dark) body.planner-body .timeline-activity-card:hover,
html:not(.dark) body.planner-body .progress-step-bar {
  background-color: rgba(0, 0, 0, 0.045) !important;
}

/* white borders -> token border */
html:not(.dark) body.planner-body .itinera-topbar,
html:not(.dark) body.planner-body .itinera-nav-pills,
html:not(.dark) body.planner-body .search-command-btn,
html:not(.dark) body.planner-body .search-command-btn:hover,
html:not(.dark) body.planner-body .topbar-icon-btn,
html:not(.dark) body.planner-body .dest-card,
html:not(.dark) body.planner-body .form-card-container,
html:not(.dark) body.planner-body .luxury-input,
html:not(.dark) body.planner-body .luxury-select,
html:not(.dark) body.planner-body .tier-card,
html:not(.dark) body.planner-body .exp-chip,
html:not(.dark) body.planner-body .master-plan-card,
html:not(.dark) body.planner-body .master-plan-stats-box,
html:not(.dark) body.planner-body .day-card,
html:not(.dark) body.planner-body .day-card-header,
html:not(.dark) body.planner-body .timeline-activity-card,
html:not(.dark) body.planner-body .btn-save-trips,
html:not(.dark) body.planner-body .btn-save-trips:hover {
  border-color: hsl(var(--border)) !important;
}

html:not(.dark) body.planner-body .timeline-node-dot {
  border-color: hsl(var(--foreground)) !important;
}
