/* ── PWA standalone safe areas ───────────────────────────── */
@media (display-mode: standalone) {
  :root {
    --safe-top:    env(safe-area-inset-top, 44px);
    --safe-bottom: env(safe-area-inset-bottom, 34px);
  }
}

/* ============================================================
   YATRA — Design System v2.0
   Style: Editorial Magazine Luxury
   Fonts: Cormorant Garamond (display) + Inter (UI/body)
   Base: Warm paper #fdfcfa / Ink #1c1917
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600;1,700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables — Light (default) ─────────────────────── */
:root {
  /* Base */
  --paper:      #fdfcfa;
  --paper-2:    #f7f5f1;
  --paper-3:    #f0ece6;
  --ink:        #1c1917;
  --ink-2:      #44403c;
  --ink-3:      #78716c;
  --ink-4:      #a8a29e;
  --border:     #e7e5e1;
  --border-2:   #d4cfc9;

  /* Accent — sky blue family */
  --sky:        #0ea5e9;
  --sky-deep:   #0369a1;
  --sky-soft:   #e0f2fe;
  --sky-mid:    #7dd3fc;

  /* Traveler colors */
  --color-s:    #0ea5e9;   /* Sooraj — sky blue */
  --color-i:    #34d399;   /* Indu — mint */
  --color-e:    #fb923c;   /* Eeshu — peach */

  /* Semantic */
  --success:    #16a34a;
  --success-bg: #f0fdf4;
  --danger:     #dc2626;
  --danger-bg:  #fef2f2;
  --warning:    #d97706;
  --warning-bg: #fffbeb;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(28,25,23,.04);
  --shadow-sm:  0 2px 8px rgba(28,25,23,.06), 0 1px 2px rgba(28,25,23,.04);
  --shadow:     0 4px 20px rgba(28,25,23,.08), 0 2px 6px rgba(28,25,23,.04);
  --shadow-lg:  0 16px 48px rgba(28,25,23,.12), 0 4px 12px rgba(28,25,23,.06);
  --shadow-xl:  0 32px 80px rgba(28,25,23,.16), 0 8px 20px rgba(28,25,23,.08);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Layout */
  --max-w:   1200px;
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h:   62px;
  --nav-total: calc(var(--nav-h) + var(--safe-top));
  --bnav-h:  58px;
  --bnav-total: calc(var(--bnav-h) + var(--safe-bottom));

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Dark Mode ────────────────────────────────────────────── */
[data-theme="dark"],
.dark {
  --paper:    #141210;
  --paper-2:  #1c1917;
  --paper-3:  #28211d;
  --ink:      #fdfcfa;
  --ink-2:    #d6d3d1;
  --ink-3:    #78716c;
  --ink-4:    #44403c;
  --border:   #292524;
  --border-2: #3c3530;
  --sky-soft: #0c2d42;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow:    0 4px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
}

/* System dark mode when user hasn't set preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:    #141210;
    --paper-2:  #1c1917;
    --paper-3:  #28211d;
    --ink:      #fdfcfa;
    --ink-2:    #d6d3d1;
    --ink-3:    #78716c;
    --ink-4:    #44403c;
    --border:   #292524;
    --border-2: #3c3530;
    --sky-soft: #0c2d42;
  }
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Layout ───────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.main {
  padding-top: calc(var(--nav-total) + 20px);
  padding-bottom: 40px;
  min-height: 100vh;
}

@media (max-width: 860px) {
  .main { padding-bottom: calc(var(--bnav-total) + 16px); }
}

/* ── Typography ───────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
}

.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.2;
}

.h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}

.h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.sub   { color: var(--ink-3); font-size: 13px; }
.muted { color: var(--ink-4); }

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-total);
  padding-top: var(--safe-top);
  z-index: 200;
  background: rgba(253,252,250,.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .topbar {
  background: rgba(20,18,16,.92);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar { background: rgba(20,18,16,.92); }
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

/* ── Logo icon ── */
.brand__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand__icon svg {
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: block;
}

/* Mobile — same size as desktop, logo is readable at 36px */
@media (max-width: 860px) {
  .brand__icon     { width: 34px; height: 34px; }
  .brand__icon svg { width: 34px; height: 34px; }
}

/* Light/dark switching */
.brand__icon--light { display: flex; }
.brand__icon--dark  { display: none; }

@media (prefers-color-scheme: dark) {
  .brand__icon--light { display: none; }
  .brand__icon--dark  { display: flex; }
}
[data-theme="dark"]  .brand__icon--light { display: none; }
[data-theme="dark"]  .brand__icon--dark  { display: flex; }
[data-theme="light"] .brand__icon--light { display: flex; }
[data-theme="light"] .brand__icon--dark  { display: none; }

/* ── Brand text ── */
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1;
}

.brand__tag {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 3px;
  white-space: nowrap;
  /* Visible on all screen sizes */
  display: block;
}

/* Dark mode — tagline needs more contrast to be legible */
[data-theme="dark"] .brand__tag { color: rgba(253,252,250,.42); }

@media (prefers-color-scheme: dark) {
  .brand__tag { color: rgba(253,252,250,.42); }
}

@media (max-width: 860px) {
  .brand__name { font-size: 17px; }
  .brand__tag  { font-size: 7.5px; letter-spacing: .06em; }
}

/* Very small screens — hide tagline if it gets too cramped */
@media (max-width: 360px) {
  .brand__tag { display: none; }
}

/* Desktop nav */
.nav--desktop {
  display: flex;
  gap: 2px;
}

@media (max-width: 860px) { .nav--desktop { display: none; } }

.nav__link {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  transition: background .12s, color .12s;
  white-space: nowrap;
  letter-spacing: -.01em;
}

.nav__link:hover     { background: var(--paper-3); color: var(--ink); }
.nav__link--active   { background: var(--paper-3); color: var(--ink); font-weight: 600; }

/* Topbar right */
.topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hamburger */
.topbar__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .topbar__menu-btn { display: flex; }
  .topbar__right .btn--ghost { display: none; }
}

/* Mobile nav drawer */
.nav--mobile {
  position: fixed;
  top: var(--nav-total);
  left: 0; right: 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 190;
  padding: 8px 0 12px;
  display: none;
}

.nav--mobile.open { display: block; }

.nav--mobile .nav__link {
  display: block;
  padding: 12px 20px;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}

.nav--mobile .nav__link:last-child { border-bottom: none; }

/* ── Bottom nav (mobile PWA) ──────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bnav-total);
  background: rgba(253,252,250,.97);
  backdrop-filter: blur(24px) saturate(2);
  -webkit-backdrop-filter: blur(24px) saturate(2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 6px;
  padding-bottom: var(--safe-bottom);
  z-index: 200;
}

[data-theme="dark"] .bottom-nav { background: rgba(20,18,16,.97); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bottom-nav { background: rgba(20,18,16,.97); }
}

@media (min-width: 860px) { .bottom-nav { display: none; } }

.bnav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
  cursor: pointer;
  transition: color .12s;
  text-decoration: none;
  min-width: 52px;
  position: relative;
}

.bnav__item--active { color: var(--sky); }

.bnav__item--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--sky);
}

.bnav__icon {
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bnav__icon svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  padding: 20px;
  transition: box-shadow .2s var(--ease), border-color .2s;
}

.card--hover:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-2);
}

.card--link { display: block; cursor: pointer; }

.card--flat {
  box-shadow: none;
  background: var(--paper-3);
  border-color: transparent;
}

.card--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ── Photo cards (trip memory cards) ─────────────────────── */
.photo-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.photo-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s var(--ease);
}

.photo-card:hover .photo-card__img { transform: scale(1.04); }

.photo-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,25,23,.88) 0%,
    rgba(28,25,23,.3) 50%,
    rgba(28,25,23,.05) 100%
  );
}

.photo-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
}

.photo-card__badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(253,252,250,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(253,252,250,.25);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.photo-card__color-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.photo-card__tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.photo-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.photo-card__title--lg {
  font-size: clamp(22px, 3.5vw, 28px);
}

.photo-card__meta {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Gradient fallback for missing photos */
.photo-card--gradient-dubai     { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.photo-card--gradient-india     { background: linear-gradient(135deg, #f97316, #ea580c, #9a3412); }
.photo-card--gradient-vietnam   { background: linear-gradient(135deg, #065f46, #047857, #059669); }
.photo-card--gradient-europe    { background: linear-gradient(135deg, #1e3a5f, #2563eb, #3b82f6); }
.photo-card--gradient-default   { background: linear-gradient(135deg, #292524, #44403c, #57534e); }

/* ── Hero card ────────────────────────────────────────────── */
.hero-card {
  position: relative;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
  min-height: 320px;
}

@media (max-width: 600px) { .hero-card { min-height: 260px; } }

.hero-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28,25,23,.05) 0%,
    rgba(28,25,23,.02) 35%,
    rgba(28,25,23,.65) 72%,
    rgba(28,25,23,.95) 100%
  );
}

.hero-card__top {
  position: absolute;
  top: 16px; left: 18px; right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.hero-card__kicker {
  background: rgba(253,252,250,.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(253,252,250,.25);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}

.hero-card__countdown {
  background: var(--sky);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}

.hero-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 22px 24px;
  z-index: 2;
}

.hero-card__route {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-card__route em { font-style: normal; color: var(--sky-mid); }

.hero-card__sub {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-card__sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  flex-shrink: 0;
}

.hero-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }

.hero-card__tag {
  background: rgba(253,252,250,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(253,252,250,.2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}

/* ── Stats strip ──────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (max-width: 500px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

.stat-item {
  padding: 16px 10px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

@media (max-width: 500px) {
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
}

.stat-item__val {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.03em;
}

.stat-item__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 5px;
}

.stat-item__sub {
  font-size: 9px;
  color: var(--sky);
  font-weight: 600;
  margin-top: 2px;
}

/* ── Traveler cards ───────────────────────────────────────── */
.traveler-card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.traveler-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.traveler-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.traveler-stat {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 1px;
}

/* ── Section headers ──────────────────────────────────────── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}

.section-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--sky);
}

/* ── Memory grid ──────────────────────────────────────────── */
.memory-grid { display: flex; flex-direction: column; gap: 12px; }

.memory-grid__row {
  display: grid;
  gap: 12px;
}

.memory-grid__row--2 { grid-template-columns: 1fr 1fr; }
.memory-grid__row--3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 500px) {
  .memory-grid__row--2,
  .memory-grid__row--3 { grid-template-columns: 1fr 1fr; }
}

/* ── Traveler avatars stack ───────────────────────────────── */
.avatar-stack { display: flex; }

.avatar-stack__item {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(28,25,23,.5);
  margin-left: -6px;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-stack__item:first-child { margin-left: 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .1s;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  letter-spacing: -.01em;
}

.btn:hover { background: var(--paper-3); border-color: var(--border-2); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14,165,233,.25);
}
.btn--primary:hover { background: var(--sky-deep); border-color: var(--sky-deep); color: #fff; }

.btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn--ink:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); }

.btn--danger {
  background: var(--danger-bg);
  border-color: rgba(220,38,38,.2);
  color: var(--danger);
}
.btn--danger:hover { background: #fee2e2; }

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-3);
}
.btn--ghost:hover { background: var(--paper-3); border-color: var(--border); color: var(--ink); }

.btn--sm  { padding: 6px 12px; font-size: 12px; border-radius: var(--r-sm); }
.btn--lg  { padding: 12px 24px; font-size: 15px; border-radius: var(--r-lg); }
.btn-row  { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--paper-3);
  color: var(--ink-3);
  white-space: nowrap;
  letter-spacing: -.01em;
}

.badge--sky    { background: var(--sky-soft); border-color: rgba(14,165,233,.2); color: var(--sky-deep); }
.badge--green  { background: #f0fdf4; border-color: rgba(22,163,74,.2); color: #15803d; }
.badge--red    { background: var(--danger-bg); border-color: rgba(220,38,38,.2); color: var(--danger); }
.badge--amber  { background: var(--warning-bg); border-color: rgba(217,119,6,.2); color: var(--warning); }
.badge--ink    { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ── Forms ────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }

.field__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-4);
  margin-bottom: 6px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.input {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
  letter-spacing: -.01em;
}

.input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,.1);
}

.input::placeholder { color: var(--ink-4); }

select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2378716c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea.input { resize: vertical; min-height: 90px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

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

/* ── Flash messages ───────────────────────────────────────── */
.flash {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid transparent;
  letter-spacing: -.01em;
}
.flash--success { background: var(--success-bg); border-color: rgba(22,163,74,.25); color: #15803d; }
.flash--error   { background: var(--danger-bg);  border-color: rgba(220,38,38,.25); color: #b91c1c; }
.flash--info    { background: var(--sky-soft);   border-color: rgba(14,165,233,.2); color: var(--sky-deep); }

/* ── Page header ──────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* ── Flight row ───────────────────────────────────────────── */
.flight-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flight-row__logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.flight-row__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.flight-row__logo-text { font-size: 11px; font-weight: 700; color: var(--ink-3); }

.flight-row__main { flex: 1; min-width: 0; }

.flight-row__route {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.flight-row__arrow { color: var(--ink-4); font-size: 13px; }

.flight-row__meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-4);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  letter-spacing: -.01em;
}

/* ── List ─────────────────────────────────────────────────── */
.list    { display: flex; flex-direction: column; gap: 8px; }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }

@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── KV pairs ─────────────────────────────────────────────── */
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.kv-item {
  background: var(--paper-3);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  min-width: 0;
  overflow: hidden;
}

.kv-item__key {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-4);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kv-item__val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Empty state ──────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 56px 20px;
}

.empty__icon { font-size: 36px; opacity: .25; margin-bottom: 12px; }

.empty__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 6px;
}

/* ── Settings tabs ────────────────────────────────────────── */
.settings-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.settings-tab {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  color: var(--ink-4);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .12s, border-color .12s, background .12s;
  letter-spacing: -.01em;
}

.settings-tab:hover { color: var(--ink); background: var(--paper-3); }

.settings-tab--active {
  color: var(--sky);
  border-bottom-color: var(--sky);
  background: var(--sky-soft);
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline-line {
  position: absolute;
  left: 19px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--paper-2);
  flex-shrink: 0;
}

.timeline-date-marker {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  flex-shrink: 0;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in   { animation: fadeInUp .35s var(--ease) both; }
.fade-in-1 { animation-delay: .06s; }
.fade-in-2 { animation-delay: .12s; }
.fade-in-3 { animation-delay: .18s; }
.fade-in-4 { animation-delay: .24s; }
.fade-in-5 { animation-delay: .30s; }

/* ── Utilities ────────────────────────────────────────────── */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

.flex         { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.gap-16       { gap: 16px; }

.w-full      { width: 100%; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin-top: 48px;
  display: none;
}

@media (min-width: 860px) { .footer { display: block; } }

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: -.01em;
}

/* ── Autocomplete ─────────────────────────────────────────── */
.autocomplete-wrap { position: relative; }

.autocomplete-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
}

.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}

.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--paper-3); }
.autocomplete-item__main { font-weight: 600; color: var(--ink); font-size: 14px; }
.autocomplete-item__sub  { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

/* ── Trip Timeline ────────────────────────────────────────── */
.tl {
  position: relative;
  padding-left: 28px;
}

/* Vertical line */
.tl::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 1.5px;
  background: var(--border);
}

/* Day separator */
.tl__day {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 10px;
  margin-left: -28px;
  position: relative;
  z-index: 1;
}

.tl__day-bubble {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.tl__day-num {
  font-size: 11px;
  font-weight: 700;
}

.tl__day-mon {
  font-size: 7.5px;
  font-weight: 600;
  opacity: .65;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tl__day-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* Row */
.tl__row {
  display: flex;
  gap: 12px;
  padding: 3px 0;
  position: relative;
  z-index: 1;
  margin-left: -28px;
}

/* Dot column */
.tl__dot-col {
  width: 30px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.tl__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
}

/* Card column */
.tl__card-col {
  flex: 1;
  min-width: 0;
  padding-bottom: 10px;
}

/* Base card */
.tl__card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .1s;
}

a.tl__card:active { transform: scale(.985); }

/* Flight card accent */
.tl__card--flight { border-left: 3px solid #0ea5e9; }
.tl__card--hotel  { border-left: 3px solid #c9a84c; }
.tl__card--transport { border-left: 3px solid #34d399; }
.tl__card--restaurant { border-left: 3px solid #f97316; }
.tl__card--note   { border-left: 3px solid #a78bfa; }

/* Route line — the hero of flight cards */
.tl__route {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.tl__city {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.tl__arrow {
  color: var(--sky);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Meta row */
.tl__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tl__airline-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.tl__airline-init {
  width: 28px;
  height: 22px;
  background: var(--ink);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--paper);
  flex-shrink: 0;
  letter-spacing: .03em;
  font-family: var(--font-body);
}

.tl__meta-text {
  font-size: 11px;
  color: var(--ink-4);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cabin badge */
.tl__badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink-3);
  letter-spacing: .02em;
  flex-shrink: 0;
}

.tl__badge--sky {
  background: rgba(14,165,233,.12);
  color: var(--sky);
}

/* Hotel / transport row */
.tl__hotel-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tl__hotel-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.2;
}

.tl__hotel-info {
  flex: 1;
  min-width: 0;
}

.tl__hotel-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

/* Return flight */
.tl__return-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 6px;
}

.tl__card--return {
  background: rgba(167,139,250,.04);
}

/* ── Trip header card ────────────────────────────────────── */
.trip-hdr {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.trip-hdr__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
}

.trip-hdr__meta { flex: 1; min-width: 0; }

.trip-hdr__dates {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 4px;
}

.trip-hdr__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 10px;
}

.trip-hdr__travelers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trip-hdr__avatar {
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .02em;
}

.trip-hdr__tname {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  margin-right: 6px;
}

.trip-hdr__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: flex-start;
}

/* Stats strip — bottom of header card, separated by border */
.trip-hdr__stats {
  display: flex;
  flex-direction: row;
  border-top: 1px solid var(--border);
  background: var(--paper-3);
  flex-wrap: nowrap;
}

.trip-hdr__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-right: 1px solid var(--border);
  text-align: center;
  min-width: 0;
}

.trip-hdr__stat:last-child { border-right: none; }

.trip-hdr__stat-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.trip-hdr__stat-key {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 4px;
}

/* Tab count badge */
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--paper-3);
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-4);
  margin-left: 4px;
  vertical-align: middle;
}

.settings-tab--active .tab-count {
  background: var(--sky);
  color: #fff;
}

/* ── Fly again card ────────────────────────────────────────── */
.fly-again {
  background: #1a2332;
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.fly-again__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fly-again__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 3px;
}

.fly-again__route {
  font-size: 14px;
  font-weight: 600;
  color: rgba(253,252,250,.9);
  line-height: 1.2;
}

.fly-again__sub {
  font-size: 10px;
  color: rgba(253,252,250,.35);
  margin-top: 2px;
}

.fly-again__cta {
  background: #0ea5e9;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.fly-again__loading {
  font-size: 11px;
  color: rgba(253,252,250,.3);
  padding: 20px 0;
  text-align: center;
}

/* Chart layout */
.fly-chart__prices {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}

.fly-price-lbl {
  flex: 1;
  text-align: center;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  min-width: 0;
  overflow: hidden;
}

.fly-chart__inner {
  position: relative;
}

.fly-chart__bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 80px;
  border-bottom: 0.5px solid rgba(255,255,255,.1);
}

.fly-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

.fly-bar {
  width: 100%;
  min-height: 3px;
  transition: opacity .15s;
}

.fly-best-lbl {
  font-size: 7px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.fly-chart__labels {
  display: flex;
  gap: 3px;
  margin-top: 5px;
}

.fly-month-lbl {
  flex: 1;
  text-align: center;
  font-size: 8.5px;
  color: rgba(253,252,250,.3);
  font-weight: 500;
}

/* Footer */
.fly-again__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 0.5px solid rgba(255,255,255,.08);
}

.fly-footer-left { display: flex; align-items: baseline; gap: 2px; }

.fly-footer-muted {
  font-size: 11px;
  color: rgba(253,252,250,.35);
}

.fly-footer-price {
  font-size: 15px;
  font-weight: 700;
  color: #34d399;
}

.fly-footer-legend {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fly-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 1px;
}

.fly-legend-txt {
  font-size: 9px;
  color: rgba(253,252,250,.3);
  margin-right: 4px;
}

/* ── Peak demand cards (dashboard) ──────────────────────────── */
.peak-card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}

.peak-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.peak-card__city {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.peak-card__country {
  font-size: 11px;
  color: var(--ink-4);
  margin-left: 6px;
}

.peak-card__loading {
  font-size: 11px;
  color: var(--ink-4);
  flex-shrink: 0;
}

.peak-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 32px;
  border-bottom: 0.5px solid var(--border);
}

.peak-bar { flex: 1; }

.peak-months {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.peak-lbl {
  flex: 1;
  text-align: center;
  font-size: 8px;
  color: var(--ink-4);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════
   INSPIRATION MODULE  —  full rewrite
════════════════════════════════════════════════════════════ */

/* ── Page wrap & header ─────────────────────────────────── */
.inspire-wrap {
  padding-bottom: 32px;
}

.inspire-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.inspire-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}

.inspire-sub {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 4px;
}

.inspire-month-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 5px 12px;
  background: var(--paper-3);
  border-radius: 8px;
  flex-shrink: 0;
}

.warn-pill {
  font-size: 10px;
  font-weight: 700;
  color: #92400e;
  background: rgba(251,191,36,.12);
  border: 1px solid rgba(251,191,36,.25);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* ── Expiry warning ─────────────────────────────────────── */
.inspire-warn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.22);
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 14px;
  font-size: 11px;
  color: #78350f;
  line-height: 1.4;
}

.inspire-warn__icon { font-size: 13px; flex-shrink: 0; }

/* ── Search bar ─────────────────────────────────────────── */
.inspire-search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.inspire-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--ink-4);
  pointer-events: none;
}

.inspire-search-icon::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 5px;
  height: 2px;
  background: var(--ink-4);
  border-radius: 1px;
  transform: rotate(45deg);
}

.inspire-search {
  width: 100%;
  background: var(--paper-2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 40px 13px 38px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.inspire-search:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,.1);
}

.inspire-search::placeholder { color: var(--ink-4); }

.inspire-search-clear {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--paper-3);
  border: none;
  color: var(--ink-4);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 5px;
  line-height: 1;
}

/* ── Search dropdown ────────────────────────────────────── */
.sdrop {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  margin-bottom: 12px;
}

.sdrop-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
}

.sdrop-item:last-child { border-bottom: none; }
.sdrop-item:hover { background: var(--paper-2); }
.sdrop-item--search { color: var(--ink-3); }
.sdrop-flag { font-size: 18px; flex-shrink: 0; }
.sdrop-info { flex: 1; min-width: 0; }
.sdrop-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.sdrop-sub  { font-size: 10px; color: var(--ink-4); margin-top: 2px; }
.sdrop-pill { margin-left: auto; flex-shrink: 0; }

/* ── Filter toggles ─────────────────────────────────────── */
.inspire-filters { margin-bottom: 14px; }

.inspire-tog-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ins-tog {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--paper-3);
  color: var(--ink-4);
  border: 1.5px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
  white-space: nowrap;
}

.ins-tog.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ── AI recommendation card ─────────────────────────────── */
.ai-rec {
  background: #1c1917;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.ai-rec::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(167,139,250,.18) 0%, transparent 70%);
  pointer-events: none;
}

.ai-rec__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}

.ai-rec__dest {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  line-height: 1.1;
  min-height: 26px;
}

.ai-rec__pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  min-height: 22px;
}

.ai-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.78);
  white-space: nowrap;
}

.ai-pill--warn {
  background: rgba(251,191,36,.18);
  color: #fbbf24;
}

.ai-rec__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-rec__price-note {
  font-size: 10px;
  color: rgba(255,255,255,.28);
}

.ai-rec__cta {
  background: var(--sky);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  display: inline-block;
}

/* ── Layer tabs ─────────────────────────────────────────── */
.ins-tabs {
  display: flex;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 10px;
}

.ins-tab {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 9px 6px;
  color: var(--ink-4);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: color .15s;
  white-space: nowrap;
}

.ins-tab.on {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.ins-tab__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ins-layer-desc {
  font-size: 10px;
  color: var(--ink-4);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ── Destination scroll / grid ──────────────────────────── */
/* Mobile: horizontal scroll */
.ins-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 2px 20px 8px;
  scrollbar-width: none;
}
.ins-scroll::-webkit-scrollbar { display: none; }

/* Desktop: grid */
@media (min-width: 768px) {
  .ins-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0 0 8px;
    overflow: visible;
  }
}

@media (min-width: 1100px) {
  .ins-scroll {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ── Destination card ───────────────────────────────────── */
.dest-card {
  width: 165px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

@media (min-width: 768px) {
  .dest-card {
    width: auto;
  }
}

.dest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.dest-card--unserved { opacity: .4; }

.dest-card__img {
  height: 105px;
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
}

.dest-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.dest-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.7) 0%,
    rgba(0,0,0,.15) 55%,
    transparent 100%
  );
  z-index: 1;
}

.dest-card__tl {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  max-width: calc(100% - 28px);
}

.dest-card__tr {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 13px;
  z-index: 2;
  line-height: 1;
}

.dest-card__been {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 7.5px;
  font-weight: 700;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.9);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.dest-card__bottom {
  position: absolute;
  bottom: 9px;
  left: 10px;
  right: 10px;
  z-index: 2;
}

.dest-card__city {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.dest-card__country {
  font-size: 9px;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

.dest-card__body {
  padding: 9px 10px 11px;
}

.dest-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-height: 18px;
}

.dest-card__time {
  font-size: 9px;
  color: var(--ink-4);
  margin-right: 2px;
  white-space: nowrap;
}

.dest-card__demand { margin-top: 7px; }

/* ── Airline badges ─────────────────────────────────────── */
.al-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.al-fz { background: rgba(251,191,36,.18); color: #92400e; }
.al-ek { background: rgba(14,165,233,.15); color: #0369a1; }
.al-ey { background: rgba(139,92,246,.15); color: #5b21b6; }

/* ── Demand skeleton ────────────────────────────────────── */
.demand-skel {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--paper-3) 0%, var(--border) 50%, var(--paper-3) 100%);
  background-size: 200%;
  animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.skel {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--paper-3) 0%, var(--border) 50%, var(--paper-3) 100%);
  background-size: 200%;
  animation: shimmer 1.6s ease-in-out infinite;
}

/* ── Pills ──────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
}

.pill-green  { background: rgba(52,211,153,.14);  color: #065f46; }
.pill-amber  { background: rgba(251,191,36,.14);  color: #92400e; }
.pill-sky    { background: rgba(14,165,233,.14);  color: #0369a1; }
.pill-purple { background: rgba(167,139,250,.14); color: #6d28d9; }
.pill-muted  { background: rgba(0,0,0,.06);       color: var(--ink-3); }

/* ── Search result panel ────────────────────────────────── */
.sr-panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.sr-hero {
  height: 160px;
  position: relative;
  background: linear-gradient(135deg, #1c1917, #44403c);
  overflow: hidden;
}

.sr-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
}

.sr-hero-content {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  z-index: 1;
}

.sr-back {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
  cursor: pointer;
  display: inline-block;
}

.sr-back:hover { color: rgba(255,255,255,.8); }

.sr-city {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.sr-sub {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  margin-top: 3px;
}

.sr-tags {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.sr-tag { display: inline-flex; }

.sr-body { padding: 16px; }

.sr-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.sr-row:last-child { border-bottom: none; padding-bottom: 0; }

.sr-row__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--paper-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sr-row__content { flex: 1; min-width: 0; }

.sr-row__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.sr-row__sub {
  font-size: 10px;
  color: var(--ink-3);
  line-height: 1.45;
  margin-top: 4px;
}

.sr-loading {
  font-size: 11px;
  color: var(--ink-4);
  padding: 6px 0;
}

.sr-enable-link {
  font-size: 10px;
  color: var(--sky);
  font-weight: 600;
}

/* Season bars */
.sr-season-row {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  margin-top: 9px;
}

.sr-sm-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.sr-sm-bar { width: 100%; border-radius: 2px 2px 0 0; }
.sr-sm-lbl { font-size: 7px; color: var(--ink-4); font-weight: 600; }
.sr-sm-col.now .sr-sm-lbl { color: var(--sky); font-weight: 700; }

/* Price chart */
.sr-price-cols {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}

.pc-col { flex: 1; display: flex; flex-direction: column; align-items: center; }
.pc-best { font-size: 7px; font-weight: 700; color: var(--green); height: 11px; display: flex; align-items: center; }
.pc-val  { font-size: 7px; font-weight: 600; height: 11px; display: flex; align-items: center; }
.pc-bw   { height: 56px; display: flex; align-items: flex-end; width: 100%; }
.pc-b    { width: 100%; border-radius: 2px 2px 0 0; }
.pc-lbl  { font-size: 7px; color: var(--ink-4); height: 11px; display: flex; align-items: center; }

.sr-price-footer { font-size: 10px; color: var(--ink-4); margin-top: 8px; }

/* Weather row */
.sr-weather-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.sr-weather-day {
  flex: 1;
  background: var(--paper-3);
  border-radius: 9px;
  padding: 8px 4px;
  text-align: center;
}

.sr-weather-lbl  { font-size: 9px; color: var(--ink-4); font-weight: 600; }
.sr-weather-icon { font-size: 18px; margin: 4px 0; }
.sr-weather-temp { font-size: 12px; font-weight: 700; color: var(--ink); }

/* Yatra's read */
.yatra-read {
  background: #1c1917;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
}

.yatra-read__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.yt-row {
  display: flex;
  gap: 9px;
  margin-bottom: 9px;
  align-items: flex-start;
}

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

.yt-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.yt-t {
  font-size: 11px;
  color: rgba(255,255,255,.62);
  line-height: 1.5;
}

.yt-t strong {
  color: rgba(255,255,255,.92);
  font-weight: 600;
}

/* ── Empty state ────────────────────────────────────────── */
.inspire-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--ink-4);
  font-size: 13px;
}

/* ── Inspire nav highlight ──────────────────────────────── */
.nav__link--inspire { color: var(--sky) !important; font-weight: 700 !important; }

/* ── Dashboard "Where next?" card ──────────────────────── */
.dash-inspire {
  margin-bottom: 28px;
}

.dash-inspire-ai {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #1c1917;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.dash-inspire-ai::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(167,139,250,.18) 0%, transparent 70%);
  pointer-events: none;
}

.dash-inspire-ai__cta {
  background: var(--sky);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  flex-shrink: 0;
}

.dash-inspire-picks {
  display: flex;
  gap: 8px;
}

.dash-pick {
  flex: 1;
  min-width: 0;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  text-decoration: none;
  display: block;
  transition: opacity .15s;
}

.dash-pick:hover { opacity: .85; }

.dash-pick__img {
  height: 68px;
  position: relative;
  overflow: hidden;
}

.dash-pick__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Airline settings ───────────────────────────────────── */
.al-set-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.al-set-logo {
  width: 36px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.al-fz-bg { background: rgba(251,191,36,.18); color: #92400e; }
.al-ek-bg { background: rgba(14,165,233,.14); color: #0369a1; }
.al-ey-bg { background: rgba(139,92,246,.14); color: #5b21b6; }

.al-set-info { flex: 1; }
.al-set-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.al-set-sub  { font-size: 10px; color: var(--ink-3); margin-top: 2px; }

.al-set-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.al-set-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.al-set-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: background .2s;
}

.al-set-slider::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.al-set-toggle input:checked + .al-set-slider { background: var(--green); }
.al-set-toggle input:checked + .al-set-slider::after { transform: translateX(18px); }

/* ── Seamless stats strip ───────────────────────────────── */
.stats-strip--seamless {
  margin-bottom: 20px !important;
  border-radius: 0 0 var(--r-lg) var(--r-lg) !important;
  border: 1px solid var(--border) !important;
  border-top: none !important;
  background: var(--paper-2);
}

/* ── Shared section label ───────────────────────────────── */
.sec-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
