/* Shared Button Styles & Overrides */
.bc-brochure-btn,
.bc-brochure-btn:focus,
.bc-brochure-btn:active,
.bc-brochure-btn:visited {
    background: #c3a6a4 !important; /* Matched to screenshot */
    color: #1a1a1a !important;
    border: none;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.bc-brochure-btn:hover {
    background: #b39694 !important;
    color: #1a1a1a !important;
    transform: translateY(-2px);
}

.bc-brochure-btn.bc-loading {
    opacity: 0.8 !important;
    pointer-events: none !important;
    cursor: wait !important;
}

/* Specific styles for the Floating Button */
#bc-floating-brochure-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    font-size: 16px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    #bc-floating-brochure-btn {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: calc(100% - 40px);
        padding: 15px 0;
        font-size: 15px;
    }
}


/* PDF Template Styles */
/* These styles will only apply inside the wrapper, which html2pdf will process */
#bc-brochure-wrapper {
    /* Hidden on normal screen, managed by JS during generation */
    display: none;
    width: 210mm; /* A4 portrait width */
    background: #EAE8E3; /* Beige background from reference */
    color: #2b2b2b;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.bc-pdf-page {
    width: 210mm;
    height: 297mm; /* Default A4 for PC */
    box-sizing: border-box;
    overflow: hidden;
    page-break-after: always;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Mobile Print Override */
.is-mobile-print .bc-pdf-page {
    height: 275mm !important; /* Shorter to fit inside iOS forced margins */
}

/* Removed @media print overrides to keep exact proportions */

.bc-pdf-page:last-of-type {
    page-break-after: auto;
}

/* Page Backgrounds */
.bc-page-cover {
    background-size: cover;
    background-position: center;
    background-color: #1c1c21;
}
.bc-page-dark { background-color: #1c1c21; color: #fff; }
.bc-page-light { background-color: #EAE8E3; color: #1c1c21; }
.bc-page-intro {
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #1c1c21;
    height: 100%; /* Force cover to fill the 297mm A4 page */
}
.bc-page-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(28, 28, 33, 0.85); /* Dark overlay */
    z-index: 1;
}
.bc-page-intro > * { position: relative; z-index: 2; }

/* Headers (Top Bar) */
.bc-hb-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 40px 20px 40px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.bc-page-dark .bc-hb-top { color: #b1a7a0; }
.bc-page-light .bc-hb-top { color: #b8a79d; } /* Match dusty pinkish brown */

.bc-hb-left { display: flex; align-items: center; gap: 20px; }
.bc-hb-left::before {
    content: "";
    display: block;
    width: 35px;
    height: 1px;
    background-color: currentColor;
}

.bc-hb-right { display: flex; align-items: center; }
.bc-hb-right img { max-height: 16px; width: auto; object-fit: contain; }

/* Common Content Area */
.bc-page-content { padding: 40px; flex: 1; display: flex; flex-direction: column; }
.bc-title-serif { font-family: "Crimson Pro", serif; font-weight: normal; margin-top: 0; }

/* Page 1: Cover Split Layout */
.bc-page-cover-split { 
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    /* position: relative inherited from .bc-pdf-page */
}
.bc-cover-img { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%; 
    overflow: hidden;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    z-index: 1;
}
.bc-cover-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.bc-cover-logo { 
    position: absolute; 
    top: 50px; 
    left: 60px; 
    z-index: 1;
}
.bc-cover-logo img {
    height: 16px;
    width: auto;
    object-fit: contain;
}
.bc-cover-dark-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    box-sizing: border-box;
    background: #1b2029;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    z-index: 2;
}
.bc-cover-title { font-family: "Crimson Pro", serif; color: #f4f3f0; font-size: 52px; margin: 0 0 50px 0; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
.bc-cover-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.bc-cover-stat { display: flex; flex-direction: column; position: relative; padding-left: 20px; }
.bc-cover-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}
.bc-cover-stat .bc-lbl { font-size: 14px; color: #a19c98; font-family: 'Plus Jakarta Sans', sans-serif; margin-bottom: 10px; font-weight: 300; }
.bc-cover-stat .bc-val { font-size: 28px; color: #f4f3f0; font-family: "Crimson Pro", serif; line-height: 1; }

/* Page 2: Intro */
.bc-intro-title { color: #fff; font-size: 38px; margin-bottom: 25px; text-transform: uppercase; font-family: "Crimson Pro", serif; font-weight: normal; letter-spacing: 1px; }
.bc-intro-subtitle { color: #b1a7a0; font-size: 20px; margin-bottom: 45px; max-width: 85%; line-height: 1.5; font-family: "Crimson Pro", serif; }
.bc-intro-cols { display: flex; gap: 40px; color: #d0d0d0; font-size: 13px; line-height: 1.8; text-align: left; }
.bc-intro-col { flex: 1; }

/* Page 3+: Gallery New Layout */
.bc-page-gallery-content { padding-top: 10px; display: flex; flex-direction: column; flex: 1; }
.bc-gallery-title { font-size: 42px; color: #f4f3f0; margin-bottom: 35px; margin-top: 0; }
.bc-gallery-new-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: 1fr 1fr 1fr;
    gap: 20px; 
    flex: 1; /* Stretch to fill remaining space */
}
.bc-gallery-new-grid img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* Page 5: Essentials */
.bc-page-content-ess {
    padding: 0 40px 40px 40px;
}
.bc-ess-title {
    font-size: 50px;
    font-family: "Crimson Pro", serif;
    font-weight: 400;
    color: #1b2029; /* Darker charcoal */
    margin-bottom: 40px;
    margin-top: 10px;
    letter-spacing: 0.5px;
}
.bc-ess-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.bc-ess-group h3 {
    font-size: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    margin: 0;
    padding-bottom: 12px;
    color: #3f454f;
    border-bottom: 1px solid #d1cfc8;
    margin-bottom: 18px;
}
.bc-ess-line {
    display: none;
}
.bc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.bc-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c2beb3;
    padding: 8px 15px;
    font-size: 13.5px;
    color: #3f454f;
    background: transparent;
    font-weight: 400;
}
.bc-tag svg {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    fill: currentColor;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Page 6: Floor Plans */
.bc-page-content-fp { padding: 0 40px 40px 40px; }
.bc-hb-top-fp { padding-bottom: 30px; }
.bc-hb-top-fp .bc-hb-left { display: block; }
.bc-hb-top-fp .bc-hb-left::before { display: none; }
.bc-fp-title {
    font-size: 38px;
    font-family: "Crimson Pro", serif;
    font-weight: 400;
    color: #1b2029;
    margin: 0 0 25px 0; /* Added space between title and image */
    letter-spacing: 0.5px;
    white-space: nowrap; /* Force one line */
}
.bc-hb-top-fp .bc-hb-right { display: flex; align-items: center; gap: 15px; }
.bc-hb-right-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b8a79d;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 3px;
    white-space: nowrap; /* Force one line */
}
.bc-hb-right-text .bc-line-accent {
    display: inline-block;
    width: 25px;
    height: 1px;
    background-color: currentColor;
}

.bc-fp-single {
    display: flex;
    flex-direction: column;
}
.bc-fp-img-box {
    background: #1c1c21;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    width: 100%;
    height: 450px; /* Fixed height so images are consistent */
    padding: 0; 
}
.bc-fp-img-box img { 
    max-width: 100%; 
    max-height: 100%; 
    width: auto;
    height: auto;
    object-fit: contain; 
}
.bc-fp-desc-wrap h3 {
    font-family: "Crimson Pro", serif;
    font-size: 16px; /* Smaller */
    margin: 0 0 15px 0;
    font-weight: bold;
    color: #1b2029; /* Standard dark color */
    text-transform: uppercase;
    letter-spacing: 1px;
}
.bc-fp-desc-text {
    font-size: 13.5px; 
    color: #3f454f; 
    line-height: 1.6; 
    margin: 0 0 25px 0;
}
.bc-fp-desc-text p {
    margin-top: 0;
}
.bc-fp-desc ul { 
    list-style: none; 
    padding: 0; 
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
}
.bc-fp-desc li {
    padding: 12px 0;
    border-bottom: 1px solid #d1cfc8;
}
/* If they want line on top too like screenshot, add border-top to first row items */
.bc-fp-desc li:nth-child(1), .bc-fp-desc li:nth-child(2) {
    border-top: 1px solid #d1cfc8;
}
.bc-fp-text { 
    font-size: 13.5px; 
    color: #3f454f; 
    line-height: 1.5; 
}

/* Page 7: Service Level */
.bc-page-content-sl { padding: 0 40px 40px 40px; }
.bc-sl-title {
    font-size: 38px;
    font-family: "Crimson Pro", serif;
    font-weight: 400;
    color: #1b2029;
    margin: 0 0 35px 0;
    letter-spacing: 0.5px;
}
.bc-sl-table { width: 100%; border-collapse: collapse; }
.bc-sl-table th {
    text-align: center;
    padding: 0 10px 18px 10px;
    color: #3f454f;
    font-family: "Crimson Pro", serif;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #d1cfc8;
    vertical-align: bottom;
    line-height: 1.3;
}
.bc-sl-table th:first-child { text-align: left; }
.bc-sl-table td {
    padding: 14px 10px; /* Tighter padding to match screenshot */
    border-bottom: 1px solid #d1cfc8;
    color: #3f454f;
    font-size: 13.5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-align: center;
    vertical-align: middle;
}
.bc-sl-table td:first-child { text-align: left; width: 45%; }
.bc-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e9e2de; 
    border-radius: 50%;
    color: #1b2029;
    font-size: 12px;
    font-weight: bold;
}
.bc-dash {
    color: #a19c98;
    font-size: 14px;
}
.bc-page-content-pa { padding: 0 40px 10px 40px; }
.bc-price-title {
    font-size: 34px; 
    font-family: "Crimson Pro", serif;
    font-weight: 400;
    color: #1b2029;
    margin: 0 0 20px 0; /* Medium */
    letter-spacing: 0.5px;
}
/* Use block instead of flex-direction: column for safety */
.bc-price-boxes { display: block; margin-bottom: 15px; } /* Medium */
.bc-price-box { background: #ffffff; padding: 20px 30px; margin-bottom: 18px; } /* Medium */
.bc-price-box h3 {
    font-family: "Crimson Pro", serif;
    font-size: 16px; 
    font-weight: bold;
    color: #3f454f;
    margin-top: 0;
    margin-bottom: 15px; /* Medium */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bulletproof grid using inline-block */
.bc-price-grid { display: block; width: 100%; font-size: 0; /* remove inline whitespace */ }
.bc-price-box:first-child .bc-price-grid .bc-price-item:first-child { 
    display: block; 
    width: 100%; 
    margin-bottom: 15px; /* Medium */
}
.bc-price-box:first-child .bc-price-grid .bc-price-item:not(:first-child) { 
    display: inline-block; 
    width: 48%; 
    vertical-align: top;
    margin-bottom: 8px; /* Medium */
}
.bc-price-box:last-child .bc-price-grid .bc-price-item { 
    display: inline-block; 
    width: 48%; 
    vertical-align: top;
}
.bc-price-item { font-size: 14px; /* reset font-size from parent 0 */ }
.bc-price-lbl { font-size: 13.5px; color: #3f454f; font-family: 'Plus Jakarta Sans', sans-serif; margin-bottom: 8px; }
.bc-price-val { font-size: 18px; color: #1b2029; font-family: "Crimson Pro", serif; line-height: 1.3; } 
.bc-price-note { font-size: 11px; color: #8c9096; margin-bottom: 15px; font-family: 'Plus Jakarta Sans', sans-serif; } /* Medium */

.bc-add-services { padding-top: 0; }
.bc-add-services h3 { font-family: "Crimson Pro", serif; font-size: 16px; font-weight: bold; color: #1b2029; margin-bottom: 12px; text-transform: uppercase; } /* Medium */
.bc-add-tags { display: block; margin-bottom: 12px; font-size: 0; } /* Medium */
.bc-add-tags .bc-tag { 
    display: inline-block;
    border-radius: 20px; 
    border: 1px solid #d1cfc8; 
    background: transparent;
    padding: 7px 15px; /* Medium */
    font-size: 11px;
    color: #3f454f;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0 8px 8px 0; /* Medium */
}

.bc-loc-info { margin-top: 20px; padding-top: 20px; border-top: 1px solid #d1cfc8; clear: both; } /* Medium */
.bc-loc-header { margin-bottom: 15px; display: block; } /* Medium */
.bc-loc-header h3 { display: inline-block; font-family: "Crimson Pro", serif; font-size: 18px; font-weight: bold; color: #1b2029; margin: 0 20px 0 0; text-transform: uppercase; vertical-align: baseline; } 
.bc-loc-subtitle { display: inline-block; font-size: 14px; color: #3f454f; font-family: 'Plus Jakarta Sans', sans-serif; vertical-align: baseline; }
.bc-loc-grid { display: block; width: 100%; font-size: 0; } 
.bc-loc-item { 
    display: inline-block; 
    width: 48%; 
    vertical-align: middle;
    margin-bottom: 18px; /* Medium */
    font-size: 14px; /* reset from 0 */
}
.bc-loc-icon { 
    width: 34px; 
    height: 34px; 
    background: #1b2029; 
    color: #fff; 
    border-radius: 50%; 
    display: inline-block; 
    vertical-align: middle;
    text-align: center;
    line-height: 42px; /* Vertically align SVG if flex is ignored */
}
.bc-loc-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: transparent; stroke-width: 1.5; }
.bc-loc-text { 
    display: inline-block;
    vertical-align: middle;
    margin-left: 15px;
    width: calc(100% - 55px);
    font-family: 'Plus Jakarta Sans', sans-serif; 
}
.bc-loc-text strong { display: block; font-weight: 400; font-size: 13px; color: #3f454f; margin-bottom: 4px; }
.bc-loc-text span { display: block; font-size: 12px; color: #8c9096; line-height: 1.3; }

.bc-footer-bar { 
    background: #1b2029; 
    color: #d1cfc8; 
    display: block; 
    padding: 20px 40px; 
    margin-top: auto;
    overflow: hidden; /* Clear floats */
}
.bc-footer-left {
    float: left;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 14px;
}
.bc-footer-left .bc-line-accent {
    display: inline-block;
    width: 25px;
    height: 1px;
    background-color: currentColor;
    vertical-align: middle;
    margin-right: 15px;
}
.bc-footer-right {
    float: right;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
}
.bc-foot-item {
    display: inline-block;
    margin-left: 30px;
    vertical-align: middle;
}
.bc-foot-item svg {
    vertical-align: middle;
    margin-right: 8px;
}
