/* ==========================================================================
   VOYIQO DESIGN SYSTEM v2 — "Aurora"
   Presentation layer only. No JS / API / data bindings are changed.
   Loaded after all legacy stylesheets. Rollback: restore .backups/*pre-redesign.
   ========================================================================== */

:root {
  --ink: #0a0f24;
  --ink-2: #1b2340;
  --muted: #667094;
  --faint: #98a2c3;
  --canvas: #f2f4fb;
  --surface: #ffffff;
  --line: rgba(20, 30, 70, .08);
  --line-strong: rgba(20, 30, 70, .14);
  --brand: #3d5afe;
  --brand-2: #7c5cff;
  --brand-soft: rgba(61, 90, 254, .09);
  --amber: #ffb020;
  --teal: #12b8a6;
  --rose: #ff4d6d;
  --grad: linear-gradient(135deg, #3d5afe 0%, #7c5cff 100%);
  --grad-warm: linear-gradient(135deg, #ff8a3d 0%, #ff4d6d 100%);
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --sh-1: 0 1px 2px rgba(10, 15, 36, .04), 0 2px 8px rgba(10, 15, 36, .04);
  --sh-2: 0 2px 4px rgba(10, 15, 36, .04), 0 12px 32px -8px rgba(10, 15, 36, .12);
  --sh-3: 0 30px 70px -20px rgba(61, 90, 254, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 80px;
  --header-content-gap: 8px;
}

/* ── Foundations ─────────────────────────────────────────────────────────── */
html body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html body h1, html body h2, html body h3, html body .display {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  letter-spacing: -.03em;
}
html body ::selection { background: rgba(61, 90, 254, .2); }
html body :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
html body .vq-app-wrapper {
  background:
    radial-gradient(900px 420px at 85% -80px, rgba(124, 92, 255, .13), transparent 70%),
    radial-gradient(700px 380px at 10% -60px, rgba(61, 90, 254, .11), transparent 70%),
    var(--canvas) !important;
  color: var(--ink);
}

/* ── Floating glass navigation ───────────────────────────────────────────── */
@media (min-width: 769px) {
  html body .hp-nav {
    top: 14px; left: 16px; right: 16px;
    height: 64px;
    padding: 0 14px 0 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    box-shadow: var(--sh-1);
  }
  html body .hp-nav.scrolled { box-shadow: var(--sh-2); background: rgba(255, 255, 255, .9); }
  html body.admin-bar .hp-nav { top: 46px; }
  html body .hp-logo img { height: 38px; }
  html body .hp-nav-links {
    gap: 4px; padding: 5px;
    background: rgba(20, 30, 70, .045);
    border-radius: 999px;
  }
  html body .hp-nav-links a {
    padding: 8px 18px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; color: var(--muted);
    transition: background .25s var(--ease), color .25s, box-shadow .25s;
  }
  html body .hp-nav-links a:hover { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
}
html body .hp-nav .btn-ghost,
html body .hp-nav-ctas .btn-ghost {
  border-radius: 999px; background: #fff; border: 1px solid var(--line-strong);
  font-weight: 600; font-size: 13.5px; color: var(--ink);
}
html body .hp-nav .btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
html body .hp-nav .btn-primary, html body .hp-nav-ctas .btn-primary {
  border-radius: 999px; background-image: var(--grad); border: 0;
  box-shadow: 0 8px 20px -8px rgba(61, 90, 254, .65);
}
html body .hp-nav #nav-user-avatar { border: 2px solid #fff; box-shadow: 0 0 0 2px var(--brand-soft); }

/* ── Dark fixed sidebar (Matches header, desktop viewport height, stops before footer, scrollable) ── */
@media (min-width: 769px) {
  html body .vq-app-wrapper > .flex { gap: 0; align-items: flex-start; }
  html body aside.app-sidebar, html body .app-sidebar {
    position: fixed !important;
    top: 92px;
    bottom: calc(24px + var(--sb-footer-offset, 0px)) !important;
    left: 20px;
    width: 17rem !important;
    height: auto !important;
    max-height: calc(100vh - 116px - var(--sb-footer-offset, 0px)) !important;
    min-height: 220px;
    margin: 0 !important;
    padding: 22px 14px !important;
    background:
      radial-gradient(240px 200px at 0% 0%, rgba(124, 92, 255, .35), transparent 70%),
      radial-gradient(240px 200px at 100% 100%, rgba(61, 90, 254, .3), transparent 70%),
      var(--ink) !important;
    border: 1px solid rgba(255, 255, 255, .06) !important;
    border-radius: var(--r-xl);
    box-shadow: 0 30px 60px -24px rgba(10, 15, 36, .55);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 40;
    will-change: bottom, max-height, transform;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  }
  html body aside.app-sidebar::-webkit-scrollbar,
  html body .app-sidebar::-webkit-scrollbar {
    width: 5px;
  }
  html body aside.app-sidebar::-webkit-scrollbar-track,
  html body .app-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }
  html body aside.app-sidebar::-webkit-scrollbar-thumb,
  html body .app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
  }
  html body aside.app-sidebar::-webkit-scrollbar-thumb:hover,
  html body .app-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
  }
  html body.admin-bar aside.app-sidebar, html body.admin-bar .app-sidebar {
    top: 124px;
    max-height: calc(100vh - 148px - var(--sb-footer-offset, 0px)) !important;
  }
  html body .vq-app-wrapper main {
    margin-left: calc(17rem + 28px) !important;
    width: calc(100% - 17rem - 28px) !important;
    max-width: calc(100% - 17rem - 28px) !important;
  }
}
@media (max-width: 768px) {
  html, body, .vq-app-wrapper, main { max-width: 100vw; overflow-x: hidden; }
  html body .vq-app-wrapper main { margin-left: 0 !important; width: 100% !important; max-width: 100% !important; }
}

html body .app-sidebar .sb-eyebrow {
  padding: 4px 14px 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .38);
  flex-shrink: 0;
}
html body .app-sidebar nav { padding-top: 0 !important; display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
html body .app-sidebar nav a {
  position: relative; gap: 14px !important;
  padding: 10px 12px !important; border-radius: 16px !important;
  font-weight: 600; font-size: 14.5px; letter-spacing: -.01em;
  color: rgba(255, 255, 255, .66) !important;
  background: transparent !important;
  transition: background .3s var(--ease), color .3s, transform .3s var(--ease);
}
html body .app-sidebar nav a:hover {
  background: rgba(255, 255, 255, .07) !important; color: #fff !important; transform: translateX(3px);
}
html body .app-sidebar nav a svg, html body .app-sidebar nav a img {
  width: 36px !important; height: 36px !important; padding: 8px; border-radius: 12px;
  background: rgba(255, 255, 255, .95); flex-shrink: 0;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}
html body .app-sidebar nav a.bg-blue-50 {
  background: linear-gradient(135deg, rgba(61, 90, 254, .95), rgba(124, 92, 255, .95)) !important;
  color: #fff !important;
  box-shadow: 0 14px 28px -12px rgba(61, 90, 254, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
html body .app-sidebar nav a.bg-blue-50:hover { transform: none; }
html body .app-sidebar .sb-foot {
  margin-top: auto; padding: 16px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .75); font-size: 12.5px; line-height: 1.5;
  flex-shrink: 0;
}
html body .app-sidebar .sb-foot strong { display: block; color: #fff; font-size: 13.5px; margin-bottom: 2px; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── Page header ─────────────────────────────────────────────────────────── */
html body .vq-app-wrapper main { padding-top: 12px; }
html body .vq-app-wrapper main h2.text-3xl,
html body .vq-app-wrapper main h1.text-3xl {
  font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.045em;
}
html body .vq-app-wrapper main h2.text-3xl span[style*="color"],
html body .vq-app-wrapper main h1.text-3xl span[style*="color"] {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent !important;
}
html body .vq-app-wrapper main h2.text-3xl + p,
html body .vq-app-wrapper main .text-gray-400 { color: var(--muted); }
html body .vq-app-wrapper main h2.text-3xl + p { font-size: 15.5px; margin-top: 6px; }

/* ── Surfaces ────────────────────────────────────────────────────────────── */
html body .card, html body .stat-card, html body .cr-kpi-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
html body .vq-app-wrapper .rounded-3xl { border-radius: var(--r-xl); }
html body .vq-app-wrapper .rounded-2xl { border-radius: var(--r-lg); }
html body .vq-app-wrapper .rounded-xl { border-radius: var(--r-md); }
html body .vq-app-wrapper .bg-white.border,
html body .vq-app-wrapper .bg-white.border-gray-100,
html body .vq-app-wrapper .bg-white.border-gray-200 {
  border-color: var(--line); box-shadow: var(--sh-1);
}
html body .vq-app-wrapper .bg-gray-50 { background: rgba(255, 255, 255, .6); }
html body .vq-app-wrapper .border-gray-100, html body .vq-app-wrapper .border-gray-200 { border-color: var(--line); }

/* ── Trip cards (image-first) ────────────────────────────────────────────── */
html body .card-flat {
  position: relative; display: flex; flex-direction: column; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-1); overflow: hidden; cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
html body .card-flat:hover {
  transform: translateY(-6px); border-color: transparent;
  box-shadow: 0 2px 4px rgba(10, 15, 36, .04), 0 28px 60px -16px rgba(61, 90, 254, .32);
}
html body .card-flat > div.h-40 { height: 210px !important; overflow: hidden; position: relative; }
html body .card-flat > div.h-40::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 15, 36, .28) 0%, transparent 38%, rgba(10, 15, 36, .55) 100%);
}
html body .card-flat > div.h-40 img { transition: transform 1.1s var(--ease); }
html body .card-flat:hover > div.h-40 img { transform: scale(1.08); }
html body .card-flat > .p-6 { padding: 18px 22px 22px; position: static; }
html body .card-flat > .p-6 h3 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
/* status chips float over the photo */
html body .card-flat > .p-6 > div:first-child { display: block; margin: 0 0 6px; }
html body .card-flat > .p-6 > div:first-child > div:last-child {
  position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; gap: 6px;
}
html body .card-flat > .p-6 > div:first-child > div:last-child > span {
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .88) !important; color: var(--ink) !important;
  border: 1px solid rgba(255, 255, 255, .6) !important;
  padding: 6px 12px !important; font-size: 10.5px !important; letter-spacing: .06em;
  border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(10, 15, 36, .35);
}
html body .card-flat > .p-6 > div:first-child > div:last-child > span.text-rose-700,
html body .card-flat > .p-6 > div:first-child > div:last-child > span.status-canceled {
  color: #be123c !important;
  background: rgba(255, 241, 242, 0.95) !important;
  border-color: rgba(253, 164, 175, 0.8) !important;
}
html body .card-flat > .p-6 p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
html body .card-flat > .p-6 p .text-blue-500 {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; letter-spacing: .04em;
  background: var(--brand-soft); color: var(--brand) !important;
}
html body .card-flat.border-rose-200\/80 { border-color: rgba(255, 77, 109, .3); }

/* ── Segmented filters & chips ───────────────────────────────────────────── */
html body main .bg-gray-100.p-1 {
  background: rgba(20, 30, 70, .06); border-radius: 999px; padding: 5px; gap: 2px;
}
html body main .bg-gray-100.p-1 > button {
  gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  transition: background .3s var(--ease), box-shadow .3s, color .2s;
}
html body main .bg-gray-100.p-1 > button.bg-white { background: #fff; box-shadow: 0 4px 12px -4px rgba(10, 15, 36, .2); }
html body main .bg-gray-100.p-1 > button > span:nth-child(2) {
  padding: 2px 8px; border-radius: 999px; font-size: 11px; line-height: 1.5;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
html body .btn-primary, html body main button.bg-blue-600, html body main .bg-blue-600.text-white {
  background-image: var(--grad); background-color: var(--brand); color: #fff; border: 0;
  border-radius: 999px; font-weight: 700;
  box-shadow: 0 10px 24px -10px rgba(61, 90, 254, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
}
html body .btn-primary:hover, html body main button.bg-blue-600:hover {
  transform: translateY(-2px); filter: brightness(1.07);
  box-shadow: 0 16px 32px -10px rgba(61, 90, 254, .8), inset 0 1px 0 rgba(255, 255, 255, .22);
}
html body .btn-primary:active, html body .btn-ghost:active, html body main button:active { transform: scale(.97); }
html body .btn-ghost {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); font-weight: 600;
  transition: transform .3s var(--ease), border-color .2s, box-shadow .3s;
}
html body .btn-ghost:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-1px); }
html body main button.border.bg-white, html body main button.bg-white.border.rounded-xl {
  border-radius: 999px; transition: transform .3s var(--ease), box-shadow .3s, border-color .2s;
}
html body main button.border.bg-white:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-1px); }

/* ── Autocomplete & Search Dropdown Menus: Constant, clean border-radius that NEVER turns oval ── */
.vq-search-dropdown,
.vq-autocomplete-dropdown,
div.absolute[x-show*="SearchResults"],
div.absolute[x-show*="tempCountrySearch"] {
  border-radius: 14px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(20, 30, 70, 0.12) !important;
  box-shadow: 0 14px 34px -4px rgba(10, 15, 36, 0.16), 0 4px 12px -2px rgba(10, 15, 36, 0.08) !important;
  z-index: 50 !important;
}
.vq-search-dropdown > div,
div.absolute[x-show*="SearchResults"] > div,
div.absolute[x-show*="tempCountrySearch"] > div {
  padding: 10px 14px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(20, 30, 70, 0.05) !important;
  cursor: pointer !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}
.vq-search-dropdown > div:last-child,
div.absolute[x-show*="SearchResults"] > div:last-child,
div.absolute[x-show*="tempCountrySearch"] > div:last-child {
  border-bottom: none !important;
}
.vq-search-dropdown > div:hover,
div.absolute[x-show*="SearchResults"] > div:hover,
div.absolute[x-show*="tempCountrySearch"] > div:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

/* ── Redesigned Trip Cancellation Section ────────────────────────────────── */
.vq-cancellation-card {
  background: #ffffff !important;
  border: 1px solid rgba(20, 30, 70, 0.1) !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 1px 3px rgba(10, 15, 36, 0.03), 0 4px 14px rgba(10, 15, 36, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
@media (max-width: 640px) {
  .vq-cancellation-card {
    padding: 18px 18px !important;
  }
}
.vq-cancellation-card:hover {
  border-color: rgba(20, 30, 70, 0.18) !important;
  box-shadow: 0 6px 20px rgba(10, 15, 36, 0.06) !important;
}
.vq-cancellation-card.state-non-refundable {
  border-left: 5px solid #e11d48 !important;
}
.vq-cancellation-card.state-fully-refunded {
  border-left: 5px solid #059669 !important;
}
.vq-cancellation-card.state-partially-refunded {
  border-left: 5px solid #2563eb !important;
}

/* Category Badge with ample padding & icon spacing */
.vq-booking-category-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  line-height: 1 !important;
}
.vq-badge-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 9px !important;
  font-size: 13.5px !important;
  line-height: 1 !important;
}
.vq-badge-label {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #1e293b !important;
  line-height: 1 !important;
}

/* Booked cost badge */
.vq-booking-cost-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  flex-shrink: 0 !important;
}

/* 3 Refund Action Buttons */
.vq-refund-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  border: 1.5px solid rgba(20, 30, 70, 0.12) !important;
  background: #ffffff !important;
  color: #334155 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  white-space: nowrap !important;
}
.vq-refund-btn i {
  margin-right: 4px !important;
}
.vq-refund-btn:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: rgba(20, 30, 70, 0.22) !important;
}
.vq-refund-btn.active-non-refundable {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #be123c !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28) !important;
}
.vq-refund-btn.active-fully-refunded {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28) !important;
}
.vq-refund-btn.active-partially-refunded {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
}

/* Partially Refunded Dedicated Box & Divider */
.vq-partially-refunded-box {
  margin-top: 24px !important;
  padding: 24px 26px !important;
  background: #f8fafc !important;
  border: 1.5px solid #bfdbfe !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.04) !important;
}
.vq-partial-divider {
  height: 1px !important;
  background-color: #dbeafe !important;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  border: none !important;
}

/* Status summary boxes for 100% loss and 100% refund */
.vq-status-summary-box {
  margin-top: 22px !important;
  padding: 16px 20px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}
.vq-status-summary-box.state-non-refundable {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
}
.vq-status-summary-box.state-fully-refunded {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
}

/* Cancellation Reasons Grid & Form Groups */
.vq-cancellation-reasons-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px 28px !important;
  row-gap: 28px !important;
  column-gap: 28px !important;
  margin-top: 10px !important;
  margin-bottom: 24px !important;
}
@media (max-width: 768px) {
  .vq-cancellation-reasons-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    row-gap: 22px !important;
  }
}
.vq-cancellation-field-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.vq-cancellation-label {
  display: block !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
}
.vq-cancellation-select,
.vq-cancellation-input {
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 18px !important;
  border-radius: 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  font-size: 14px !important;
  color: #0f172a !important;
  transition: all 0.2s ease !important;
}
.vq-cancellation-select:focus,
.vq-cancellation-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

/* Itemized Costs Outer Container */
.vq-itemized-costs-container {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 22px !important;
  padding: 28px 30px !important;
  margin-top: 24px !important;
}
@media (max-width: 640px) {
  .vq-itemized-costs-container {
    padding: 20px 18px !important;
  }
}
.vq-summary-divider {
  height: 1px !important;
  background-color: #e2e8f0 !important;
  margin-top: 32px !important;
  margin-bottom: 28px !important;
  border: none !important;
}
.vq-financial-kpi-card {
  padding: 22px 24px !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
html body .input-clean, html body .vq-input, html body .vq-select,
html body main input[type=text], html body main input[type=number], html body main input[type=date],
html body main input[type=time], html body main input[type=email], html body main input[type=search],
html body main select, html body main textarea {
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: #fff;
  padding: 12px 14px; font-size: 14.5px; color: var(--ink);
  transition: border-color .2s, box-shadow .25s var(--ease), background .2s;
}
html body .input-clean:hover, html body main input:hover, html body main select:hover { border-color: rgba(61, 90, 254, .4); }
html body .input-clean:focus, html body .vq-input:focus, html body .vq-select:focus,
html body main input:focus, html body main select:focus, html body main textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(61, 90, 254, .14);
}
html body main label:not(.vq-cancellation-toggle):not(.vq-checkbox-label), html body main .label-text {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
html body main label.vq-cancellation-toggle,
html body main label.vq-checkbox-label,
html body main .vq-cancellation-toggle,
html body main .vq-cancellation-title,
html body main .vq-cancellation-desc {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
html body main .vq-cancellation-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
}
html body main .vq-cancellation-desc {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}
html body main input[type=checkbox] { accent-color: var(--brand); width: 18px; height: 18px; padding: 0; border-radius: 6px; }

/* Grid spanning compatibility */
.col-span-full, .col-span-2, .md\:col-span-2, .vq-full-col, [class*="col-span-2"] {
  grid-column: 1 / -1 !important;
}

/* ── Trip detail / plan sections ─────────────────────────────────────────── */
html body main h2.text-xl, html body main h3.text-xl, html body main h2.text-2xl {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; letter-spacing: -.03em;
}
html body main .text-4xl, html body main .text-3xl.font-black, html body main .text-2xl.font-black {
  font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
html body main .bg-gray-900, html body main .bg-\[\#0f172a\], html body main .bg-slate-900 {
  background: radial-gradient(160px 120px at 100% 0%, rgba(124, 92, 255, .55), transparent 70%), var(--ink) !important;
  border-radius: var(--r-lg); box-shadow: 0 24px 50px -20px rgba(10, 15, 36, .6);
}
html body main .bg-yellow-50, html body main .bg-amber-50 {
  background: linear-gradient(135deg, #fff8e6, #fff2cc); border-color: rgba(255, 176, 32, .35); border-radius: var(--r-lg);
}
html body main .h-2, html body main .h-3 { border-radius: 999px; overflow: hidden; }

/* ── Insights / statistics (analytics) ───────────────────────────────────── */
html body .cr-kpi-box {
  position: relative; overflow: hidden; padding: 18px 18px 16px;
}
html body .cr-kpi-box::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: var(--grad); opacity: .1; transition: transform .6s var(--ease), opacity .3s;
}
html body .cr-kpi-box:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
html body .cr-kpi-box:hover::after { transform: scale(2.2); opacity: .14; }
html body .cr-kpi-box:nth-child(3n+2)::after { background: var(--grad-warm); }
html body .cr-kpi-box:nth-child(3n+3)::after { background: linear-gradient(135deg, #12b8a6, #3d5afe); }
html body .cr-kpi-box .kpi-label { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
html body .cr-kpi-box .kpi-val {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}

/* ── Map pages ───────────────────────────────────────────────────────────── */
html body #travelMapView, html body #travelMapEdit, html body #landmarkMap { border-radius: var(--r-xl); }
html body .leaflet-container { font-family: 'Inter', sans-serif; border-radius: inherit; }
html body .leaflet-bar { border: 0 !important; border-radius: 14px; overflow: hidden; box-shadow: var(--sh-2) !important; }
html body .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; color: var(--ink); }

/* ── Drop Pin Animation & Suggestion (Map Edit) ── */
.vq-drop-pin { display: flex; align-items: center; justify-content: center; pointer-events: auto; }
.vq-drop-pin-marker { font-size: 28px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35)); animation: vqPinDrop .4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes vqPinDrop {
  0% { transform: translateY(-30px) scale(0.6); opacity: 0; }
  60% { transform: translateY(4px) scale(1.1); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}
.vq-city-suggest-popup .leaflet-popup-content { margin: 12px 14px; line-height: 1.4; }

/* Keep map markers strictly locked to exact geographic coordinates during zoom/pan */
.custom-pin, .custom-pin-inner, .vq-marker-cluster, .vq-cluster-glow, .vq-cluster-inner,
.leaflet-marker-icon, .leaflet-marker-shadow {
  transition: none !important;
}
.custom-pin:hover .custom-pin-inner {
  transform: scale(1.35) !important;
  transition: transform 0.15s ease !important;
}


/* ── Modals ──────────────────────────────────────────────────────────────── */
html body .vq-overlay, html body .modal-overlay {
  background: rgba(10, 15, 36, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
html body .vq-overlay > div, html body .modal-overlay > div {
  border-radius: 30px; border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 50px 120px -30px rgba(10, 15, 36, .6);
}

/* ── Profile dropdown ────────────────────────────────────────────────────── */
html body #profile-dropdown {
  border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--sh-2), 0 0 0 4px rgba(61, 90, 254, .04);
  padding: 8px; overflow: hidden;
}
html body #profile-dropdown a { border-radius: 12px; font-weight: 600; transition: background .2s; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
html body .hp-footer {
  margin: 28px 16px 16px; border-radius: 36px; overflow: hidden; position: relative;
  background:
    radial-gradient(520px 320px at 90% 0%, rgba(124, 92, 255, .4), transparent 70%),
    radial-gradient(520px 320px at 0% 100%, rgba(61, 90, 254, .35), transparent 70%),
    var(--ink);
}
html body .hp-footer .footer-col-title { color: #fff; letter-spacing: .16em; }
html body .hp-footer .footer-links a { color: rgba(255, 255, 255, .55); transition: color .2s, padding-left .3s var(--ease); }
html body .hp-footer .footer-links a:hover { color: #fff; padding-left: 4px; }

/* ── Scrollbars ──────────────────────────────────────────────────────────── */
html body ::-webkit-scrollbar { width: 10px; height: 10px; }
html body ::-webkit-scrollbar-thumb { background: rgba(20, 30, 70, .2); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }

/* ── Motion ──────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  html body .card-flat, html body .cr-kpi-box, html body .stat-card {
    animation: rise .7s var(--ease) both;
  }
  html body .card-flat:nth-child(2), html body .cr-kpi-box:nth-child(2) { animation-delay: .05s; }
  html body .card-flat:nth-child(3), html body .cr-kpi-box:nth-child(3) { animation-delay: .1s; }
  html body .card-flat:nth-child(4), html body .cr-kpi-box:nth-child(4) { animation-delay: .15s; }
  html body .card-flat:nth-child(n+5), html body .cr-kpi-box:nth-child(n+5) { animation-delay: .2s; }
}
@media (prefers-reduced-motion: reduce) {
  html body * { animation: none !important; transition-duration: .01ms !important; }
}

/* ── Fixes from visual review ────────────────────────────────────────────── */
html body main button.bg-blue-600 svg, html body main button.bg-blue-600 img { filter: brightness(0) invert(1); }
html body .card-flat > div.h-40 span.bg-rose-600 { display: none; }
html body .card-flat > div.h-40 .backdrop-blur-\[1px\] { backdrop-filter: none; background: rgba(120, 10, 40, .22); }

/* ── Leaflet Marker Rigid Coordinates Lock (Zero Drift) ───────────────────── */
.leaflet-marker-icon,
.leaflet-marker-icon.custom-pin,
.leaflet-marker-icon.vq-marker-cluster,
.leaflet-marker-icon.vq-drop-pin,
.leaflet-marker-pane > *,
.leaflet-zoom-animated {
  transition: none !important;
  animation: none !important;
}
.custom-pin:hover {
  transform: initial;
}

/* ── Analytics Signal 16 & Cancellation Spacing Refinements ─────────────────── */
html body #details-16,
html body .cr-details#details-16 {
  padding: 24px 28px 28px !important;
}

html body #details-16 .cr-disruption-item {
  padding: 16px 20px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

html body #details-16 .cr-roster-wrapper {
  margin: 12px 0 16px !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  overflow-x: auto !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

html body #details-16 table.cr-roster-table {
  width: 100% !important;
  border-collapse: collapse !important;
}

html body #details-16 table.cr-roster-table th {
  padding: 14px 20px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
  white-space: nowrap !important;
}

html body #details-16 table.cr-roster-table td {
  padding: 14px 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 12px !important;
  vertical-align: middle !important;
}

html body #details-16 .cr-metric-card {
  padding: 16px 20px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}


