/* Proposal document styles — carried over from the travelPaa Itinerary
   Builder so the printed PDF is byte-for-byte the same document your team
   already sends. Edit here and every proposal in the system follows. */

:root{
  --ink:#10233F;
  --brand:#4472C4;
  --deep:#1B3A6B;
  --paper:#FDFCFA;
  --rule:#D8CFC0;
  --muted:#5E6675;
  --chrome:#EEF1F5;
  --chrome-line:#DDE3EB;
  --display:"Marcellus",Optima,"Palatino Linotype",Palatino,Georgia,serif;
  --sans:"Source Sans 3","Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
.tp-root{position:fixed;inset:0;display:flex;flex-direction:column;
  font-family:var(--sans);background:var(--chrome);color:var(--ink)}

/* ---------- toolbar ---------- */
.tp-bar{display:flex;align-items:center;gap:10px;padding:9px 14px;background:#fff;
  border-bottom:1px solid var(--chrome-line);flex:0 0 auto;flex-wrap:wrap}
.tp-brand{font-weight:700;font-size:14px;letter-spacing:.02em}
.tp-brand span{color:var(--brand)}
.tp-bar-sp{flex:1}
.tp-btn{font:inherit;font-size:12.5px;font-weight:600;padding:7px 13px;border-radius:7px;
  border:1px solid var(--chrome-line);background:#fff;color:var(--ink);cursor:pointer;
  transition:background .12s,border-color .12s}
.tp-btn:hover{background:#F5F7FA;border-color:#C3CCDA}
.tp-btn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.tp-btn.primary{background:var(--ink);color:#fff;border-color:var(--ink)}
.tp-btn.primary:hover{background:#1B355C}
.tp-note{font-size:11.5px;color:var(--muted)}

/* ---------- split ---------- */
.tp-split{flex:1;display:flex;min-height:0}
.tp-left{overflow-y:auto;background:#fff;border-right:1px solid var(--chrome-line);min-width:280px}
.tp-grip{flex:0 0 6px;cursor:col-resize;background:var(--chrome-line);position:relative}
.tp-grip:hover,.tp-grip.on{background:var(--brand)}
.tp-right{flex:1;overflow-y:auto;background:#E7EBF1;min-width:320px;padding:22px 0 60px}

/* ---------- editor ---------- */
.ed-sec{border-bottom:1px solid var(--chrome-line)}
.ed-head{width:100%;display:flex;align-items:center;gap:9px;padding:12px 15px;background:#fff;
  border:0;font:inherit;font-size:12.5px;font-weight:700;color:var(--ink);cursor:pointer;text-align:left}
.ed-head:hover{background:#F7F9FB}
.ed-caret{font-size:9px;color:var(--muted);transition:transform .15s}
.ed-caret.open{transform:rotate(90deg)}
.ed-count{margin-left:auto;font-size:10.5px;font-weight:600;color:var(--muted);
  background:var(--chrome);padding:2px 7px;border-radius:20px}
.ed-body{padding:4px 15px 18px}
.ed-lab{display:block;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);margin:12px 0 5px}
.ed-in,.ed-ta{width:100%;font:inherit;font-size:12.5px;color:var(--ink);padding:8px 10px;
  border:1px solid var(--chrome-line);border-radius:6px;background:#fff;line-height:1.5}
.ed-in:focus,.ed-ta:focus{outline:2px solid var(--brand);outline-offset:-1px;border-color:var(--brand)}
.ed-ta{resize:vertical;min-height:90px}
.ed-row{display:flex;gap:7px}
.ed-row>*{flex:1;min-width:0}
.ed-card{border:1px solid var(--chrome-line);border-radius:9px;padding:11px 12px 14px;margin-top:11px;background:#FCFDFE}
.ed-card-top{display:flex;align-items:center;gap:7px;margin-bottom:2px}
.ed-card-title{font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--brand)}
.ed-mini{font:inherit;font-size:11px;font-weight:600;padding:4px 8px;border-radius:5px;
  border:1px solid var(--chrome-line);background:#fff;color:var(--muted);cursor:pointer}
.ed-mini:hover{background:#F1F4F8;color:var(--ink)}
.ed-mini.warn:hover{background:#FDECEC;color:#B4232A;border-color:#F0BFC1}
.ed-add{width:100%;margin-top:10px;padding:8px;border:1px dashed #BFCADB;border-radius:7px;
  background:#F8FAFC;color:var(--brand);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.ed-add:hover{background:#EEF3FB;border-color:var(--brand)}
.ed-item{display:flex;gap:6px;align-items:flex-start;margin-bottom:6px}
.ed-item .ed-ta{min-height:0;height:auto}
.ed-drop{margin-top:6px;border:1px dashed #BFCADB;border-radius:8px;padding:13px;text-align:center;
  background:#F8FAFC;cursor:pointer;display:block}
.ed-drop:hover{border-color:var(--brand);background:#EEF3FB}
.ed-drop span{font-size:11.5px;color:var(--muted);font-weight:600}
.ed-thumb{position:relative;margin-top:6px;border-radius:8px;overflow:hidden;border:1px solid var(--chrome-line)}
.ed-thumb img{display:block;width:100%;height:88px;object-fit:cover}
.ed-thumb button{position:absolute;top:5px;right:5px;border:0;border-radius:5px;padding:3px 7px;
  background:rgba(16,35,63,.82);color:#fff;font:inherit;font-size:10.5px;font-weight:700;cursor:pointer}
.ed-shots{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.ed-shots .ed-thumb img{height:170px;object-fit:contain;object-position:center top;background:#fff}
.ed-hint{font-size:11px;color:var(--muted);line-height:1.5;margin-top:7px}

/* ---------- pages ---------- */
.pg-wrap{display:flex;flex-direction:column;align-items:center;gap:22px}
.pg{width:794px;min-height:1123px;background:var(--paper);position:relative;
  box-shadow:0 2px 18px rgba(16,35,63,.16);display:flex;flex-direction:column;overflow:hidden;
  font-family:var(--sans);color:var(--ink);font-size:13.8px;line-height:1.6}
.pg-in{padding:52px 62px 62px;flex:1;display:flex;flex-direction:column}

/* running head + foot */
.rh{position:absolute;top:0;left:0;right:0;height:64px;display:flex;align-items:center;
  justify-content:space-between;padding:0 62px;font-size:9px;letter-spacing:.16em;
  text-transform:uppercase;color:#98A2B3;border-bottom:1px solid #ECE7DE}
.rh-logo{height:34px;width:auto;object-fit:contain;display:block}
.rh-mark{font-size:20px;font-weight:800;letter-spacing:0;text-transform:none;color:var(--ink);
  font-family:var(--sans)}
.rh-mark i{font-style:normal;color:#E03131}
.rf{position:absolute;bottom:0;left:0;right:0;height:46px;display:flex;align-items:center;
  justify-content:space-between;gap:18px;padding:0 62px;font-size:9px;letter-spacing:.06em;
  color:#98A2B3;border-top:1px solid #ECE7DE}
.rf-links{display:flex;gap:14px;white-space:nowrap}
.rf-links a{color:var(--brand);text-decoration:none;font-weight:700;font-size:10px;
  letter-spacing:.09em;text-transform:uppercase}
.rf-links a:hover{text-decoration:underline}
.pg.body .pg-in{padding-top:92px;padding-bottom:70px}

/* ---------- cover ---------- */
.cv{position:relative;height:1123px;background:var(--deep);overflow:hidden}
.cv img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cv .scrim{position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(9,22,44,.62) 0%,rgba(9,22,44,.12) 34%,rgba(9,22,44,.72) 74%,rgba(9,22,44,.93) 100%)}
.cv .inner{position:absolute;inset:0;display:flex;flex-direction:column;padding:46px 62px 54px;color:#fff}
.cv-chip{align-self:flex-start;background:#fff;border-radius:6px;padding:12px 18px;line-height:0}
.cv-chip img{position:static;width:auto;height:46px;object-fit:contain}
.cv-chip-txt{font-family:var(--sans);font-weight:800;font-size:29px;color:var(--ink);line-height:1}
.cv-chip-txt i{font-style:normal;color:#E03131}
.cv-mid{margin-top:auto}
.cv-eyebrow{font-size:10.5px;letter-spacing:.34em;text-transform:uppercase;color:rgba(255,255,255,.8)}
.cv-title{font-family:var(--display);font-size:66px;line-height:1.02;font-weight:400;
  letter-spacing:-.015em;margin:16px 0 0}
.cv-sub{font-family:var(--display);font-style:italic;font-size:22px;color:rgba(255,255,255,.82);margin-top:12px}
.cv-rule{width:64px;height:2px;background:var(--brand);margin:24px 0 20px}
.cv-cities{font-size:12.5px;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.9)}
.cv-dur{font-family:var(--display);font-size:26px;margin-top:9px}
.cv-meta{margin-top:32px;padding-top:20px;border-top:1px solid rgba(255,255,255,.26);
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.cv-meta div p:first-child{font-size:8.5px;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,255,255,.62);margin:0 0 5px}
.cv-meta div p:last-child{font-size:14.5px;font-weight:600;margin:0;line-height:1.35}

/* ---------- shared type ---------- */
.eyebrow{font-size:10px;letter-spacing:.28em;text-transform:uppercase;color:var(--brand);font-weight:700}
.h2{font-family:var(--display);font-size:35px;font-weight:400;letter-spacing:-.01em;margin:9px 0 0}
.hr{height:1px;background:var(--rule);margin:20px 0 24px}
.p{font-size:13.8px;line-height:1.66;color:#2B3546;margin:0 0 11px}
.lead{font-size:15.2px;line-height:1.6;color:#2B3546;margin:0 0 14px}

/* facts */
.facts{display:grid;grid-template-columns:1fr 1fr;gap:0 34px}
.fact{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #EDE8DF}
.fact dt{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);
  padding-top:3px;white-space:nowrap}
.fact dd{margin:0;font-size:13.6px;font-weight:600;text-align:right;line-height:1.4}

/* list */
.ul{margin:0;padding:0;list-style:none}
.ul li{position:relative;padding-left:19px;font-size:13.4px;line-height:1.6;margin-bottom:8px;color:#2B3546}
.ul li::before{content:"";position:absolute;left:0;top:8px;width:7px;height:1.5px;background:var(--brand)}
.ul.tight li{margin-bottom:6px;font-size:12.6px;line-height:1.55}

/* index */
.idx{margin-top:20px}
.idx-row{display:grid;grid-template-columns:52px 92px 1fr;gap:16px;align-items:baseline;
  padding:11px 0;border-bottom:1px solid #EDE8DF}
.idx-row:last-child{border-bottom:0}
.idx-n{font-family:var(--display);font-size:22px;color:var(--brand)}
.idx-d{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.idx-txt{display:block;min-width:0}
.idx-t{display:block;font-size:13.6px;font-weight:600;line-height:1.4}

/* ---------- day page ---------- */
.day{display:flex;gap:26px;flex:1}
.rail{flex:0 0 74px;border-right:1px solid var(--rule);padding-right:16px;text-align:right}
.rail-n{font-family:var(--display);font-size:58px;line-height:.9;color:var(--brand)}
.rail-l{font-size:9.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-top:9px}
.rail-c{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ink);margin-top:16px;line-height:1.5}
.day-main{flex:1;min-width:0;display:flex;flex-direction:column}
.day-t{font-family:var(--display);font-size:33px;font-weight:400;line-height:1.14;margin:0 0 12px}
.acts{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 17px}
.acts span{font-size:10.5px;font-weight:600;letter-spacing:.05em;color:var(--deep);
  background:#EDF2FB;border:1px solid #D5E0F4;border-radius:4px;padding:4px 9px;line-height:1.3}
.idx-a{display:block;font-size:11.5px;color:var(--muted);line-height:1.5;margin-top:6px}
.shot{width:100%;height:236px;object-fit:cover;display:block;margin:6px 0 15px;background:#E7EBF1}
.shot.tall{height:286px}
.strip{margin-top:auto;padding-top:15px;border-top:1px solid var(--rule);display:flex;gap:34px}
.strip div{flex:1}
.strip p:first-child{font-size:9.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin:0 0 4px}
.strip p:last-child{font-size:13.4px;font-weight:600;margin:0}
.callout{border-left:2px solid var(--brand);background:#F4F7FC;padding:11px 14px;margin:4px 0 14px}
.callout p{margin:0;font-size:12.6px;line-height:1.58;color:#33405A}
.callout b{letter-spacing:.1em;text-transform:uppercase;font-size:9.5px;color:var(--brand);
  display:block;margin-bottom:4px}

/* ---------- table ---------- */
.tbl{width:100%;border-collapse:collapse;margin-top:4px}
.tbl th{font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);
  text-align:left;padding:0 12px 8px 0;border-bottom:1.5px solid var(--ink);font-weight:700}
.tbl td{font-size:13.2px;padding:11px 12px 11px 0;border-bottom:1px solid #EDE8DF;
  vertical-align:top;line-height:1.5}
.tbl tr:last-child td{border-bottom:0}
.tbl .num{font-variant-numeric:tabular-nums}

/* price */
.price{border:1px solid var(--rule);padding:34px 34px;text-align:center;margin:6px 0 22px;background:#fff}
.price-rows{width:100%;max-width:540px;margin:18px auto 0;border-collapse:collapse}
.price-rows td{padding:12px 0;border-bottom:1px solid #EDE8DF;font-size:14px}
.price-rows td:first-child{text-align:left;color:#2B3546}
.price-rows td:last-child{text-align:right;font-weight:700;font-variant-numeric:tabular-nums;
  white-space:nowrap;padding-left:20px}
.price-tot{max-width:540px;margin:0 auto;padding-top:20px;border-top:1.5px solid var(--ink);
  margin-top:4px;display:flex;align-items:baseline;justify-content:space-between;gap:20px}
.price-tot .k{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);
  text-align:left;max-width:250px;line-height:1.5}
.price-tot .v{font-family:var(--display);font-size:40px;line-height:1;white-space:nowrap}
.price .lbl{font-size:10px;letter-spacing:.28em;text-transform:uppercase;color:var(--muted)}
.price .amt{font-family:var(--display);font-size:56px;line-height:1.05;margin:14px 0 0;color:var(--ink)}
.price .bas{font-size:12.8px;color:var(--muted);margin-top:11px;letter-spacing:.04em}
.shots-col{display:flex;flex-direction:column;gap:20px;flex:1;min-height:0;margin-top:6px}
.shots-col img{width:100%;flex:1;min-height:0;object-fit:contain;object-position:center top;
  border:1px solid var(--rule);background:#fff;padding:8px}

/* export bar — only appears in the downloaded file */
.tp-export-bar{position:fixed;top:0;left:0;right:0;z-index:99;display:flex;align-items:center;
  justify-content:center;gap:16px;padding:11px 18px;background:#10233F;color:#fff;
  font-family:var(--sans);font-size:12.5px}
.tp-export-bar button{font:inherit;font-weight:700;padding:7px 15px;border-radius:7px;
  border:0;background:#fff;color:#10233F;cursor:pointer}
.tp-export-bar + .pg-wrap{padding-top:66px}
.quote{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:17px 0;
  margin-top:auto;font-family:var(--display);font-style:italic;font-size:14.5px;text-align:center;color:var(--ink)}
.empty{padding:60px 20px;text-align:center;color:var(--muted);font-size:12.5px}

.pay-grid{display:grid;grid-template-columns:1fr 288px;gap:44px;align-items:start;margin-top:10px}
.bank{width:100%;border-collapse:collapse}
.bank td{padding:11px 10px 11px 0;border-bottom:1px solid #EDE8DF;font-size:13.6px;vertical-align:top}
.bank tr:last-child td{border-bottom:0}
.bank td:first-child{width:40%;font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);padding-top:12px}
.bank td:last-child{font-weight:600;font-variant-numeric:tabular-nums}
.qr-box{border:1px solid var(--rule);background:#fff;padding:16px;text-align:center}
.qr-box img{width:100%;max-width:250px;height:auto;display:block;margin:0 auto}
.qr-cap{font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin:10px 0 0}
.pay-link{display:block;margin-top:14px;padding:12px 14px;border:1.5px solid var(--brand);
  border-radius:6px;color:var(--brand);text-decoration:none;font-size:11px;font-weight:700;
  letter-spacing:.11em;text-transform:uppercase;text-align:center}
.sub-h{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--brand);
  font-weight:700;margin:0 0 10px}

/* ---------- text size scale ---------- */
.sz-s .p{font-size:12.6px}.sz-s .lead{font-size:14px}.sz-s .ul li{font-size:12.4px}
.sz-s .ul.tight li{font-size:11.8px}.sz-s .tbl td{font-size:12.2px}.sz-s .fact dd{font-size:12.6px}
.sz-s .idx-t{font-size:12.6px}.sz-s .day-t{font-size:30px}.sz-s .h2{font-size:32px}
.sz-l .p{font-size:15.2px}.sz-l .lead{font-size:16.6px}.sz-l .ul li{font-size:14.8px}
.sz-l .ul.tight li{font-size:13.8px}.sz-l .tbl td{font-size:14.4px}.sz-l .fact dd{font-size:14.8px}
.sz-l .idx-t{font-size:14.8px}.sz-l .day-t{font-size:36px}.sz-l .h2{font-size:38px}
.sz-l .acts span{font-size:11.5px}.sz-l .callout p{font-size:13.6px}
.sz-l .strip p:last-child{font-size:14.4px}

.seg{display:flex;gap:6px;margin-top:6px}
.seg button{flex:1;padding:7px;border-radius:7px;border:1px solid var(--chrome-line);
  background:#fff;font:inherit;font-size:12px;font-weight:600;color:var(--muted);cursor:pointer}
.seg button.on{border-color:var(--brand);background:#F3F7FE;color:var(--ink)}

.measure{position:absolute;left:-10000px;top:0;visibility:hidden;pointer-events:none;z-index:-1}
.measure>*{display:flow-root}
.pg.over::after{content:"This page is too long — content below is cut off in the PDF";
  position:absolute;left:0;right:0;bottom:0;padding:7px 62px;background:#B4232A;color:#fff;
  font-family:var(--sans);font-size:11px;font-weight:700;letter-spacing:.04em;z-index:5}

/* ---------- print ---------- */
@media print{
  .tp-root{position:static;display:block}
  .tp-bar,.tp-left,.tp-grip,.tp-export-bar{display:none !important}
  .pg.over::after,.measure{display:none !important}
  .tp-export-bar + .pg-wrap{padding-top:0}
  .tp-split{display:block}
  .tp-right{overflow:visible;background:#fff;padding:0;min-width:0}
  .pg-wrap{gap:0;display:block}
  .pg{box-shadow:none;width:210mm;min-height:297mm;height:297mm;break-after:page;page-break-after:always}
  .pg:last-child{break-after:auto;page-break-after:auto}
  .cv{height:297mm}
}
@page{size:A4;margin:0}

/* ---------------------------------------------------- nights by city
   Sits on the "At a glance" page, read from the accommodation table so the
   two can never contradict each other. Guests look for this before anything
   else in a multi-city trip. */
.stays{margin-top:26px}
.stays-row{display:flex;flex-wrap:wrap;gap:0;border:1px solid var(--rule);border-radius:3px;
  overflow:hidden}
.stay{flex:1 1 0;min-width:96px;display:flex;align-items:baseline;gap:8px;
  padding:11px 13px;border-right:1px solid var(--rule)}
.stay:last-child{border-right:0}
.stay.total{background:#F7F4EE}
.stay-n{font-family:var(--display);font-size:26px;line-height:1;color:var(--ink)}
.stay-c{font-family:var(--sans);font-size:11.5px;font-weight:600;letter-spacing:.02em;
  color:var(--ink);line-height:1.3}
.stay-c em{display:block;font-style:normal;font-weight:400;font-size:9.5px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:2px}
.stay.total .stay-n{color:var(--brand)}

/* ============================================================ travelPaa palette
   Drawn from the wordmark: the blue of "travel" and the red of "Paa".

   The temptation with a two-colour logo is to use both everywhere, which on a
   28-page document reads as loud rather than branded. So: the blue does all
   the structural work it already did, and the red appears in exactly three
   places — the day numbers, the total-nights figure, and the price. Those are
   the three things a guest's eye goes to first, and they're the three moments
   where the document should feel unmistakably yours.

   Everything else stays quiet. One accent, used with discipline, reads as a
   house style; the same accent everywhere reads as a template.
   ========================================================================== */
.pg-wrap.pal-brand{
  --ink:#0E2E6B;          /* the wordmark blue, darkened for body text */
  --brand:#1B4FA0;        /* the wordmark blue */
  --deep:#0A2350;
  --accent:#E11B22;       /* the wordmark red */
  --rule:#D3D9E6;
  --muted:#5C6B85;
  --paper:#FBFCFE;
  --chrome:#EEF2F8;
}
.pal-brand .cv{background:#0E2E6B}
.pal-brand .cv-rule{background:var(--accent)}
.pal-brand .rh{border-bottom-color:var(--rule)}
.pal-brand .eyebrow{color:var(--brand)}
.pal-brand .hr{background:linear-gradient(90deg,var(--accent) 0 46px,var(--rule) 46px)}

/* the three moments of red */
.pal-brand .rail-n{color:var(--accent)}
.pal-brand .idx-n{color:var(--accent)}
.pal-brand .stay.total .stay-n{color:var(--accent)}
.pal-brand .price .amt,
.pal-brand .price-tot .v{color:var(--accent)}

.pal-brand .acts span{border-color:var(--rule);color:var(--brand)}
.pal-brand .callout{border-left-color:var(--accent);background:#F4F7FC}
.pal-brand .strip{background:#F4F7FC;border-color:var(--rule)}
.pal-brand .tbl thead th{color:var(--brand);border-bottom-color:var(--rule)}
.pal-brand .price{background:#F4F7FC;border-color:var(--rule)}
.pal-brand .pay-link{background:var(--accent);color:#fff}
.pal-brand .qr-box{border-color:var(--rule)}
.pal-brand .ul li::before{color:var(--accent)}
