@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   DARSHAN — SACRED YATRAS A4 ITINERARY PDF & PREVIEW DESIGN SYSTEM
   Professional Print-Ready Luxury Pilgrimage Brochures
   Colors: Navy (#0A1733 / #133E7C), Red (#E8171B), Gold (#D4AF37 / #F3D67A)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Interactive Download Trigger Buttons (On Web Page)
   -------------------------------------------------------------------------- */
.btn-download-itinerary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #133E7C 0%, #0A1733 100%);
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.35rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px -2px rgba(10, 23, 51, 0.25);
  text-decoration: none;
  line-height: 1.25;
}

.btn-download-itinerary:hover {
  background: linear-gradient(135deg, #E8171B 0%, #133E7C 100%);
  border-color: #F3D67A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(232, 23, 27, 0.35);
  color: #FFFFFF;
}

.btn-download-itinerary .btn-icon-gold {
  color: #F3D67A;
  transition: transform 0.3s ease;
}

.btn-download-itinerary:hover .btn-icon-gold {
  transform: translateY(2px);
}

.btn-download-itinerary-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  color: #0A1733;
  border: 1px solid #F3D67A;
}

.btn-download-itinerary-gold:hover {
  background: linear-gradient(135deg, #E8171B 0%, #C41215 100%);
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-download-itinerary-outline {
  background: rgba(255, 255, 255, 0.95);
  color: #0A1733;
  border: 1.5px solid #133E7C;
}

.btn-download-itinerary-outline:hover {
  background: #133E7C;
  color: #FFFFFF;
  border-color: #133E7C;
}

/* --------------------------------------------------------------------------
   2. Modal Overlay & Wrapper
   -------------------------------------------------------------------------- */
.itinerary-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 23, 51, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.itinerary-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.itinerary-modal-window {
  background: #FFFFFF;
  width: 100%;
  max-width: 1080px;
  height: 94vh;
  max-height: 960px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.3);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.itinerary-modal-backdrop.active .itinerary-modal-window {
  transform: scale(1) translateY(0);
}

/* Modal Header Bar */
.itinerary-modal-header {
  background: linear-gradient(135deg, #0A1733 0%, #133E7C 100%);
  color: #FFFFFF;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
}

.itinerary-modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.itinerary-modal-header-badge {
  background: #E8171B;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.itinerary-modal-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.02em;
}

.itinerary-modal-subtitle {
  font-size: 0.75rem;
  color: #F3D67A;
  margin-top: 2px;
}

.itinerary-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.itinerary-modal-close:hover {
  background: #E8171B;
  border-color: #E8171B;
  transform: rotate(90deg);
}

/* Modal Actions Ribbon */
.itinerary-modal-toolbar {
  background: #FAF8F3;
  padding: 0.65rem 1.4rem;
  border-bottom: 1px solid #E2D9C8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.itinerary-toolbar-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #475569;
}

.itinerary-toolbar-info strong {
  color: #0A1733;
}

.itinerary-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-modal-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  line-height: 1;
}

.btn-modal-download {
  background: linear-gradient(135deg, #E8171B 0%, #C41215 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(232, 23, 27, 0.3);
}

.btn-modal-download:hover {
  background: linear-gradient(135deg, #C41215 0%, #9E0E10 100%);
  transform: translateY(-1px);
}

.btn-modal-download:disabled {
  opacity: 0.75;
  cursor: wait;
}

.btn-modal-print {
  background: #FFFFFF;
  color: #0A1733;
  border: 1px solid #CBD5E1;
}

.btn-modal-print:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.btn-modal-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
}

.btn-modal-whatsapp:hover {
  background: #1EBE5D;
}

/* Modal Body / Scrollable Preview Canvas */
.itinerary-modal-body {
  flex: 1;
  background: #3B4252;
  background: radial-gradient(circle at center, #475569 0%, #1E293B 100%);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem 1rem 3.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  scrollbar-width: thin;
  scrollbar-color: #94A3B8 transparent;
}

.itinerary-modal-body::-webkit-scrollbar {
  width: 8px;
}

.itinerary-modal-body::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Exact A4 Document Layout & Page Sizing
   Standard A4: 210mm x 297mm (1 : 1.414 aspect ratio)
   Height budget: 297mm (~1122px) | Usable content: ~966px
   -------------------------------------------------------------------------- */
.pdf-document-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.pdf-a4-page {
  width: 210mm;
  min-height: 296.8mm;
  max-height: 296.8mm;
  height: 296.8mm;
  background-color: #FAF8F3;
  color: #0A1733;
  box-sizing: border-box;
  padding: 8.5mm 11mm 7.5mm 11mm;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  overflow: hidden;
  page-break-after: always;
  break-after: page;
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Outer Border Inset Frame for Sacred Elegance */
.pdf-a4-page::before {
  content: "";
  position: absolute;
  inset: 4.5mm;
  border: 1px solid rgba(212, 175, 55, 0.4);
  pointer-events: none;
  z-index: 1;
}

.pdf-a4-page::after {
  content: "";
  position: absolute;
  inset: 5.5mm;
  border: 0.5px solid rgba(19, 62, 124, 0.15);
  pointer-events: none;
  z-index: 1;
}

/* Header & Footer Components of Each A4 Page */
.pdf-page-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #D4AF37;
  padding-bottom: 4.5px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.pdf-brand-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-brand-logo-img {
  height: 25px;
  width: auto;
  object-fit: contain;
}

.pdf-brand-text .pdf-brand-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 12pt;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0A1733;
  margin: 0;
  line-height: 1;
}

.pdf-brand-text .pdf-brand-subtitle {
  font-size: 6.2pt;
  font-weight: 700;
  color: #E8171B;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 2px 0 0 0;
  line-height: 1;
}

.pdf-header-center {
  text-align: center;
}

.pdf-header-shloka {
  font-family: "Tiro Devanagari Hindi", serif;
  font-size: 8.2pt;
  color: #92400E;
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
}

.pdf-header-package-tag {
  font-size: 6.2pt;
  font-weight: 700;
  color: #133E7C;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.5px;
}

.pdf-header-contact {
  text-align: right;
  font-size: 6.5pt;
  line-height: 1.25;
}

.pdf-header-phone {
  font-weight: 700;
  color: #0A1733;
}

.pdf-header-phone span {
  color: #E8171B;
}

.pdf-header-badge {
  display: inline-block;
  background: #0A1733;
  color: #F3D67A;
  font-size: 5.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 1.5px;
}

/* Page Content Body (Top-aligned with rhythmic gap) */
.pdf-page-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
  overflow: hidden;
}

/* Running Footer */
.pdf-page-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(212, 175, 55, 0.45);
  padding-top: 3px;
  margin-top: 4px;
  font-size: 5.75pt;
  line-height: 1.2;
  color: #64748B;
  flex-shrink: 0;
  white-space: nowrap;
}

.pdf-footer-left {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.pdf-footer-left strong {
  color: #0A1733;
}

.pdf-footer-page-num {
  font-weight: 700;
  color: #133E7C;
  background: #FAF8F3;
  padding: 1px 6px;
  border: 1px solid rgba(19, 62, 124, 0.25);
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pdf-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  white-space: nowrap;
}

.pdf-footer-right span {
  color: #E8171B;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. A4 Components & Content Blocks (Senior-Friendly, Spacious & Un-Stretched)
   -------------------------------------------------------------------------- */

/* Hero Banner on Page 1 */
.pdf-hero-card {
  background: linear-gradient(135deg, #0A1733 0%, #133E7C 100%);
  border: 1px solid #D4AF37;
  border-radius: 8px;
  padding: 13px 16px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.pdf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 0.5px solid rgba(243, 214, 122, 0.4);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 7.2pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #F3D67A;
}

.pdf-hero-badge .pdf-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E8171B;
}

.pdf-hero-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 16pt;
  font-weight: 800;
  line-height: 1.22;
  color: #FFFFFF;
  margin: 5px 0 3px 0;
  letter-spacing: 0.02em;
}

.pdf-hero-subtitle {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 10.5pt;
  color: #F3D67A;
  margin: 0;
  line-height: 1.35;
}

/* Quick Specifications Strip */
.pdf-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.pdf-spec-item {
  background: rgba(255, 255, 255, 0.10);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 5px 8px;
}

.pdf-spec-label {
  font-size: 6.6pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.pdf-spec-value {
  font-size: 9pt;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
}

.pdf-spec-value.gold {
  color: #F3D67A;
}

/* Route Timeline Strip */
.pdf-route-strip {
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 7px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pdf-route-step {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdf-route-bullet {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #133E7C;
  color: #FFFFFF;
  font-size: 7.2pt;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdf-route-bullet.start {
  background: #E8171B;
}

.pdf-route-bullet.end {
  background: #0A1733;
}

.pdf-route-label {
  font-size: 8pt;
  font-weight: 700;
  color: #0A1733;
}

.pdf-route-arrow {
  color: #D4AF37;
  font-size: 9pt;
  font-weight: bold;
}

/* Highlights 4-Col Grid */
.pdf-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex-shrink: 0;
}

.pdf-highlight-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top: 3px solid #133E7C;
  border-radius: 6px;
  padding: 7px 9px;
}

.pdf-highlight-card.red-top {
  border-top-color: #E8171B;
}

.pdf-highlight-card.gold-top {
  border-top-color: #D4AF37;
}

.pdf-highlight-title {
  font-size: 8.2pt;
  font-weight: 700;
  color: #0A1733;
  margin: 0;
  line-height: 1.25;
}

.pdf-highlight-desc {
  font-size: 7.2pt;
  color: #475569;
  margin: 3px 0 0 0;
  line-height: 1.35;
}

/* Visual Photo Showcase Strip */
.pdf-photo-showcase {
  background: #FFFFFF;
  border: 1px solid #E2D9C8;
  border-radius: 8px;
  padding: 7px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.pdf-photo-thumb {
  width: 160px;
  height: 90px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pdf-photo-content h5 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 9.5pt;
  font-weight: 700;
  color: #0A1733;
  margin: 0 0 3px 0;
}

.pdf-photo-content p {
  font-size: 7.8pt;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

/* Day Cards (Generous Senior-Friendly Spacing) */
.pdf-day-card {
  background: #FFFFFF;
  border: 1px solid #E2D9C8;
  border-radius: 8px;
  padding: 10px 14px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.pdf-day-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F1ECE1;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.pdf-day-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-day-badge {
  background: #E8171B;
  color: #FFFFFF;
  font-size: 7.5pt;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2.5px 7px;
  border-radius: 4px;
}

.pdf-day-badge.navy {
  background: #133E7C;
}

.pdf-day-badge.ink {
  background: #0A1733;
}

.pdf-day-city {
  font-size: 8.5pt;
  font-weight: 700;
  color: #133E7C;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pdf-day-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 10.5pt;
  font-weight: 700;
  color: #0A1733;
  margin: 0;
  line-height: 1.28;
}

.pdf-day-night-stay {
  font-size: 7.6pt;
  font-weight: 600;
  color: #475569;
  background: #FAF8F3;
  padding: 2px 7px;
  border-radius: 4px;
  border: 0.5px solid #E2D9C8;
}

.pdf-day-summary {
  font-size: 8.2pt;
  color: #334155;
  line-height: 1.45;
  margin: 3px 0 7px 0;
}

/* Timeline Milestones in Day Card */
.pdf-milestones-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.pdf-milestone-box {
  background: #FAF8F3;
  border: 0.5px solid #EADFC9;
  border-radius: 5px;
  padding: 6px 8px;
}

.pdf-milestone-time {
  font-size: 7pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #E8171B;
  display: flex;
  align-items: center;
  gap: 3px;
}

.pdf-milestone-title {
  font-size: 8.2pt;
  font-weight: 700;
  color: #0A1733;
  margin: 2px 0;
  line-height: 1.24;
}

.pdf-milestone-desc {
  font-size: 7.4pt;
  color: #475569;
  margin: 0;
  line-height: 1.36;
}

/* Travel & Meals Bottom Bar of Day Card */
.pdf-day-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 0.5px dashed #E2D9C8;
  font-size: 7.5pt;
  color: #64748B;
}

.pdf-day-footer-bar strong {
  color: #0A1733;
}

/* Mid-Page Feature / Pacing Card */
.pdf-feature-card {
  background: #FFFFFF;
  border: 1px solid #E2D9C8;
  border-radius: 8px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pdf-feature-card-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 10pt;
  font-weight: 700;
  color: #0A1733;
  margin: 0 0 3px 0;
}

.pdf-feature-card-desc {
  font-size: 7.8pt;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

.pdf-feature-badge {
  background: #FAF8F3;
  border: 1px solid #D4AF37;
  color: #B45309;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 7.4pt;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Dual Photo Showcase Strip (UN-STRETCHED 16:9 PROPORTIONAL) */
.pdf-photo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex-shrink: 0;
}

.pdf-photo-duo-item {
  position: relative;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #D4AF37;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pdf-photo-duo-badge {
  position: absolute;
  bottom: 6px;
  left: 7px;
  right: 7px;
  background: rgba(10, 23, 51, 0.88);
  backdrop-filter: blur(4px);
  color: #F3D67A;
  font-size: 7.6pt;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  border: 0.5px solid rgba(243, 214, 122, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdf-photo-duo-tag {
  color: #FFFFFF;
  font-size: 6.6pt;
  font-weight: 500;
  opacity: 0.9;
}

/* Dedicated Pilgrimage Fleet Standards Card */
.pdf-fleet-card {
  background: #FFFFFF;
  border: 1px solid #E2D9C8;
  border-radius: 7px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pdf-fleet-left {
  max-width: 65%;
}

.pdf-fleet-title {
  font-size: 8.8pt;
  font-weight: 700;
  color: #0A1733;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdf-fleet-desc {
  font-size: 7.6pt;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

.pdf-fleet-pills {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  align-items: flex-end;
}

.pdf-fleet-pill {
  background: #FAF8F3;
  border: 0.5px solid #D4AF37;
  color: #133E7C;
  font-size: 7pt;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

/* Devotee Testimonial & Assurance Banner */
.pdf-testimonial-card {
  background: #FAF8F3;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 7px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pdf-testimonial-quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 9.6pt;
  color: #0A1733;
  margin: 0;
  line-height: 1.38;
}

.pdf-testimonial-author {
  font-size: 7.4pt;
  font-weight: 700;
  color: #133E7C;
  margin-top: 3px;
}

.pdf-testimonial-badge {
  text-align: right;
  flex-shrink: 0;
  padding-left: 12px;
}

.pdf-testimonial-stars {
  color: #D4AF37;
  font-size: 8.5pt;
  letter-spacing: 1px;
}

.pdf-testimonial-verified {
  font-size: 6.8pt;
  font-weight: 700;
  color: #15803D;
  text-transform: uppercase;
}

/* Darshan Transparency & Peace of Mind Guarantee */
.pdf-guarantee-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-top: 2.5px solid #133E7C;
  border-radius: 7px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pdf-guarantee-title {
  font-size: 8.5pt;
  font-weight: 800;
  color: #0A1733;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 2px 0;
}

.pdf-guarantee-desc {
  font-size: 7.6pt;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

/* Sacred Darshan & Shrines Timing Guide Box */
.pdf-timing-guide-box {
  background: #FFFFFF;
  border: 1px solid #E2D9C8;
  border-top: 2.5px solid #D4AF37;
  border-radius: 7px;
  padding: 8px 12px;
  flex-shrink: 0;
}

.pdf-timing-guide-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 9.5pt;
  font-weight: 700;
  color: #0A1733;
  margin: 0 0 5px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdf-timing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pdf-timing-col {
  background: #FAF8F3;
  border: 0.5px solid #EADFC9;
  border-radius: 5px;
  padding: 6px 8px;
}

.pdf-timing-name {
  font-size: 8.2pt;
  font-weight: 700;
  color: #0A1733;
  margin-bottom: 2px;
}

.pdf-timing-detail {
  font-size: 7.2pt;
  color: #475569;
  line-height: 1.38;
}

.pdf-timing-highlight {
  color: #E8171B;
  font-weight: 700;
}

/* Devotee Packing & Satvik Cuisine Guide Box */
.pdf-cuisine-guide-box {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-top: 2.5px solid #133E7C;
  border-radius: 7px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex-shrink: 0;
}

.pdf-cuisine-col h6 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 8.5pt;
  font-weight: 700;
  color: #0A1733;
  margin: 0 0 3px 0;
}

.pdf-cuisine-col p {
  font-size: 7.4pt;
  color: #475569;
  margin: 0;
  line-height: 1.38;
}

/* Senior Citizen & Family Pilgrimage Comfort Protocol */
.pdf-senior-card {
  background: #FFFFFF;
  border: 1px solid #E2D9C8;
  border-top: 2.5px solid #D4AF37;
  border-radius: 7px;
  padding: 8px 12px;
  flex-shrink: 0;
}

.pdf-senior-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 9.2pt;
  font-weight: 700;
  color: #0A1733;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdf-senior-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pdf-senior-col {
  background: #FAF8F3;
  border: 0.5px solid #EADFC9;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 7.4pt;
  color: #475569;
  line-height: 1.36;
}

.pdf-senior-col strong {
  color: #0A1733;
  display: block;
  margin-bottom: 2px;
  font-size: 7.8pt;
}

/* Inclusions & Exclusions Card */
.pdf-inclusions-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  flex-shrink: 0;
}

.pdf-inc-col {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 7px;
  padding: 8px 12px;
}

.pdf-inc-col.inc-yes {
  border-top: 3px solid #16A34A;
}

.pdf-inc-col.inc-no {
  border-top: 3px solid #E8171B;
}

.pdf-inc-header {
  font-size: 8.8pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdf-inc-header.green {
  color: #15803D;
}

.pdf-inc-header.red {
  color: #B91C1C;
}

.pdf-inc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3.5px;
}

.pdf-inc-item {
  font-size: 7.8pt;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.38;
}

.pdf-check-icon {
  color: #16A34A;
  font-weight: bold;
  font-size: 9pt;
  flex-shrink: 0;
}

.pdf-cross-icon {
  color: #DC2626;
  font-weight: bold;
  font-size: 9pt;
  flex-shrink: 0;
}

/* Hotel Tiers Table */
.pdf-hotel-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 7px;
  overflow: hidden;
  font-size: 7.8pt;
  flex-shrink: 0;
}

.pdf-hotel-table th {
  background: #0A1733;
  color: #FFFFFF;
  padding: 6px 9px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 7.5pt;
}

.pdf-hotel-table td {
  padding: 6px 9px;
  border-bottom: 0.5px solid #E2E8F0;
  color: #334155;
  vertical-align: top;
  line-height: 1.38;
}

.pdf-hotel-table tr:nth-child(even) td {
  background: #FAF8F3;
}

.pdf-hotel-badge {
  font-weight: 800;
  color: #0A1733;
  display: block;
  font-size: 8.2pt;
}

.pdf-hotel-badge.gold {
  color: #B45309;
}

/* Pilgrim Guidelines Box */
.pdf-guidelines-box {
  background: #FFFFFF;
  border: 1px solid #D4AF37;
  border-radius: 7px;
  padding: 8px 12px;
  flex-shrink: 0;
}

.pdf-guidelines-title {
  font-size: 8.8pt;
  font-weight: 800;
  color: #0A1733;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 5px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdf-guidelines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pdf-guide-item {
  font-size: 7.5pt;
  color: #334155;
  line-height: 1.38;
}

.pdf-guide-item strong {
  color: #0A1733;
}

/* Booking & Contact Box (Bottom of Final Page) */
.pdf-booking-card {
  background: linear-gradient(135deg, #0A1733 0%, #133E7C 100%);
  border: 1px solid #D4AF37;
  border-radius: 8px;
  padding: 9px 14px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pdf-booking-left {
  max-width: 68%;
}

.pdf-booking-heading {
  font-family: "Cinzel", Georgia, serif;
  font-size: 11pt;
  font-weight: 700;
  color: #F3D67A;
  margin: 0 0 3px 0;
}

.pdf-booking-sub {
  font-size: 7.6pt;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.4;
}

.pdf-booking-contacts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.pdf-contact-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 0.5px solid rgba(243, 214, 122, 0.4);
  padding: 3.5px 8px;
  border-radius: 4px;
  font-size: 7.6pt;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
}

.pdf-booking-right {
  text-align: right;
}

.pdf-booking-guarantee {
  font-size: 6.8pt;
  font-weight: 700;
  color: #F3D67A;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pdf-booking-callout {
  font-size: 8.8pt;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 2px;
}


/* --------------------------------------------------------------------------
   5. Native Browser Print Engine Styling (@media print)
   -------------------------------------------------------------------------- */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body > *:not(#itinerary-pdf-print-root) {
    display: none !important;
  }

  #itinerary-pdf-print-root {
    display: block !important;
    position: static !important;
    width: 210mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .pdf-a4-page,
  .hmt-page {
    width: 210mm !important;
    min-height: 296.8mm !important;
    max-height: 296.8mm !important;
    height: 296.8mm !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .pdf-a4-page:last-child,
  .hmt-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
}

/* ==========================================================================
   HAPPYMYTOUR PRODUCTION ITINERARY TEMPLATE (OFFICIAL SAMPLE REPLICA)
   Spacious, high readability, elderly-friendly typography, un-stretched imagery
   ========================================================================== */
.hmt-page {
  width: 210mm;
  min-height: 296.8mm;
  max-height: 296.8mm;
  height: 296.8mm;
  position: relative;
  background: #FFFFFF;
  color: #1E293B;
  box-sizing: border-box;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  overflow: hidden;
  page-break-after: always;
  break-after: page;
  page-break-inside: avoid;
  break-inside: avoid;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hmt-page::before,
.hmt-page::after {
  display: none !important;
}

/* PAGE 1: COVER PAGE */
.hmt-cover-page {
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.hmt-cover-scrim {
  background: linear-gradient(180deg, rgba(10,23,51,0.05) 0%, rgba(10,23,51,0.78) 55%, rgba(10,23,51,0.96) 100%);
  padding: 42px 36px 36px 36px;
  color: #FFFFFF;
}
.hmt-cover-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32pt;
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hmt-cover-ref {
  font-size: 11pt;
  font-weight: 600;
  color: #F3D67A;
  margin-bottom: 14px;
}
.hmt-cover-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}
.hmt-cover-bullets {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
  font-size: 10.5pt;
  font-weight: 500;
}
.hmt-cover-bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hmt-cover-footer {
  font-size: 8.5pt;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

/* PAGE 2: SPECIALLY PREPARED FOR & BY */
.hmt-intro-layout {
  display: grid;
  grid-template-columns: 28% 72%;
  height: 100%;
}
.hmt-intro-strip {
  background-size: cover;
  background-position: center;
  height: 100%;
  border-right: 1px solid #CBD5E1;
}
.hmt-intro-content {
  padding: 45px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hmt-intro-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21pt;
  font-weight: 700;
  color: #0A1733;
  margin-bottom: 8px;
}
.hmt-intro-client-name {
  font-size: 15pt;
  font-weight: 600;
  color: #334155;
  margin-bottom: 35px;
}
.hmt-intro-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}
.hmt-intro-agent-name {
  font-size: 13pt;
  font-weight: 800;
  color: #0A1733;
  letter-spacing: 0.04em;
}
.hmt-intro-agent-company {
  font-size: 11pt;
  font-weight: 700;
  color: #475569;
  margin-bottom: 14px;
}
.hmt-intro-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5pt;
  color: #1E293B;
  font-weight: 600;
  margin-bottom: 6px;
}
.hmt-intro-disclaimer {
  font-size: 8.5pt;
  line-height: 1.6;
  color: #64748B;
  border-top: 1px solid #E2E8F0;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* TOP HEADER BAR FOR PAGES 3+ */
.hmt-page-header {
  background: #0A1733;
  color: #FFFFFF;
  padding: 10px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.hmt-page-header-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13pt;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hmt-page-header-sub {
  font-size: 9.5pt;
  font-weight: 600;
  color: #E2E8F0;
}
.hmt-page-content {
  padding: 28px 35px 24px 35px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hmt-page-footer-ref {
  text-align: right;
  font-size: 8.5pt;
  color: #64748B;
  font-weight: 600;
  padding-top: 10px;
}

/* TABLE PAGE */
.hmt-table-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26pt;
  font-weight: 700;
  color: #0A1733;
  margin-bottom: 20px;
}
.hmt-overview-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.hmt-overview-table th {
  background: #0A1733;
  color: #FFFFFF;
  text-align: left;
  padding: 10px 14px;
  font-size: 9.5pt;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.hmt-overview-table td {
  padding: 14px;
  border-bottom: 1px solid #E2E8F0;
  vertical-align: top;
  font-size: 9.5pt;
}
.hmt-overview-table tr:last-child td {
  border-bottom: 1px solid #CBD5E1;
}
.hmt-td-date {
  font-weight: 700;
  color: #1E293B;
}
.hmt-td-product-title {
  font-weight: 800;
  color: #0A1733;
  margin-bottom: 3px;
}
.hmt-td-product-sub {
  color: #64748B;
  font-size: 8.5pt;
}
.hmt-td-desc {
  color: #334155;
  line-height: 1.5;
}
.hmt-td-desc-title {
  font-weight: 700;
  color: #0F3A78;
  margin-bottom: 3px;
}

/* HOTEL PAGE */
.hmt-hotel-layout {
  display: flex;
  gap: 25px;
  height: 100%;
}
.hmt-hotel-photos {
  width: 34%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hmt-hotel-thumb {
  width: 100%;
  height: 165px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  border: 1px solid #E2E8F0;
}
.hmt-hotel-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hmt-hotel-stars {
  color: #D97706;
  font-size: 12pt;
}
.hmt-hotel-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19pt;
  font-weight: 700;
  color: #0A1733;
  line-height: 1.2;
}
.hmt-hotel-address {
  font-size: 9.5pt;
  color: #64748B;
  margin-bottom: 4px;
}
.hmt-hotel-times-box {
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAFC;
}
.hmt-hotel-time-block strong {
  font-size: 9.5pt;
  font-weight: 700;
  color: #0A1733;
  display: block;
}
.hmt-hotel-time-block span {
  font-size: 8.5pt;
  color: #64748B;
}
.hmt-hotel-duration {
  font-size: 9.5pt;
  font-weight: 700;
  color: #0F3A78;
  border-bottom: 1px solid #CBD5E1;
  padding-bottom: 2px;
}
.hmt-hotel-desc {
  font-size: 9.2pt;
  line-height: 1.55;
  color: #334155;
}
.hmt-hotel-specs-card {
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 9pt;
  line-height: 1.5;
}
.hmt-specs-title {
  font-weight: 800;
  color: #0A1733;
  margin-bottom: 3px;
}

/* DAYWISE ITINERARY PAGE */
.hmt-day-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hmt-day-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18pt;
  font-weight: 700;
  color: #0A1733;
  line-height: 1.25;
}
.hmt-day-narrative {
  font-size: 10pt;
  line-height: 1.6;
  color: #334155;
}
.hmt-day-transit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 9.5pt;
  font-weight: 600;
}
.hmt-day-notes-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #0F3A78;
  padding: 14px 18px;
  border-radius: 4px;
}
.hmt-day-notes-header {
  font-size: 9.5pt;
  font-weight: 700;
  color: #0A1733;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hmt-day-notes-list {
  list-style-type: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 9pt;
  line-height: 1.5;
  color: #334155;
}
.hmt-day-stay-box {
  font-size: 10pt;
  font-weight: 700;
  color: #0A1733;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.hmt-day-meals-row {
  display: flex;
  gap: 25px;
  border-top: 1px dashed #CBD5E1;
  padding-top: 12px;
  font-size: 9pt;
}
.hmt-day-meal-item span:first-child {
  color: #64748B;
  display: block;
  margin-bottom: 2px;
}
.hmt-day-meal-item span:last-child {
  font-weight: 700;
  color: #1E293B;
}
.hmt-day-meal-item.included span:last-child {
  color: #047857;
}

/* PRICING PAGE */
.hmt-pricing-box {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 24px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-top: 20px;
}
.hmt-price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 10.5pt;
  color: #334155;
}
.hmt-price-line strong {
  color: #0A1733;
}
.hmt-price-divider {
  border: none;
  border-top: 2px solid #0A1733;
  margin: 14px 0;
}
.hmt-total-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 5px;
}
.hmt-total-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26pt;
  font-weight: 800;
  color: #0A1733;
}

/* TERMS PAGE */
.hmt-terms-columns {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}
.hmt-terms-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hmt-terms-block h4 {
  font-size: 10.5pt;
  font-weight: 800;
  color: #0A1733;
  margin-bottom: 8px;
}
.hmt-terms-block ul {
  list-style-type: disc;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 8.8pt;
  line-height: 1.5;
  color: #334155;
}

/* Screen Preview Scaling for Small Screens / Mobile Modal Shell */
@media screen and (max-width: 900px) {
  .itinerary-modal-window {
    height: 98vh;
    border-radius: 12px;
  }

  .itinerary-modal-header {
    padding: 0.65rem 1rem;
  }

  .itinerary-modal-toolbar {
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
    padding: 0.75rem 1rem;
  }

  .itinerary-toolbar-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .itinerary-modal-body {
    padding: 1rem 0.5rem;
    overflow-x: auto;
  }
}
