:root {
  --bg-dark: #0f172a;
  --bg-navy: #1e293b;
  --bg-light: #f1f5f9;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --accent-blue: #38bdf8;
  --emerald: #059669;
  --emerald-bg: #d1fae5;
  --amber: #f59e0b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.22);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Consumer Top Navigation */
.consumer-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.brand-text-wrap {
  min-width: 0;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.consumer-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.consumer-nav-links a {
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.15s;
  white-space: nowrap;
}

.consumer-nav-links a:hover,
.consumer-nav-links a.active {
  color: #0284c7;
}

.nav-support-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-support-pill {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Consumer Flight & Travel Search Hero */
.search-hero {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.85) 100%),
              url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  padding: 40px 36px 48px;
  color: #ffffff;
}

.search-hero-inner {
  max-width: 1260px;
  margin: 0 auto;
}

.hero-headline {
  text-align: center;
  margin-bottom: 24px;
}

.hero-headline h1 {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hero-headline p {
  font-size: 1.02rem;
  color: #e2e8f0;
}

/* Main Search Widget Box */
.booking-search-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: 16px;
  padding: 22px 24px 24px;
  box-shadow: var(--shadow-lg);
}

.search-tabs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.search-product-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prod-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s;
}

.prod-tab.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.trip-way-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.trip-way-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.flight-search-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 1fr 1fr 1.15fr auto;
  gap: 12px;
  align-items: end;
}

.search-input-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 12px;
  transition: border-color 0.15s;
  min-width: 0;
}

.search-input-box:focus-within {
  border-color: #0284c7;
  background: #ffffff;
}

.search-input-box label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-input-box input,
.search-input-box select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  text-overflow: ellipsis;
}

.btn-search-flights {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 26px;
  height: 54px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  transition: transform 0.15s;
}

.btn-search-flights:hover {
  transform: translateY(-1px);
}

.trust-perks-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  color: #475569;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-perks-strip span strong {
  color: #0f172a;
}

/* Main Content Container */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 28px 36px 56px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}

.section-subtitle {
  font-size: 0.88rem;
  color: #64748b;
}

/* Flight Sort / Filter Pills */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Live Bookable Flight Results List */
.flight-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.flight-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.15s, border-color 0.15s;
  min-width: 0;
}

.flight-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

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

.flight-airline-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.airline-dot {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.72rem;
}

.flight-times-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.time-block strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.time-block span {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
}

.flight-line-graphic {
  flex: 1;
  min-width: 75px;
  text-align: center;
}

.flight-duration {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.flight-line-bar {
  height: 2px;
  background: #cbd5e1;
  margin: 4px 0;
  position: relative;
}

.flight-stops-tag {
  font-size: 0.73rem;
  font-weight: 700;
  color: #059669;
}

.flight-perks-meta {
  font-size: 0.76rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.flight-price-col {
  text-align: right;
  border-left: 1px solid #f1f5f9;
  padding-left: 18px;
  min-width: 148px;
  flex-shrink: 0;
}

.flight-cabin-pill {
  display: inline-block;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.flight-price-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.flight-price-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 8px;
}

.btn-select-flight {
  width: 100%;
}

/* Package Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.pkg-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-width: 0;
}

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

.pkg-img-wrap {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.pkg-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pkg-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.pkg-save-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #059669;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.pkg-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pkg-title {
  font-size: 1.04rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.pkg-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 10px;
}

.pkg-price-compare {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.price-col-left span {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
}

.price-col-left del {
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 600;
}

.price-col-right {
  text-align: right;
}

.price-col-right span {
  display: block;
  font-size: 0.68rem;
  color: #059669;
  font-weight: 700;
  text-transform: uppercase;
}

.price-col-right strong {
  font-size: 1.28rem;
  font-weight: 900;
  color: #0f172a;
}

.pkg-highlights {
  list-style: none;
  margin-bottom: 14px;
  flex: 1;
}

.pkg-highlights li {
  font-size: 0.8rem;
  color: #334155;
  margin-bottom: 5px;
  padding-left: 16px;
  position: relative;
}

.pkg-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 800;
}

.pkg-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-outline {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.btn-outline:hover {
  background: #f1f5f9;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-emerald {
  background: var(--emerald);
  color: #ffffff;
}

.btn-emerald:hover {
  background: #047857;
}

.save-pill {
  background: #d1fae5;
  color: #047857;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Featured Hotels Grid */
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.hotel-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

/* Consumer Footer */
.consumer-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 36px 36px 28px;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 16px;
}

/* Back-Office CRM & Wholesale Hub Styles (Shown only on /admin) */
.admin-topbar {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.kpi-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary);
  min-width: 0;
}

.kpi-card.emerald { border-left-color: var(--emerald); }
.kpi-card.gold { border-left-color: var(--amber); }

.kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--bg-dark);
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--emerald);
  font-weight: 600;
  margin-top: 3px;
}

.verified-brands-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.api-config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.aggregator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.calc-totals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.calc-proj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 0.8rem;
}

.pkg-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.proposal-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #fff;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  margin-bottom: 12px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.admin-tab-btn.active {
  background: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

.calc-workspace {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.panel-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.panel-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 6px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 600;
}

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.supplier-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.supplier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.supplier-cat {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
}

.comm-badge {
  background: #dcfce7;
  color: #047857;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.86rem;
  flex-wrap: wrap;
}

.pipeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.pipeline-table th {
  text-align: left;
  padding: 11px 12px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.pipeline-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.stage-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.stage-Lead { background: #fef3c7; color: #b45309; }
.stage-Proposal { background: #e0f2fe; color: #0369a1; }
.stage-Deposit { background: #ede9fe; color: #6d28d9; }
.stage-Ticketed { background: #dcfce7; color: #047857; }
.stage-Traveling { background: #cffafe; color: #0e7490; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: 14px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.hidden {
  display: none !important;
}

/* ===================================================================== */
/* RESPONSIVE MEDIA QUERIES (TABLET <= 1024px & MOBILE <= 768px / 640px) */
/* ===================================================================== */

@media (max-width: 1024px) {
  .consumer-nav {
    padding: 12px 20px;
  }

  .search-hero {
    padding: 32px 20px 36px;
  }

  .container {
    padding: 24px 20px 44px;
  }

  .flight-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn-search-flights {
    grid-column: span 2;
    width: 100%;
  }

  .packages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hotels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verified-brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aggregator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .flight-results-grid {
    grid-template-columns: 1fr;
  }

  .supplier-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .consumer-nav {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-wrap {
    flex: 1 1 auto;
    order: 1;
  }

  .brand-title {
    font-size: 1.12rem;
  }

  .brand-sub {
    display: none;
  }

  .nav-support-wrap {
    order: 2;
  }

  .nav-support-pill {
    padding: 6px 11px;
    font-size: 0.76rem;
  }

  .consumer-nav-links {
    order: 3;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 10px;
    padding-top: 8px;
    padding-bottom: 2px;
    border-top: 1px solid #f1f5f9;
  }

  .consumer-nav-links a {
    font-size: 0.83rem;
  }

  .search-hero {
    padding: 22px 14px 28px;
  }

  .hero-headline {
    margin-bottom: 16px;
  }

  .hero-headline h1 {
    font-size: 1.55rem;
    line-height: 1.22;
  }

  .hero-headline p {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .booking-search-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .search-tabs-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
  }

  .search-product-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .prod-tab {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .trip-way-options {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 14px;
    font-size: 0.82rem;
  }

  .trust-perks-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.78rem;
  }

  .container {
    padding: 20px 14px 40px;
  }

  .section-title {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 0.82rem;
  }

  .filter-bar {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-pill {
    padding: 6px 13px;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  .consumer-footer {
    padding: 28px 16px 24px;
  }

  .admin-topbar {
    padding: 12px 16px;
  }

  .panel-card {
    padding: 16px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-card {
    padding: 18px 16px;
  }
}

@media (max-width: 640px) {
  .flight-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .flight-search-grid .search-input-box {
    grid-column: span 2;
    padding: 8px 10px;
  }

  .flight-search-grid .search-input-box.date-col {
    grid-column: span 1;
  }

  .btn-search-flights {
    grid-column: span 2;
    width: 100%;
    height: 48px;
  }

  .flight-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }

  .flight-price-col {
    border-left: none;
    border-top: 1px solid #f1f5f9;
    padding-left: 0;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .flight-price-sub {
    margin-bottom: 0;
  }

  .btn-select-flight {
    width: auto;
    padding: 10px 16px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .packages-grid,
  .hotels-grid,
  .kpi-grid,
  .verified-brands-grid,
  .api-config-grid,
  .aggregator-grid,
  .calc-totals-grid,
  .calc-proj-grid,
  .pkg-tiers-grid,
  .proposal-price-grid,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-group.full {
    grid-column: span 1;
  }
}

/* ======================================================================= */
/* GLOBAL CITY & AIRPORT AUTOCOMPLETE COMBOBOX + E-TICKET RECEIPT STYLES   */
/* ======================================================================= */
.city-combobox-wrap {
  position: relative;
}

.city-input-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.city-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy-900);
  outline: none;
  padding: 2px 0;
  min-width: 0;
  text-overflow: ellipsis;
}

.city-search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.82rem;
}

.city-clear-btn {
  background: #e2e8f0;
  border: none;
  color: #475569;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.city-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.city-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 300px;
  max-width: 92vw;
  max-height: 320px;
  overflow-y: auto;
  background: #ffffff;
  border: 1.5px solid #0284c7;
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
  z-index: 999;
  padding: 6px;
}

.city-dropdown-header {
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
  padding: 6px 10px 4px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}

.city-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
  text-align: left;
}

.city-dropdown-item:hover,
.city-dropdown-item.active {
  background: #f0f9ff;
}

.city-item-main {
  min-width: 0;
  flex: 1;
}

.city-item-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-item-sub {
  font-size: 0.73rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-item-code {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Return Leg & Live NDC Badges on Flight Cards */
.flight-return-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: #334155;
}

.ndc-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Passenger Manifest Card inside Checkout Modal */
.pax-manifest-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
}

.pax-manifest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
}

.pax-manifest-grid {
  display: grid;
  grid-template-columns: 86px 1fr 1fr 140px 100px;
  gap: 8px;
}

/* Official Printable E-Ticket Receipt Card */
.eticket-receipt-box {
  border: 2px solid #059669;
  border-radius: 14px;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 38%);
  padding: 18px;
}

.pnr-hero-badge {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #10b981;
}

.pnr-hero-badge small {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6ee7b7;
  font-weight: 800;
}

.pnr-hero-badge strong {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffffff;
}

@media (max-width: 768px) {
  .city-dropdown-menu {
    min-width: 100%;
    max-width: 100%;
  }
  .pax-manifest-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .pax-manifest-grid {
    grid-template-columns: 1fr;
  }
}


/* ===================================================================== */
/* LUXURY TRAVEL TYPOGRAPHY & DATE / EXPLORER UI ENHANCEMENTS            */
/* ===================================================================== */
h1, h2, h3, h4, .brand-title, .section-title, .pkg-title, .hotel-name {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  letter-spacing: -0.025em;
}

.flight-price-val,
.pkg-our-price,
.hotel-our-rate strong,
.pnr-hero-badge strong,
.city-item-code,
.airline-dot,
.flight-num-mono {
  font-family: "JetBrains Mono", "Plus Jakarta Sans", monospace;
  font-variant-numeric: tabular-nums;
}

.time-block strong {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.time-date-sub {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.73rem;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 1px 7px;
  border-radius: 999px;
}

.flight-date-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: linear-gradient(90deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #bae6fd;
  border-radius: 9px;
  padding: 6px 12px;
  margin-bottom: 10px;
  font-size: 0.77rem;
  font-weight: 600;
  color: #0f172a;
}

.flight-date-ribbon strong {
  color: #0369a1;
  font-weight: 700;
}

.flight-dist-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.71rem;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Unlimited Worldwide Destination Explorer Bar */
.world-explorer-bar {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.world-explorer-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.84rem;
  color: #0f172a;
}

.world-explorer-label small {
  font-size: 0.73rem;
  color: #64748b;
  font-weight: 500;
}

.world-continent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.continent-pill {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.continent-pill:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}

.continent-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}
