/* print.css — the shareable document.
   #v2-print is populated on demand by Trip and is invisible on screen; the
   @media print block hides the dark app entirely and shows this instead, so
   nothing about the screen layout has to change and nobody ever prints a
   black page. */

#v2-print { display: none; }

@media print {
  /* Kill the app, keep the document. The nav is position:fixed and the sheet
     is appended to <body>, so both are covered by this one rule. */
  body > *:not(#v2-print) { display: none !important; }

  html, body {
    background: #fff !important;
    color: #1a1a1a !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
  }

  #v2-print {
    display: block !important;
    background: #fff;
    color: #1a1a1a;
  }

  @page { margin: 14mm 12mm; }
}

/* ── The document. Styles live outside the print query so the markup is
   identical whether it is printed or (in a test) inspected. ───────────── */

.pr-doc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11pt;
  line-height: 1.45;
  color: #1a1a1a;
  background: #fff;
  max-width: 190mm;
  margin: 0 auto;
  font-feature-settings: "tnum";
}

/* ── Masthead ── */
.pr-head {
  border-bottom: 2.5pt solid #1a1a1a;
  padding-bottom: 8pt;
  margin-bottom: 12pt;
}
.pr-title {
  font-family: var(--font-display);
  font-size: 22pt;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 4pt;
  color: #14142b;
}
.pr-dates { font-size: 11pt; font-weight: 600; margin: 0 0 2pt; color: #333; }
.pr-party { font-size: 10pt; margin: 0; color: #444; }
.pr-label { font-weight: 700; color: #14142b; }

.pr-h2 {
  font-family: var(--font-display);
  font-size: 13pt;
  font-weight: 700;
  margin: 16pt 0 6pt;
  padding-bottom: 3pt;
  border-bottom: 1pt solid #bbb;
  color: #14142b;
  break-after: avoid;
  page-break-after: avoid;
}

/* ── Hotels ── */
.pr-stay {
  display: flex;
  flex-wrap: wrap;
  gap: 8pt;
  align-items: baseline;
  font-size: 10pt;
  margin: 0 0 3pt;
}
.pr-stay span { color: #555; }

/* ── One day ── */
.pr-day {
  border: 0.75pt solid #ccc;
  border-radius: 4pt;
  padding: 8pt 10pt;
  margin: 0 0 8pt;
  break-inside: avoid;
  page-break-inside: avoid;
}
.pr-dayhead {
  font-family: var(--font-display);
  font-size: 12.5pt;
  font-weight: 700;
  margin: 0 0 2pt;
  color: #14142b;
}
.pr-daynum {
  display: inline-block;
  min-width: 42pt;
  margin-right: 6pt;
  padding: 1pt 5pt;
  border-radius: 3pt;
  background: #14142b;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 8.5pt;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 2pt;
  text-align: center;
}
.pr-daymeta { font-size: 9.5pt; color: #555; margin: 0 0 5pt; }
.pr-events { font-size: 9.5pt; font-weight: 600; color: #8a5a00; margin: 0 0 5pt; }
.pr-empty { font-size: 9.5pt; color: #777; font-style: italic; margin: 0; }
.pr-notes {
  font-size: 9pt;
  color: #555;
  margin: 5pt 0 0;
  padding: 4pt 6pt;
  background: #f4f4f6;
  border-radius: 3pt;
  white-space: pre-wrap;
}

/* ── Items on a day ── */
.pr-items { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.pr-items td {
  padding: 3pt 6pt 3pt 0;
  vertical-align: top;
  border-top: 0.5pt solid #e6e6e6;
}
.pr-items tr:first-child td { border-top: 0; }
.pr-t { white-space: nowrap; width: 52pt; font-weight: 700; color: #14142b; }
.pr-k { white-space: nowrap; width: 66pt; color: #666; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .04em; }
.pr-w strong { font-weight: 600; }
.pr-sub { display: block; color: #666; font-size: 9pt; }
.pr-c { white-space: nowrap; text-align: right; }
.pr-conf {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8.5pt;
  background: #eef0f5;
  border-radius: 2pt;
  padding: 1pt 4pt;
}
.pr-none { color: #999; font-size: 8.5pt; font-style: italic; }
.pr-alt td { color: #777; }
.pr-altflag {
  font-size: 7.5pt;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 0.5pt solid #999;
  border-radius: 2pt;
  padding: 0 3pt;
  color: #777;
}

/* ── Reservation summary table ── */
.pr-resv { break-before: auto; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 9pt; }
.pr-table th {
  text-align: left;
  padding: 4pt 6pt;
  background: #f0f0f4;
  border: 0.5pt solid #ccc;
  font-size: 8.5pt;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #444;
}
.pr-table td { padding: 3pt 6pt; border: 0.5pt solid #ddd; vertical-align: top; }
.pr-table tr { break-inside: avoid; page-break-inside: avoid; }

.pr-foot {
  margin-top: 14pt;
  padding-top: 6pt;
  border-top: 0.5pt solid #ccc;
  font-size: 8.5pt;
  color: #888;
}
