/* =========================================================
   Unimoni — Corporate Booking Portal
   White-first glassmorphism · navy accent from brand logo
   ========================================================= */
:root {
  --navy: #24429c;
  --navy-700: #1c3580;
  --navy-500: #2f52b3;
  --navy-100: #e5ebf7;
  --navy-50: #f2f5fb;
  --cyan: #00a2de;
  --cyan-50: #e8f6fc;
  --grey: #8a8a8a;
  --ink: #1a1f36;
  --ink-2: #474d66;
  --muted: #7c8299;
  --line: rgba(36, 66, 156, 0.09);
  --line-2: rgba(26, 31, 54, 0.07);
  --bg: #f7f8fb;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 1px 2px rgba(26, 31, 54, 0.04), 0 2px 8px rgba(26, 31, 54, 0.04);
  --shadow: 0 1px 2px rgba(26, 31, 54, 0.04), 0 10px 30px rgba(28, 53, 128, 0.07);
  --shadow-lg: 0 20px 60px rgba(28, 53, 128, 0.14);
  --ok: #128a5b;
  --ok-bg: #e8f6ef;
  --warn: #b26b00;
  --warn-bg: #fdf3e2;
  --bad: #c2362f;
  --bad-bg: #fcebea;
  --info: #2f3a82;
  --info-bg: #eef0f9;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --sidebar: 264px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
/* soft ambient blobs that make the glass read */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at -10% -10%, rgba(0, 162, 222, 0.10), transparent 60%),
    radial-gradient(700px 500px at 110% 10%, rgba(138, 138, 138, 0.12), transparent 60%),
    radial-gradient(800px 600px at 60% 120%, rgba(120, 140, 220, 0.12), transparent 60%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f6fa 100%);
}
a { color: var(--navy); text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
h4 { font-size: 13px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.bold { font-weight: 700; }
.semi { font-weight: 600; }
.navy { color: var(--navy); }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .bad-t { color: var(--bad); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.flex { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.divider { height: 1px; background: var(--line-2); margin: 16px 0; border: 0; }
.vdiv { width: 1px; align-self: stretch; background: var(--line-2); }

[data-lucide] { width: 18px; height: 18px; stroke-width: 1.8; flex: none; }
.i-sm [data-lucide], svg.i-sm { width: 15px; height: 15px; }
.i-xs { width: 13px !important; height: 13px !important; }

/* ---------------- Glass primitives ---------------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
.card {
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card.flat { box-shadow: var(--shadow-sm); }
.card.pad-0 { padding: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------------- App shell ---------------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 18px 14px 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand img { height: 30px; width: auto; }
.brand .tag { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.corp-switch {
  display: flex; align-items: center; gap: 10px; padding: 10px; margin: 4px 4px 14px;
  border-radius: 12px; background: var(--white); border: 1px solid var(--line); cursor: pointer;
}
.corp-switch .logo-sq { width: 34px; height: 34px; border-radius: 9px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.nav-group { margin-top: 14px; }
.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 12px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 1px 0;
  border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 13.5px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(36, 66, 156, 0.05); color: var(--ink); }
.nav a.active { position: relative; background: var(--white); color: var(--navy); font-weight: 650; box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 8px 11px; }
.nav a.active [data-lucide] { color: var(--navy); }
.nav a [data-lucide] { color: var(--muted); }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--navy); color: #fff; border-radius: 20px; padding: 1px 7px; }
.nav .count.soft { background: var(--navy-100); color: var(--navy); }
.side-help { margin: 20px 4px 0; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, #fff, var(--navy-50)); border: 1px solid var(--line); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px; padding: 12px 28px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; }
.gsearch { flex: 1; max-width: 520px; position: relative; }
.gsearch input { width: 100%; padding: 10px 14px 10px 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.85); font: inherit; color: var(--ink); outline: none; }
.gsearch input:focus { border-color: rgba(36,66,156,.35); box-shadow: 0 0 0 4px rgba(36,66,156,.07); }
.gsearch > [data-lucide] { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.gsearch kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: inherit; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: #fff; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: #fff; color: var(--navy); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; }
.pill-select { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.85); font-weight: 600; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.pill-select select { border: 0; background: transparent; font: inherit; color: inherit; outline: none; cursor: pointer; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.85); cursor: pointer; }
.user-chip .meta { line-height: 1.2; }
.user-chip .meta b { font-size: 12.5px; display: block; }
.user-chip .meta span { font-size: 11px; color: var(--muted); }

.content { padding: 26px 28px 60px; max-width: 1440px; width: 100%; margin: 0 auto; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h p { color: var(--muted); margin-top: 4px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }

/* ---------------- Buttons & controls ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 650; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: transform .08s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--navy-500), var(--navy)); color: #fff; box-shadow: 0 6px 18px rgba(36, 66, 156, .25), inset 0 1px 0 rgba(255,255,255,.15); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(36, 66, 156, .32); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: rgba(36, 66, 156, .3); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy-50); }
.btn-soft { background: var(--navy-50); color: var(--navy); }
.btn-soft:hover { background: var(--navy-100); }
.btn-danger { background: #fff; border-color: rgba(194, 54, 47, .25); color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .lbl { font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,.9); font: inherit; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: rgba(36,66,156,.4); box-shadow: 0 0 0 4px rgba(36,66,156,.07); }
textarea.input { resize: vertical; min-height: 80px; }
.input-icon { position: relative; }
.input-icon [data-lucide] { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.input-icon .input { padding-left: 38px; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: rgba(26,31,54,.04); border: 1px solid var(--line-2); }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.on { color: var(--navy); border-bottom-color: var(--navy); }
.tabs .n { font-size: 11px; background: var(--navy-50); color: var(--navy); border-radius: 20px; padding: 0 7px; }

.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--ink-2); padding: 4px 0; }
.check input { width: 16px; height: 16px; accent-color: var(--navy); margin: 0; }
.check .cnt { margin-left: auto; color: var(--muted); font-size: 12px; }

.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 22px; background: #d9dce8; cursor: pointer; transition: .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: .2s; }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(16px); }

input[type=range] { width: 100%; accent-color: var(--navy); }

/* ---------------- Badges, chips ---------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 650; white-space: nowrap; line-height: 1.5; }
.badge [data-lucide] { width: 12px; height: 12px; stroke-width: 2.2; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.b-info { background: var(--info-bg); color: var(--info); }
.b-neutral { background: rgba(26,31,54,.05); color: var(--ink-2); }
.b-outline { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip.on { background: var(--navy-50); color: var(--navy); border-color: rgba(36,66,156,.25); }
.chip [data-lucide] { width: 14px; height: 14px; }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--navy-100); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 52px; height: 52px; font-size: 16px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.avatars { display: flex; }
.avatars .avatar { border: 2px solid #fff; margin-left: -8px; }
.avatars .avatar:first-child { margin-left: 0; }

.airline-logo { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; flex: none; }
.airline-logo img { width: 30px; height: 30px; object-fit: contain; }
.airline-logo.sm { width: 28px; height: 28px; border-radius: 8px; }
.airline-logo.sm img { width: 20px; height: 20px; }
.airline-logo .fallback { font-size: 11px; font-weight: 800; color: var(--navy); }

/* ---------------- Grid / layout ---------------- */
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-main-side { grid-template-columns: minmax(0, 1fr) 340px; }
.g-side-main { grid-template-columns: 272px minmax(0, 1fr); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

/* ---------------- KPI ---------------- */
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .k-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); }
.kpi .k-val { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; }
.kpi .k-lbl { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.trend { font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.trend.up { color: var(--ok); } .trend.down { color: var(--bad); }

.progress { height: 7px; border-radius: 10px; background: rgba(26,31,54,.06); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--navy), var(--cyan)); }
.progress.ok > span { background: var(--ok); }
.progress.warn > span { background: #e09a2d; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: rgba(247,248,251,.6); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(36,66,156,.025); }
.table .cell-user { display: flex; align-items: center; gap: 10px; }
.table-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }

/* ---------------- Search hero ---------------- */
.hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 26px; margin-bottom: 22px;
  border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 45%, rgba(255,255,255,.55) 100%); }
.hero > * { position: relative; }
.hero-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.hero-title h1 { font-size: 26px; }
.search-panel { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.72); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid #fff; box-shadow: var(--shadow); }
.search-row { display: grid; gap: 10px; align-items: end; }
.sf { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 9px 13px; min-width: 0; position: relative; }
.sf:focus-within { border-color: rgba(36,66,156,.35); box-shadow: 0 0 0 4px rgba(36,66,156,.06); }
.sf label { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.sf input, .sf select { width: 100%; border: 0; outline: none; background: transparent; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); padding: 2px 0 0; }
.sf .sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap-btn { position: absolute; right: -19px; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; color: var(--navy); box-shadow: var(--shadow-sm); }
.search-opts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.corp-fields { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }

.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 280px; overflow: auto; padding: 6px; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ac-item:hover { background: var(--navy-50); }
.ac-item .code { margin-left: auto; font-weight: 800; font-size: 12px; color: var(--navy); background: var(--navy-50); padding: 2px 7px; border-radius: 6px; }

/* ---------------- Filters ---------------- */
.filters { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin; }
.f-sec { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.f-sec:last-child { border-bottom: 0; }
.f-sec h4 { margin-bottom: 8px; display: flex; justify-content: space-between; }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.time-grid button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 2px; font-size: 10.5px; color: var(--ink-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 600; }
.time-grid button.on { border-color: rgba(36,66,156,.35); background: var(--navy-50); color: var(--navy); }

/* ---------------- Flight cards ---------------- */
.sort-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; overflow: hidden; margin-bottom: 14px; }
.sort-bar button { border: 0; background: transparent; padding: 12px 14px; text-align: left; cursor: pointer; border-right: 1px solid var(--line-2); }
.sort-bar button:last-child { border-right: 0; }
.sort-bar button.on { background: #fff; box-shadow: inset 0 -2px 0 var(--navy); }
.sort-bar b { display: block; font-size: 13px; }
.sort-bar span { font-size: 12px; color: var(--muted); }
.sort-bar button.on b { color: var(--navy); }

.date-strip { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.date-strip button { flex: 1; min-width: 96px; border: 1px solid var(--line); background: rgba(255,255,255,.8); border-radius: 12px; padding: 8px; cursor: pointer; text-align: center; }
.date-strip button b { display: block; font-size: 12px; color: var(--ink-2); }
.date-strip button span { font-size: 12px; color: var(--muted); font-weight: 600; }
.date-strip button.on { background: #fff; border-color: rgba(36,66,156,.35); box-shadow: var(--shadow-sm); }
.date-strip button.on b, .date-strip button.on span { color: var(--navy); }
.date-strip button .low { color: var(--ok); }

.f-card { padding: 0; overflow: hidden; margin-bottom: 12px; transition: box-shadow .2s, transform .2s; }
.f-card:hover { box-shadow: var(--shadow-lg); }
.f-card .f-tags { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 18px 0; }
.f-main { display: grid; grid-template-columns: 190px 1fr 190px; gap: 18px; align-items: center; padding: 14px 18px 16px; }
.f-air { display: flex; align-items: center; gap: 11px; min-width: 0; }
.f-air .name { font-weight: 700; font-size: 13.5px; }
.f-air .no { font-size: 11.5px; color: var(--muted); }
.f-route { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.f-pt .t { font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.f-pt .c { font-size: 12px; color: var(--muted); font-weight: 600; }
.f-pt.r { text-align: right; }
.f-line { text-align: center; font-size: 11.5px; color: var(--muted); }
.f-line .bar { position: relative; height: 2px; margin: 6px 0; background: repeating-linear-gradient(90deg, rgba(36,66,156,.35) 0 6px, transparent 6px 10px); }
.f-line .bar::before, .f-line .bar::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; }
.f-line .bar::before { left: -2px; } .f-line .bar::after { right: -2px; background: var(--navy); }
.f-line .stop-dot { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #e09a2d; left: calc(50% - 4px); }
.f-line .dur { font-weight: 650; color: var(--ink-2); }
.f-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.f-price .amt { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.f-price .amt small { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 3px; }
.f-foot { display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: rgba(247,248,251,.7); border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.f-foot .it { display: inline-flex; align-items: center; gap: 5px; }
.f-foot .it [data-lucide] { width: 14px; height: 14px; }
.f-foot .grow { flex: 1; }
.cmp-box { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.cmp-box input { accent-color: var(--navy); }

.fare-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.fare-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 10px; }
.fare-card:hover { border-color: rgba(36,66,156,.3); }
.fare-card.on { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(36,66,156,.07); }
.fare-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.fare-card li { display: flex; gap: 7px; align-items: flex-start; }
.fare-card li [data-lucide] { width: 15px; height: 15px; margin-top: 1px; }
.fare-card .pr { font-size: 20px; font-weight: 800; }

/* segment / itinerary timeline */
.itin { display: grid; grid-template-columns: 70px 22px 1fr; gap: 0 12px; }
.itin .tm { text-align: right; font-weight: 750; font-size: 15px; padding-top: 2px; }
.itin .tm small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.itin .rail { position: relative; display: flex; justify-content: center; }
.itin .rail::before { content: ""; position: absolute; top: 8px; bottom: -8px; width: 2px; background: rgba(36,66,156,.18); }
.itin .rail.last::before { display: none; }
.itin .rail i.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; margin-top: 5px; z-index: 1; }
.itin .info { padding-bottom: 20px; }
.itin .info b { font-size: 14px; }
.layover { margin: 0 0 18px 104px; padding: 9px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; }

/* ---------------- Hotel cards ---------------- */
.h-card { display: grid; grid-template-columns: 280px 1fr 210px; padding: 0; overflow: hidden; margin-bottom: 14px; transition: box-shadow .2s; }
.h-card:hover { box-shadow: var(--shadow-lg); }
.h-img { position: relative; min-height: 220px; background: #e9ebf3; }
.h-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.h-img .fav { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); display: grid; place-items: center; color: var(--ink-2); border: 0; cursor: pointer; }
.h-img .ribbon { position: absolute; left: 10px; top: 10px; }
.h-img .thumbs { position: absolute; bottom: 10px; left: 10px; display: flex; gap: 5px; }
.h-img .thumbs img { position: static; width: 38px; height: 28px; border-radius: 6px; border: 2px solid rgba(255,255,255,.9); }
.h-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.h-side { padding: 16px 18px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; text-align: right; background: rgba(247,248,251,.5); gap: 10px; }
.stars { display: inline-flex; gap: 1px; color: #e3a008; }
.stars [data-lucide] { width: 13px; height: 13px; fill: #e3a008; stroke-width: 0; }
.rating { display: inline-flex; align-items: center; gap: 8px; }
.rating .score { background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 8px; border-radius: 9px 9px 9px 2px; }
.amen { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); }
.amen span { display: inline-flex; align-items: center; gap: 5px; }
.amen [data-lucide] { width: 14px; height: 14px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 8px; border-radius: var(--r-lg); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; background: #e9ebf3; transition: transform .4s; }
.gallery > div { overflow: hidden; position: relative; }
.gallery > div:hover img { transform: scale(1.04); }
.gallery .g-main { grid-row: span 2; }
.gallery .more { position: absolute; inset: 0; background: rgba(26,31,54,.45); color: #fff; display: grid; place-items: center; font-weight: 700; backdrop-filter: blur(2px); cursor: pointer; }

.room { display: grid; grid-template-columns: 220px 1fr; gap: 0; padding: 0; overflow: hidden; margin-bottom: 14px; }
.room-img { position: relative; min-height: 180px; }
.room-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rate-row { display: grid; grid-template-columns: 1fr 170px 150px; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.rate-row:last-child { border-bottom: 0; }

.review { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.review:last-child { border-bottom: 0; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 8px; }

/* ---------------- Steps / booking ---------------- */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 22px; padding: 14px 18px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; font-weight: 600; color: var(--muted); font-size: 13px; }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); font-size: 12px; font-weight: 800; flex: none; }
.step.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.on .n { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 5px rgba(36,66,156,.1); }
.step.on { color: var(--ink); }
.step .ln { flex: 1; height: 2px; background: var(--line); margin: 0 12px; border-radius: 2px; }
.step.done .ln { background: var(--ok); }
.step:last-child { flex: none; }

.summary { position: sticky; top: 84px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; color: var(--ink-2); }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-size: 16px; color: var(--ink); font-weight: 800; }

.policy-box { border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.policy-box.ok { background: var(--ok-bg); color: #0d5f40; }
.policy-box.warn { background: var(--warn-bg); color: #7a4a00; }
.policy-box.bad { background: var(--bad-bg); color: #8a231e; }
.policy-box .pi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.7); flex: none; }

.seatmap { display: inline-grid; grid-template-columns: repeat(3, 32px) 22px repeat(3, 32px); gap: 6px; padding: 18px; background: #fff; border-radius: 40px 40px 16px 16px; border: 1px solid var(--line); }
.seat { width: 32px; height: 32px; border-radius: 8px 8px 5px 5px; border: 1.5px solid rgba(36,66,156,.25); background: #fff; cursor: pointer; font-size: 9.5px; font-weight: 700; color: var(--muted); display: grid; place-items: center; }
.seat.taken { background: #eceef4; border-color: #eceef4; cursor: not-allowed; color: transparent; }
.seat.xl { border-color: #e0a63a; background: #fff8ea; }
.seat.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.seat-row-n { display: grid; place-items: center; font-size: 10px; color: var(--muted); font-weight: 700; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; border: 1.5px solid rgba(36,66,156,.25); }

.opt-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; transition: .15s; }
.opt-card:hover { border-color: rgba(36,66,156,.3); }
.opt-card.on { border-color: var(--navy); background: var(--navy-50); }
.opt-card .oi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); flex: none; }
.opt-card.on .oi { background: #fff; }

.trav-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }

/* ---------------- Approval chain ---------------- */
.chain { display: flex; align-items: flex-start; gap: 0; }
.chain .node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; flex: 1; position: relative; font-size: 12px; }
.chain .node::after { content: ""; position: absolute; top: 17px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; background: var(--line); }
.chain .node:last-child::after { display: none; }
.chain .node.done::after { background: var(--ok); }
.chain .ring { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--muted); z-index: 1; }
.chain .done .ring { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.chain .cur .ring { border-color: #e09a2d; color: var(--warn); background: var(--warn-bg); box-shadow: 0 0 0 5px rgba(224,154,45,.12); }
.chain .rej .ring { border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }

/* ---------------- Trip cards / timeline ---------------- */
.trip { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.trip:last-child { border-bottom: 0; }
.trip-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); }
.dateblock { width: 52px; text-align: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px 0; flex: none; }
.dateblock b { display: block; font-size: 18px; line-height: 1.1; }
.dateblock span { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }

.tl { position: relative; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.tl-item.ok::before { border-color: var(--ok); background: var(--ok); }
.tl-item.warn::before { border-color: #e09a2d; }

/* ---------------- Chart bits ---------------- */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: rgba(26,31,54,.07); stroke-width: 1; }
.chart .axis { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart .bar { fill: var(--navy); transition: opacity .15s; }
.chart .bar.prev { fill: #c7cbe3; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover + .bar, .chart .bar:hover { opacity: .8; }
.tip { position: fixed; z-index: 300; pointer-events: none; background: rgba(26,31,54,.92); color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 9px; box-shadow: var(--shadow-lg); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }
.tip b { display: block; font-size: 13px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 90px; gap: 12px; align-items: center; margin-bottom: 11px; font-size: 12.5px; }
.hbar .track { height: 10px; border-radius: 10px; background: rgba(26,31,54,.05); overflow: hidden; }
.hbar .track span { display: block; height: 100%; background: var(--navy); border-radius: 10px; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }

/* ---------------- Map (duty of care) ---------------- */
.map { position: relative; border-radius: var(--r); overflow: hidden; height: 420px; background: #eef1f8; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.6) brightness(1.03); }
.map-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.map-pin .p { padding: 4px 8px; border-radius: 20px; background: #fff; font-size: 11px; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; border: 1px solid var(--line); }
.map-pin .d { width: 12px; height: 12px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(36,66,156,.15); margin-top: 4px; }
.map-pin.alert .d { background: var(--bad); box-shadow: 0 0 0 6px rgba(194,54,47,.18); }

/* ---------------- Visa ---------------- */
.country-card { padding: 0; overflow: hidden; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.country-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.country-card .ci { height: 120px; position: relative; background: #e9ebf3; }
.country-card .ci img { width: 100%; height: 100%; object-fit: cover; }
.country-card .flag { position: absolute; left: 12px; bottom: -16px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: var(--shadow); border: 2px solid #fff; }
.country-card .cb { padding: 24px 14px 14px; }
.doc-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed rgba(36,66,156,.22); border-radius: 12px; background: #fff; }
.doc-item .di { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); flex: none; }
.doc-item.up { border-style: solid; border-color: rgba(18,138,91,.25); background: #fbfefc; }
.doc-item.up .di { background: var(--ok-bg); color: var(--ok); }

/* ---------------- Overlays ---------------- */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(26,31,54,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s ease; }
.modal { width: min(820px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: rgba(255,255,255,.94); backdrop-filter: blur(24px); border: 1px solid #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: pop .2s ease; }
.modal.wide { width: min(1080px, 100%); }
.modal.narrow { width: min(520px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); z-index: 2; }
.modal-b { padding: 22px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line-2); position: sticky; bottom: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
.drawer-ov { justify-content: flex-end; padding: 0; }
.drawer { width: min(620px, 100%); height: 100vh; overflow: auto; background: rgba(255,255,255,.95); backdrop-filter: blur(24px); border-left: 1px solid #fff; box-shadow: var(--shadow-lg); animation: slide .22s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(8px); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }

.cmp-tray { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 18px; background: rgba(255,255,255,.86); backdrop-filter: blur(22px); border: 1px solid #fff; box-shadow: var(--shadow-lg); animation: pop .2s; }
.cmp-tray .slots { display: flex; gap: 8px; }
.cmp-tray .slot { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.cmp-tray .slot.empty { border-style: dashed; color: var(--muted); }
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.cmp th, table.cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
table.cmp th { width: 170px; color: var(--muted); font-weight: 650; font-size: 12px; }
table.cmp td.best { background: rgba(18,138,91,.05); }

.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.95); backdrop-filter: blur(16px); border: 1px solid #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 13px; animation: pop .2s; min-width: 260px; }
.toast .ti { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }

.pop-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 340px; background: rgba(255,255,255,.96); backdrop-filter: blur(20px); border: 1px solid #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; animation: pop .15s; }
.pop-menu .mi { display: flex; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; align-items: flex-start; }
.pop-menu .mi:hover { background: var(--navy-50); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ei { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); }

.notice { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.75); border: 1px solid var(--line); font-size: 13px; }
.notice .ni { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); flex: none; }

.quick { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 16px; background: rgba(255,255,255,.8); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); cursor: pointer; transition: .15s; text-align: center; font-weight: 650; font-size: 12.5px; color: var(--ink-2); }
.quick:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--navy); }
.quick .qi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); }

.ticket { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ticket-h { padding: 18px 20px; background: linear-gradient(120deg, #fff, var(--navy-50)); border-bottom: 1px dashed rgba(36,66,156,.25); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket-b { padding: 18px 20px; }
.qr { width: 92px; height: 92px; background:
  conic-gradient(from 90deg at 25% 25%, var(--ink) 25%, transparent 0) 0 0/18px 18px,
  repeating-linear-gradient(45deg, var(--ink) 0 3px, transparent 3px 7px);
  border-radius: 8px; border: 6px solid #fff; outline: 1px solid var(--line); opacity: .85; }

.success-hero { text-align: center; padding: 30px 20px 10px; }
.success-hero .si { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.success-hero .si [data-lucide] { width: 34px; height: 34px; }
.success-hero.pending .si { background: var(--warn-bg); color: var(--warn); }

.skeleton { background: linear-gradient(90deg, #eef0f5 25%, #f7f8fb 50%, #eef0f5 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.footer { padding: 18px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1280px) {
  .g-5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .f-main { grid-template-columns: 160px 1fr 170px; }
  .h-card { grid-template-columns: 230px 1fr 190px; }
}
@media (max-width: 1100px) {
  .g-main-side, .g-side-main { grid-template-columns: 1fr; }
  .filters, .summary { position: static; max-height: none; }
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .corp-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 150; transform: translateX(-100%); transition: transform .25s; background: rgba(255,255,255,.96); }
  .app.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: grid; }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .f-main { grid-template-columns: 1fr; }
  .f-price { align-items: flex-start; text-align: left; flex-direction: row; justify-content: space-between; align-items: center; }
  .h-card { grid-template-columns: 1fr; }
  .h-side { border-left: 0; border-top: 1px solid var(--line-2); align-items: flex-start; text-align: left; }
  .fare-grid { grid-template-columns: 1fr; }
  .room { grid-template-columns: 1fr; }
  .rate-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 120px; }
  .gallery .g-main { grid-column: span 2; grid-row: auto; }
  .gallery > div:nth-child(n+4) { display: none; }
  .user-chip .meta, .pill-select.hide-sm, .gsearch kbd { display: none; }
  .content { padding: 18px 16px 50px; }
  .topbar { padding: 10px 16px; }
  .sort-bar { grid-template-columns: 1fr 1fr; }
  .stepper .step span.lbl-t { display: none; }
  .swap-btn { display: none; }
}
@media (max-width: 560px) {
  .g-4, .g-5 { grid-template-columns: 1fr 1fr; }
  .corp-fields { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr !important; }
  .kv { grid-template-columns: 1fr; }
  .cmp-tray .slots { display: none; }
}

/* quick actions & city grids */
.quick-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.city-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* leaflet tweaks */
.leaflet-container { font-family: var(--font); background: #f4f5f9; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { font-size: 12.5px; line-height: 1.5; }
.map-pin .p { cursor: pointer; }

/* grid children must be allowed to shrink (prevents overflow from wide strips) */
.grid > * { min-width: 0; }
.m-filter-btn { display: none; }
@media (max-width: 900px) {
  .filters { display: none; }
  .filters.open { display: block; }
  .m-filter-btn { display: inline-flex; margin-bottom: 12px; }
}
@media (max-width: 560px) {
  .kpi .k-val { font-size: 20px; }
  .page-h h1, .hero-title h1 { font-size: 21px; }
  .hero { padding: 16px; }
}

/* brand accent: thin cyan marker on active nav, cyan focus details */
.nav a.active::before { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--cyan); }
.f-line .bar::after { background: var(--cyan); border-color: var(--cyan); }
.step.on .n { box-shadow: 0 0 0 5px rgba(0,162,222,.14); }
.badge.b-cyan { background: var(--cyan-50); color: #0077a8; }
