:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #ed8936;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8fafc;
    margin-bottom: 0;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
}

.upload-zone {
    background-color: #f8fafc;
    border-color: #cbd5e0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--primary-color) !important;
    background-color: #edf2f7;
}

.card {
    border: none;
    border-radius: 12px;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

.navbar-brand {
    font-size: 1.25rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.15);
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
}

.nav-pills .nav-link {
    color: var(--primary-color);
}

.sticky-lg-top {
    z-index: 100;
}

.template-preview-container {
    background: #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    min-height: 500px;
}

/* Visual page separation in preview */
.property-report {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.report-page {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-height: 600px;
}

.report-page.cover-page {
    min-height: 700px;
}

.report-section {
    padding: 2rem;
}

@media (max-width: 991.98px) {
    .sticky-lg-top {
        position: relative !important;
        top: 0 !important;
    }
}

/* Cover Page Styles */
.cover-page {
    min-height: 100vh;
    padding: 0 !important;
    margin: 0;
}

.cover-background {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.cover-overlay {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(44, 82, 130, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cover-overlay-blank {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.cover-overlay-minimal {
    background: transparent !important;
}

.cover-content {
    text-align: center;
    color: white;
    max-width: 800px;
}

.cover-logo {
    max-height: 100px;
    max-width: 250px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.cover-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 1rem;
}

.cover-address h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    line-height: 1.3;
}

.cover-agent-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.cover-agent-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.cover-agent-details {
    text-align: left;
}

.cover-agent-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cover-agent-company {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.cover-agent-dre, .cover-agent-contact {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    opacity: 0.85;
}

.cover-date {
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 2rem;
}

/* Cover Image Selector */
.cover-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cover-option {
    width: 60px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.cover-option:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.cover-option.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 767.98px) {
    .cover-title {
        font-size: 1.75rem;
    }
    
    .cover-address h2 {
        font-size: 1.5rem;
    }
    
    .cover-agent-info {
        flex-direction: column;
        text-align: center;
    }
    
    .cover-agent-details {
        text-align: center;
    }
    
    .property-details-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .info-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .demographics-grid {
        grid-template-columns: 1fr !important;
    }
    
    .schools-grid {
        grid-template-columns: 1fr !important;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .comp-card {
        padding: 0.75rem;
    }
}

/* Branded Footer Styles */
.branded-footer {
    background: white;
    border-top: 2px solid var(--primary-color);
    padding: 1rem;
    margin-top: 2rem;
}

.branded-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.branded-footer .footer-left {
    flex: 0 0 auto;
}

.branded-footer .footer-logo {
    height: 40px;
    width: auto;
}

.branded-footer .footer-center {
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.branded-footer .footer-company {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    color: var(--primary-color);
}

.branded-footer .footer-agent {
    font-size: 0.8rem;
    margin: 0.25rem 0 0;
    color: #4a5568;
}

.branded-footer .footer-disclaimer {
    font-size: 0.7rem;
    margin: 0.5rem 0 0;
    color: #718096;
    font-style: italic;
}

.branded-footer .footer-right {
    flex: 0 0 auto;
}

.branded-footer .page-number {
    font-size: 0.8rem;
    color: #4a5568;
}

/* Print Styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    .d-print-none,
    .col-lg-3,
    .navbar,
    .modal,
    .modal-backdrop,
    .card.shadow-sm.sticky-lg-top,
    .btn,
    button {
        display: none !important;
    }
    
    .col-lg-9 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .container-fluid {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    body {
        background: white !important;
        font-size: 11pt;
        line-height: 1.4;
    }
    
    /* Widows and orphans control */
    p, li, h1, h2, h3, h4, h5, h6 {
        orphans: 3;
        widows: 3;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    /* Ensure images don't break */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    /* Clean link styling */
    a {
        text-decoration: none !important;
        color: inherit !important;
    }
    
    .template-preview-container {
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .property-report {
        padding: 0 !important;
    }
    
    .cover-page {
        page-break-after: always;
        min-height: 100vh;
    }
    
    .cover-background {
        min-height: 100vh;
        -webkit-print-color-adjust: exact;
    }
    
    .cover-overlay {
        min-height: 100vh;
    }
    
    .page-break {
        page-break-before: always !important;
        break-before: page !important;
    }
    
    .property-report {
        display: block !important;
        visibility: visible !important;
        width: 210mm !important;
    }
    
    .report-page {
        display: block !important;
        visibility: visible !important;
        width: 210mm !important;
        min-height: 280mm !important;
        page-break-after: always !important;
        break-after: page !important;
        padding: 10mm !important;
        box-sizing: border-box !important;
    }
    
    .report-page:last-child {
        page-break-after: auto !important;
        break-after: auto !important;
    }
    
    .preview-main,
    .template-preview-container,
    .col-lg-9 {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
    }
    
    .report-section {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .section-title {
        page-break-after: avoid;
    }
    
    .comp-card {
        page-break-inside: avoid;
    }
    
    .school-card {
        page-break-inside: avoid;
    }
    
    .demo-card {
        page-break-inside: avoid;
    }
    
    .data-table {
        page-break-inside: auto;
    }
    
    .data-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    .data-table thead {
        display: table-header-group;
    }
    
    .report-header {
        position: relative;
        top: 0;
    }
    
    .report-footer {
        page-break-before: auto;
        margin-top: 2rem;
    }
    
    .branded-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 2px solid var(--primary-color);
        padding: 0.5rem 0.75in;
    }
    
    .branded-footer .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .branded-footer .footer-logo {
        height: 30px;
        width: auto;
    }
    
    .branded-footer .footer-center {
        text-align: center;
        flex: 1;
    }
    
    .branded-footer .footer-company {
        font-weight: 600;
        font-size: 0.75rem;
        margin: 0;
        color: var(--primary-color);
    }
    
    .branded-footer .footer-agent {
        font-size: 0.65rem;
        margin: 0;
        color: #4a5568;
    }
    
    .branded-footer .footer-disclaimer {
        font-size: 0.55rem;
        margin: 0.25rem 0 0;
        color: #718096;
        font-style: italic;
    }
    
    .branded-footer .page-number::after {
        content: "Page " counter(page);
        font-size: 0.65rem;
        color: #4a5568;
    }
    
    /* Hide scrollbars and overflow elements */
    ::-webkit-scrollbar {
        display: none;
    }
    
    /* Ensure colors print */
    .bg-primary, .btn-primary {
        background-color: var(--primary-color) !important;
    }
    
    .text-primary {
        color: var(--primary-color) !important;
    }
}

@page {
    size: A4;
    margin: 0;
}

@page :first {
    margin: 0;
}

/* Plat Map Styles */
.plat-map-container {
    text-align: center;
    padding: 1rem;
}

.plat-map-image {
    max-width: 100%;
    max-height: 600px;
    border: 1px solid #e2e8f0;
}

.property-map-container {
    text-align: center;
    padding: 1rem;
}

.property-map-image {
    max-width: 100%;
    max-height: 700px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* School Card Enhancements */
.ratio-badge, .enrolled-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.api-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* How to Read Section */
.how-to-read-content .info-box {
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
}

.how-to-read-content .guide-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
    transition: all 0.2s ease;
}

.how-to-read-content .guide-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.how-to-read-content .guide-card h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cover-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

/* Blank/Minimal Cover Styles */
.cover-blank .cover-background {
    background: white !important;
}

.cover-overlay-blank {
    background: transparent !important;
}

.cover-overlay-blank .cover-title,
.cover-overlay-blank .cover-subtitle,
.cover-overlay-blank .cover-address h2,
.cover-overlay-blank .cover-agent-name,
.cover-overlay-blank .cover-agent-company,
.cover-overlay-blank .cover-agent-dre,
.cover-overlay-blank .cover-agent-contact,
.cover-overlay-blank .cover-date {
    color: #1a365d !important;
}

.cover-minimal .cover-overlay {
    background: rgba(255,255,255,0.85) !important;
}

.cover-overlay-minimal .cover-title,
.cover-overlay-minimal .cover-subtitle,
.cover-overlay-minimal .cover-address h2,
.cover-overlay-minimal .cover-agent-name,
.cover-overlay-minimal .cover-agent-company,
.cover-overlay-minimal .cover-agent-dre,
.cover-overlay-minimal .cover-agent-contact,
.cover-overlay-minimal .cover-date {
    color: #1a365d !important;
}

.cover-overlay-blank .cover-address,
.cover-overlay-minimal .cover-address {
    background: rgba(26, 54, 93, 0.1);
    border: 2px solid #1a365d;
}

/* Thank You Page */
.thank-you-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-section {
    text-align: center;
    padding: 3rem 2rem;
}

.thank-you-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 300;
}

.thank-you-message {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    color: #4a5568;
}

.thank-you-message p {
    margin-bottom: 1rem;
}

.thank-you-signature {
    font-style: italic;
    margin-top: 2rem;
}

.signature-text {
    font-size: 0.9rem;
    color: #718096;
}

.signature-name {
    font-weight: 600;
    color: var(--primary-color);
}

.thank-you-logo {
    max-height: 80px;
    max-width: 200px;
}

/* Section Index Page */
.section-index-page {
    padding: 2rem;
}

.section-index-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-index-logo {
    max-height: 60px;
    max-width: 180px;
}

.section-index-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.section-index-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-index-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
}

.section-index-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-index-info h5 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Area Sales Analysis */
.section-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.area-sales-table table {
    margin-bottom: 0;
}

.area-sales-table th,
.area-sales-table td {
    padding: 0.75rem 1rem;
}

.area-sales-table thead th {
    background-color: var(--primary-color) !important;
    color: white;
    font-weight: 600;
}

/* Comparables Table View */
.comparables-table {
    font-size: 0.9rem;
}

.comparables-table thead th {
    background-color: var(--primary-color) !important;
    color: white;
    font-weight: 500;
    white-space: nowrap;
}

.comp-details-row {
    background-color: #f8fafc !important;
}

.comp-details-row td {
    padding: 0.5rem 1rem;
    border-top: none !important;
}

/* Page Footer */
.page-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #718096;
}

.page-footer-logo {
    max-height: 24px;
}

@media print {
    .thank-you-page,
    .section-index-page {
        page-break-after: always;
    }
    
    .area-sales-table thead th {
        background-color: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .comparables-table thead th {
        background-color: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card {
        border-radius: 8px;
    }
    
    .upload-zone {
        padding: 2rem 1rem !important;
    }
    
    .upload-zone i {
        font-size: 2.5rem !important;
    }
    
    .upload-zone h5 {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    h1, .h1 {
        font-size: 1.5rem;
    }
    
    h2, .h2 {
        font-size: 1.25rem;
    }
    
    h3, .h3 {
        font-size: 1.1rem;
    }
    
    .property-details-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .detail-box {
        padding: 0.75rem 0.5rem;
    }
    
    .detail-value {
        font-size: 1.25rem;
    }
    
    .detail-label {
        font-size: 0.7rem;
    }
    
    .info-grid {
        display: block;
    }
    
    .info-row {
        display: flex;
        flex-direction: column;
        padding: 0.5rem 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .info-label {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
    
    .cover-title {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
    }
    
    .cover-address h2 {
        font-size: 1.25rem;
    }
    
    .cover-agent-info {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .cover-agent-details {
        text-align: center;
    }
    
    .cover-agent-photo {
        width: 60px;
        height: 60px;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.4rem;
    }
    
    .comp-card {
        margin-bottom: 0.75rem;
    }
    
    .comp-card-body {
        padding: 0.75rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .report-section {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .property-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cover-page {
        min-height: 100vh;
    }
    
    .cover-overlay {
        padding: 1.5rem;
    }
    
    .cover-title {
        font-size: 1.25rem;
    }
    
    .cover-address h2 {
        font-size: 1.1rem;
    }
    
    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-pills .nav-link {
        white-space: nowrap;
        font-size: 0.85rem;
    }
}

/* ========================================
   PDF Layout Styles - 5 Distinct Styles
   ======================================== */

/* ----------------------------------------
   Layout 1: Standard - Clean & Professional
   Minimal lines, neutral tones, classic feel
   ---------------------------------------- */
.layout-standard .section-title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.layout-standard .report-section {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.layout-standard .info-row:nth-child(even) {
    background-color: #f7fafc;
}

.layout-standard .detail-box {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.layout-standard .property-address-banner {
    border-left: 4px solid var(--primary-color);
}

.layout-standard .data-table thead {
    background: var(--primary-color);
    color: white;
}

.layout-standard .data-table tbody tr:nth-child(even) {
    background-color: #f7fafc;
}

.layout-standard .comp-card {
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.layout-standard .stat-box {
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--primary-color);
    border-radius: 4px;
}

.layout-standard .demo-card {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.layout-standard .demo-card h4 {
    color: var(--primary-color);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.layout-standard .school-card {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.layout-standard .school-card h5 {
    color: var(--primary-color);
}

.layout-standard .age-bar {
    background: var(--primary-color);
    border-radius: 2px;
}

.layout-standard .section-index-item {
    border-left: 3px solid var(--primary-color);
}

/* ----------------------------------------
   Layout 2: Elegant - Luxury Gold & Dark
   Serif accents, gold highlights, ornamental details
   ---------------------------------------- */
.layout-elegant {
    font-family: 'Georgia', 'Times New Roman', serif;
}

.layout-elegant .section-title {
    position: relative;
    padding: 0.75rem 2.5rem 0.75rem 1.25rem;
    border-left: 4px solid #d4af37;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
    margin-bottom: 1.5rem;
    font-family: 'Georgia', serif;
    font-style: italic;
    letter-spacing: 0.5px;
}

.layout-elegant .section-title::after {
    content: "\2726";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    font-size: 0.85rem;
    font-style: normal;
}

.layout-elegant .section-title i {
    color: #d4af37 !important;
}

.layout-elegant .report-section {
    border: 1px solid #e8dcc8;
    border-radius: 2px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fffef8 0%, #ffffff 100%);
    box-shadow: 0 1px 4px rgba(139, 119, 74, 0.06);
}

.layout-elegant .property-address-banner {
    background: linear-gradient(135deg, #1c1917, #292524);
    border: none;
    position: relative;
}

.layout-elegant .property-address-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f5e6a3, #d4af37);
}

.layout-elegant .property-address-banner h1 {
    color: #d4af37;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.layout-elegant .info-row {
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.layout-elegant .info-row:nth-child(odd) {
    background-color: rgba(212, 175, 55, 0.03);
}

.layout-elegant .info-label {
    color: #78716c;
    font-family: 'Georgia', serif;
    font-style: italic;
}

.layout-elegant .detail-box {
    border: 1px solid #d4af37;
    border-radius: 2px;
    background: linear-gradient(180deg, #fffef8, #fff);
}

.layout-elegant .detail-value {
    color: #1c1917;
    font-weight: 700;
}

.layout-elegant .detail-label {
    color: #a18c5e;
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 0.7rem;
}

.layout-elegant .data-table {
    border: 1px solid #e8dcc8;
}

.layout-elegant .data-table thead {
    background: linear-gradient(90deg, #1c1917, #44403c);
    color: #d4af37;
}

.layout-elegant .data-table thead th {
    color: #d4af37;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
}

.layout-elegant .data-table tbody tr:nth-child(even) {
    background-color: rgba(212, 175, 55, 0.04);
}

.layout-elegant .data-table tbody tr {
    border-bottom: 1px solid #e8dcc8;
}

.layout-elegant .comp-card {
    border: 1px solid #d4af37;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.08);
    background: linear-gradient(180deg, #fffef8, #fff);
}

.layout-elegant .comp-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.layout-elegant .comp-number {
    background: linear-gradient(135deg, #1c1917, #44403c);
    color: #d4af37;
}

.layout-elegant .comp-price {
    color: #b8860b;
    font-weight: 700;
}

.layout-elegant .stat-box {
    border: 1px solid #d4af37;
    border-radius: 2px;
    background: linear-gradient(135deg, #1c1917, #292524);
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.12);
}

.layout-elegant .stat-box .stat-value {
    color: #d4af37;
    font-weight: 700;
}

.layout-elegant .stat-box .stat-label {
    color: #a8a29e;
}

.layout-elegant .demo-card {
    border: 1px solid #e8dcc8;
    border-radius: 2px;
    background: linear-gradient(180deg, #fffef8, #fff);
}

.layout-elegant .demo-card h4 {
    color: #1c1917;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 0.5rem;
    font-family: 'Georgia', serif;
}

.layout-elegant .demo-row.highlight {
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid #d4af37;
    padding-left: 0.5rem;
}

.layout-elegant .school-card {
    border: 1px solid #e8dcc8;
    border-radius: 2px;
    background: linear-gradient(180deg, #fffef8, #fff);
}

.layout-elegant .school-card h5 {
    color: #1c1917;
    font-family: 'Georgia', serif;
}

.layout-elegant .school-category {
    color: #1c1917;
    font-family: 'Georgia', serif;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 0.25rem;
}

.layout-elegant .age-bar {
    background: linear-gradient(90deg, #d4af37, #b8960c);
    border-radius: 1px;
}

.layout-elegant .section-index-item {
    border-left: 3px solid #d4af37;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.04), transparent);
}

.layout-elegant .section-index-title {
    font-family: 'Georgia', serif;
    border-bottom: 2px solid #d4af37;
}

.layout-elegant .thank-you-title {
    font-family: 'Georgia', serif;
    color: #1c1917;
}

.layout-elegant .thank-you-section {
    border: 1px solid #e8dcc8;
    background: linear-gradient(180deg, #fffef8, #fff);
}

.layout-elegant .guide-card {
    border: 1px solid #e8dcc8;
    background: linear-gradient(180deg, #fffef8, #fff);
}

.layout-elegant .branded-footer {
    background: linear-gradient(90deg, #1c1917, #44403c);
    color: #d4af37;
    border-top: 2px solid #d4af37;
}

.layout-elegant .branded-footer * {
    color: #d4af37 !important;
}

/* ----------------------------------------
   Layout 3: Modern - Contemporary & Vibrant
   Rounded corners, gradients, soft shadows, airy
   ---------------------------------------- */
.layout-modern .section-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.layout-modern .section-title i {
    color: rgba(255, 255, 255, 0.9) !important;
}

.layout-modern .report-section {
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.layout-modern .property-address-banner {
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.layout-modern .property-address-banner h1 {
    color: white;
}

.layout-modern .info-row {
    border-radius: 8px;
    margin-bottom: 0.25rem;
    padding: 0.5rem 0.75rem;
}

.layout-modern .info-row:nth-child(even) {
    background-color: #f1f5f9;
}

.layout-modern .info-label {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.8rem;
}

.layout-modern .detail-box {
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.layout-modern .detail-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.layout-modern .detail-label {
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.layout-modern .data-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.layout-modern .data-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.layout-modern .data-table thead th {
    color: white;
    font-weight: 600;
    padding: 0.75rem;
}

.layout-modern .data-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.layout-modern .data-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.layout-modern .comp-card {
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.layout-modern .comp-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 26, 54, 93), 0.04), rgba(var(--primary-rgb, 26, 54, 93), 0.08));
    border-bottom: none;
}

.layout-modern .comp-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
}

.layout-modern .comp-price {
    color: var(--primary-color);
    font-weight: 700;
}

.layout-modern .stat-box {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.layout-modern .stat-box .stat-value {
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
}

.layout-modern .stat-box .stat-label {
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.layout-modern .demo-card {
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.layout-modern .demo-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.layout-modern .demo-row {
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
}

.layout-modern .demo-row.highlight {
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 26, 54, 93), 0.06), rgba(var(--primary-rgb, 26, 54, 93), 0.02));
    border-radius: 8px;
}

.layout-modern .school-card {
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.layout-modern .school-card h5 {
    color: var(--primary-color);
    font-weight: 700;
}

.layout-modern .school-category {
    color: var(--primary-color);
    font-weight: 700;
}

.layout-modern .age-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
}

.layout-modern .age-bar-container {
    border-radius: 6px;
    background: #f1f5f9;
}

.layout-modern .section-index-item {
    border: none;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.layout-modern .section-index-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.layout-modern .section-index-icon i {
    color: white !important;
}

.layout-modern .section-index-title {
    color: var(--primary-color);
    font-weight: 700;
}

.layout-modern .thank-you-title {
    color: var(--primary-color);
}

.layout-modern .thank-you-section {
    border: none;
    border-radius: 16px;
    background: #f8fafc;
}

.layout-modern .guide-card {
    border: none;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.layout-modern .api-badge,
.layout-modern .ratio-badge,
.layout-modern .enrolled-badge {
    border-radius: 20px;
}

.layout-modern .branded-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-top: none;
    border-radius: 16px 16px 0 0;
}

.layout-modern .branded-footer * {
    color: white !important;
}

/* ----------------------------------------
   Layout 4: Corporate - Enterprise Blue
   Structured, grid-based, professional, uppercase
   ---------------------------------------- */
.layout-corporate .section-title {
    background: linear-gradient(90deg, #1e3a8a, #1e40af);
    color: white;
    padding: 0.65rem 1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-left: 5px solid #3b82f6;
}

.layout-corporate .section-title i {
    color: #93c5fd !important;
    margin-right: 0.75rem;
}

.layout-corporate .report-section {
    border: 1px solid #dbeafe;
    border-top: 3px solid #1e3a8a;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background: #ffffff;
}

.layout-corporate .property-address-banner {
    background: linear-gradient(90deg, #1e3a8a, #1e40af);
    border-left: 5px solid #3b82f6;
}

.layout-corporate .property-address-banner h1 {
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
    font-weight: 700;
}

.layout-corporate .info-row {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0;
}

.layout-corporate .info-row:last-child {
    border-bottom: none;
}

.layout-corporate .info-label {
    color: #1e3a8a;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.layout-corporate .info-value {
    font-weight: 500;
}

.layout-corporate .detail-box {
    border: 1px solid #dbeafe;
    border-top: 3px solid #3b82f6;
    border-radius: 0;
    background: #eff6ff;
}

.layout-corporate .detail-value {
    color: #1e3a8a;
    font-weight: 800;
    font-size: 1.3rem;
}

.layout-corporate .detail-label {
    color: #1e3a8a;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.8px;
}

.layout-corporate .data-table {
    border: 1px solid #dbeafe;
}

.layout-corporate .data-table thead {
    background: linear-gradient(90deg, #1e3a8a, #1e40af);
}

.layout-corporate .data-table thead th {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 0.7rem;
}

.layout-corporate .data-table tbody tr {
    border-bottom: 1px solid #dbeafe;
}

.layout-corporate .data-table tbody tr:nth-child(even) {
    background-color: #eff6ff;
}

.layout-corporate .comp-card {
    border: 1px solid #dbeafe;
    border-top: 3px solid #3b82f6;
    border-radius: 0;
}

.layout-corporate .comp-header {
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
}

.layout-corporate .comp-number {
    background: #1e3a8a;
    color: white;
    border-radius: 2px;
}

.layout-corporate .comp-price {
    color: #1e3a8a;
    font-weight: 700;
}

.layout-corporate .stat-box {
    border: 1px solid #dbeafe;
    border-top: 3px solid #3b82f6;
    border-radius: 0;
    background: #eff6ff;
}

.layout-corporate .stat-box .stat-value {
    color: #1e3a8a;
    font-weight: 800;
    font-size: 1.2rem;
}

.layout-corporate .stat-box .stat-label {
    color: #3b82f6;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.layout-corporate .demo-card {
    border: 1px solid #dbeafe;
    border-top: 3px solid #1e3a8a;
    border-radius: 0;
}

.layout-corporate .demo-card h4 {
    color: #1e3a8a;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom: 1px solid #dbeafe;
    padding-bottom: 0.5rem;
}

.layout-corporate .demo-row {
    border-bottom: 1px solid #f1f5f9;
    padding: 0.4rem 0;
}

.layout-corporate .demo-row.highlight {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    padding-left: 0.5rem;
}

.layout-corporate .school-card {
    border: 1px solid #dbeafe;
    border-top: 3px solid #3b82f6;
    border-radius: 0;
}

.layout-corporate .school-card h5 {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.9rem;
}

.layout-corporate .school-category {
    color: #1e3a8a;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.25rem;
}

.layout-corporate .age-bar {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    border-radius: 0;
}

.layout-corporate .age-bar-container {
    border-radius: 0;
    background: #eff6ff;
}

.layout-corporate .section-index-item {
    border: 1px solid #dbeafe;
    border-left: 4px solid #1e3a8a;
    border-radius: 0;
}

.layout-corporate .section-index-icon {
    background: #1e3a8a;
    border-radius: 2px;
}

.layout-corporate .section-index-icon i {
    color: #93c5fd !important;
}

.layout-corporate .section-index-title {
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-bottom: 3px solid #1e3a8a;
}

.layout-corporate .thank-you-title {
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.layout-corporate .thank-you-section {
    border: 1px solid #dbeafe;
    border-top: 3px solid #1e3a8a;
}

.layout-corporate .guide-card {
    border: 1px solid #dbeafe;
    border-top: 2px solid #3b82f6;
    border-radius: 0;
}

.layout-corporate .branded-footer {
    background: linear-gradient(90deg, #1e3a8a, #1e40af);
    color: white;
    border-top: none;
}

.layout-corporate .branded-footer * {
    color: white !important;
}

/* ----------------------------------------
   Layout 5: Bold - High Impact & Dynamic
   Dark slate, accent pops, angular shapes, strong contrast
   ---------------------------------------- */
.layout-bold .section-title {
    position: relative;
    background: #0f172a;
    color: white;
    padding: 0.85rem 1.25rem 0.85rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 6px solid var(--accent-color, #f59e0b);
    box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.15);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.layout-bold .section-title i {
    color: var(--accent-color, #f59e0b) !important;
    margin-right: 0.75rem;
}

.layout-bold .report-section {
    border: 2px solid #1e293b;
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.08);
}

.layout-bold .property-address-banner {
    background: #0f172a;
    border-left: 6px solid var(--accent-color, #f59e0b);
    box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.15);
}

.layout-bold .property-address-banner h1 {
    color: white;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.layout-bold .info-row {
    border-left: 3px solid transparent;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1px;
}

.layout-bold .info-row:nth-child(odd) {
    background-color: #f8fafc;
    border-left-color: var(--accent-color, #f59e0b);
}

.layout-bold .info-label {
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
}

.layout-bold .info-value {
    font-weight: 600;
    color: #334155;
}

.layout-bold .detail-box {
    border: 2px solid #0f172a;
    border-radius: 0;
    background: #0f172a;
    box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.15);
}

.layout-bold .detail-value {
    color: var(--accent-color, #f59e0b);
    font-weight: 900;
    font-size: 1.4rem;
}

.layout-bold .detail-label {
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.layout-bold .data-table {
    border: 2px solid #0f172a;
}

.layout-bold .data-table thead {
    background: #0f172a;
}

.layout-bold .data-table thead th {
    color: var(--accent-color, #f59e0b);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 0.75rem;
}

.layout-bold .data-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

.layout-bold .data-table tbody tr:nth-child(odd) {
    background-color: #f8fafc;
}

.layout-bold .comp-card {
    border: 2px solid #1e293b;
    border-radius: 0;
    box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.layout-bold .comp-header {
    background: #0f172a;
    border-bottom: 3px solid var(--accent-color, #f59e0b);
}

.layout-bold .comp-header .comp-address {
    color: white;
}

.layout-bold .comp-number {
    background: var(--accent-color, #f59e0b);
    color: #0f172a;
    font-weight: 900;
    border-radius: 0;
}

.layout-bold .comp-price {
    color: var(--accent-color, #f59e0b);
    font-weight: 800;
}

.layout-bold .stat-box {
    border: 2px solid #0f172a;
    border-radius: 0;
    background: #0f172a;
    box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.15);
}

.layout-bold .stat-box .stat-value {
    color: var(--accent-color, #f59e0b);
    font-weight: 900;
    font-size: 1.3rem;
}

.layout-bold .stat-box .stat-label {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.layout-bold .demo-card {
    border: 2px solid #1e293b;
    border-radius: 0;
    box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.08);
}

.layout-bold .demo-card h4 {
    color: #0f172a;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border-bottom: 3px solid var(--accent-color, #f59e0b);
    padding-bottom: 0.5rem;
}

.layout-bold .demo-row {
    border-left: 3px solid transparent;
    padding: 0.4rem 0.5rem;
}

.layout-bold .demo-row:nth-child(odd) {
    border-left-color: var(--accent-color, #f59e0b);
    background: #f8fafc;
}

.layout-bold .demo-row.highlight {
    background: #0f172a;
    color: white;
    border-left: 3px solid var(--accent-color, #f59e0b);
    padding: 0.5rem;
}

.layout-bold .demo-row.highlight span {
    color: white;
}

.layout-bold .demo-row.highlight span:last-child {
    color: var(--accent-color, #f59e0b);
    font-weight: 800;
}

.layout-bold .school-card {
    border: 2px solid #1e293b;
    border-radius: 0;
    box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.08);
}

.layout-bold .school-card h5 {
    color: #0f172a;
    font-weight: 800;
}

.layout-bold .school-category {
    color: #0f172a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--accent-color, #f59e0b);
    padding-bottom: 0.25rem;
}

.layout-bold .age-bar {
    background: var(--accent-color, #f59e0b);
    border-radius: 0;
}

.layout-bold .age-bar-container {
    border-radius: 0;
    background: #1e293b;
}

.layout-bold .age-value {
    color: #0f172a;
    font-weight: 800;
}

.layout-bold .section-index-item {
    border: 2px solid #1e293b;
    border-left: 5px solid var(--accent-color, #f59e0b);
    border-radius: 0;
    background: #f8fafc;
}

.layout-bold .section-index-icon {
    background: #0f172a;
    border-radius: 0;
}

.layout-bold .section-index-icon i {
    color: var(--accent-color, #f59e0b) !important;
}

.layout-bold .section-index-title {
    color: #0f172a;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 4px solid var(--accent-color, #f59e0b);
}

.layout-bold .thank-you-title {
    color: #0f172a;
    font-weight: 900;
}

.layout-bold .thank-you-section {
    border: 2px solid #1e293b;
}

.layout-bold .guide-card {
    border: 2px solid #1e293b;
    border-left: 4px solid var(--accent-color, #f59e0b);
    border-radius: 0;
}

.layout-bold .branded-footer {
    background: #0f172a;
    color: white;
    border-top: 4px solid var(--accent-color, #f59e0b);
}

.layout-bold .branded-footer * {
    color: white !important;
}

/* ========================================
   Print adjustments for all layouts
   ======================================== */
@media print {
    .layout-elegant,
    .layout-elegant .section-title,
    .layout-elegant .report-section,
    .layout-elegant .stat-box,
    .layout-elegant .comp-card,
    .layout-elegant .demo-card,
    .layout-elegant .school-card,
    .layout-elegant .data-table thead,
    .layout-elegant .detail-box,
    .layout-elegant .property-address-banner,
    .layout-elegant .section-index-item,
    .layout-modern .section-title,
    .layout-modern .report-section,
    .layout-modern .stat-box,
    .layout-modern .comp-card,
    .layout-modern .comp-number,
    .layout-modern .demo-card,
    .layout-modern .school-card,
    .layout-modern .data-table,
    .layout-modern .detail-box,
    .layout-modern .property-address-banner,
    .layout-modern .section-index-item,
    .layout-modern .section-index-icon,
    .layout-modern .age-bar,
    .layout-corporate .section-title,
    .layout-corporate .report-section,
    .layout-corporate .stat-box,
    .layout-corporate .comp-card,
    .layout-corporate .comp-number,
    .layout-corporate .demo-card,
    .layout-corporate .school-card,
    .layout-corporate .data-table thead,
    .layout-corporate .detail-box,
    .layout-corporate .property-address-banner,
    .layout-corporate .section-index-item,
    .layout-corporate .section-index-icon,
    .layout-corporate .age-bar,
    .layout-bold .section-title,
    .layout-bold .report-section,
    .layout-bold .stat-box,
    .layout-bold .comp-card,
    .layout-bold .comp-header,
    .layout-bold .comp-number,
    .layout-bold .demo-card,
    .layout-bold .demo-row.highlight,
    .layout-bold .school-card,
    .layout-bold .data-table thead,
    .layout-bold .detail-box,
    .layout-bold .property-address-banner,
    .layout-bold .section-index-item,
    .layout-bold .section-index-icon,
    .layout-bold .age-bar,
    .layout-bold .age-bar-container {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .layout-elegant .branded-footer {
        background: linear-gradient(90deg, #1c1917, #44403c) !important;
        border-top: 2px solid #d4af37 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .layout-elegant .branded-footer * {
        color: #d4af37 !important;
    }
    .layout-modern .branded-footer {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
        border-top: none !important;
        border-radius: 16px 16px 0 0;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .layout-modern .branded-footer * {
        color: white !important;
    }
    .layout-corporate .branded-footer {
        background: linear-gradient(90deg, #1e3a8a, #1e40af) !important;
        border-top: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .layout-corporate .branded-footer * {
        color: white !important;
    }
    .layout-bold .branded-footer {
        background: #0f172a !important;
        border-top: 4px solid var(--accent-color, #f59e0b) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .layout-bold .branded-footer * {
        color: white !important;
    }
}
