/* ═══════════════════════════════════════════════════════════
   AI ITINERARY DASHBOARD  (tab: dashboardPane)
   ═══════════════════════════════════════════════════════════ */

/* ── Dashboard tab button highlight ──────────────────────── */
.tab-btn--dashboard {
  background: linear-gradient(135deg, rgba(197,160,89,.18) 0%, rgba(197,160,89,.08) 100%);
  border-color: rgba(197,160,89,.35) !important;
  color: #C5A059 !important;
}
.tab-btn--dashboard.active {
  background: linear-gradient(135deg, rgba(197,160,89,.35) 0%, rgba(197,160,89,.15) 100%);
  box-shadow: 0 0 18px rgba(197,160,89,.3);
}

/* ── Empty state ─────────────────────────────────────────── */
.dash-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; min-height: 60vh; gap: 16px; padding: 48px; text-align: center;
  color: var(--muted);
}
.dash-empty-icon { font-size: 64px; }
.dash-empty h2 { color: var(--text); font-size: 1.6rem; margin: 0; }
.dash-empty p { max-width: 380px; line-height: 1.7; }

/* ── Dashboard body layout ───────────────────────────────── */
#dashboardPane { background: #060d18; overflow-y: auto; }
.dash-body {
  display: grid;
  grid-template-columns: 60px 1fr;
  min-height: 100%;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.dash-sidebar {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 16px 0;
  background: rgba(6,13,24,.92);
  border-right: 1px solid rgba(197,160,89,.1);
}
.dash-sb-btn {
  width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.dash-sb-btn svg { width: 18px; height: 18px; }
.dash-sb-btn:hover, .dash-sb-btn.active {
  background: rgba(197,160,89,.15);
  border-color: rgba(197,160,89,.4);
  color: #C5A059;
  box-shadow: 0 0 12px rgba(197,160,89,.2);
}

/* ── Main area ───────────────────────────────────────────── */
.dash-main {
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px 18px 14px 14px;
  overflow-x: hidden;
}

/* ── Header strip ────────────────────────────────────────── */
.dash-header-strip {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.dash-trip-title {
  margin: 0; font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, #C5A059, #E2C58A, #F8F5F0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-trip-sub { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.dash-header-right { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-meta-chip {
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  font-size: .72rem; font-weight: 600; color: var(--muted-light);
  letter-spacing: .06em;
}
.dash-meta-chip--gold {
  border-color: rgba(197,160,89,.4);
  background: rgba(197,160,89,.1);
  color: #C5A059;
}

/* ── Top row: map + plan cards ───────────────────────────── */
.dash-top-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  min-height: 300px;
}

/* ── India map card ──────────────────────────────────────── */
.dash-map-card {
  background: rgba(8,14,26,.9);
  border: 1px solid rgba(197,160,89,.18);
  border-radius: 16px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(197,160,89,.06), inset 0 1px 0 rgba(197,160,89,.08);
}
.dash-map-title {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: #C5A059; font-weight: 700;
}
.dash-india-svg {
  flex: 1; width: 100%; height: auto;
  filter: drop-shadow(0 0 20px rgba(197,160,89,.15));
}

/* ── Plan cards loading state ────────────────────────────── */
.dash-plan-loading {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 32px; text-align: center;
  border: 1px dashed rgba(197,160,89,.25);
  border-radius: 16px;
  background: rgba(197,160,89,.04);
}
.dash-plan-loading-icon { font-size: 36px; animation: dash-pulse 1.4s ease-in-out infinite; }
.dash-plan-loading p { margin: 0; font-size: .9rem; color: var(--text); }
.dash-plan-loading-sub { font-size: .75rem !important; color: var(--muted) !important; }
@keyframes dash-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.12); }
}

/* ── Vertical plan cards ─────────────────────────────────── */
.dash-plan-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  overflow: hidden;
}
.dash-plan-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.dash-plan-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.dash-plan-card-img {
  flex: 1;
  background-size: cover; background-position: center;
  min-height: 180px;
  position: relative;
}
.dash-plan-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.65) 100%);
}
.dash-plan-card-label {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: .62rem; font-weight: 700; letter-spacing: .12em;
  padding: 3px 8px; border-radius: 8px;
  text-transform: uppercase;
}
.dash-plan-card-label--best        { background: rgba(197,160,89,.9); color: #060d18; }
.dash-plan-card-label--recommended { background: rgba(15,184,160,.85); color: #060d18; }
.dash-plan-card-label--alternative { background: rgba(139,92,246,.85); color: #fff; }
.dash-plan-card-label--extra       { background: rgba(56,189,248,.85); color: #060d18; }

.dash-plan-card-footer {
  background: rgba(6,13,24,.9);
  padding: 10px 10px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.dash-plan-card-name { font-size: .82rem; font-weight: 700; color: #F0F4FF; margin-bottom: 6px; }
.dash-plan-card-icons { display: flex; gap: 6px; }
.dash-plan-card-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.dash-plan-card--best        { border-left: 3px solid #C5A059; }
.dash-plan-card--recommended { border-left: 3px solid #0FB8A0; }
.dash-plan-card--alternative { border-left: 3px solid #8B5CF6; }
.dash-plan-card--extra       { border-left: 3px solid #38BDF8; }

/* ── Experience cards (bottom row) ──────────────────────── */
.dash-exp-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.dash-exp-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
  position: relative;
  min-height: 160px;
  cursor: pointer;
  transition: transform .2s;
}
.dash-exp-card:hover { transform: scale(1.02); }
.dash-exp-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.dash-exp-card-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}
.dash-exp-card-icons { display: flex; flex-direction: column; gap: 6px; }
.dash-exp-card-icon {
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(6,13,24,.75);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.dash-exp-card-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(6,13,24,.8);
  border: 2px solid rgba(197,160,89,.5);
  display: flex; align-items: center; justify-content: center;
  align-self: flex-end; font-size: 16px;
  box-shadow: 0 0 14px rgba(197,160,89,.3);
}

/* ── Timeline ────────────────────────────────────────────── */
.dash-timeline {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.dash-tl-globe, .dash-tl-diamond { font-size: 18px; flex-shrink: 0; }
.dash-tl-track { flex: 1; position: relative; height: 24px; display: flex; align-items: center; }
.dash-tl-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,160,89,.45), transparent);
  position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
}
.dash-tl-stops {
  display: flex; align-items: center; justify-content: space-around;
  width: 100%; position: relative; z-index: 1;
}
.dash-tl-stop {
  width: 8px; height: 8px; border-radius: 50%;
  background: #C5A059;
  box-shadow: 0 0 8px rgba(197,160,89,.5);
  flex-shrink: 0; position: relative;
}
.dash-tl-stop::after {
  content: attr(data-label);
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  font-size: .55rem; color: var(--muted); white-space: nowrap;
}

/* ── Day-by-day accordion ────────────────────────────────── */
.dash-days-section { padding-bottom: 24px; }
.dash-days-heading {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: #C5A059; margin: 0 0 12px;
}
.dash-day-item {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; margin-bottom: 8px;
  overflow: hidden; background: rgba(255,255,255,.025);
}
.dash-day-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  transition: background .15s;
}
.dash-day-header:hover { background: rgba(255,255,255,.04); }
.dash-day-num {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(197,160,89,.15);
  border: 1px solid rgba(197,160,89,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #C5A059; flex-shrink: 0;
}
.dash-day-title { flex: 1; font-size: .9rem; font-weight: 600; color: #F0F4FF; }
.dash-day-meta { font-size: .72rem; color: var(--muted); }
.dash-day-chevron { color: var(--muted); transition: transform .2s; font-size: .85rem; }
.dash-day-item.open .dash-day-chevron { transform: rotate(90deg); }
.dash-day-body {
  display: none; padding: 0 16px 14px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.dash-day-item.open .dash-day-body { display: block; }
.dash-day-highlights {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px;
}
.dash-day-highlight-chip {
  font-size: .72rem; padding: 3px 10px; border-radius: 12px;
  background: rgba(197,160,89,.1); border: 1px solid rgba(197,160,89,.22);
  color: #E2C58A;
}
.dash-day-detail { font-size: .8rem; color: var(--muted-light); line-height: 1.65; }
.dash-day-detail strong { color: #F0F4FF; }

/* ═══════════════════════════════════════════════════════════
   CINEMATIC VIDEO OVERLAY
   ═══════════════════════════════════════════════════════════ */
.cinem-overlay {
  position: fixed; inset: 0; z-index: 99990;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.cinem-overlay.hidden { display: none; }
.cinem-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cinem-skip {
  position: absolute; top: 22px; right: 28px; z-index: 10;
  padding: 7px 20px;
  background: rgba(6,13,24,.72);
  border: 1px solid rgba(197,160,89,.35);
  border-radius: 24px;
  color: #C5A059; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; cursor: pointer;
  font-family: 'Space Grotesk','Inter',sans-serif;
  backdrop-filter: blur(8px);
  transition: opacity .2s;
}
.cinem-skip:hover { opacity: .8; }
.cinem-bar {
  position: absolute; left: 0; right: 0; height: 44px; background: #000;
}
.cinem-bar-top { top: 0; }
.cinem-bar-bot { bottom: 0; }

/* ── Route animation on India map ───────────────────────── */
.dash-route-line {
  stroke: #C5A059;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 8 5;
  animation: dash-route-anim 2s linear infinite;
}
@keyframes dash-route-anim {
  to { stroke-dashoffset: -52; }
}
