/* Property Intelligence Report — plot detail */

.property-report {
    margin: 2rem 0 1.5rem;
    padding: 1.35rem 1.4rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, var(--white) 120px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.property-report-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f6;
}

.property-report-header-text {
    flex: 1;
    min-width: 200px;
}

.report-download-toolbar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    margin-left: auto;
}

.report-download-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.report-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.report-download-actions .btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
}

.report-download-actions .btn-sm svg {
    width: 15px;
    height: 15px;
}

.report-download-actions .btn-sm.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.report-download-status {
    margin: 0;
    font-size: 0.76rem;
    color: var(--green);
}

.report-download-status.is-error {
    color: #dc2626;
}

.report-export-document {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 820px;
    max-width: 820px;
    background: #ffffff;
    padding: 24px;
    z-index: -1;
}

.report-export-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--blue);
}

.report-export-brand strong {
    font-size: 1.05rem;
    color: var(--blue);
}

.report-export-brand span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.report-export-map {
    margin-bottom: 1rem;
}

.report-export-map .map-embed-body img,
.report-export-map-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.report-export-map--missing {
    padding: 1rem;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: #f9fafb;
}

.report-export-map--missing h4 {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
}

.report-export-map--missing p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.report-export-document .property-report {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.report-export-document .property-report-header {
    display: none;
}

.report-export-document .property-report-sections {
    gap: 0.65rem;
}

.report-export-document .report-section {
    margin-bottom: 0.65rem;
    break-inside: avoid;
}

.report-export-document .property-report-disclaimer {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.property-report-header-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--purple-bg);
    color: var(--purple);
    flex-shrink: 0;
}

.property-report-header-icon svg {
    width: 22px;
    height: 22px;
}

.property-report-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--purple);
}

.property-report-headline {
    margin: 0 0 0.35rem;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.property-report-lead {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.property-report-sections {
    display: grid;
    gap: 0.85rem;
}

.report-section {
    background: var(--white);
    border: 1px solid #eef2f6;
    border-radius: 10px;
    overflow: hidden;
}

.report-section-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: #fafbfc;
    border-bottom: 1px solid #eef2f6;
}

.report-section-badge {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.report-section-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue);
}

.report-section-body {
    padding: 0.9rem 1rem 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #374151;
}

.report-section-body p {
    margin: 0 0 0.65rem;
}

.report-section-body p:last-child {
    margin-bottom: 0;
}

.report-kv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
    margin: 0;
}

.report-kv-grid dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.report-kv-grid dd {
    margin: 0.15rem 0 0;
    font-weight: 600;
    color: var(--text);
}

.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
}

.report-stat-card {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #eef2f6;
}

.report-stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.report-stat-value {
    font-size: 0.9rem;
    color: var(--text);
}

.report-bullets {
    margin: 0;
    padding-left: 1.15rem;
}

.report-bullets li + li {
    margin-top: 0.35rem;
}

.report-rank-highlight {
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: var(--blue-light);
    border: 1px solid #dbeafe;
}

.report-rank-highlight p {
    margin: 0.35rem 0 0;
    font-size: 0.84rem;
}

.report-table-wrap {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.report-table th,
.report-table td {
    padding: 0.5rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid #eef2f6;
}

.report-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: #fafbfc;
}

.report-table tr.is-highlight td {
    background: #eff6ff;
    font-weight: 600;
}

.report-progress-intro {
    margin: 0 0 0.75rem;
}

.report-progress-bars {
    display: grid;
    gap: 0.55rem;
}

.report-progress-row.is-highlight .report-progress-fill {
    background: var(--blue);
}

.report-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
    color: var(--text-muted);
}

.report-progress-row.is-highlight .report-progress-meta {
    color: var(--blue);
    font-weight: 600;
}

.report-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #eef2f6;
    overflow: hidden;
}

.report-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #93c5fd;
}

.report-breakdown {
    display: grid;
    gap: 0.5rem;
}

.report-breakdown-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
}

.report-breakdown-row.is-highlight .report-breakdown-label {
    color: var(--blue);
    font-weight: 700;
}

.report-breakdown-label {
    font-size: 0.8rem;
}

.report-breakdown-track {
    height: 8px;
    border-radius: 999px;
    background: #eef2f6;
    overflow: hidden;
}

.report-breakdown-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--green);
}

.report-breakdown-row.is-highlight .report-breakdown-fill {
    background: var(--blue);
}

.report-breakdown-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.report-highlights-grid,
.report-profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.report-highlight-card,
.report-profile-card {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #eef2f6;
    background: #fafbfc;
}

.report-profile-card.is-match {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.report-highlight-icon,
.report-profile-icon {
    display: inline-flex;
    margin-bottom: 0.35rem;
}

.report-highlight-icon svg,
.report-profile-icon svg {
    width: 18px;
    height: 18px;
}

.report-highlight-card strong,
.report-profile-card strong {
    display: block;
    font-size: 0.84rem;
    margin-bottom: 0.2rem;
}

.report-highlight-card p,
.report-profile-card p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.report-highlight-card--green { border-left: 3px solid var(--green); }
.report-highlight-card--orange { border-left: 3px solid #f97316; }
.report-highlight-card--purple { border-left: 3px solid var(--purple); }
.report-highlight-card--blue { border-left: 3px solid var(--blue); }

.report-amenity-list {
    margin: 0.5rem 0;
    padding-left: 1.1rem;
}

.report-amenity-list li + li {
    margin-top: 0.25rem;
}

.report-amenity-more {
    color: var(--text-muted);
    font-style: italic;
}

.report-amenity-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.report-amenity-chip {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 600;
}

.report-next-steps {
    margin: 0 0 0.85rem;
    padding-left: 1.1rem;
}

.report-next-steps li + li {
    margin-top: 0.3rem;
}

.report-next-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.property-report-contact {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #f0f6ff 0%, #fff 70%);
    border: 1px solid #dbeafe;
}

.property-report-contact-title {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--blue);
}

.property-report-contact-lead {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.property-report-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.property-report-contact-grid div {
    min-width: 0;
}

.property-report-contact-grid dt {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.property-report-contact-grid dd {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.property-report-contact-grid a {
    color: var(--blue);
    text-decoration: none;
}

.property-report-contact-grid a:hover {
    text-decoration: underline;
}

.report-export-brand-contact {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue);
}

.report-export-document .property-report-contact {
    margin-top: 0;
    box-shadow: none;
}

.property-report-disclaimer {
    margin: 1rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid #eef2f6;
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.search-map-note {
    margin: -0.35rem 0 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .property-report-header {
        flex-direction: column;
    }

    .report-download-toolbar {
        align-items: stretch;
        width: 100%;
        margin-left: 0;
    }

    .report-download-actions {
        justify-content: stretch;
    }

    .report-download-actions .btn-sm {
        flex: 1;
        justify-content: center;
    }

    .report-kv-grid,
    .report-highlights-grid,
    .report-profiles-grid {
        grid-template-columns: 1fr;
    }

    .report-breakdown-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .property-report {
        padding: 1rem;
    }

    .property-report-contact-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
}

@media (max-width: 480px) {
    .property-report {
        padding: 0.85rem;
    }

    .report-section-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .report-download-actions {
        flex-direction: column;
    }

    .report-download-actions .btn-sm {
        width: 100%;
    }

    .market-comparison {
        margin-inline: 0;
    }
}
