/* ==========================================================================
   Client-Facing Itinerary Document — Version 2.0 (Royal Gold & Deep Navy Luxury)
   Preview, PDF Print, and Client Portal
   ========================================================================== */

.dx {
  --brand: #c5a059;
  --brand-light: #dfba73;
  --brand-dark: #9a7b38;
  --brand-soft: #faf6ee;
  --gold-gradient: linear-gradient(135deg, #dfba73 0%, #c5a059 50%, #9a7b38 100%);
  --dx-ink: #0b132b;
  --dx-text: #1e293b;
  --dx-muted: #64748b;
  --dx-line: #e2e8f0;
  --dx-line-subtle: #edf2f7;
  --dx-paper: #ffffff;
  --dx-soft: #f8fafc;
  --dx-radius: 14px;
  background: var(--dx-paper);
  color: var(--dx-text);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--dx-radius);
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(11, 19, 43, 0.16), 0 4px 16px rgba(11, 19, 43, 0.06);
  position: relative;
}

/* ---------- Theme Variations (Version 2.2) ---------- */
.dx[data-theme="luxury"], .dx:not([data-theme]) {
  --brand: #c5a059;
  --brand-light: #dfba73;
  --brand-dark: #9a7b38;
  --brand-soft: #faf6ee;
  --gold-gradient: linear-gradient(135deg, #dfba73 0%, #c5a059 50%, #9a7b38 100%);
  --dx-ink: #0b132b;
}

.dx[data-theme="emerald"] {
  --brand: #059669;
  --brand-light: #34d399;
  --brand-dark: #047857;
  --brand-soft: #ecfdf5;
  --gold-gradient: linear-gradient(135deg, #34d399 0%, #059669 50%, #047857 100%);
  --dx-ink: #064e3b;
}
.dx[data-theme="emerald"] .dx-cover {
  background-image: linear-gradient(145deg, #064e3b, #022c22);
}
.dx[data-theme="emerald"] .dx-cover-shade {
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.68) 0%, rgba(6, 78, 59, 0.28) 45%, rgba(2, 44, 34, 0.94) 100%);
}
.dx[data-theme="emerald"] .dx-cover-badge {
  border-color: rgba(52, 211, 153, 0.45);
  color: #34d399;
}
.dx[data-theme="emerald"] .dx-cover-meta {
  border-color: rgba(52, 211, 153, 0.32);
}

.dx[data-theme="corporate"] {
  --brand: #2563eb;
  --brand-light: #60a5fa;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --gold-gradient: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
  --dx-ink: #0f172a;
}
.dx[data-theme="corporate"] .dx-cover {
  background-image: linear-gradient(145deg, #1e293b, #0f172a);
}
.dx[data-theme="corporate"] .dx-cover-shade {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 41, 59, 0.3) 45%, rgba(15, 23, 42, 0.95) 100%);
}
.dx[data-theme="corporate"] .dx-cover-badge {
  border-color: rgba(96, 165, 250, 0.45);
  color: #60a5fa;
}
.dx[data-theme="corporate"] .dx-cover-meta {
  border-color: rgba(96, 165, 250, 0.32);
}

.dx[data-theme="royal"] {
  --brand: #7c3aed;
  --brand-light: #a78bfa;
  --brand-dark: #6d28d9;
  --brand-soft: #f5f3ff;
  --gold-gradient: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #6d28d9 100%);
  --dx-ink: #1e1b4b;
}
.dx[data-theme="royal"] .dx-cover {
  background-image: linear-gradient(145deg, #2e1065, #0f172a);
}
.dx[data-theme="royal"] .dx-cover-shade {
  background: linear-gradient(180deg, rgba(46, 16, 101, 0.70) 0%, rgba(46, 16, 101, 0.28) 45%, rgba(15, 23, 42, 0.95) 100%);
}
.dx[data-theme="royal"] .dx-cover-badge {
  border-color: rgba(167, 139, 250, 0.45);
  color: #a78bfa;
}
.dx[data-theme="royal"] .dx-cover-meta {
  border-color: rgba(167, 139, 250, 0.32);
}

.dx .ic { width: 1.1em; height: 1.1em; vertical-align: -0.16em; }
.dx h1, .dx h2, .dx h3, .dx h4 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  color: var(--dx-ink);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.dx h1, .dx h2, .dx h3, .dx h4, .dx-day-no, .dx-price-grid b, .dx-fl-end b { font-variant-numeric: lining-nums; }
.dx-muted { color: var(--dx-muted); font-size: 12.5px; }

/* ---------- Cover Section (Version 2.0 Luxury) ---------- */
.dx-cover {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0b132b center/cover no-repeat;
  color: #fff;
  padding: 48px 56px 52px;
  background-image: linear-gradient(145deg, #1c2541, #0b132b);
}
.dx-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 43, 0.65) 0%, rgba(11, 19, 43, 0.28) 45%, rgba(11, 19, 43, 0.92) 100%);
}
.dx-cover > *:not(.dx-cover-shade) { position: relative; }

.dx-cover-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.dx-cover-top img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}
.dx-cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(11, 19, 43, 0.65);
  border: 1px solid rgba(223, 186, 115, 0.45);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--brand-light);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.dx-gold-star {
  color: var(--brand-light);
  font-size: 11px;
}
.dx-luxury-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-light);
  font-weight: 700;
  margin-bottom: 8px;
}
.dx-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--brand-light);
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dx-cover h1 {
  color: #ffffff;
  font-size: 54px;
  line-height: 1.08;
  font-weight: 600;
  max-width: 720px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.dx-cover-sub {
  margin-top: 14px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.dx-cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 38px;
  margin-top: 34px;
  padding: 22px 28px;
  background: rgba(11, 19, 43, 0.62);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(223, 186, 115, 0.32);
  border-radius: var(--dx-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
}
.dx-cover-meta div {
  font-size: 14.5px;
  color: #ffffff;
}
.dx-cover-meta div b {
  font-weight: 700;
  color: #ffffff;
}
.dx-cover-meta small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-light);
  font-weight: 700;
  margin-bottom: 3px;
}

/* ---------- Interior Pages ---------- */
.dx-page { padding: 48px 56px; }
.dx-page + .dx-page { border-top: 1px solid var(--dx-line); }
.dx-h2 {
  font-size: 30px;
  margin: 0 0 22px !important;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--dx-ink);
}
.dx-h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0.65;
}
.dx-lead {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  line-height: 1.6;
  color: var(--dx-ink);
  margin: 0 0 32px;
  font-style: italic;
}
.dx-glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(11, 19, 43, 0.04);
}
.dx-glance div {
  padding: 16px 20px;
  background: var(--dx-soft);
}
.dx-glance div + div { border-left: 1px solid var(--dx-line); }
.dx-glance small, .dx-price small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dx-muted);
  font-weight: 700;
  margin-bottom: 3px;
}
.dx-glance b {
  font-size: 16px;
  color: var(--dx-ink);
  font-weight: 700;
}

/* ---------- Route Progression Stepper (Version 2.0) ---------- */
.dx-route-stepper-wrap {
  margin: 0 0 32px;
  padding: 22px 24px 24px;
  background: var(--dx-soft);
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius);
  box-shadow: 0 2px 8px rgba(11, 19, 43, 0.03);
}
.dx-route-stepper-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 18px;
}
.dx-route-stepper {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.dx-route-step {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
}
.dx-route-step-header {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  margin-bottom: 10px;
}
.dx-route-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1c2541, #0b132b);
  border: 1.5px solid var(--brand);
  color: var(--brand-light);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  z-index: 1;
}
.dx-route-step-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), rgba(197, 160, 89, 0.2));
  margin-left: 4px;
}
.dx-route-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dx-route-step-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dx-ink);
  line-height: 1.25;
}
.dx-route-step-sub {
  font-size: 11.5px;
  color: var(--dx-muted);
}

.dx-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  height: 310px;
  border-radius: var(--dx-radius);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--dx-line);
  background: var(--dx-soft);
}
.dx-pin span {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  border-radius: 16px;
  color: #fff;
  font: 700 12px 'Plus Jakarta Sans', sans-serif;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.dx-outline {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 40px;
}
.dx-outline li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--dx-line);
  break-inside: avoid;
}
.dx-outline-day {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  min-width: 48px;
}
.dx-outline-t { flex: 1; color: var(--dx-ink); font-weight: 600; font-size: 14px; }
.dx-outline-d { font-size: 12px; color: var(--dx-muted); white-space: nowrap; }

/* ---------- Day-by-Day Section ---------- */
.dx-day {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--dx-line);
  break-inside: avoid-page;
}
.dx-day:last-child { border-bottom: 0; }
.dx-day-rail {
  text-align: center;
  border-right: 2px solid var(--dx-line-subtle);
  padding-right: 20px;
  position: relative;
}
.dx-day-lbl {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dx-muted);
  font-weight: 600;
}
.dx-day-no {
  display: block;
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 48px;
  line-height: 1;
  color: var(--brand);
  font-weight: 700;
  margin-top: 2px;
}
.dx-day-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.dx-day-date {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dx-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dx-day h3 {
  font-size: 26px;
  margin: 4px 0 0;
  line-height: 1.25;
  color: var(--dx-ink);
}
.dx-wx span {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  font-weight: 600;
  font-size: 13px;
  color: var(--dx-ink);
  white-space: nowrap;
  background: var(--dx-soft);
  border: 1px solid var(--dx-line);
  padding: 6px 12px;
  border-radius: var(--dx-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.dx-wx small { font-weight: 500; font-size: 11px; color: var(--dx-muted); }
.dx-day-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--dx-radius);
  margin: 8px 0 16px;
  display: block;
  box-shadow: 0 4px 18px rgba(11, 19, 43, 0.08);
}
.dx-day-desc {
  margin: 0 0 16px;
  color: var(--dx-text);
  font-size: 14.5px;
  line-height: 1.65;
}
.dx-segs { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Segment Items & Luxury Cards ---------- */
.dx-seg {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius);
  background: #ffffff;
  break-inside: avoid;
  box-shadow: 0 2px 6px rgba(11, 19, 43, 0.03);
  transition: all 0.15s ease;
}
.dx-seg-ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--dx-soft);
  color: var(--brand);
  border: 1px solid var(--dx-line);
}
.dx-seg-ic .ic { width: 19px; height: 19px; }
.dx-seg-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dx-muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.dx-seg-time { color: var(--dx-ink); letter-spacing: 0.05em; font-weight: 600; }
.dx-seg-title {
  font-weight: 700;
  color: var(--dx-ink);
  font-size: 15.5px;
  line-height: 1.35;
}
.dx-seg-meta { font-size: 13px; color: var(--dx-muted); margin-top: 2px; }
.dx-seg-meta b { color: var(--dx-ink); }
.dx-seg-desc { margin-top: 8px; font-size: 13.5px; line-height: 1.55; }
.dx-seg-img {
  margin-top: 12px;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.dx-note {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--brand-soft);
  border-left: 3.5px solid var(--brand);
  border-radius: 0 var(--dx-radius) var(--dx-radius) 0;
  font-size: 13.5px;
  line-height: 1.6;
}
.dx-note::before {
  content: 'Good to know';
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 3px;
}

/* ---------- Pill Design System ---------- */
.dx-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
}
.dx-pill-gold {
  background: linear-gradient(135deg, rgba(223, 186, 115, 0.2), rgba(197, 160, 89, 0.28));
  color: #8a641b;
  border: 1px solid rgba(197, 160, 89, 0.45);
}
.dx-pill-dark {
  background: var(--dx-ink);
  color: #ffffff;
}
.dx-pill-room {
  background: var(--dx-soft);
  color: var(--dx-ink);
  border: 1px solid var(--dx-line);
}
.dx-pill-meal {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.dx-pill-conf {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.dx-pill-cabin {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.dx-pill-bag {
  background: #f8fafc;
  color: #475569;
  border: 1px solid var(--dx-line);
}
.dx-pill-pnr {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}
.dx-pill-stay {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid rgba(197, 160, 89, 0.35);
}

/* ---------- Editorial Luxury Hotel Card (Version 2.0) ---------- */
.dx-hotel-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 22px 24px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--dx-radius);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(11, 19, 43, 0.05);
  position: relative;
  overflow: hidden;
}
.dx-hotel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light), transparent);
}
.dx-hotel-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dx-hotel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.dx-hotel-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.dx-hotel-title-wrap {
  flex: 1;
  min-width: 240px;
}
.dx-hotel-name {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  color: var(--dx-ink);
  margin: 0 0 4px;
  line-height: 1.25;
}
.dx-hotel-addr {
  font-size: 13px;
  color: var(--dx-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dx-hotel-times {
  display: flex;
  gap: 16px;
  background: var(--dx-soft);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--dx-line);
}
.dx-hotel-times div {
  display: flex;
  flex-direction: column;
}
.dx-hotel-times small {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dx-muted);
  font-weight: 700;
}
.dx-hotel-times b {
  font-size: 13.5px;
  color: var(--dx-ink);
}
.dx-hotel-media {
  margin-top: 14px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--dx-line);
}
.dx-hotel-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.dx-hotel-img:hover {
  transform: scale(1.02);
}
.dx-hotel-desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dx-text);
}

.dx-hotel-cont {
  padding: 12px 18px;
  background: var(--dx-soft);
  border: 1px dashed rgba(197, 160, 89, 0.4);
  border-radius: var(--dx-radius);
}
.dx-hotel-cont-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.dx-hotel-cont-title {
  font-size: 14.5px;
  color: var(--dx-ink);
}
.dx-hotel-cont-n {
  font-size: 12px;
  color: var(--dx-muted);
  font-weight: 600;
}

/* ---------- Aviation Boarding Pass Card (Version 2.0) ---------- */
.dx-boarding-pass {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--dx-radius);
  box-shadow: 0 4px 18px rgba(11, 19, 43, 0.05);
}
.dx-bp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--dx-line);
}
.dx-bp-carrier {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dx-bp-kind {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dark);
  font-weight: 700;
}
.dx-bp-flight {
  font-size: 14px;
  font-weight: 700;
  color: var(--dx-ink);
}
.dx-bp-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dx-fl {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 6px 0;
  padding: 14px 18px;
  background: var(--dx-soft);
  border-radius: var(--dx-radius);
  border: 1px solid var(--dx-line);
}
.dx-fl-end { display: flex; flex-direction: column; min-width: 100px; }
.dx-fl-end.r { text-align: right; }
.dx-fl-end small { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dx-muted); font-weight: 700; }
.dx-fl-end b { font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif; font-size: 30px; line-height: 1.05; color: var(--dx-ink); font-variant-numeric: lining-nums; font-weight: 700; }
.dx-fl-time { font-size: 15px; font-weight: 700; color: var(--dx-ink); margin-top: 1px; }
.dx-fl-time sup { font-size: 10px; color: var(--brand); margin-left: 2px; }
.dx-fl-city { font-size: 12px; color: var(--dx-muted); margin-top: 1px; }
.dx-fl-mid { display: flex; align-items: center; gap: 8px; color: var(--brand); }
.dx-fl-mid i { flex: 1; border-top: 2px dashed var(--brand); opacity: 0.65; }
.dx-fl-mid .ic { width: 20px; height: 20px; transform: rotate(45deg); }

/* ---------- Tables & Summaries ---------- */
.dx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  margin-bottom: 34px;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius);
  overflow: hidden;
}
.dx-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dx-ink);
  font-weight: 700;
  padding: 12px 14px;
  background: var(--dx-soft);
  border-bottom: 2px solid var(--brand);
}
.dx-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--dx-line);
  vertical-align: top;
}
.dx-table tr:last-child td { border-bottom: 0; }
.dx-table tr:hover td { background: rgba(197, 160, 89, 0.04); }

.dx-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.dx-list h3 { font-size: 22px; margin-bottom: 10px; }
.dx-list ul { list-style: none; padding: 0; margin: 0 0 28px; }
.dx-list li { position: relative; padding: 5px 0 5px 26px; font-size: 13.5px; }
.dx-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 10px;
  height: 6px;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}
.dx-exc li::before {
  width: 10px;
  height: 0;
  top: 14px;
  border-left: 0;
  transform: none;
  border-bottom: 2.5px solid #e11d48;
}
.dx-tc li::before {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  transform: none;
  top: 13px;
  left: 6px;
}

/* ---------- Pricing Grid ---------- */
.dx-price { margin-bottom: 34px; }
.dx-price-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.dx-price-grid div {
  flex: 1;
  min-width: 160px;
  padding: 18px 22px;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius);
  background: var(--dx-soft);
  box-shadow: 0 2px 6px rgba(11, 19, 43, 0.03);
}
.dx-price-grid b { font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif; font-size: 30px; color: var(--dx-ink); font-weight: 700; }
.dx-price-total {
  background: linear-gradient(135deg, var(--dx-ink), #1c2541) !important;
  border-color: var(--dx-ink) !important;
  box-shadow: 0 8px 24px rgba(11, 19, 43, 0.18) !important;
}
.dx-price-total small { color: var(--brand-light); }
.dx-price-total b { color: #ffffff !important; }

/* ---------- Itemized Cost Breakdown Table ---------- */
.dx-breakdown-wrap {
  margin-top: 22px;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 19, 43, 0.04);
}
.dx-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 20px;
  background: var(--dx-soft);
  border-bottom: 1px solid var(--dx-line);
}
.dx-breakdown-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--dx-ink);
  margin: 0;
}
.dx-breakdown-pax {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-dark, #8a6d2b);
  background: rgba(197, 160, 89, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(197, 160, 89, 0.25);
}
.dx-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 13.5px;
}
.dx-breakdown-table th {
  padding: 11px 18px;
  background: rgba(11, 19, 43, 0.02);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dx-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--dx-line);
}
.dx-breakdown-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(11, 19, 43, 0.06);
  color: var(--dx-text);
  vertical-align: middle;
}
.dx-breakdown-table tbody tr:hover td {
  background: rgba(197, 160, 89, 0.03);
}
.dx-breakdown-item-name {
  font-weight: 600;
  color: var(--dx-ink);
}
.dx-breakdown-note {
  font-size: 11.5px;
  color: var(--dx-muted);
  margin-top: 2px;
}
.dx-breakdown-total-tr {
  background: var(--dx-soft);
  border-top: 2px solid var(--brand);
}
.dx-breakdown-total-tr td {
  padding: 14px 18px;
  border-bottom: 0;
}

/* Photo credits, letterhead, continued stays */
.dx-credit { font-size: 10.5px; color: var(--dx-muted); margin: -10px 0 14px; text-align: right; }
.dx-seg-body .dx-credit { margin: 4px 0 0; }
.dx-cover-credit { position: absolute !important; right: 16px; bottom: 10px; font-size: 10.5px; color: rgba(255, 255, 255, 0.65); }
.dx-frame { width: 100%; border-collapse: collapse; }
.dx-frame > * > tr > td { padding: 0; }
.dx-hdr-img, .dx-ftr-img { display: block; width: 100%; height: auto; }
.dx-cont { padding: 10px 16px; background: var(--dx-soft); }
.dx-cont .dx-seg-ic { width: 30px; height: 30px; }
.dx-cont .dx-seg-ic .ic { width: 15px; height: 15px; }
.dx-cont .dx-seg-title { font-size: 14px; }

/* ---------- Document Footer ---------- */
.dx-foot {
  display: flex;
  gap: 36px;
  align-items: center;
  padding: 38px 56px;
  background: var(--dx-soft);
  border-top: 3px solid var(--brand);
}
.dx-foot > img { width: 180px; height: auto; flex: none; }
.dx-foot-note {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: var(--dx-ink);
  margin: 0 0 8px;
}
.dx-foot-co { font-size: 13.5px; margin-bottom: 6px; color: var(--dx-text); }
.dx-foot-contact { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; }
.dx-foot-contact span { display: inline-flex; align-items: center; gap: 6px; }
.dx-foot-contact .ic { color: var(--brand); }

/* ---------- Floating WhatsApp Concierge Action Bar (Version 2.0) ---------- */
.dx-floating-bar {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 9999;
  animation: dxSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dxSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.dx-floating-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  background: rgba(11, 19, 43, 0.92);
  border: 1px solid rgba(223, 186, 115, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32), 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}
.dx-floating-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: dxPulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes dxPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.dx-floating-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dx-floating-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}
.dx-floating-info small {
  display: block;
  font-size: 11px;
  color: rgba(223, 186, 115, 0.9);
}
.dx-floating-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}
.dx-floating-wa-btn:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}
.dx-floating-wa-btn .ic {
  width: 17px;
  height: 17px;
}

/* ---------- Responsive Viewports ---------- */
@media (max-width: 720px) {
  .dx { box-shadow: none; border-radius: 0; }
  .dx-cover { min-height: 480px; padding: 30px 22px 34px; }
  .dx-cover h1 { font-size: 38px; }
  .dx-cover-top img { height: 50px; }
  .dx-page { padding: 32px 22px; }
  .dx-glance { grid-template-columns: 1fr 1fr; }
  .dx-glance div:nth-child(3) { border-left: 0; }
  .dx-glance div:nth-child(n+3) { border-top: 1px solid var(--dx-line); }
  .dx-outline { columns: 1; }
  .dx-day { grid-template-columns: 1fr; gap: 8px; }
  .dx-day-rail { text-align: left; border: 0; padding: 0; display: flex; align-items: baseline; gap: 10px; }
  .dx-day-no { font-size: 36px; }
  .dx-day-head { flex-direction: column; gap: 6px; }
  .dx-cols { grid-template-columns: 1fr; gap: 0; }
  .dx-table { display: block; overflow-x: auto; }
  .dx-foot { flex-direction: column; align-items: flex-start; padding: 30px 22px; gap: 18px; }
  .dx-floating-bar { bottom: 16px; right: 16px; left: 16px; }
  .dx-floating-inner { justify-content: space-between; border-radius: 16px; }
  .dx-floating-info small { display: none; }
}

/* ---------- Print / PDF Layout ---------- */
@page { size: A4; margin: 16mm 14mm 16mm; }
@page :first { margin: 0; }
@media print {
  html, body { background: #fff !important; }
  .dx { box-shadow: none; max-width: none; font-size: 11.5px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dx-cover { height: 297mm; min-height: 0; page-break-after: always; break-after: page; padding: 22mm 18mm; }
  .dx-cover h1 { font-size: 46px; }
  .dx-page { padding: 0 0 8mm; }
  .dx-page + .dx-page { border-top: 0; }
  .dx-days, .dx-summary { break-before: page; }
  .dx-h2, .dx-list h3 { break-after: avoid; }
  .dx-map { height: 240px; }
  .dx-day { break-inside: auto; }
  .dx-day-head, .dx-seg, .dx-hotel-card, .dx-boarding-pass, .dx-note, .dx-day-img, .dx-glance, .dx-price, .dx-table tr, .dx-breakdown-wrap { break-inside: avoid; }
  .dx-day-head { break-after: avoid; }
  .dx-day-img { max-height: 200px; }
  .dx-seg-img, .dx-hotel-img { max-height: 150px; }
  .dx-wx { display: none; }
  .dx-hdr-img { margin-bottom: 6mm; }
  .dx-ftr-img { margin-top: 4mm; }
  .dx-foot { break-inside: avoid; padding: 20px 24px; border-radius: 8px; }
  .leaflet-control-zoom { display: none; }
  .dx-floating-bar { display: none !important; }
}
