/* ===================================================
   Kashmir Tour Itinerary Planner — Stylesheet
   =================================================== */

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

:root {
  --primary:   #0077B6;
  --primary-dark: #023E8A;
  --secondary: #00B4D8;
  --accent:    #FFB703;
  --green:     #2D6A4F;
  --green-lt:  #52B788;
  --red:       #E63946;
  --white:     #FFFFFF;
  --bg:        #F0F4F8;
  --card-bg:   #FFFFFF;
  --border:    #D1E0F0;
  --text:      #1A2E44;
  --text-muted:#5A7A9A;
  --shadow:    0 2px 12px rgba(0,119,182,0.10);
  --shadow-lg: 0 8px 32px rgba(0,119,182,0.15);
  --radius:    12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== HEADER ===== */
.app-header {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  color: var(--white);
  padding: 40px 24px 56px;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='rgba(255,255,255,0.06)' d='M0 160 L60 140 L120 155 L200 100 L280 130 L360 90 L440 120 L520 70 L600 110 L700 60 L800 100 L900 50 L1000 90 L1100 40 L1200 80 L1300 50 L1440 70 L1440 200 L0 200Z'/%3E%3Cpath fill='rgba(255,255,255,0.04)' d='M0 180 L100 160 L220 175 L340 140 L480 165 L600 130 L720 155 L880 120 L1020 145 L1160 110 L1300 135 L1440 100 L1440 200 L0 200Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
}

.header-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.header-logo i {
  font-size: 32px;
  color: var(--accent);
}

.header-tagline {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ===== STEP NAVIGATION ===== */
.steps-nav {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.steps-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  cursor: pointer;
  flex: 1;
  transition: all 0.2s;
  min-width: 0;
}

.step-item:hover .step-circle { background: var(--primary); color: var(--white); }

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-muted);
  transition: all 0.3s;
}

.step-item span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.step-item.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,119,182,0.4);
}

.step-item.active span { color: var(--primary); font-weight: 600; }

.step-item.completed .step-circle {
  background: var(--green-lt);
  border-color: var(--green);
  color: var(--white);
}

.step-line {
  flex: 0 0 24px;
  height: 2px;
  background: var(--border);
  margin-bottom: 20px;
}

/* ===== STEP CONTENT ===== */
.steps-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 100px;
}

.step-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.step-content.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION TITLE ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-title i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  flex-shrink: 0;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--text);
  flex: 1;
}

/* ===== FORM ELEMENTS ===== */
.form-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 8px;
}

.form-grid.two-col  { grid-template-columns: 1fr 1fr; }
.form-grid.four-col { grid-template-columns: repeat(4, 1fr); }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.12);
}

textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }

/* ===== COUNTER INPUT ===== */
.counter-input {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.counter-input input {
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  flex: 1;
  padding: 8px 4px;
}

.counter-input button {
  background: var(--bg);
  border: none;
  padding: 0 16px;
  font-size: 18px;
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
  transition: background 0.2s;
  height: 44px;
}

.counter-input button:hover { background: var(--border); }

/* ===== SECTION DIVIDER ===== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== FILE UPLOAD ===== */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}

.file-upload-area:hover {
  border-color: var(--primary);
  background: rgba(0,119,182,0.04);
}

.file-upload-area i { font-size: 32px; color: var(--primary); margin-bottom: 8px; display: block; }
.file-upload-area p { font-weight: 500; color: var(--text); }
.file-upload-area span { font-size: 12px; color: var(--text-muted); }

.logo-preview {
  margin-top: 12px;
  text-align: center;
}

.logo-preview img {
  max-height: 80px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  padding: 6px;
}

/* ===== INFO & WARNING BOXES ===== */
.info-card {
  background: rgba(0,119,182,0.06);
  border: 1.5px solid rgba(0,119,182,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.info-card i { color: var(--primary); font-size: 16px; flex-shrink: 0; }

.warning-box {
  background: rgba(255,183,3,0.1);
  border: 1.5px solid rgba(255,183,3,0.5);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8B6914;
  font-weight: 500;
}

.trip-summary-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ===== DAY CARDS ===== */
.day-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: box-shadow 0.2s;
}

.day-card:hover { box-shadow: var(--shadow-lg); }

.day-card-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.day-number {
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.day-number .num { font-size: 18px; font-weight: 700; line-height: 1; }
.day-number .lbl { font-size: 9px; text-transform: uppercase; opacity: 0.8; }

.day-header-info { flex: 1; min-width: 0; }
.day-header-info h3 { font-size: 15px; font-weight: 600; }
.day-header-info p  { font-size: 12px; opacity: 0.85; }

.day-toggle { font-size: 16px; transition: transform 0.3s; }
.day-card.collapsed .day-toggle { transform: rotate(-90deg); }

.day-card-body { padding: 20px; }
.day-card.collapsed .day-card-body { display: none; }

/* Day form layout */
.day-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.day-row.three { grid-template-columns: 1fr 1fr 1fr; }

/* Image upload area for days */
.images-section { margin-top: 16px; }

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.img-thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
}

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

.img-thumb .img-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.img-thumb .img-remove:hover { background: var(--red); }

.img-thumb .img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding: 4px 8px 6px;
}

.img-thumb .img-caption input {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 11px;
  width: 100%;
  padding: 0;
}

.img-thumb .img-caption input::placeholder { color: rgba(255,255,255,0.7); }

.img-add-btn {
  aspect-ratio: 4/3;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 12px;
  gap: 4px;
  transition: all 0.2s;
}

.img-add-btn i { font-size: 22px; color: var(--primary); }
.img-add-btn:hover { border-color: var(--primary); background: rgba(0,119,182,0.04); }

/* ===== COST CARDS ===== */
.cost-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.cost-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
}

.cost-summary-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-lg);
}

.cost-summary-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.cost-rows { margin-bottom: 16px; }

.cost-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
}

.cost-row:last-child { border-bottom: none; }
.cost-row .val { font-weight: 600; }

.cost-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  padding: 16px 0 8px;
  border-top: 2px solid rgba(255,255,255,0.4);
  color: var(--accent);
}

.cost-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
  opacity: 0.9;
}

.cost-balance-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 0;
  color: #90E0EF;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 4px;
}

.per-person-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  opacity: 0.75;
}

/* ===== INCLUSIONS / EXCLUSIONS ===== */
.checklist-container {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-height: 80px;
  background: var(--bg);
  margin-bottom: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.checklist-item:hover { background: var(--border); }

.checklist-item span {
  flex: 1;
  font-size: 13px;
}

.checklist-item button {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 12px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.checklist-item button:hover { opacity: 1; }

.add-item-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.add-item-row input { flex: 1; }

.add-item-row button {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.add-item-row button:hover { background: var(--primary-dark); }

.quick-add-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-add-chips span {
  background: rgba(0,119,182,0.1);
  color: var(--primary);
  border: 1px solid rgba(0,119,182,0.3);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.quick-add-chips span:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(0,119,182,0.3);
}

.btn-primary:hover {
  box-shadow: 0 5px 18px rgba(0,119,182,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary:hover { background: rgba(0,119,182,0.06); }

.btn-secondary.small { padding: 6px 12px; font-size: 12px; }

.btn-ghost {
  background: none;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,119,182,0.04); }

/* ===== NAVIGATION FOOTER ===== */
.nav-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1.5px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.step-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== PREVIEW ===== */
.preview-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.print-hint {
  background: rgba(255,183,3,0.12);
  border: 1px solid rgba(255,183,3,0.4);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  color: #7A5C00;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== ITINERARY DOCUMENT (preview + print) ===== */
.itinerary-doc {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

/* Doc Header */
.doc-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
  color: var(--white);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.doc-agency h1 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.doc-agency p { font-size: 12px; opacity: 0.85; line-height: 1.8; }

.doc-agency-logo img {
  max-height: 70px;
  border-radius: 8px;
  background: var(--white);
  padding: 6px;
}

/* Doc Tour Title */
.doc-tour-title {
  background: var(--primary);
  padding: 16px 40px;
  color: var(--white);
}

.doc-tour-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
}

.doc-tour-title p { font-size: 12px; opacity: 0.85; }

/* Doc Info Grid */
.doc-info-section {
  padding: 24px 40px;
  background: rgba(0,119,182,0.04);
  border-bottom: 1.5px solid var(--border);
}

.doc-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.doc-info-item { text-align: center; }

.doc-info-item .lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.doc-info-item .val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.doc-info-item .val i { color: var(--primary); margin-right: 4px; }

/* Day sections in doc */
.doc-day {
  border-bottom: 1.5px solid var(--border);
  page-break-inside: avoid;
}

.doc-day-header {
  background: linear-gradient(90deg, rgba(0,119,182,0.08), transparent);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 4px solid var(--primary);
}

.doc-day-num {
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.doc-day-title { flex: 1; }
.doc-day-title h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.doc-day-title p  { font-size: 12px; color: var(--text-muted); }

.doc-day-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.doc-day-body { padding: 16px 40px 24px; }

.doc-day-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}

.doc-day-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.doc-day-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.doc-day-images .main-img {
  grid-column: 1 / -1;
}

/* Day detail rows */
.doc-detail { display: flex; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.doc-detail .icon { color: var(--primary); width: 18px; flex-shrink: 0; margin-top: 1px; }
.doc-detail .content { flex: 1; }
.doc-detail .content strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 2px; }

/* Period boxes */
.period-boxes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.period-box {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.period-box.morning   { background: rgba(255,183,3,0.1);   border-left: 3px solid var(--accent); }
.period-box.afternoon { background: rgba(0,180,216,0.1);   border-left: 3px solid var(--secondary); }
.period-box.evening   { background: rgba(45,106,79,0.1);   border-left: 3px solid var(--green); }

.period-box .period-icon { font-size: 16px; }
.period-box .period-content strong { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 2px; }

/* Hotel badge in doc */
.hotel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,119,182,0.08);
  border: 1px solid rgba(0,119,182,0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.stars { color: var(--accent); font-size: 11px; }

/* Inclusions table in doc */
.doc-inc-exc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 40px;
  border-bottom: 1.5px solid var(--border);
}

.doc-inc-exc h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-inc-exc ul { list-style: none; }

.doc-inc-exc li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.doc-inc-exc li:last-child { border-bottom: none; }
.doc-inc-exc li i { font-size: 11px; margin-top: 2px; flex-shrink: 0; }
.inc-icon { color: var(--green-lt); }
.exc-icon { color: var(--red); }

/* Cost table in doc */
.doc-cost-section {
  padding: 24px 40px;
  border-bottom: 1.5px solid var(--border);
}

.doc-cost-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cost-table th {
  background: var(--primary);
  color: var(--white);
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.cost-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: var(--bg); }
.cost-table .total-row td { font-weight: 700; background: rgba(0,119,182,0.08); font-size: 14px; }
.cost-table .balance-row td { font-weight: 700; color: var(--primary); }

/* Terms in doc */
.doc-terms {
  padding: 24px 40px;
  background: var(--bg);
}

.doc-terms h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doc-terms ol {
  padding-left: 20px;
}

.doc-terms li {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Doc Footer */
.doc-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.9;
}

/* ===== UTILITIES ===== */
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

/* ================================================================
   NEW DOCUMENT STYLES — Agency Card, Day Cards, Activities, Cost
   ================================================================ */

/* ----- AGENCY CARD ----- */
.doc-agency-card {
  position: relative;
  background: linear-gradient(135deg, #023E8A 0%, #0077B6 50%, #00B4D8 100%);
  color: #fff;
  overflow: hidden;
}

.doc-agency-card-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200'%3E%3Ccircle cx='500' cy='50' r='120' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='60' cy='160' r='80' fill='rgba(255,255,255,0.04)'/%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M0 150 L80 100 L160 130 L240 80 L320 110 L400 60 L480 90 L560 40 L600 60 L600 200 L0 200Z'/%3E%3C/svg%3E") bottom/cover;
  pointer-events: none;
}

.doc-agency-card-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 40px 24px;
}

.doc-agency-logo-col { flex-shrink: 0; }

.doc-logo-box {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.doc-logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.doc-logo-placeholder i { font-size: 40px; color: rgba(255,255,255,0.6); }

.doc-agency-info-col { flex: 1; min-width: 0; }

.doc-agency-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.doc-agency-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 12px;
  opacity: 0.92;
  margin-bottom: 10px;
}

.doc-agency-contacts span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.doc-agency-review-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}

/* Review Badges */
.review-badge-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
}

.rb-icon { font-size: 22px; }
.google-rb .rb-icon { color: #fff; }
.ta-rb .rb-icon { color: #34E0A1; }

.rb-stars { font-size: 12px; margin-bottom: 2px; }
.rb-score { font-size: 13px; font-weight: 700; }
.rb-label { font-size: 10px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }

/* Agency Bottom Bar */
.doc-agency-bottom-bar {
  position: relative;
  background: rgba(0,0,0,0.25);
  padding: 10px 40px;
  display: flex;
  gap: 0;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
}

.doc-agency-bottom-bar span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ----- TOUR TITLE ----- */
.doc-tour-title {
  background: linear-gradient(90deg, #0077B6, #00B4D8);
  padding: 16px 40px;
  color: #fff;
}

.doc-tour-title-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.doc-tour-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.doc-tour-title p { font-size: 12px; opacity: 0.88; }

.doc-tour-nights-badge {
  flex-shrink: 0;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 10px 18px;
  text-align: center;
}

.nights-num { display: block; font-size: 28px; font-weight: 800; line-height: 1; }
.nights-lbl { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }

/* ----- INFO GRID ----- */
.doc-info-section {
  padding: 20px 40px;
  background: linear-gradient(135deg, rgba(0,119,182,0.06), rgba(0,180,216,0.04));
  border-bottom: 1.5px solid var(--border);
}

.doc-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.doc-info-item {
  text-align: center;
  background: var(--white);
  border-radius: 10px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.doc-info-item .lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.doc-info-item .val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.doc-info-item .val i { color: var(--primary); margin-right: 3px; font-size: 11px; }

/* ----- SECTION HEADING (doc) ----- */
.doc-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

.doc-section-heading i {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.doc-itinerary-section { padding: 28px 40px 8px; }

/* ----- DAY CARD (colored) ----- */
.doc-day-card {
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  border: 1.5px solid var(--dc-bdr, #90CAF9);
  page-break-inside: avoid;
}

.doc-day-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  color: #fff;
}

.doc-day-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ddb-num { font-size: 22px; font-weight: 800; line-height: 1; }
.ddb-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }

.doc-day-card-title { flex: 1; min-width: 0; }
.doc-day-card-title h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.doc-day-card-title p  { font-size: 12px; opacity: 0.88; display: flex; align-items: center; gap: 4px; }

.doc-day-card-date {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.9;
  background: rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}

.doc-day-card-body {
  padding: 20px 24px 24px;
  background: #fff;
  border-top: 3px solid var(--dc-acc, #1E88E5);
}

/* ----- HOTEL STRIP ----- */
.doc-hotel-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  border-left: 4px solid;
  margin-bottom: 16px;
}

.hotel-strip-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

.hotel-strip-info { flex: 1; }
.hotel-strip-name { font-size: 14px; font-weight: 700; display: block; margin-bottom: 2px; }
.hotel-strip-stars { font-size: 13px; letter-spacing: 1px; }

.hotel-strip-location {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}

.hotel-strip-location i { font-size: 10px; margin-right: 2px; }

.hotel-strip-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  text-align: center;
}

.hotel-badge-loc {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
  display: block;
}

/* ----- MAIN LAYOUT (activities + photos) ----- */
.doc-day-main-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
  align-items: start;
}

/* When no images, activities block takes full width */
.doc-day-main-layout > .doc-activities-block:only-child {
  grid-column: 1 / -1;
}

/* ----- ACTIVITY TIMELINE ----- */
.doc-activities-timeline { display: flex; flex-direction: column; }

.act-timeline-row {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.act-timeline-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
  flex-shrink: 0;
}

.act-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1;
}

.act-dot-transport { background: linear-gradient(135deg,#37474F,#546E7A); }
.act-dot-note      { background: linear-gradient(135deg,#E65100,#F57F17); }

.act-line {
  width: 2px;
  flex: 1;
  min-height: 16px;
  margin: 2px 0;
  border-radius: 2px;
}

.act-timeline-content {
  flex: 1;
  margin-left: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid;
  font-size: 13px;
}

.act-transport-content { background: rgba(55,71,79,0.06); border-color: #B0BEC5; }
.act-note-content      { background: rgba(230,81,0,0.06);  border-color: #FFCC80; }

.act-period-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.act-period-text {
  color: var(--text);
  line-height: 1.55;
  font-size: 13px;
}

.act-bullets {
  margin: 4px 0 0 0;
  padding-left: 16px;
  list-style: disc;
}

.act-bullets li {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 3px;
}

.act-bullets li:last-child { margin-bottom: 0; }

/* ----- ACTIVITIES BLOCK (single field) ----- */
.doc-activities-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-act-content {
  border-radius: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
}

.doc-act-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-act-body { font-size: 13px; color: var(--text); line-height: 1.55; }

.doc-act-body .act-bullets { padding-left: 18px; }
.doc-act-body .act-bullets li { margin-bottom: 4px; }

.doc-act-extra {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.doc-act-extra-label {
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ----- DAY PHOTO GALLERY ----- */
.doc-day-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 10px;
  padding: 8px 6px 4px;
  line-height: 1.3;
}

.gallery-more {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
}

/* ----- INCLUSIONS & EXCLUSIONS (new style) ----- */
.doc-inc-exc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 40px 0;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.doc-inc-col, .doc-exc-col { padding: 20px 24px; }
.doc-inc-col { border-right: 1px solid var(--border); }

.doc-inc-head, .doc-exc-head {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
}

.doc-inc-head { color: #1B5E20; }
.doc-exc-head { color: #B71C1C; }
.doc-inc-head i { color: #43A047; }
.doc-exc-head i { color: #E53935; }

.doc-inc-col ul, .doc-exc-col ul { list-style: none; }

.doc-inc-col li, .doc-exc-col li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.doc-inc-col li:last-child, .doc-exc-col li:last-child { border-bottom: none; }
.inc-icon { color: #43A047; font-size: 11px; margin-top: 2px; flex-shrink: 0; }
.exc-icon { color: #E53935; font-size: 11px; margin-top: 2px; flex-shrink: 0; }

/* ----- COST SECTION (new style) ----- */
.doc-cost-section { padding: 28px 40px; border-top: 1.5px solid var(--border); }

/* Cost Per Person Banner */
.cpp-banner {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,119,182,0.18);
  border: 1.5px solid rgba(0,119,182,0.2);
}

.cpp-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
}

.cpp-item.cpp-balance { background: linear-gradient(135deg, #1B5E20, #2E7D32); }

.cpp-divider { width: 2px; background: rgba(255,255,255,0.25); flex-shrink: 0; }

.cpp-icon { font-size: 18px; margin-bottom: 4px; opacity: 0.85; }
.cpp-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.85; margin-bottom: 4px; font-weight: 600; }
.cpp-value { font-size: 18px; font-weight: 800; }

/* Updated cost table */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.cost-table th {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cost-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: rgba(0,119,182,0.03); }
.cost-table .subtotal-row td { background: rgba(0,119,182,0.06); font-weight: 600; color: var(--primary-dark); }
.cost-table .total-row td { background: rgba(0,119,182,0.1); font-weight: 700; font-size: 14px; color: var(--primary-dark); }
.cost-table .balance-row td { background: rgba(27,94,32,0.08); font-weight: 700; color: #1B5E20; font-size: 14px; }

.cost-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
}

/* ----- TERMS (new style) ----- */
.doc-terms {
  padding: 24px 40px;
  background: #FAFBFC;
  border-top: 1.5px solid var(--border);
}

.doc-terms ol { padding-left: 20px; }
.doc-terms li { font-size: 12px; color: var(--text-muted); margin-bottom: 5px; line-height: 1.5; }

/* ----- FOOTER (new style) ----- */
.doc-footer {
  background: linear-gradient(135deg, #023E8A, #0077B6);
  color: #fff;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
}

.doc-footer-left { opacity: 0.95; line-height: 1.6; }
.doc-footer-right { opacity: 0.75; white-space: nowrap; }

.doc-footer-social {
  display: flex;
  gap: 14px;
  opacity: 0.9;
}

.doc-footer-social span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* ================================================================
   HOTEL CATALOG MODULE
   ================================================================ */

/* ================================================================
   BRAND / HEADER
   ================================================================ */
.header-logo { font-size: 24px; }

/* ================================================================
   SAVED ITINERARIES
   ================================================================ */
.itin-overlay { justify-content: flex-start; }

.itin-panel {
  border-radius: 0;
  box-shadow: 8px 0 40px rgba(0,0,0,0.22);
}

.itin-panel-header {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 60%, #43A047 100%) !important;
}

.itin-panel-toolbar {
  padding: 14px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
  flex-wrap: wrap;
}

.itin-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.itin-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.itin-empty i { font-size: 40px; margin-bottom: 12px; opacity: 0.3; display: block; }
.itin-empty p { font-size: 13px; line-height: 1.7; }

.itin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.itin-card:hover { box-shadow: var(--shadow); border-color: rgba(46,125,50,0.3); }

.itin-card-left { flex: 1; min-width: 0; }

.itin-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.itin-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 11px;
  color: var(--text-muted);
}

.itin-card-meta span { display: flex; align-items: center; gap: 4px; }
.itin-card-meta i { font-size: 10px; color: #2E7D32; }

.itin-card-actions { display: flex; gap: 5px; flex-shrink: 0; }

/* Nav buttons */
.btn-itin-nav {
  background: linear-gradient(135deg, #1B5E20, #2E7D32);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(46,125,50,0.3);
}

.btn-itin-nav:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-itin-save {
  background: linear-gradient(135deg, #BF360C, #E64A19);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(191,54,12,0.3);
}

.btn-itin-save:hover { opacity: 0.88; transform: translateY(-1px); }

/* ================================================================
   COST FIELDS — PDF BADGE + PER-PERSON BREAKDOWN
   ================================================================ */

.cost-pdf-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

.show-pdf {
  background: rgba(25,118,210,0.1);
  color: #1565C0;
  border: 1px solid rgba(25,118,210,0.3);
}

.hide-pdf {
  background: rgba(211,47,47,0.1);
  color: #C62828;
  border: 1px solid rgba(211,47,47,0.3);
}

.per-person-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-dark);
}

.per-person-divider::before,
.per-person-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.per-person-breakdown {
  margin-bottom: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 12px;
}

.pp-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
}

.pp-row:last-child { border-bottom: none; }
.pp-row.pp-shared { background: rgba(0,119,182,0.04); }

.pp-adult {
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
  font-size: 11px;
}

.pp-child {
  font-weight: 600;
  color: #E65100;
  white-space: nowrap;
  font-size: 11px;
}

.per-person-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.highlight-adult { color: var(--primary-dark); font-size: 14px !important; }
.highlight-child  { color: #E65100; }

.cost-row-note {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}

.rate-hint {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  background: rgba(0,119,182,0.08);
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 4px;
}

/* Per-person breakdown table in PDF */
.pp-breakdown-table thead th {
  background: linear-gradient(90deg, #1B5E20, #2E7D32) !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ----- Nav button ----- */
.catalog-nav-btn-wrap {
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-left: 1.5px solid var(--border);
  flex-shrink: 0;
  margin-left: auto;
}

.btn-catalog-nav {
  background: linear-gradient(135deg, #0D47A1, #0077B6);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,119,182,0.3);
}

.btn-catalog-nav:hover { opacity: 0.88; transform: translateY(-1px); }

/* ----- Full-screen overlay ----- */
.catalog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.catalog-panel {
  width: 100%;
  max-width: 860px;
  height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.22);
}

/* ----- Panel header ----- */
.catalog-panel-header {
  background: linear-gradient(135deg, #023E8A 0%, #0077B6 60%, #00B4D8 100%);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.catalog-panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.catalog-panel-title i { font-size: 22px; opacity: 0.9; }

.catalog-panel-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.catalog-panel-subtitle { font-size: 11px; opacity: 0.78; }

.catalog-icon-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.catalog-icon-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ----- Split body ----- */
.catalog-body {
  display: grid;
  grid-template-columns: 380px 1fr;
  flex: 1;
  overflow: hidden;
}

/* ----- Left: form column ----- */
.catalog-form-col {
  border-right: 1.5px solid var(--border);
  overflow-y: auto;
  background: var(--white);
  padding: 20px;
}

.catalog-form-card {
  background: var(--white);
}

.catalog-form-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.catalog-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Room categories */
.hf-cat-section {
  margin-top: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hf-cat-header {
  background: rgba(0, 119, 182, 0.06);
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hf-cat-list { padding: 8px 10px 4px; min-height: 36px; }

.hf-cat-empty {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 4px 8px;
  font-style: italic;
}

.hf-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-bottom: 5px;
}

.hf-cat-row-name { flex: 1; font-size: 12px; font-weight: 600; color: var(--text); }
.hf-cat-row-rate { font-size: 12px; color: var(--primary-dark); font-weight: 600; }

.hf-cat-remove {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.15s;
}
.hf-cat-remove:hover { background: rgba(230, 57, 70, 0.1); }

.hf-add-cat-row {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: rgba(0, 119, 182, 0.03);
}

.hf-rate-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  flex: 1;
}

.hf-rate-prefix {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(0, 119, 182, 0.06);
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
}

.hf-rate-wrap input {
  border: none;
  flex: 1;
  padding: 8px 8px;
  font-size: 13px;
  min-width: 0;
}

.hf-rate-wrap input:focus { outline: none; }

.hf-add-cat-row input { flex: 1; min-width: 0; }

.hf-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px solid var(--border);
}

/* ----- Right: list column ----- */
.catalog-list-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.catalog-list-toolbar {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
}

.catalog-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
  background: rgba(0, 119, 182, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}

.catalog-search {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.catalog-search:focus { border-color: var(--primary); outline: none; }

.catalog-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px;
}

.catalog-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.catalog-empty i { font-size: 36px; margin-bottom: 10px; opacity: 0.35; display: block; }
.catalog-empty p { font-size: 13px; line-height: 1.5; }

/* ----- Hotel card in list ----- */
.catalog-hotel-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.catalog-hotel-card:hover { box-shadow: var(--shadow); border-color: rgba(0,119,182,0.3); }

.catalog-hotel-editing { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0,119,182,0.15); }

.chc-left { flex-shrink: 0; }

.chc-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.chc-type-hotel       { background: linear-gradient(135deg,#0D47A1,#1976D2); }
.chc-type-houseboat   { background: linear-gradient(135deg,#004D40,#00796B); }
.chc-type-resort      { background: linear-gradient(135deg,#1B5E20,#388E3C); }
.chc-type-guest-house { background: linear-gradient(135deg,#4A148C,#7B1FA2); }
.chc-type-cottage     { background: linear-gradient(135deg,#BF360C,#E64A19); }
.chc-type-camp        { background: linear-gradient(135deg,#880E4F,#C2185B); }

.chc-body { flex: 1; min-width: 0; }

.chc-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }

.chc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.chc-meta span { display: flex; align-items: center; gap: 4px; }
.chc-meta i { color: var(--primary); font-size: 10px; }

.chc-type-tag {
  background: rgba(0,119,182,0.08);
  color: var(--primary-dark);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.chc-stars { color: var(--accent); font-size: 10px; letter-spacing: 1px; }

.chc-rates { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }

.chc-rate-chip {
  background: rgba(0,119,182,0.08);
  color: var(--primary-dark);
  border: 1px solid rgba(0,119,182,0.2);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 500;
}

.chc-extra-chip {
  background: rgba(255,183,3,0.12);
  color: #7A5C00;
  border-color: rgba(255,183,3,0.4);
}

.chc-notes { font-size: 11px; color: var(--text-muted); font-style: italic; margin-top: 2px; }

.chc-actions { display: flex; gap: 5px; flex-shrink: 0; }

/* ----- Computed cost display (Step 4) ----- */
.computed-cost-display {
  padding: 11px 14px;
  background: rgba(0,119,182,0.08);
  border: 1.5px solid rgba(0,119,182,0.25);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.3px;
}

/* ----- Day hotel section (Step 3 cards) ----- */
.day-hotel-section {
  background: rgba(0,119,182,0.04);
  border: 1.5px solid rgba(0,119,182,0.18);
  border-radius: var(--radius-sm);
  padding: 14px 16px 10px;
  margin-bottom: 16px;
}

.day-hotel-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.day-hotel-section .day-row { margin-bottom: 10px; }
.day-hotel-section .day-row:last-child { margin-bottom: 0; }

/* ===== PRINT STYLES ===== */
@media print {
  body { background: white; }

  .app-header,
  .steps-nav,
  .steps-container,
  .nav-footer { display: none !important; }

  .print-only { display: block !important; }

  .itinerary-doc { box-shadow: none; border-radius: 0; }

  .catalog-overlay { display: none !important; }
  .pp-breakdown-table thead { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-day-card { page-break-inside: avoid; box-shadow: none; }

  /* Force all coloured/gradient elements to print accurately */
  .doc-agency-card,
  .doc-agency-card-bg,
  .doc-agency-bottom-bar,
  .doc-tour-title,
  .doc-section-heading i,
  .doc-day-card-header,
  .doc-hotel-strip,
  .hotel-strip-icon,
  .act-dot,
  .act-dot-transport,
  .act-dot-note,
  .cpp-banner,
  .cpp-item,
  .cpp-item.cpp-balance,
  .cost-table th,
  .cost-table .subtotal-row td,
  .cost-table .total-row td,
  .cost-table .balance-row td,
  .doc-footer {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* backdrop-filter is not supported in print — replace with solid bg */
  .doc-logo-box {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255,255,255,0.25) !important;
  }

  .review-badge-box {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255,255,255,0.2) !important;
  }

  @page { size: A4; margin: 12mm; }
}

.print-only { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .form-grid.two-col,
  .form-grid.four-col { grid-template-columns: 1fr; }
  .day-row, .day-row.three { grid-template-columns: 1fr; }
  .doc-info-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-day-main-layout { grid-template-columns: 1fr; }
  .doc-inc-exc { grid-template-columns: 1fr; margin: 0 16px 16px; }
  .doc-inc-col { border-right: none; border-bottom: 1px solid var(--border); }
  .doc-agency-card-content { flex-direction: column; padding: 20px; }
  .doc-agency-review-col { flex-direction: row; min-width: auto; width: 100%; }
  .doc-agency-bottom-bar { flex-wrap: wrap; gap: 6px; padding: 10px 20px; }
  .doc-tour-title { padding: 14px 20px; }
  .doc-tour-title-inner { flex-direction: column; align-items: flex-start; }
  .doc-info-section { padding: 14px 16px; }
  .doc-itinerary-section { padding: 16px; }
  .doc-cost-section { padding: 16px; }
  .doc-terms { padding: 16px; }
  .doc-footer { padding: 12px 20px; flex-direction: column; text-align: center; gap: 8px; }
  .steps-inner { overflow-x: auto; }
  .step-item span { display: none; }
  .cpp-banner { flex-direction: column; border-radius: 10px; }
  .cpp-divider { width: 100%; height: 1px; }
  .catalog-body { grid-template-columns: 1fr; }
  .catalog-form-col { border-right: none; border-bottom: 1.5px solid var(--border); }
  .catalog-panel { max-width: 100%; }
  .catalog-form-row { grid-template-columns: 1fr; }
  .catalog-nav-btn-wrap { flex-wrap: wrap; gap: 4px; }
  .btn-itin-nav, .btn-itin-save, .btn-catalog-nav { font-size: 11px; padding: 6px 10px; }
  .itin-panel { max-width: 100%; }
  .pp-row { grid-template-columns: 1fr; }
}
