/* Material Design Variables */
:root {
    --mdc-theme-primary: #2196f3;
    --mdc-theme-primary-light: #64b5f6;
    --mdc-theme-primary-dark: #1976d2;
    --mdc-theme-secondary: #ff4081;
    --mdc-theme-background: #fafafa;
    --mdc-theme-surface: #ffffff;
    --mdc-theme-error: #f44336;
    --mdc-theme-on-primary: #ffffff;
    --mdc-theme-on-secondary: #ffffff;
    --mdc-theme-on-surface: rgba(0, 0, 0, 0.87);
    --mdc-theme-text-primary: rgba(0, 0, 0, 0.87);
    --mdc-theme-text-secondary: rgba(0, 0, 0, 0.6);
    --mdc-theme-text-hint: rgba(0, 0, 0, 0.38);
    --mdc-elevation-1: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
    --mdc-elevation-2: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
    --mdc-elevation-4: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
}

/* Layout */
.property-view-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background-color: var(--mdc-theme-background);
}

.property-view-content {
    display: flex;
    gap: 24px;
}

.property-main-content {
    flex: 1;
}

/* Typography */
.property-title {
    font-family: "Roboto", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--mdc-theme-text-primary);
    margin-bottom: 24px;
    letter-spacing: 0.0125em;
}

/* Navigation */
.property-nav {
    background: var(--mdc-theme-surface);
    border-radius: 4px;
    box-shadow: var(--mdc-elevation-2);
    margin-bottom: 24px;
    overflow: hidden;
}

.property-nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.property-nav-item {
    flex: 1;
    position: relative;
}

.property-nav-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: var(--mdc-theme-text-secondary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 8px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.0892857143em;
    font-size: 0.875rem;
}

.property-nav-item.active a {
    color: var(--mdc-theme-primary);
}

.property-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--mdc-theme-primary);
}

.property-nav-item a:hover {
    color: var(--mdc-theme-primary);
    background: rgba(33, 150, 243, 0.04);
}

/* Action Buttons */
.property-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    margin-bottom: 24px;
    box-shadow: none;
}

.action-buttons {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.property-actions-copy {
    margin-left: auto;
    flex-shrink: 0;
}

.action-btn--icon-only {
    min-width: 36px;
    width: 36px;
    padding: 0;
    justify-content: center;
    color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.23);
    background: #fff;
}

.action-btn--icon-only::before {
    display: none;
}

.action-btn--icon-only i,
.action-btn--icon-only .material-icons {
    position: relative;
    z-index: 1;
    font-size: 1.125rem;
    line-height: 1;
}

.action-btn--icon-only:hover {
    color: #1449ff;
    border-color: rgba(20, 73, 255, 0.45);
    background: rgba(20, 73, 255, 0.06);
}

.copy-page-url-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.report-icons li.copy-url {
    float: right;
}

.report-icons .report-icons-copy-btn {
    display: block;
    width: 32px;
    height: 32px;
    margin: 4px 8px 4px 4px;
    padding: 0;
    border: none;
    background: transparent;
    color: #0050d3;
    cursor: pointer;
    border-radius: 4px;
}

.report-icons .report-icons-copy-btn:hover {
    background: rgba(0, 80, 211, 0.08);
}

.report-icons .report-icons-copy-btn i {
    font-size: 16px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    height: 36px;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
    background: transparent;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Roboto", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.0892857143em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:hover::before {
    opacity: 0.04;
}


.action-btn.primary-green {
    background-color: #25AB2B;
    color: #fff;
    box-shadow: var(--mdc-elevation-2);
}

.action-btn.primary-green:hover {
    background-color: #25BB2B;
    box-shadow: var(--mdc-elevation-4);
}

.action-btn.primary {
    background-color: var(--mdc-theme-primary);
    color: var(--mdc-theme-on-primary);
    box-shadow: var(--mdc-elevation-2);
}

.action-btn.primary:hover {
    box-shadow: var(--mdc-elevation-4);
}

/* Status Badge */
.property-status {
    margin-bottom: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    height: 32px;
    background: var(--mdc-theme-error);
    color: #ffffff;
    border-radius: 16px;
    font-family: "Roboto", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.0178571429em;
}

/* Report Section */
.report-section {
    margin-bottom: 24px;
}

/* Use these Materialize card classes for all report sections */
/* No need to redefine card properties that Materialize already handles */
.report-section .card-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--mdc-theme-text-primary);
    margin-bottom: 16px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    letter-spacing: 0.0125em;
}

.report-datagrid {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-family: "Roboto", sans-serif;
}

.report-datagrid th {
    background: rgba(0, 0, 0, 0.02);
    padding: 16px;
    text-align: left;
    font-weight: 500;
    color: var(--mdc-theme-text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 0.875rem;
    letter-spacing: 0.0178571429em;
}

.report-datagrid td {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--mdc-theme-text-primary);
    font-size: 0.875rem;
    letter-spacing: 0.0178571429em;
}

.report-datagrid tr:nth-child(odd) td {
    background: rgba(0, 0, 0, 0.01);
}

.metrics-grid td:first-child,
.performance-grid td:first-child {
    font-weight: 500;
    color: var(--mdc-theme-text-primary);
}

.metrics-grid td:last-child,
.performance-grid td:last-child {
    text-align: right;
}

.negative-value {
    color: var(--mdc-theme-error);
}

.positive-value {
    color: #4caf50;
}

/* Video Section */
.video-section {
    margin-bottom: 24px;
}

/* Video Section inherits Materialize card styling */
.video-section .card-title {
    color: var(--mdc-theme-text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 16px !important;
    text-align: center;
    letter-spacing: 0.0125em;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Booking CTA Button */
.booking-cta-btn {
    background: linear-gradient(135deg, #25AB2B 0%, #1e8a22 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 171, 43, 0.2);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.booking-cta-btn:hover {
    background: linear-gradient(135deg, #2bb832 0%, #25AB2B 100%);
    box-shadow: 0 4px 8px rgba(37, 171, 43, 0.3);
    transform: translateY(-1px);
}

.booking-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 171, 43, 0.2);
}

.booking-cta-btn i {
    font-size: 1.1em;
}

/* Booking Modal */
.booking-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.booking-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.booking-modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.booking-modal-close:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

.booking-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.booking-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--mdc-theme-text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-modal-header h3 i {
    color: #25AB2B;
}

.booking-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Preloader - hidden but with proper dimensions so iframe loads fully */
.booking-iframe-preloader {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 900px;
    height: 700px;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

.booking-iframe-preloader iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
    overflow: hidden;
    display: block;
}

.booking-iframe-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    border-radius: 4px;
}

.booking-iframe-container iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    overflow: hidden;
    display: block;
}

/* CTA Cards Container - Two Column Layout */
.cta-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.cta-card {
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cta-card .card-content {
    padding: 20px;
}

.cta-card .cta-text {
    margin: 0;
    color: #333;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.cta-card .cta-text strong {
    color: #2196f3;
    font-weight: 700;
}

.cta-card a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid rgba(25, 118, 210, 0.3);
    transition: all 0.2s ease;
}

.cta-card a:hover {
    color: #1565c0;
    border-bottom-color: #1976d2;
}

/* CTA card layout (match modern two-card design) */
.cta-card .card-content {
    padding: 18px 18px;
    display: flex;
    gap: 18px;
    align-items: stretch;
}

.cta-card .cta-media {
    flex: 0 0 42%;
    max-width: 42%;
}

.cta-card .cta-image {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.cta-card .cta-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.cta-icon .material-icons {
    font-size: 18px;
    line-height: 1;
}

.cta-icon--proforma {
    background: #eaf3ff;
    color: #2f7fd6;
}

.cta-icon--booking {
    background: #eaf8ef;
    color: #2a9d62;
}

.cta-card .cta-header {
    font-size: 1.15rem;
    color: #2c2c2c;
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
}

.cta-card .cta-text {
    margin: 0;
    color: #4b4b4b;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.55;
}

.cta-card .cta-text strong {
    color: inherit;
    font-weight: 800;
}

.cta-card .cta-text a {
    color: #2f7fd6;
    font-weight: 700;
    text-decoration: none;
    border-bottom: none;
}

.cta-card .cta-text a:hover {
    text-decoration: underline;
}

.cta-card .cta-actions {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
}

.cta-btn {
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.16s, border-color 0.18s, color 0.18s;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-bottom: none;
    background: transparent;
}

.cta-btn .material-icons {
    font-size: 18px;
    line-height: 1;
}

.cta-btn .cta-chevron {
    font-size: 20px;
}

.cta-btn--proforma {
    background: #eef6ff;
    border: 1px solid #c9e2ff;
    color: #2f7fd6;
}

.cta-btn--proforma:hover,
.cta-btn--proforma:focus {
    background: #e3f0ff;
    border-color: #a9d2ff;
    outline: none;
}

.cta-btn--booking {
    background: #eaf8ef;
    border: 1px solid #bfead0;
    color: #2a9d62;
}

.cta-btn--booking:hover,
.cta-btn--booking:focus {
    background: #def3e7;
    border-color: #9fddb9;
    outline: none;
}

.booking-cta .card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-cta p {
    flex: 1;
}

.booking-cta-btn {
    align-self: flex-start;
    margin-top: 4px;
}

/* Responsive design for CTA cards */
@media (max-width: 768px) {
    .cta-cards-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .cta-card .card-content {
        padding: 16px;
    }
    
    .cta-card .cta-text {
        font-size: 0.95rem;
    }

    .cta-card .card-content {
        flex-direction: column;
    }

    .cta-card .cta-media {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .cta-card .cta-image {
        max-height: 220px;
    }
    
    .booking-modal-content {
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
    }
    
    .booking-modal-body {
        padding: 16px;
    }
    
    .booking-iframe-container {
        min-height: 500px;
    }
    
    .booking-iframe-container iframe {
        min-height: 500px;
    }
}

/* Map Section */
.map-container {
    height: 480px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.map-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #666;
}

/* No Property State */
.no-property {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.no-property-content {
    text-align: center;
}

.no-property h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hidden-property-admin-banner {
    background: #e8f4fc;
    border-left: 4px solid #2980b9;
    border-radius: 4px;
    margin: 1.5rem auto 0;
    max-width: 520px;
    padding: 1.25rem;
    text-align: left;
}

.hidden-property-admin-banner__text {
    color: #2c3e50;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.hidden-property-admin-banner__edit {
    align-items: center;
    background: #2980b9;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.hidden-property-admin-banner__edit:hover {
    background: #2471a3;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hidden-property-admin-banner {
        margin-left: 1rem;
        margin-right: 1rem;
        max-width: none;
    }

    .hidden-property-admin-banner__edit {
        justify-content: center;
        width: 100%;
    }
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #2980b9;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #2471a3;
    color: #fff;
    text-decoration: none;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    padding: 2rem;
}

/* Print Styles */
@media print {
    .report-section {
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.12);
        break-inside: avoid;
    }
    
    .report-datagrid th {
        background-color: rgba(0, 0, 0, 0.02) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.report-section.card {
	position: inherit;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .property-view-container {
        padding: 16px;
    }
    
    .property-view-content {
        flex-direction: column;
    }
    
    .property-nav-list {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .report-datagrid {
        font-size: 0.8125rem;
    }
    
    .report-datagrid td,
    .report-datagrid th {
        padding: 12px;
    }
}

/* Address also uses Materialize card structure */


.property-address .divider {
    margin: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.property-address .slider-container {
    height: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.property-address .slider-container img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 600px) {
    .property-address .slider-container {
        margin-top: 1rem;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .property-address .card-title {
        font-size: 1.25rem;
    }
    
    .property-address .street {
        font-size: 1.125rem;
    }
    
    .property-address .city-state {
        font-size: 1rem;
    }
}

/* Card style overrides to ensure consistent appearance */
.card {
    background: var(--mdc-theme-surface);
    border-radius: 4px;
    box-shadow: var(--mdc-elevation-1);
    margin: 0 0 24px 0;
}

.card .card-content {
    padding: 24px;
}

/* Legacy copy-btn (other surfaces) */
.copy-btn {
    padding: 0.75rem 1rem;
    background: var(--mdc-theme-primary);
    color: var(--mdc-theme-on-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: var(--mdc-theme-primary-dark);
}


table.report-datagrid th {
	font-size: 1rem;
}

/* Property Header */
.property-header {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f1f8ff;
    border: 1px solid #d2d0e3;
    border-radius: 4px;
}

.property-name {
    color: #0050d3;
    font-size: 24px;
    margin: 0 0 10px 0;
    font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
    font-weight: bold;
    letter-spacing: 0.0125em;
}

.property-address {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

.property-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

/* PDF-style layout for firstyear report */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-table td {
    vertical-align: top;
    padding: 8px;
}

/* Tighten spacing for PDF-style layout */
.report-table .report-datagrid {
    margin: 8px 0;
}

.report-table td:first-child .report-datagrid {
    margin-right: 12px;
}

/* Image/carousel positioning in top-right corner */
.report-table td:last-child > div:first-child {
    margin-bottom: 12px;
}

/* Shadow on .gallery-frame: .gallery-main keeps overflow:hidden for slides; gallery.css
   uses overflow:hidden on .property-gallery which also clips shadows without visible. */
.property-gallery {
    width: 100%;
    margin: 0 0 12px 0;
    overflow: visible;
}

.property-gallery .gallery-frame {
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.4);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18), 0 1.5px 6px rgba(0,0,0,0.2);
}

.property-gallery .gallery-main {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 300px;
    border-radius: 4px;
}

.property-gallery .gallery-slide {
    width: 100%;
    height: 100%;
}

.property-gallery .gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Compact text styling for PDF-style layout */
.report-table p {
    margin: 4px 0;
    line-height: 1.4;
    font-size: 14px;
}

.report-table .report-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--mdc-theme-text-primary);
}

/* Reduce card padding when in table layout */
.report-table .card {
    margin: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

.report-table .card-content {
    padding: 0;
}

/* Tighten datagrid spacing */
.report-table .report-datagrid th,
.report-table .report-datagrid td {
    padding: 8px 12px;
    font-size: 14px;
}

.report-table .report-datagrid th {
    background: #4990E2;
    color: #fff;
    font-weight: bold;
    padding: 10px 12px;
}

/* Remove extra spacing from list elements */
.report-table > tbody > tr > td > div > div {
    margin-bottom: 0;
}

/* Compact disclaimer text */
.report-table small {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

/* Non-responsive styles for property report tables - maintain fixed widths */
/* Prevent tables from wrapping - they should scroll horizontally on small screens */
.report-table {
    table-layout: fixed;
    width: 100%;
    min-width: 1000px; /* Minimum width to prevent wrapping */
}

.report-table .report-datagrid {
    /* Keep table geometry stable, but allow cell contents to wrap */
    table-layout: fixed;
}

.report-table .report-datagrid th,
.report-table .report-datagrid td {
    /* Fix overlapping content in cells (ex: long labels like IIDD) */
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: middle;
}

/* Slight emphasis for ROI rows in Financial Indicators */
.report-table .report-datagrid td.roi-row {
    font-size: 16px; /* +2px vs 14px base */
}

/* Responsive layout for mobile devices - BUT keep property report tables fixed */
@media (max-width: 768px) {
    /* Property report tables should NOT be responsive - keep as tables */
    .report-table {
        display: table !important;
        width: 100% !important;
        min-width: 1000px !important;
    }
    
 
    
    .report-table .report-datagrid {
        width: 95% !important;
        overflow-x: visible !important;
        white-space: normal !important;
    }
    
    /* Enable horizontal scroll for containers on mobile when tables are present */
    .white-paper-content:has(.report-table),
    .property-view-content:has(.report-table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fallback for browsers that don't support :has() */
    .white-paper-content,
    .property-view-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Make sure images don't overflow */
    .report-table td img {
        max-width: 100%;
        height: auto;
    }
    
    /* Stack gallery vertically */
    .property-gallery {
        width: 100%;
        margin: 12px 0;
    }
}

.report-datagrid.empowered-investor-indicators {
    border: 2px solid #4990E2;
}

button.action-btn:hover {
    cursor: pointer;
}

/* One-year projection page: value-cell padding and slightly smaller gallery */
body.agent-property-view-firstyear .report-datagrid td.value,
body.investor-property-view-firstyear .report-datagrid td.value {
    padding-left: 6px;
}

body.agent-property-view-firstyear .gallery-main,
body.investor-property-view-firstyear .gallery-main {
    height: 260px;
    min-height: 260px;
}

body.agent-property-view-firstyear .report-property-details,
body.investor-property-view-firstyear .report-property-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin: 4px 0 8px 0;
    line-height: 1.5;
}

body.agent-property-view-firstyear .report-property-detail-item,
body.investor-property-view-firstyear .report-property-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

body.agent-property-view-firstyear .report-property-detail-item .material-icons,
body.investor-property-view-firstyear .report-property-detail-item .material-icons {
    font-size: 1.125rem;
    color: #666;
}

body.agent-property-view-firstyear .report-table .report-datagrid,
body.investor-property-view-firstyear .report-table .report-datagrid {
    margin: 4px 0;
}

body.agent-property-view-firstyear .report-property-details + table.report-datagrid,
body.investor-property-view-firstyear .report-property-details + table.report-datagrid {
    margin-top: 0;
}

body.agent-property-view-firstyear .property-gallery,
body.investor-property-view-firstyear .property-gallery {
    margin: 0 0 8px 0;
}

/* TEMP(temporary-property-description-trial-2026-06): left-column bedroom row during description trial */
body.agent-property-view-firstyear .report-property-details--left,
body.investor-property-view-firstyear .report-property-details--left {
    justify-content: flex-start;
    margin: 4px 0 12px 0;
}
