/* ============================================================
   BURLEIGH TRAVEL — TOUR PROPOSAL STYLESHEET
   Reference Match: https://www.burleightravel.co.uk/tour-proposal/
   ============================================================ */

:root {
    --tp-navy: #1b325c;
    --tp-orange: #f26822;
    /* Matches the button / title */
    --tp-lightblue: #5a99d3;
    /* Original info box color */
    --tp-light: #f3f6f9;
    --tp-white: #ffffff;
    --tp-max-w: 1400px;
    /* Increased from 1170px */
    --tp-radius: 12px;
    --tp-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ─── Global Resets & Width Management ───────────────────── */
body {
    background: var(--tp-light);
}

#primary,
#main,
.content-area {
    /* ensure the main container takes full width if restricted */
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ─── PDF Sections ───────────────────────────────────────── */
.pdf-section {
    width: 100%;
    max-width: 100% !important;
    /* Allow background to span full browser width */
    margin: 0;
    padding: 60px 0 !important;
    background: var(--tp-white);
}

.pdf-section:nth-child(even) {
    background-color: var(--tp-light) !important;
}

.pdf-section.section-tour-proposal {
    padding-top: 0 !important;
    margin-bottom: 30px;
}

/* Centered content wrappers */
.section-content,
.hero-section-content {
    max-width: var(--tp-max-w);
    margin: 0 auto;
    padding: 0 15px;
}

/* Row resets */
.pdf-section .row {
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 0;
}

/* ─── BOOTSTRAP SPECIFICITY NEUTRALIZER ──────────────────
   Production Bootstrap CSS incorrectly overrides our columns.
   We counter this by re-asserting the correct grid widths at
   the correct breakpoints with !important to beat col-sm-12.
   ─────────────────────────────────────────────────────── */

/* Container resets – keep full width, restore padding */
.pdf-section .container,
.pdf-section .container-fluid,
.pdf-section .container-lg,
.pdf-section .container-md,
.pdf-section .container-sm {
    width: 100% !important;
    max-width: var(--tp-max-w) !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Restore Bootstrap row gutter */
.pdf-section .row {
    --bs-gutter-x: 1.5rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5) !important;
    margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5) !important;
    margin-bottom: 0;
}

/* Restore all col-* widths on desktop (≥768px) so images sit side-by-side */
@media (min-width: 768px) {
    .pdf-section .col-1 {
        flex: 0 0 auto !important;
        width: 8.3333% !important;
    }

    .pdf-section .col-2 {
        flex: 0 0 auto !important;
        width: 16.6667% !important;
    }

    .pdf-section .col-3 {
        flex: 0 0 auto !important;
        width: 25% !important;
    }

    .pdf-section .col-4 {
        flex: 0 0 auto !important;
        width: 33.3333% !important;
    }

    .pdf-section .col-5 {
        flex: 0 0 auto !important;
        width: 41.6667% !important;
    }

    .pdf-section .col-6 {
        flex: 0 0 auto !important;
        width: 50% !important;
    }

    .pdf-section .col-7 {
        flex: 0 0 auto !important;
        width: 58.3333% !important;
    }

    .pdf-section .col-8 {
        flex: 0 0 auto !important;
        width: 66.6667% !important;
    }

    .pdf-section .col-9 {
        flex: 0 0 auto !important;
        width: 75% !important;
    }

    .pdf-section .col-10 {
        flex: 0 0 auto !important;
        width: 83.3333% !important;
    }

    .pdf-section .col-11 {
        flex: 0 0 auto !important;
        width: 91.6667% !important;
    }

    .pdf-section .col-12 {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    /* md-prefixed cols */
    .pdf-section .col-md-1 {
        flex: 0 0 auto !important;
        width: 8.3333% !important;
    }

    .pdf-section .col-md-2 {
        flex: 0 0 auto !important;
        width: 16.6667% !important;
    }

    .pdf-section .col-md-3 {
        flex: 0 0 auto !important;
        width: 25% !important;
    }

    .pdf-section .col-md-4 {
        flex: 0 0 auto !important;
        width: 33.3333% !important;
    }

    .pdf-section .col-md-5 {
        flex: 0 0 auto !important;
        width: 41.6667% !important;
    }

    .pdf-section .col-md-6 {
        flex: 0 0 auto !important;
        width: 50% !important;
    }

    .pdf-section .col-md-7 {
        flex: 0 0 auto !important;
        width: 58.3333% !important;
    }

    .pdf-section .col-md-8 {
        flex: 0 0 auto !important;
        width: 66.6667% !important;
    }

    .pdf-section .col-md-9 {
        flex: 0 0 auto !important;
        width: 75% !important;
    }

    .pdf-section .col-md-10 {
        flex: 0 0 auto !important;
        width: 83.3333% !important;
    }

    .pdf-section .col-md-11 {
        flex: 0 0 auto !important;
        width: 91.6667% !important;
    }

    .pdf-section .col-md-12 {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    /* Ensure sm-prefixed "col-sm-12" does NOT override col-6 on desktop */
    .pdf-section .col-sm-12 {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    /* But when paired with a parent that has col-6, col-md-6 wins */
    .pdf-section .col-6.col-sm-12,
    .pdf-section .col-md-6.col-sm-12 {
        flex: 0 0 auto !important;
        width: 50% !important;
    }

    /* Wide cols */
    .pdf-section .col-9 {
        width: 75% !important;
    }

    .pdf-section .col-3 {
        width: 25% !important;
    }

    .pdf-section .col-8 {
        width: 66.6667% !important;
    }

    .pdf-section .col-4 {
        width: 33.3333% !important;
    }

    .pdf-section .col-7 {
        width: 58.3333% !important;
    }

    .pdf-section .col-5 {
        width: 41.6667% !important;
    }
}

/* ─── Section Head with Logo (Flex Layout) ────────────────── */
.section-head.d-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 30px 40px !important;
    gap: 20px;
}

.section-head.d-flex .section-title,
.section-head.d-flex [class*="ext-style-839"] {
    flex: 1 !important;
    text-align: center !important;
    margin: 0 !important;
    color: var(--tp-white) !important;
    font-family: "Permanent Marker", cursive;
    font-size: 1.8rem !important;
    line-height: 1.2;
}

.section-head.d-flex .host-logo,
.section-head.d-flex [class*="ext-style-fcb"] {
    flex: 0 0 auto;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-head.d-flex .host-logo img,
.section-head.d-flex [class*="ext-style-fcb"] img,
.section-head.d-flex [class*="ext-style-26c"] {
    max-height: 70px !important;
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ─── PDF Section Container-fluid padding fix ─────────────── */
.pdf-section .container-fluid {
    padding-left: 0;
    padding-right: 0;
}


/* ─── Navy Header Bars (The Signature Look) ──────────────── */
.section-head {
    width: 100%;
    max-width: var(--tp-max-w);
    margin: 40px auto 50px auto;
    background: var(--tp-navy) !important;
    text-align: center;
    padding: 40px 30px;
    /* Slightly more padding */
    border-radius: var(--tp-radius);
}

.section-head .section-title {
    color: var(--tp-white) !important;
    font-family: "Permanent Marker", cursive;
    font-size: 2.2rem !important;
    /* Slightly smaller as requested */
    text-transform: none;
    margin: 0 !important;
    padding: 0;
    display: inline-block;
    position: relative;
    line-height: 1.2;
}

.section-head .section-title::after {
    content: '';
    display: block;
    width: 100px;
    /* Wider line */
    height: 4px;
    background: var(--tp-orange);
    margin: 15px auto 0;
    border-radius: 4px;
}

/* ─── Hero Image & Content ─────────────────────────── */
.hero-section-content {
    width: 100%;
    margin-bottom: 30px;
}

.hero-section-content .full-width-img {
    width: 100%;
    height: auto !important;
    /* Remove fixed height/crop */
    max-height: none !important;
    object-fit: contain;
    /* Changed from fill to prevent cropping */
    display: block;
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow);
}

/* ─── Tour Highlights (Navy Box Style) ───────────────────── */
.section-tour-highlights .section-content,
.section-holiday-pack-tour .section-content,
.section-two-image-head-logo .section-content {
    background-color: #08377d !important;
    /* Deep navy from reference */
    padding: 60px 40px !important;
    border-radius: var(--tp-radius);
    max-width: 1000px;
    margin: 0 auto;
    text-align: center !important;
}

.tour-highlights,
.section-holiday-pack-tour .section-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    /* center horizontal */
}

.tour-highlights li,
.section-holiday-pack-tour .section-content ul li {
    display: flex !important;
    align-items: center !important;
    /* vertical center text and tick */
    justify-content: center !important;
    /* horizontal center text and tick */
    background: transparent !important;
    padding: 10px 0;
    margin-bottom: 5px;
    border-radius: 0;
    box-shadow: none !important;
}

.tour-highlights li .list-icon,
.section-holiday-pack-tour .section-content ul li .list-icon,
.section-holiday-pack-tour .section-content ul li span {
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.tour-highlights li .list-icon img,
.section-holiday-pack-tour .section-content ul li img,
.section-two-image-head-logo .section-content ul li img {
    width: 22px !important;
    height: 22px !important;
    filter: brightness(0) invert(1) !important;
    /* Force tick to be white */
    box-shadow: none !important;
    max-height: none !important;
}

.tour-highlights li p,
.section-holiday-pack-tour .section-content ul li p,
.section-holiday-pack-tour .section-content ul li,
.section-two-image-head-logo .section-content ul li p,
.section-two-image-head-logo .section-content ul li {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 500;
    color: var(--tp-white) !important;
    line-height: 1.4;
    text-align: center !important;
}

/* ─── Light Blue Info Boxes (Location, Dates, Venues) ────── */
.shadow-info-box {
    background-color: var(--tp-lightblue) !important;
    border-radius: var(--tp-radius) !important;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px -5px, rgba(0, 0, 0, 0.1) 0px -10px 20px -5px inset !important;
    padding: 25px 30px !important;
    margin-bottom: 25px !important;
    border: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shadow-info-box:hover {
    transform: translateY(-3px);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 15px 25px -5px !important;
}

.shadow-info-box h2,
.shadow-info-box h3 {
    color: var(--tp-white) !important;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.1rem !important;
    /* Smaller labels */
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin: 0 0 8px 0 !important;
    opacity: 0.85;
}

.shadow-info-box h2 {
    font-size: 1.5rem !important;
    /* Title slightly larger */
}

.shadow-info-box p,
.shadow-info-box span,
.shadow-info-box li,
.shadow-info-box div {
    color: var(--tp-white) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.shadow-info-box ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px auto !important;
}

.shadow-info-box li {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

.shadow-info-box li img {
    width: 22px !important;
    height: 22px !important;
    margin-right: 15px !important;
    filter: brightness(0) invert(1) !important;
    box-shadow: none !important;
    max-height: none !important;
}

.logo-info-box {
    text-align: center;
    padding: 20px;
}

.logo-info-box img {
    max-width: 130px;
    height: auto;
}

/* ─── Descriptions & Body Text ───────────────────────────── */
.getting-there-description,
.accomodation_details,
.accomodation_details_two,
.accomodation_details_three,
.nearby-attractions-description,
.nearby-attractions-two-description,
.nearby-attractions-three-description,
.nearby-attractions-four-description,
.tour-summary-details {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--tp-text);
    padding: 0 15px;
}

/* ─── General Images ─────────────────────────────────────── */
.image-wrapper img,
.ext-style-28b7b97e,
.ext-style-ffa4288b,
.ext-style-2ddb4d5d,
.ext-style-1645b2b3,
.ext-style-1af515e6,
.ext-style-9acdecef,
.ext-style-e7009522 {
    width: 100% !important;
    border-radius: var(--tp-radius) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    height: auto !important;
    /* Removed max-height constraints to fix cropping */
    max-height: none !important;
    object-fit: contain !important;
    /* Changed from cover */
    display: block;
}

/* ─── Review Boxes ("Don't just take our word for it...") ── */
.review_box {
    background-color: var(--tp-lightblue) !important;
    border-radius: var(--tp-radius) !important;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px -5px, rgba(0, 0, 0, 0.1) 0px -10px 20px -5px inset !important;
    padding: 30px !important;
    margin-bottom: 25px !important;
    text-align: center;
    color: var(--tp-white) !important;
    height: 100%;
}

.review_box .reviewerimage {
    max-width: 130px !important;
    /* Limits the logo size */
    height: auto !important;
    margin: 0 auto 20px auto !important;
    display: block !important;
    box-shadow: none !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

.review_box_content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--tp-white) !important;
    font-style: italic;
}

/* ─── CTA Buttons ────────────────────────────────────────── */
.cta-image-box {
    position: relative;
    border-radius: var(--tp-radius);
    overflow: hidden;
    margin-bottom: 25px;
}

.cta-image-box a,
.pdf-section .btn,
a.btn-orange {
    display: inline-block;
    background: var(--tp-orange) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 5px !important;
    /* more square like original */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: background 0.3s ease;
}

.cta-image-box a:hover,
.pdf-section .btn:hover {
    background: var(--tp-navy) !important;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

/* ── Tablet (992px and below) ─────────────────────────── */
@media (max-width: 991px) {
    .section-head .section-title {
        font-size: 2rem !important;
    }

    /* All images are uncropped on tablet */
    .pdf-section img,
    .hero-section-content .full-width-img {
        max-height: none !important;
        height: auto !important;
        object-fit: contain !important;
        width: 100% !important;
    }

    /* Ext-style gallery images should never be taller than the viewport */
    [class*="ext-style-"] {
        max-height: none !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* ── Mobile (767px and below) ──────────────────────────── */
@media (max-width: 767px) {
    .section-head {
        padding: 20px 15px;
        margin: 20px auto;
    }

    .section-head .section-title {
        font-size: 1.4rem !important;
    }

    /* Fix padding on tour highlight boxes for mobile */
    .section-tour-highlights .section-content,
    .section-holiday-pack-tour .section-content,
    .section-two-image-head-logo .section-content {
        padding: 30px 20px !important;
    }

    /* Make ALL grid columns stack to 100% width on mobile, beating Bootstrap sm/md specificity */
    .pdf-section .row {
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .pdf-section .row>*,
    .pdf-section .row>[class*="col-"],
    .pdf-section .section-content .row>[class*="col-"],
    .pdf-section .section-content .row>.col-1,
    .pdf-section .section-content .row>.col-2,
    .pdf-section .section-content .row>.col-3,
    .pdf-section .section-content .row>.col-4,
    .pdf-section .section-content .row>.col-5,
    .pdf-section .section-content .row>.col-6,
    .pdf-section .section-content .row>.col-7,
    .pdf-section .section-content .row>.col-8,
    .pdf-section .section-content .row>.col-9,
    .pdf-section .section-content .row>.col-10,
    .pdf-section .section-content .row>.col-11,
    .pdf-section .section-content .row>.col-12,
    .pdf-section .section-content .row>.col-sm-1,
    .pdf-section .section-content .row>.col-sm-2,
    .pdf-section .section-content .row>.col-sm-3,
    .pdf-section .section-content .row>.col-sm-4,
    .pdf-section .section-content .row>.col-sm-5,
    .pdf-section .section-content .row>.col-sm-6,
    .pdf-section .section-content .row>.col-sm-7,
    .pdf-section .section-content .row>.col-sm-8,
    .pdf-section .section-content .row>.col-sm-9,
    .pdf-section .section-content .row>.col-sm-10,
    .pdf-section .section-content .row>.col-sm-11,
    .pdf-section .section-content .row>.col-sm-12,
    .pdf-section .section-content .row>.col-md-1,
    .pdf-section .section-content .row>.col-md-2,
    .pdf-section .section-content .row>.col-md-3,
    .pdf-section .section-content .row>.col-md-4,
    .pdf-section .section-content .row>.col-md-5,
    .pdf-section .section-content .row>.col-md-6,
    .pdf-section .section-content .row>.col-md-7,
    .pdf-section .section-content .row>.col-md-8,
    .pdf-section .section-content .row>.col-md-9,
    .pdf-section .section-content .row>.col-md-10,
    .pdf-section .section-content .row>.col-md-11,
    .pdf-section .section-content .row>.col-md-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        display: block !important;
        float: none !important;
    }

    /* All images are uncropped and full-width on mobile */
    .pdf-section img,
    .pdf-section [class*="ext-style-"],
    .hero-section-content .full-width-img,
    .image-wrapper img,
    .ext-style-28b7b97e,
    .ext-style-ffa4288b,
    .ext-style-2ddb4d5d,
    .ext-style-1645b2b3,
    .ext-style-1af515e6,
    .ext-style-9acdecef,
    .ext-style-e7009522,
    .ext-style-74c88363 {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* Review boxes should stack cleanly */
    .section-creating-memories .row {
        flex-direction: column !important;
    }

    .review_box {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* Shadow info boxes improve on mobile */
    .shadow-info-box {
        padding: 15px 20px !important;
        margin-bottom: 15px !important;
    }

    /* Logo info box limits on mobile */
    .logo-info-box img {
        max-width: 100px !important;
    }

    /* Review image logos shouldn't be too large */
    .review_box .reviewerimage {
        max-width: 90px !important;
    }

    /* Section content text */
    .pdf-section p,
    .pdf-section li,
    .getting-there-description,
    .accomodation_details,
    .accomodation_details_two,
    .accomodation_details_three {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        padding: 0 5px !important;
    }

    /* Tour highlights list font size */
    .tour-highlights li p,
    .section-holiday-pack-tour .section-content ul li p {
        font-size: 1rem !important;
    }
}

/* ── Very Small Screens (480px and below) ──────────────── */
@media (max-width: 480px) {
    .section-head .section-title {
        font-size: 1.2rem !important;
    }

    .pdf-section {
        padding: 30px 0 !important;
    }
}

/* ─── SECTION HEAD WITH LOGO (flex variant) ────────────────
   Used when the section head contains a title center + logo right.
   HTML: <div class="section-head d-flex align-items-center justify-content-between">
   ─────────────────────────────────────────────────────────── */
.section-head.d-flex.align-items-center {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 30px !important;
    text-align: center !important;
    gap: 16px;
}

/* The two balancing empty divs on left/right */
.section-head.d-flex .ext-style-fcb7d5e5 {
    flex: 0 0 auto;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The center title */
.section-head.d-flex .section-title {
    flex: 1 !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Logo container on right */
.section-head.d-flex .host-logo {
    flex: 0 0 auto;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Logo image sizing — never bigger than 100px tall */
.section-head.d-flex .host-logo img,
.section-head.d-flex [class*="ext-style-"] img {
    max-height: 70px !important;
    max-width: 110px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ── Mobile collapse for section-head with logo ──────────── */
@media (max-width: 767px) {
    .section-head.d-flex.align-items-center {
        flex-direction: column !important;
        padding: 16px 15px !important;
        gap: 12px;
        text-align: center !important;
    }

    .section-head.d-flex .ext-style-fcb7d5e5 {
        display: none !important;
        /* hide empty spacer divs */
    }

    .section-head.d-flex .host-logo {
        justify-content: center !important;
        min-width: unset;
        width: 100% !important;
    }

    .section-head.d-flex .host-logo img,
    .section-head.d-flex [class*="ext-style-"] img {
        max-height: 55px !important;
        max-width: 90px !important;
        margin: 0 auto;
    }

    .section-head.d-flex .section-title {
        font-size: 1.3rem !important;
        width: 100% !important;
    }

    /* On mobile, restore row flex for non-tour-highlight sections */
    .pdf-section .row:not(.tour-highlights) {
        display: flex !important;
        flex-wrap: wrap !important;
    }
}