:root {
    --navy: #102a43;
    --navy-light: #243f5c;
    --blue: #2463a6;
    --blue-light: #eaf3fb;
    --green: #147d64;
    --background: #f4f7fa;
    --surface: #ffffff;
    --border: #dce5ec;
    --text: #243746;
    --muted: #657786;
    --danger: #b42318;
    --danger-background: #fef3f2;
    --shadow: 0 12px 35px rgba(16, 42, 67, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            #eef4f8 0,
            var(--background) 320px
        );
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input {
    font: inherit;
}

.site-header {
    background:
        linear-gradient(
            135deg,
            var(--navy),
            var(--navy-light)
        );
    color: white;
    padding: 44px 24px 80px;
}

.header-content {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.site-header h1 {
    margin: 2px 0 6px;
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.subtitle {
    margin: 0;
    max-width: 650px;
    color: #d8e7f2;
    font-size: 1.05rem;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.site-header .eyebrow {
    color: #9fc5e8;
}

.version-badge {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #eaf3fb;
    font-size: 0.82rem;
    white-space: nowrap;
}

.analysis-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.analysis-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.page-container {
    width: min(1180px, calc(100% - 36px));
    margin: -42px auto 50px;
}

.search-card,
.detail-card,
.metric-card,
.report-header {
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.search-card {
    padding: 30px;
    border-radius: 18px;
}

.section-heading {
    max-width: 720px;
}

.section-heading h2,
.report-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.section-heading > p:last-child {
    margin: 10px 0 25px;
    color: var(--muted);
    line-height: 1.6;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 700;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #bdccd8;
    border-radius: 10px;
    outline: none;
    color: var(--text);
    background: #fff;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(36, 99, 166, 0.12);
}

button {
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: white;
    font-weight: 750;
    cursor: pointer;
}

button:hover {
    filter: brightness(0.96);
}

button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.status-message {
    min-height: 24px;
    margin-top: 15px;
    font-weight: 650;
}

.status-message.loading {
    color: var(--blue);
}

.status-message.error {
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: 9px;
    background: var(--danger-background);
    color: var(--danger);
}

.results {
    margin-top: 28px;
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 28px;
    border-radius: 16px;
}

#property-location {
    margin: 8px 0 0;
    color: var(--muted);
}

.secondary-button {
    border: 1px solid var(--blue);
    background: white;
    color: var(--blue);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.metric-card {
    min-height: 155px;
    padding: 23px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}

.metric-card.featured {
    border-color: #a7c8e5;
    background:
        linear-gradient(
            145deg,
            #f7fbff,
            var(--blue-light)
        );
}

.metric-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.metric-value {
    margin: auto 0 5px;
    color: var(--navy);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.metric-card > span:last-child {
    color: var(--muted);
    font-size: 0.84rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 18px;
    margin-top: 18px;
}

.detail-card {
    padding: 27px;
    border-radius: 16px;
}

.detail-card h3 {
    margin: 0 0 22px;
    color: var(--navy);
    font-size: 1.25rem;
}

.property-details {
    margin: 0;
}

.property-details > div {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f4;
}

.property-details > div:last-child {
    border-bottom: 0;
}

dt {
    color: var(--muted);
}

dd {
    margin: 0;
    color: var(--navy);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.analysis-section {
    padding: 17px 0;
    border-bottom: 1px solid #edf1f4;
}

.analysis-section:first-of-type {
    padding-top: 0;
}

.analysis-section:last-child {
    border-bottom: 0;
}

.analysis-section h4 {
    margin: 0 0 9px;
    color: var(--navy);
}

.analysis-section p {
    margin: 0;
    color: #435566;
    line-height: 1.7;
}

.classification-list > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
}

.classification-list span {
    color: var(--muted);
}

.classification-list strong {
    color: var(--navy);
    text-align: right;
}

.source-line {
    font-size: 0.88rem;
    color: var(--muted);
}

.comparables-card {
    margin-top: 18px;
}

.comparables-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.text-button {
    min-height: auto;
    padding: 6px;
    background: transparent;
    color: var(--blue);
}

.comparables-content pre {
    max-height: 600px;
    overflow: auto;
    margin: 0;
    padding: 18px;
    border-radius: 10px;
    background: #f5f8fa;
    color: #243746;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.inline-error {
    color: var(--danger);
}

.hidden {
    display: none !important;
}

footer {
    padding: 15px 24px 40px;
    color: var(--muted);
    text-align: center;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .site-header {
        padding: 32px 18px 70px;
    }

    .header-content,
    .report-header,
    .comparables-heading {
        flex-direction: column;
    }

    .page-container {
        width: min(100% - 24px, 1180px);
    }

    .search-card,
    .detail-card {
        padding: 22px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .report-actions,
    .report-actions button {
        width: 100%;
    }

    .property-details > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .classification-list > div {
        flex-direction: column;
        gap: 4px;
    }

    .classification-list strong {
        text-align: left;
    }
}
CSS


/* ==========================================================
   REIP HOME
   ========================================================== */

.home-page {
    background:
        radial-gradient(
            circle at top right,
            rgba(36, 99, 166, 0.09),
            transparent 34%
        ),
        #f4f7fa;
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    padding: 58px 24px 105px;
    background:
        linear-gradient(
            130deg,
            #0d253d 0%,
            #173c5e 58%,
            #225b83 100%
        );
    color: white;
}

.home-hero::after {
    position: absolute;
    right: -110px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.home-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.home-eyebrow,
.section-kicker {
    margin: 0 0 10px;
    color: #8fc1e8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.home-subtitle {
    margin: 18px 0 0;
    color: #e6f0f7;
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
    font-weight: 650;
}

.mission-statement {
    max-width: 690px;
    margin: 20px 0 0;
    color: #c4d8e8;
    font-size: 1.05rem;
    line-height: 1.65;
}

.home-version {
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #eaf3fb;
    font-size: 0.82rem;
    white-space: nowrap;
}

.home-container {
    width: min(1180px, calc(100% - 36px));
    margin: -62px auto 60px;
}

.welcome-section {
    position: relative;
    z-index: 2;
    padding: 33px 34px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: white;
    box-shadow: var(--shadow);
}

.welcome-section .section-kicker,
.activity-section .section-kicker {
    color: var(--blue);
}

.welcome-section h2,
.activity-section h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -0.025em;
}

.welcome-description {
    margin: 11px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.workspace-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: flex-start;
    gap: 18px;
    min-height: 185px;
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: white;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 26px rgba(16, 42, 67, 0.055);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.workspace-card:hover {
    transform: translateY(-3px);
    border-color: #a6bfd3;
    box-shadow: 0 15px 35px rgba(16, 42, 67, 0.1);
}

.workspace-card.available {
    border-color: #9fc4e2;
    background:
        linear-gradient(
            145deg,
            white,
            #f2f8fd
        );
}

.workspace-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 13px;
    background: #edf5fb;
    font-size: 1.55rem;
}

.workspace-content h3 {
    margin: 2px 0 9px;
    color: var(--navy);
    font-size: 1.2rem;
}

.workspace-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}

.workspace-arrow {
    align-self: center;
    color: var(--blue);
    font-size: 1.55rem;
    transition: transform 160ms ease;
}

.workspace-card:hover .workspace-arrow {
    transform: translateX(4px);
}

.workspace-status {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf1f4;
    color: #667886;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.workspace-card.available .workspace-status {
    background: #e5f4ef;
    color: #147d64;
}

.activity-section {
    margin-top: 44px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.activity-card {
    display: flex;
    min-height: 145px;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: white;
    box-shadow: 0 7px 22px rgba(16, 42, 67, 0.05);
    flex-direction: column;
}

.activity-label {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.activity-card strong {
    margin: auto 0 6px;
    color: var(--navy);
    font-size: 1.13rem;
    overflow-wrap: anywhere;
}

.activity-detail {
    color: var(--muted);
    font-size: 0.86rem;
}

.activity-note {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.home-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 20px;
    padding: 34px max(24px, calc((100% - 1180px) / 2));
    border-top: 1px solid var(--border);
    background: #eaf0f4;
    color: var(--muted);
    font-size: 0.84rem;
}

.home-footer > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-footer strong {
    color: var(--navy);
}

.footer-version {
    display: flex;
    gap: 16px;
}

.home-footer p {
    grid-column: 1 / -1;
    margin: 5px 0 0;
}

@media (max-width: 800px) {
    .home-hero-content {
        flex-direction: column;
    }

    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .home-footer {
        grid-template-columns: 1fr;
    }

    .footer-version {
        flex-direction: column;
        gap: 3px;
    }
}

@media (max-width: 560px) {
    .home-hero {
        padding: 40px 18px 95px;
    }

    .home-container {
        width: min(100% - 24px, 1180px);
    }

    .welcome-section {
        padding: 25px 22px;
    }

    .workspace-card {
        grid-template-columns: auto 1fr;
        min-height: 0;
        padding: 22px;
    }

    .workspace-arrow {
        display: none;
    }
}

/* ==========================================================
   REIP PLATFORM SHELL
   ========================================================== */

   .platform-body {
    margin: 0;
    min-height: 100vh;
    background: #f4f7fa;
    color: #243746;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.platform-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
}

.platform-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    padding: 28px 20px 22px;
    background:
        linear-gradient(
            180deg,
            #0d253d,
            #153955
        );
    color: white;
    flex-direction: column;
}

.platform-brand {
    display: block;
    padding: 5px 10px 28px;
    color: white;
    text-decoration: none;
}

.platform-brand-name {
    display: block;
    font-size: 2.15rem;
    font-weight: 850;
    letter-spacing: -0.05em;
}

.platform-brand-description {
    display: block;
    margin-top: 7px;
    color: #bfd3e2;
    font-size: 0.83rem;
    line-height: 1.45;
}

.platform-navigation {
    display: flex;
    gap: 7px;
    flex-direction: column;
}

.platform-nav-group {
    display: flex;
    gap: 7px;
    flex-direction: column;
}

.platform-nav-group-label {
    margin: 10px 12px 3px;
    color: #89a7bc;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.platform-nav-divider {
    height: 1px;
    margin: 12px 10px;
    background: rgba(255, 255, 255, 0.12);
}

.platform-nav-copy {
    display: flex;
    gap: 2px;
    flex-direction: column;
}

.platform-nav-copy small {
    color: #88a2b5;
    font-size: 0.65rem;
    font-weight: 650;
    line-height: 1.2;
}

.platform-nav-link-disabled {
    cursor: default;
    opacity: 0.58;
}

.platform-nav-link-disabled:hover {
    border-color: transparent;
    background: transparent;
    color: #d7e5ef;
}

.platform-nav-link {
    display: grid;
    grid-template-columns: 29px 1fr;
    align-items: center;
    gap: 10px;
    min-height: 49px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #d7e5ef;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    transition:
        background 150ms ease,
        border-color 150ms ease,
        color 150ms ease;
}

.platform-nav-link:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.platform-nav-link.active {
    border-color: rgba(151, 202, 239, 0.33);
    background: rgba(104, 169, 217, 0.19);
    color: white;
}

.platform-nav-icon {
    font-size: 1.1rem;
    text-align: center;
}

.platform-sidebar-footer {
    display: flex;
    gap: 5px;
    margin-top: auto;
    padding: 20px 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #9fb6c8;
    font-size: 0.72rem;
    flex-direction: column;
}

.platform-main {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
}

.platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 102px;
    padding: 22px 36px;
    border-bottom: 1px solid #dce5ec;
    background: white;
}

.platform-header-eyebrow,
.platform-section-eyebrow {
    margin: 0 0 6px;
    color: #2463a6;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.platform-header h1 {
    margin: 0;
    color: #102a43;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    letter-spacing: -0.025em;
}

.platform-content {
    width: min(1220px, 100%);
    margin: 0 auto;
    padding: 34px 36px 55px;
    flex: 1;
}

.platform-welcome {
    padding: 28px 30px;
    border: 1px solid #dce5ec;
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f5f9fc
        );
    box-shadow: 0 10px 30px rgba(16, 42, 67, 0.06);
}

.platform-welcome h2,
.platform-section-heading h2 {
    margin: 0;
    color: #102a43;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    letter-spacing: -0.025em;
}

.platform-welcome > p:last-child {
    margin: 10px 0 0;
    color: #657786;
}

.platform-workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    margin-top: 21px;
}

.platform-workspace-grid--tools
.platform-workspace-card {
    min-height: 142px;
    padding: 21px 23px;
}

.platform-workspace-grid--tools
.platform-workspace-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}

.platform-workspace-grid--tools
.platform-workspace-card h3 {
    font-size: 1rem;
}

.platform-workspace-grid--tools
.platform-workspace-card p {
    font-size: 0.84rem;
}

.platform-workspace-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 17px;
    min-height: 168px;
    padding: 25px;
    border: 1px solid #dce5ec;
    border-radius: 15px;
    background: white;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 7px 22px rgba(16, 42, 67, 0.045);
    transition:
        transform 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.platform-workspace-card:hover {
    transform: translateY(-3px);
    border-color: #9ebcd3;
    box-shadow: 0 14px 31px rgba(16, 42, 67, 0.09);
}

.platform-workspace-card.available {
    border-color: #9ec5e1;
    background:
        linear-gradient(
            145deg,
            white,
            #f1f8fd
        );
}

.platform-workspace-card.planned {
    cursor: default;
    opacity: 0.88;
}

.platform-workspace-card.planned:hover {
    transform: none;
    border-color: #dce5ec;
    box-shadow: 0 7px 22px rgba(16, 42, 67, 0.045);
}

.platform-workspace-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 12px;
    background: #edf5fb;
    font-size: 1.45rem;
}

.platform-workspace-card h3 {
    margin: 2px 0 8px;
    color: #102a43;
    font-size: 1.12rem;
}

.platform-workspace-card p {
    margin: 0;
    color: #657786;
    font-size: 0.9rem;
    line-height: 1.58;
}

.platform-workspace-arrow {
    align-self: center;
    color: #2463a6;
    font-size: 1.4rem;
    transition: transform 150ms ease;
}

.platform-workspace-card:hover .platform-workspace-arrow {
    transform: translateX(4px);
}

.platform-workspace-status {
    display: inline-block;
    margin-top: 13px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf1f4;
    color: #667886;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.platform-activity {
    margin-top: 42px;
}

.platform-section-heading {
    margin-bottom: 17px;
}

.platform-activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.platform-activity-card {
    display: flex;
    min-height: 132px;
    padding: 21px;
    border: 1px solid #dce5ec;
    border-radius: 14px;
    background: white;
    box-shadow: 0 6px 20px rgba(16, 42, 67, 0.04);
    flex-direction: column;
}

.platform-activity-card > span {
    color: #657786;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.platform-activity-card strong {
    margin: auto 0 5px;
    color: #102a43;
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

.platform-activity-card small {
    color: #657786;
}

.platform-preview-note {
    margin: 14px 0 0;
    color: #728391;
    font-size: 0.78rem;
}

.platform-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    padding: 25px 36px;
    border-top: 1px solid #dce5ec;
    background: #eaf0f4;
    color: #657786;
    font-size: 0.76rem;
}

.platform-footer > div {
    display: flex;
    gap: 4px;
    flex-direction: column;
}

.platform-footer strong {
    color: #102a43;
}

.platform-footer p {
    margin: 0;
}

@media (max-width: 920px) {
    .platform-shell {
        grid-template-columns: 1fr;
    }

    .platform-sidebar {
        position: static;
        height: auto;
        padding: 20px;
    }

    .platform-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
    
    .platform-nav-group {
        align-content: start;
    }
    
    .platform-nav-divider {
        display: none;
    }
    
    .platform-nav-group {
        align-content: start;
    }
    
    .platform-nav-divider {
        display: none;
    }

    .platform-sidebar-footer {
        margin-top: 20px;
    }

    .platform-workspace-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .platform-navigation {
        grid-template-columns: 1fr;
    }

    .platform-header {
        align-items: flex-start;
        padding: 20px;
        flex-direction: column;
    }

    .platform-content {
        padding: 24px 18px 40px;
    }

    .platform-workspace-card {
        grid-template-columns: 46px minmax(0, 1fr);
        min-height: 0;
        padding: 21px;
    }

    .platform-workspace-arrow {
        display: none;
    }

    .platform-activity-grid {
        grid-template-columns: 1fr;
    }

    .platform-footer {
        align-items: flex-start;
        padding: 22px 20px;
        flex-direction: column;
    }
}

/* ==========================================================
   PROPERTY INTELLIGENCE WORKSPACE
   ========================================================== */

   .property-search-panel {
    margin-top: 28px;
    padding: 30px;
    border: 1px solid #dce5ec;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 26px rgba(16, 42, 67, 0.05);
}

.property-search-panel
.platform-section-heading {
    margin-bottom: 24px;
}

.property-search-panel
.platform-section-heading p:last-child {
    margin: 10px 0 0;
    color: #657786;
    line-height: 1.6;
}

.property-search-form label {
    display: block;
    margin-bottom: 8px;
    color: #102a43;
    font-size: 0.88rem;
    font-weight: 750;
}

.property-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.property-search-row input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #bdccd8;
    border-radius: 10px;
    outline: none;
    background: white;
    color: #243746;
}

.property-search-row input:focus {
    border-color: #2463a6;
    box-shadow:
        0 0 0 4px rgba(36, 99, 166, 0.12);
}

.property-search-row button {
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: #2463a6;
    color: white;
    font-weight: 750;
    cursor: pointer;
}

.property-search-row button:hover {
    filter: brightness(0.96);
}

.property-search-row button:disabled {
    cursor: wait;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .property-search-panel {
        padding: 22px;
    }

    .property-search-row {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================
   PROPERTY INTELLIGENCE REPORT
   ========================================================== */

   .property-status {
    min-height: 24px;
    margin-top: 15px;
    font-size: 0.88rem;
    font-weight: 650;
}

.property-status.loading {
    color: #2463a6;
}

.property-status.error {
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: 9px;
    background: #fef3f2;
    color: #b42318;
}

.property-report {
    margin-top: 30px;
}

.property-report-header {
    padding: 27px 30px;
    border: 1px solid #dce5ec;
    border-radius: 16px;
    background: white;
    box-shadow:
        0 8px 26px rgba(16, 42, 67, 0.05);
}

.property-report-header h2 {
    margin: 0;
    color: #102a43;
    font-size: clamp(
        1.65rem,
        3vw,
        2.2rem
    );
    letter-spacing: -0.025em;
}

.property-report-location {
    margin: 8px 0 0;
    color: #657786;
}

.property-summary-section {
    margin-top: 27px;
}

.property-metric-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 17px;
}

.property-metric-card {
    display: flex;
    min-height: 150px;
    padding: 22px;
    border: 1px solid #dce5ec;
    border-radius: 14px;
    background: white;
    box-shadow:
        0 6px 20px rgba(16, 42, 67, 0.04);
    flex-direction: column;
}

.property-metric-card.featured {
    border-color: #9ec5e1;
    background:
        linear-gradient(
            145deg,
            white,
            #edf6fc
        );
}

.property-metric-label {
    color: #657786;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.property-metric-value {
    margin: auto 0 6px;
    color: #102a43;
    font-size: clamp(
        1.55rem,
        2.5vw,
        2rem
    );
}

.property-metric-detail {
    color: #657786;
    font-size: 0.78rem;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .property-metric-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .property-metric-grid {
        grid-template-columns: 1fr;
    }

    .property-report-header {
        padding: 22px;
    }
}

/* ==========================================================
   PROPERTY STORY AND ASSESSMENT
   ========================================================== */

   .property-story-section {
    margin-top: 34px;
}

.property-story-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 17px;
}

.property-story-card,
.property-conclusion-card {
    padding: 25px;
    border: 1px solid #dce5ec;
    border-radius: 15px;
    background: white;
    box-shadow:
        0 6px 20px rgba(16, 42, 67, 0.04);
}

.property-story-card h3,
.property-conclusion-card h3 {
    margin: 0 0 15px;
    color: #102a43;
    font-size: 1.08rem;
}

.property-story-card p,
.property-conclusion-card p {
    margin: 0 0 12px;
    color: #435566;
    line-height: 1.68;
}

.property-story-card p:last-child,
.property-conclusion-card p:last-child {
    margin-bottom: 0;
}

.property-observation-list {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-direction: column;
}

.property-observation-list li {
    position: relative;
    padding-left: 25px;
    color: #435566;
    line-height: 1.55;
}

.property-observation-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #147d64;
    content: "✓";
    font-weight: 850;
}

.property-conclusion-card {
    margin-top: 18px;
    border-color: #a8c8df;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f1f8fd
        );
}

@media (max-width: 800px) {
    .property-story-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   PROPERTY WORKSPACE — PROFESSIONAL POLISH
   ========================================================== */

   .property-report {
    margin-top: 26px;
}

.property-report-header {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto;
    align-items: center;
    gap: 35px;
    padding: 27px 30px;
}

.property-report-identity {
    min-width: 0;
}

.property-report-header
.platform-section-eyebrow {
    margin-bottom: 7px;
    font-size: 0.68rem;
}

.property-report-header h2 {
    font-size: clamp(
        1.75rem,
        3vw,
        2.35rem
    );
    text-transform: none;
}

.property-report-location {
    margin-top: 6px;
    font-size: 0.96rem;
}

.property-report-parcel {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 13px 0 0;
    color: #657786;
    font-size: 0.76rem;
}

.property-report-parcel span {
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.property-report-parcel strong {
    color: #334e68;
    font-weight: 700;
}

.property-header-facts {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    flex-direction: column;
}

.property-header-fact {
    display: inline-flex;
    min-width: 145px;
    justify-content: center;
    padding: 7px 13px;
    border: 1px solid #d6e2eb;
    border-radius: 999px;
    background: #f5f9fc;
    color: #334e68;
    font-size: 0.78rem;
    font-weight: 700;
}

.property-summary-section {
    margin-top: 24px;
}

.property-summary-section
.platform-section-heading {
    margin-bottom: 14px;
}

.property-metric-grid {
    gap: 14px;
    margin-top: 0;
}

.property-metric-card {
    min-height: 190px;
    padding: 20px;
}

.property-metric-label {
    min-height: 30px;
}

.property-metric-value {
    margin: 15px 0 5px;
    font-size: clamp(
        1.55rem,
        2.4vw,
        1.95rem
    );
}

.property-metric-detail {
    min-height: 35px;
}

.property-metric-secondary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e3eaf0;
}

.property-metric-secondary-label {
    color: #728391;
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.property-metric-secondary-value {
    color: #102a43;
    font-size: 0.76rem;
    text-align: right;
}

.property-story-section {
    margin-top: 28px;
}

.property-story-section
.platform-section-heading {
    margin-bottom: 14px;
}

.property-story-grid {
    gap: 15px;
    margin-top: 0;
}

.property-story-card {
    padding: 22px 24px;
}

.property-story-card h3 {
    margin-bottom: 17px;
}

.property-story-narrative {
    display: flex;
    flex-direction: column;
}

.property-story-narrative-item {
    padding: 0 0 16px;
}

.property-story-narrative-item +
.property-story-narrative-item {
    padding-top: 16px;
    border-top: 1px solid #e3eaf0;
}

.property-story-narrative-item:last-child {
    padding-bottom: 0;
}

.property-story-narrative-item h4 {
    margin: 0 0 6px;
    color: #2463a6;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.property-story-narrative-item p {
    margin: 0;
    color: #435566;
    line-height: 1.62;
}

.property-observation-list {
    gap: 11px;
}

.property-observation-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid #dce9e4;
    border-radius: 10px;
    background: #f6faf8;
}

.property-observation-item::before {
    display: none;
}

.property-observation-indicator {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: #dff3eb;
    color: #147d64;
    font-size: 0.75rem;
    font-weight: 900;
}

.property-observation-text {
    padding-top: 2px;
    color: #334e68;
    line-height: 1.48;
}

.property-conclusion-card {
    position: relative;
    margin-top: 15px;
    padding: 25px 28px 25px 31px;
    overflow: hidden;
    border: 1px solid #9fc4df;
    border-left: 5px solid #147d64;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f0f8f5
        );
    box-shadow:
        0 8px 24px rgba(16, 42, 67, 0.05);
}

.property-conclusion-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
}

.property-conclusion-check {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: #147d64;
    color: white;
    font-size: 0.8rem;
    font-weight: 900;
}

.property-conclusion-heading h3 {
    margin: 0;
    color: #102a43;
    font-size: 1.05rem;
}

.property-conclusion-card p {
    max-width: 1050px;
    margin: 0;
    color: #334e68;
    font-size: 0.96rem;
    line-height: 1.7;
}

@media (max-width: 1050px) {
    .property-report-header {
        grid-template-columns: 1fr;
    }

    .property-header-facts {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .property-header-fact {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .property-report-header {
        padding: 22px;
    }

    .property-header-facts {
        gap: 7px;
    }

    .property-header-fact {
        width: 100%;
    }

    .property-report-parcel {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .property-metric-card {
        min-height: 170px;
    }

    .property-conclusion-card {
        padding: 22px;
    }
}

/* ==========================================================
   REIP DEFINITION TABLE
   Property Profile and reusable label/value sections
   ========================================================== */

.property-profile-section {
    margin-top: 30px;
}

.property-profile-section
.platform-section-heading {
    margin-bottom: 14px;
}

.definition-table-card {
    padding: 24px 28px;
    border: 1px solid #dce5ec;
    border-radius: 15px;
    background: #ffffff;
    box-shadow:
        0 6px 20px rgba(16, 42, 67, 0.04);
}

.definition-table-title {
    margin: 0 0 18px;
    color: #102a43;
    font-size: 1.05rem;
}

.definition-table-title:empty {
    display: none;
}

.definition-table-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 0 42px;
}

.definition-table-column {
    min-width: 0;
}

.definition-table-row {
    display: grid;
    grid-template-columns:
        minmax(120px, 0.9fr)
        minmax(0, 1.25fr);
    align-items: center;
    gap: 18px;
    min-height: 52px;
    border-bottom: 1px solid #e6edf2;
}

.definition-table-row:last-child {
    border-bottom: 0;
}

.definition-table-label {
    color: #657786;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.definition-table-value {
    min-width: 0;
    color: #102a43;
    font-size: 0.94rem;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.definition-table-column:first-child {
    padding-right: 20px;
    border-right: 1px solid #e6edf2;
}

.definition-table-column:last-child {
    padding-left: 20px;
}


/* Slight emphasis for monetary values and key identifiers */

.definition-table-row:hover {
    background: #f8fafc;
}

.definition-table-row:hover
.definition-table-label {
    color: #2463a6;
}


/* Tablet */

@media (max-width: 900px) {
    .definition-table-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .definition-table-column:first-child {
        padding-right: 0;
        border-right: 0;
    }

    .definition-table-column:last-child {
        padding-left: 0;
        border-top: 1px solid #dce5ec;
    }
}


/* Mobile */

@media (max-width: 640px) {
    .definition-table-card {
        padding: 20px;
    }

    .definition-table-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 5px;
        min-height: 0;
        padding: 13px 0;
    }

    .definition-table-label {
        font-size: 0.68rem;
    }

    .definition-table-value {
        font-size: 0.92rem;
        text-align: left;
    }
}

/* Property Profile section separation */

.property-profile-section {
    margin-top: 44px;
}
.definition-table-card {
    padding-top: 20px;
    padding-bottom: 20px;
}

.definition-table-row {
    min-height: 49px;
}

.definition-table-value {
    font-variant-numeric:
        tabular-nums;
}


/* ==========================================================
   REIP PROFESSIONAL DATA FORMATTING
   ========================================================== */

   .property-report-parcel strong,
   .property-header-fact,
   .property-metric-value,
   .property-metric-secondary-value,
   .definition-table-value {
       font-variant-numeric:
           tabular-nums;
   }
   
   .property-report-location {
       letter-spacing: 0.005em;
   }
   
   .property-report-parcel strong {
       overflow-wrap: anywhere;
   }

   .property-search-results{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.search-result-card{
    background:#fff;
    border:1px solid #d9e3ef;
    border-radius:14px;
    padding:22px;
}

.search-result-address{
    font-size:1.2rem;
    font-weight:700;
    color:#16324f;
}

.search-result-details{
    margin-top:6px;
    color:#5b6f82;
}

.search-result-button{
    margin-top:18px;
}

/* ==========================================================
   PROPERTY COPY ACTIONS
   ========================================================== */

   .property-address-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.property-address-row h2 {
    min-width: 0;
    margin: 0;
}

.property-copy-button {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid #c9d8e3;
    border-radius: 8px;
    background: #ffffff;
    color: #2463a6;
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
    transition:
        background 150ms ease,
        border-color 150ms ease,
        color 150ms ease;
}

.property-copy-button:hover {
    border-color: #2463a6;
    background: #f2f7fb;
}

.property-copy-button.copied {
    border-color: #9fd3c2;
    background: #eef9f5;
    color: #147d64;
}

.property-report-parcel {
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .property-address-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* ==========================================================
   PROPERTY LOCATION MAP
   ========================================================== */

.property-location-workspace {
    margin-top: 44px;
}

.property-location-workspace
.platform-section-heading {
    margin-bottom: 14px;
}

.property-map-card {
    overflow: hidden;
    border: 1px solid #dce5ec;
    border-radius: 15px;
    background: #ffffff;
    box-shadow:
        0 6px 20px rgba(16, 42, 67, 0.04);
}

.property-map {
    width: 100%;
    height: 430px;
    border-bottom:
        1px solid #e3eaf0;
    background: #eef3f7;
}

.property-map-coordinates {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 22px 0;
    color: #657786;
    font-size: 0.82rem;
    font-variant-numeric:
        tabular-nums;
}

.property-location-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 22px 22px;
}

.property-map-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #2463a6;
    border-radius: 9px;
    background: #2463a6;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
}

.property-map-action:hover {
    background: #1e538c;
}

.property-map-action.secondary {
    background: #ffffff;
    color: #2463a6;
}

.property-map-action.secondary:hover {
    background: #f2f7fb;
}

.property-map-unavailable {
    padding: 32px 24px;
    border: 1px solid #dce5ec;
    border-radius: 15px;
    background: #ffffff;
    color: #657786;
    text-align: center;
}

.leaflet-container {
    font-family: inherit;
}

@media (max-width: 640px) {
    .property-map {
        height: 320px;
    }

    .property-map-coordinates {
        flex-direction: column;
        gap: 5px;
    }

    .property-location-actions {
        flex-direction: column;
    }
}




/* ==========================================================
   COMPARABLE INTELLIGENCE
   ========================================================== */

.comparable-intelligence-description {
    max-width: 760px;
    margin: -6px 0 22px;
    color: var(--muted);
    line-height: 1.65;
}

.comparable-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.comparable-intelligence-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px;
    border: 1px solid #dce5eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(20, 42, 62, 0.07);
}

.comparable-intelligence-card--strongest {
    border-top: 4px solid var(--blue);
}

.comparable-intelligence-card--lowest {
    border-top: 4px solid #8a97a3;
}

.comparable-intelligence-card-eyebrow {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comparable-intelligence-card--lowest
.comparable-intelligence-card-eyebrow {
    color: #5e6d79;
}

.comparable-intelligence-address {
    margin: 0;
    color: var(--navy);
    font-size: 1.25rem;
    line-height: 1.35;
}

.comparable-intelligence-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.comparable-intelligence-fact {
    min-width: 0;
}

.comparable-intelligence-label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.comparable-intelligence-value {
    display: block;
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.comparable-intelligence-button {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 16px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    background: transparent;
    color: var(--blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.comparable-intelligence-button:hover {
    background: var(--blue);
    color: #ffffff;
    transform: translateY(-1px);
}

.comparable-intelligence-button:focus-visible {
    outline: 3px solid rgba(30, 111, 174, 0.25);
    outline-offset: 3px;
}

.comparable-intelligence-button:disabled {
    border-color: #b9c3cb;
    color: #8b98a3;
    cursor: not-allowed;
    transform: none;
}


/* ==========================================================
   COMPARABLE SALES TABLE
   ========================================================== */

.comparable-table-card {
    overflow: hidden;
    border: 1px solid #dce5eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(20, 42, 62, 0.06);
}

.comparable-table-scroll {
    overflow-x: auto;
}

.comparable-sales-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.comparable-sales-table th,
.comparable-sales-table td {
    padding: 15px 16px;
    border-bottom: 1px solid #e7edf1;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.comparable-sales-table th {
    background: #f5f8fa;
    color: #536473;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.comparable-sales-table td {
    color: #344858;
    font-size: 0.9rem;
}

.comparable-sales-table tbody tr {
    scroll-margin-top: 120px;
    transition:
        background-color 200ms ease,
        box-shadow 200ms ease;
}

.comparable-sales-table tbody tr:hover {
    background: #f8fbfd;
}

.comparable-sales-table tbody tr:last-child td {
    border-bottom: 0;
}

.comparable-rank-cell {
    color: var(--muted);
    font-weight: 700;
}

.comparable-address-cell {
    color: var(--navy) !important;
    font-weight: 700;
}

.comparable-table-empty,
.comparable-workspace-message {
    margin: 0;
    padding: 26px;
    color: var(--muted);
}

.comparable-row-highlight {
    animation: comparableRowHighlight 3s ease;
}

@keyframes comparableRowHighlight {
    0% {
        background-color: #fff1a8;
        box-shadow: inset 4px 0 0 #d3a900;
    }

    25% {
        background-color: #fff6c9;
        box-shadow: inset 4px 0 0 #d3a900;
    }

    100% {
        background-color: transparent;
        box-shadow: inset 4px 0 0 transparent;
    }
}


@media (max-width: 900px) {
    .comparable-intelligence-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 620px) {
    .comparable-intelligence-card {
        padding: 21px;
    }

    .comparable-intelligence-facts {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .comparable-intelligence-button {
        width: 100%;
    }
}


@media (prefers-reduced-motion: reduce) {
    .comparable-intelligence-button,
    .comparable-sales-table tbody tr {
        transition: none;
    }

    .comparable-row-highlight {
        animation: none;
        background-color: #fff6c9;
        box-shadow: inset 4px 0 0 #d3a900;
    }
}

/* ==========================================================
   EXECUTIVE SUMMARY
   ========================================================== */

   .executive-summary-card {
    margin-top: 24px;
    padding: 26px 28px;
    border: 1px solid #dce5eb;
    border-left: 4px solid var(--blue);
    border-radius: 14px;
    background: #f8fbfd;
    box-shadow: 0 8px 22px rgba(20, 42, 62, 0.06);
}

.executive-summary-title {
    margin: 4px 0 12px;
    color: var(--navy);
    font-size: 1.2rem;
    line-height: 1.35;
}

.executive-summary-narrative {
    margin: 0;
    color: #435566;
    line-height: 1.75;
    white-space: pre-line;
}

@media (max-width: 620px) {
    .executive-summary-card {
        padding: 21px;
    }
}

.property-map-unavailable {
    padding: 28px;
    border: 1px solid #dce5eb;
    border-radius: 14px;
    background: #ffffff;
    color: var(--muted);
}

.property-map-unavailable h2 {
    margin: 4px 0 10px;
    color: var(--navy);
}

.comparable-map-card {
    margin-top: 2rem;
}

.comparable-map {
    width: 100%;
    height: 550px;
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.comparable-map-popup {
    min-width: 210px;
    line-height: 1.5;
}

.comparable-map-view {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
}

.reip-map-marker-wrapper {
    background: transparent;
    border: 0;
}

.reip-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    border: 3px solid #ffffff;
    border-radius: 50%;

    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;

    box-shadow:
        0 3px 8px rgba(15, 23, 42, 0.35);

    cursor: pointer;
    user-select: none;
}

.reip-map-marker:hover {
    transform: scale(1.08);
}

.reip-map-marker-subject {
    font-size: 1rem;
}

.reip-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.reip-status-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    line-height: 1;
}

.reip-status-badge-success {
    border-color: #b7ddc4;
    background: #edf8f1;
    color: #176b3a;
}

.reip-status-badge-warning {
    border-color: #ead39a;
    background: #fff8e6;
    color: #8a6111;
}

.reip-status-badge-danger {
    border-color: #efb8b8;
    background: #fff0f0;
    color: #a32626;
}

.reip-status-badge-info {
    border-color: #b9d8ea;
    background: #edf6fc;
    color: #245f84;
}

.reip-status-badge-neutral {
    border-color: #dce5ec;
    background: #f5f9fc;
    color: #334e68;
}

.reip-action-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid #dce5ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 6px 20px rgba(16, 42, 67, 0.04);
}

.reip-action-toolbar-label {
    display: flex;
    min-width: 180px;
    flex-direction: column;
    gap: 3px;
}

.reip-action-toolbar-eyebrow {
    color: #657786;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.reip-action-toolbar-title {
    color: #102a43;
    font-size: 0.95rem;
}

.reip-action-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.reip-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #2f80b7;
    border-radius: 9px;
    background: #2f80b7;
    color: #ffffff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
}

.reip-action-button.secondary {
    border-color: #cbdbe7;
    background: #f5f9fc;
    color: #245f84;
}

.reip-action-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.reip-action-button:focus-visible {
    outline: 3px solid rgba(47, 128, 183, 0.22);
    outline-offset: 2px;
}

.reip-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.reip-action-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 760px) {
    .reip-action-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .reip-action-toolbar-actions {
        justify-content: flex-start;
    }
}


/* ==========================================================
   COMPARABLE RANKING
   ========================================================== */

   .comparable-ranking-section {

    margin-top: 28px;

}

.comparable-ranking-grid {

    display: grid;
    gap: 14px;
    margin-top: 18px;

}

.comparable-ranking-card {

    padding: 18px;

    border: 1px solid #dce5ec;

    border-radius: 14px;

    background: white;

    box-shadow:
        0 5px 18px rgba(16,42,67,.04);

}

.comparable-ranking-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.comparable-ranking-left {

    display: flex;

    align-items: center;

    gap: 12px;

}

.comparable-ranking-medal {
    display: inline-flex;
    min-width: 30px;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    line-height: 1;
}

.comparable-ranking-subtitle {
    max-width: 720px;
    margin: 8px 0 0;
    color: #627d98;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .comparable-ranking-header {
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }

    .comparable-ranking-right {
        justify-content: flex-start;
    }
}

.comparable-ranking-address {

    margin: 0;

    color: #102a43;

    font-size: 1.05rem;

}

.comparable-ranking-score {

    color: #2f80b7;

    font-size: 1.3rem;

    font-weight: 800;

}

.comparable-ranking-facts {

    display: flex;

    gap: 18px;

    margin-top: 10px;

    color: #627d98;

    font-size: .92rem;

}

/* ==========================================================
   QUALITY BADGE
   ========================================================== */

   .quality-badge {

    display: inline-flex;
    align-items: center;

    padding: 4px 10px;

    border-radius: 999px;

    font-size: .72rem;

    font-weight: 700;

    letter-spacing: .02em;

}

.quality-badge.excellent {

    background: #dff7e8;
    color: #146c43;

}

.quality-badge.very-strong {

    background: #e6f2ff;
    color: #1f5fa8;

}

.quality-badge.strong {

    background: #eef7ff;
    color: #2f80b7;

}

.quality-badge.good {

    background: #fff6d8;
    color: #8a6d00;

}

.quality-badge.fair {

    background: #f5f5f5;
    color: #666;

}

.comparable-ranking-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================
   SIMILARITY BAR
   ========================================================== */

   .similarity-bar {
    margin-top: 10px;
}

.similarity-bar-track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eef4;
}

.similarity-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #2f80b7,
        #67b3e4
    );
    transition: width 250ms ease;
}

.comparable-expand-button {

    margin-top: 16px;

    padding: 8px 14px;

    border: 1px solid #d4dde7;

    border-radius: 999px;

    background: white;

    color: #245a8d;

    font-weight: 700;

    cursor: pointer;

}

.comparable-expand-button:hover {

    background: #f5f9fc;

}

.comparable-analysis {

    margin-top: 20px;

    padding: 18px;

    border-radius: 12px;

    background: #f8fbfd;

}

.analysis-panel {

    padding: 22px;

    border: 1px solid #dde7ef;

    border-radius: 12px;

    background: white;

}

.analysis-label {

    color: #5d7488;

    font-size: .75rem;

    text-transform: uppercase;

    letter-spacing: .06em;

    font-weight: 700;

}

.analysis-score {

    margin: 8px 0 20px;

    font-size: 2rem;

    color: #17324d;

}

.analysis-metric {

    display: flex;

    justify-content: space-between;

    padding: 10px 0;

    border-top: 1px solid #edf3f8;

}

.analysis-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                320px,
                1fr
            )
        );

    gap: 24px;

}

.analysis-status-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 12px 0;

    border-top: 1px solid #edf3f8;

}

.analysis-success {

    color: #138a52;

    font-weight: 700;

}

.analysis-warning {

    color: #b76a00;

    font-weight: 700;

}

.commentary-section{
    margin-top:1rem;
}

.commentary-title{
    margin:0 0 .35rem;
    font-size:.82rem;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--color-text-secondary);
}

.commentary-text{
    margin:0;
    line-height:1.55;
    color:var(--color-text-primary);
}

.comparable-analysis > .analysis-panel {
    margin-top: 24px;
}

.analysis-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.analysis-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #edf3f8;
}

.analysis-item:last-child {
    border-bottom: none;
}

.analysis-icon {
    flex: none;
    font-weight: 700;
}

/* ==========================================================
   ANALYSIS LIST PANELS
   ========================================================== */

   .analysis-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.analysis-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #edf3f8;
}

.analysis-item:last-child {
    border-bottom: none;
}

.analysis-icon {
    flex: none;
    font-weight: 800;
    line-height: 1.4;
}

.analysis-panel .analysis-label + .analysis-list {
    margin-top: 12px;
}

.analysis-panel:has(.analysis-icon:first-child) {
    /* keeps current card styling unchanged */
}

.analysis-icon {
    color: #138a52;
}

.analysis-panel:last-child .analysis-icon {
    color: #b76a00;
}

.analysis-strengths-panel .analysis-icon {
    color: #138a52;
}

.analysis-considerations-panel .analysis-icon {
    color: #b76a00;
}

.analysis-commentary-panel {
    grid-column: 1 / -1;
}

.analysis-commentary-panel
.commentary-text {
    max-width: 70ch;
}