/* Keep the brochure card inside the existing Peru Agency Tour Resources grid. */
.pa-brochure-generator{display:contents}
.pa-brochure-generate-button{display:inline;color:inherit;background:none;border:0;padding:0;margin:0;font:inherit;letter-spacing:inherit;text-transform:inherit;text-decoration:none;cursor:pointer}
.pa-brochure-generate-button:hover{color:inherit;text-decoration:underline}
.pa-brochure-generate-button:disabled{opacity:.6;cursor:wait}
.pa-brochure-status{display:block;grid-column:1/-1;margin:6px 0 0;font-size:12px;color:#52606a}
.pa-brochure-status:empty{display:none}
.pa-brochure-document{position:absolute;left:-100000px;top:0;width:210mm;background:#fff;pointer-events:none}
.pa-brochure-page{position:relative;display:block;box-sizing:border-box;width:210mm;height:297mm;min-height:297mm;max-height:297mm;overflow:hidden;background:#fff;color:#263746;page-break-after:always;break-after:page;font-family:Arial,Helvetica,sans-serif}
.pa-brochure-page:last-child{page-break-after:auto;break-after:auto}
.pa-brochure-page h1,.pa-brochure-page h2,.pa-brochure-page h3{font-family:'Arial Narrow',Arial,sans-serif;font-stretch:condensed;text-transform:uppercase;letter-spacing:1px;color:#073e5a;margin:0}
/* Cover: full-page photograph, centered composition, no empty lower half. */
.pa-brochure-cover{background:#073e5a}
.pa-brochure-cover-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;display:block}
.pa-brochure-cover-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,25,40,.18) 5%,rgba(0,25,40,.12) 38%,rgba(0,25,40,.72) 100%)}
.pa-brochure-cover-title{position:absolute;left:9%;right:9%;top:34%;transform:translateY(-50%);text-align:center;color:#fff}
.pa-brochure-cover-title h1{font-size:37pt;line-height:1.08;color:#fff;text-shadow:0 2px 7px rgba(0,0,0,.5)}
.pa-brochure-cover-subtitle{display:inline-block;margin-top:12mm;padding:3mm 7mm;background:#073e5a;color:#fff;font-size:12pt;font-weight:700;letter-spacing:1.6px;text-transform:uppercase}
.pa-brochure-duration{display:table;margin:4mm auto 0;padding:2.5mm 6mm;background:#efb82e;color:#12354a;font-size:11pt;font-weight:800;letter-spacing:.5px}
.pa-brochure-cover-logo{position:absolute;top:13mm;right:15mm;max-width:42mm;max-height:30mm;object-fit:contain}
.pa-brochure-cover-brand{position:absolute;bottom:15mm;left:10mm;right:10mm;text-align:center;color:#fff;font-size:9pt;letter-spacing:1px;text-shadow:0 1px 4px #000}
/* Editorial pages: landscape image first, copy underneath. */
.pa-brochure-split{display:flex;flex-direction:column;padding:12mm 15mm 16mm}
.pa-brochure-split-image{width:100%;height:91mm;flex:0 0 91mm;overflow:hidden;background:#eef1f2;border-radius:1.5mm}
.pa-brochure-split-image img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.pa-brochure-split-copy{position:relative;box-sizing:border-box;width:100%;height:auto;flex:1;padding:10mm 9mm 18mm;background:#fff;overflow:hidden}
.pa-brochure-page-brand{height:12mm;display:flex;justify-content:flex-end;align-items:flex-start;margin-bottom:5mm}
.pa-brochure-page-brand img{max-width:34mm;max-height:16mm;object-fit:contain}
.pa-brochure-split-copy h2,.pa-brochure-overview-right h2,.pa-brochure-list-page h2{font-size:20pt;line-height:1.12;padding-bottom:3mm;border-bottom:1px solid #073e5a;margin:0 0 6mm}
.pa-brochure-rich-text{font-size:10.5pt;line-height:1.55;color:#454956}
.pa-brochure-rich-text p{margin:0 0 4mm}
.pa-brochure-watermark{position:absolute;right:12mm;bottom:12mm;color:rgba(7,62,90,.055);font-family:Georgia,serif;font-size:44pt;pointer-events:none}
.pa-brochure-footer{position:absolute;bottom:5mm;left:9mm;right:9mm;text-align:center;color:#6d7780;font-size:7pt;letter-spacing:2px}
.pa-brochure-day-number{font-size:10pt;color:#b28c22;letter-spacing:2px;margin-bottom:3mm;font-weight:700}
.pa-brochure-day .pa-brochure-split-image{height:88mm;flex-basis:88mm}
.pa-brochure-day .pa-brochure-split-copy{padding-top:8mm}
.pa-brochure-day .pa-brochure-split-copy h2{font-size:18pt;margin-bottom:5mm}
/* Route map and itinerary summary. */
.pa-brochure-itinerary-overview{display:flex;box-sizing:border-box;padding:14mm;gap:9mm}
.pa-brochure-overview-left{box-sizing:border-box;width:45%;height:100%;padding:12mm 9mm;background:#f2f5f6;position:relative}
.pa-brochure-overview-left h2{font-size:21pt;line-height:1.08;margin:5mm 0 8mm}
.pa-brochure-map-heading{font-size:9pt;letter-spacing:2px;color:#073e5a;font-weight:700}
.pa-brochure-map-image{display:block;width:100%;height:155mm;object-fit:contain;object-position:center}
.pa-brochure-overview-right{position:relative;box-sizing:border-box;width:55%;height:100%;padding:8mm 8mm 18mm}
.pa-brochure-itinerary-overview.no-map .pa-brochure-overview-right{width:100%;padding:12mm 15mm 18mm}
.pa-brochure-overview-right .pa-brochure-page-brand{height:14mm;margin-bottom:5mm}
.pa-brochure-summary-list{list-style:none;margin:0;padding:0}
.pa-brochure-summary-list li{position:relative;padding:0 0 4mm 9mm;margin:0 0 3mm;border-bottom:1px solid #e4e8ea}
.pa-brochure-summary-list li:before{content:'';position:absolute;left:0;top:1mm;width:5mm;height:5mm;border:1.5px solid #d8a72b;border-radius:50%}
.pa-brochure-summary-list strong,.pa-brochure-summary-list b,.pa-brochure-summary-list span{display:block}
.pa-brochure-summary-list strong{font-size:7.5pt;color:#073e5a;letter-spacing:1px}
.pa-brochure-summary-list b{font-size:9pt;color:#344653;margin:1mm 0}
.pa-brochure-summary-list span{font-size:7.2pt;line-height:1.3;color:#5a6268}
/* Included / not included pages: centered column and generous, even padding. */
.pa-brochure-list-page{padding:23mm 27mm 25mm;background:#fff}
.pa-brochure-list-page .pa-brochure-page-brand{height:18mm;margin-bottom:8mm}
.pa-brochure-list-page h2{margin:0 auto 10mm;max-width:145mm;text-align:center;font-size:24pt;border-bottom:2px solid #d3a92d;padding-bottom:5mm}
.pa-brochure-list-content{box-sizing:border-box;width:100%;max-width:150mm;margin:0 auto;padding:5mm 8mm 8mm;font-size:10.5pt;line-height:1.65;color:#454956}
.pa-brochure-list-content ul,.pa-brochure-list-content ol{padding-left:7mm;margin:0}
.pa-brochure-list-content li{margin-bottom:3.5mm;padding-left:1mm}
/* Contact page. */
.pa-brochure-contact-photo{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.pa-brochure-contact-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,34,53,.12),rgba(3,34,53,.94) 58%)}
.pa-brochure-contact-logo{position:absolute;top:15mm;left:18mm;max-width:42mm;max-height:32mm;object-fit:contain}
.pa-brochure-contact-details{position:absolute;left:20mm;right:20mm;bottom:48mm;color:#fff}
.pa-brochure-contact-details h2{font-size:26pt;color:#fff;margin-bottom:9mm}
.pa-brochure-contact-details p{font-size:13pt;margin:0 0 4mm;color:#fff}
.pa-brochure-contact-brand{position:absolute;bottom:17mm;left:20mm;color:#efb82e;font-size:10pt;letter-spacing:2px}
.pa-brochure-image-placeholder{width:100%;height:100%;background:#eef1f2}
@media(max-width:767px){.pa-brochure-generate-button{width:100%}}
