/* ==========================================================================================
   MoveFaster.ca — CMA / My Home Value Tab Styles
   Appended to my-account-style.css (page ID: 10592)
   ========================================================================================== */

/* ── CMA Hero Row (Subject + AVM side by side) ── */
body.page-id-10592 .cma-hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}
@media (max-width: 767px) {
    body.page-id-10592 .cma-hero-row {
        grid-template-columns: 1fr;
    }
}

/* ── Subject Property Card ── */
body.page-id-10592 .cma-subject-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 4px 0;
}
body.page-id-10592 .cma-subject-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}
body.page-id-10592 .cma-subject-addr {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}
body.page-id-10592 .cma-subject-city {
    font-size: 13px;
    color: #6b7280;
    margin-top: 3px;
}
body.page-id-10592 .cma-subject-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
body.page-id-10592 .cma-subject-details span {
    background: rgba(0, 123, 255, 0.10);
    color: #007bff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid rgba(0, 123, 255, 0.20);
}
body.page-id-10592 .cma-subject-notes {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin-top: 8px;
    line-height: 1.5;
}
body.page-id-10592 .cma-subject-empty,
body.page-id-10592 .cma-avm-empty {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-size: 14px;
}

/* ── AVM Widget ── */
body.page-id-10592 .cma-avm-widget {
    text-align: center;
    padding: 4px 0;
}
body.page-id-10592 .cma-avm-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    margin-bottom: 6px;
}
body.page-id-10592 .cma-avm-mid {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}
body.page-id-10592 .cma-avm-range-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
body.page-id-10592 .cma-avm-low,
body.page-id-10592 .cma-avm-high {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
    min-width: 70px;
}
body.page-id-10592 .cma-avm-low { text-align: right; }
body.page-id-10592 .cma-avm-high { text-align: left; }
body.page-id-10592 .cma-avm-bar-wrap { flex: 1; }
body.page-id-10592 .cma-avm-bar {
    position: relative;
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    overflow: visible;
}
body.page-id-10592 .cma-avm-bar-fill {
    position: absolute;
    top: 0; bottom: 0;
    background: linear-gradient(90deg, #16a34a, #007bff);
    border-radius: 50px;
}
body.page-id-10592 .cma-avm-bar-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #007bff;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.40);
}
body.page-id-10592 .cma-avm-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
body.page-id-10592 .cma-avm-updated {
    font-size: 11px;
    color: #9ca3af;
}
body.page-id-10592 .cma-avm-ppsf {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}
body.page-id-10592 .cma-avm-disclaimer {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.5;
    margin-top: 8px;
    padding: 0 4px;
}

/* ── Map ── */
body.page-id-10592 .cma-map-section .gln-ma-section-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
body.page-id-10592 .cma-map-legend {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
body.page-id-10592 .cma-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
body.page-id-10592 .cma-legend-subject { background: #007bff; }
body.page-id-10592 .cma-legend-sold    { background: #16a34a; }
body.page-id-10592 .cma-legend-active  { background: #f59e0b; }
body.page-id-10592 .cma-map-container {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 12px;
    background: rgba(0,0,0,.04);
}
body.page-id-10592 .cma-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    font-size: 14px;
}
@media (max-width: 767px) {
    body.page-id-10592 .cma-map-container { height: 280px; }
}

/* ── Comp Section ── */
body.page-id-10592 .cma-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 50px;
    margin-left: 8px;
    vertical-align: middle;
}
body.page-id-10592 .cma-count-badge--active {
    background: #f59e0b;
}
body.page-id-10592 .cma-no-comps {
    font-size: 14px;
    color: #9ca3af;
    padding: 12px 0;
}

/* ── Comp Grid ── */
body.page-id-10592 .cma-comps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
@media (max-width: 480px) {
    body.page-id-10592 .cma-comps-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Comp Card ── */
body.page-id-10592 .cma-comp-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.90);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
body.page-id-10592 .cma-comp-card:hover,
body.page-id-10592 .cma-comp-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    outline: none;
}
body.page-id-10592 .cma-comp-card--active {
    border-color: #007bff !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.30), 0 12px 32px rgba(0, 0, 0, 0.14) !important;
}
body.page-id-10592 .cma-comp-photo {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0,0,0,.06);
    position: relative;
}
body.page-id-10592 .cma-comp-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.08));
}
body.page-id-10592 .cma-comp-no-photo {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 20px;
}
body.page-id-10592 .cma-comp-status {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 3px 8px;
    border-radius: 50px;
    color: #fff;
}
body.page-id-10592 .cma-comp-sold   { background: #16a34a; }
body.page-id-10592 .cma-comp-active { background: #f59e0b; }
body.page-id-10592 .cma-comp-body {
    padding: 12px 14px 14px;
}
body.page-id-10592 .cma-comp-price {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}
body.page-id-10592 .cma-comp-price-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .04em;
}
body.page-id-10592 .cma-comp-addr {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.page-id-10592 .cma-comp-city {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 1px;
}
body.page-id-10592 .cma-comp-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
body.page-id-10592 .cma-comp-details span {
    font-size: 11px;
    color: #6b7280;
    background: rgba(0,0,0,.05);
    padding: 2px 7px;
    border-radius: 50px;
}
body.page-id-10592 .cma-comp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
body.page-id-10592 .cma-comp-ppsf {
    font-size: 11px;
    font-weight: 700;
    color: #007bff;
}
body.page-id-10592 .cma-comp-dom {
    font-size: 11px;
    color: #9ca3af;
}
body.page-id-10592 .cma-comp-dist {
    font-size: 11px;
    color: #9ca3af;
}
body.page-id-10592 .cma-comp-date {
    font-size: 11px;
    color: #16a34a;
    font-weight: 600;
    margin-top: 4px;
}

/* ── Insights Grid ── */
body.page-id-10592 .cma-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
body.page-id-10592 .cma-insight-card {
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.80);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
body.page-id-10592 .cma-insight-val {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}
body.page-id-10592 .cma-insight-lbl {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── CTA Section ── */
body.page-id-10592 .cma-cta-section {
    background: linear-gradient(135deg, rgba(0, 80, 200, 0.72) 0%, rgba(0, 40, 120, 0.80) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
body.page-id-10592 .cma-cta-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
body.page-id-10592 .cma-cta-icon {
    font-size: 28px;
    flex-shrink: 0;
}
body.page-id-10592 .cma-cta-text {
    flex: 1;
    font-size: 14px;
    color: rgba(255,255,255,0.90);
    line-height: 1.5;
}
body.page-id-10592 .cma-cta-text strong {
    color: #ffffff;
    font-size: 15px;
}
body.page-id-10592 .cma-cta-btn {
    display: inline-block;
    background: #ffffff;
    color: #0055d4;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.page-id-10592 .cma-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.20);
    text-decoration: none;
    color: #003fa0;
}

/* ── Loading Spinner ── */
body.page-id-10592 .cma-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
    color: #6b7280;
    font-size: 14px;
}
body.page-id-10592 .cma-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 123, 255, 0.20);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: cma-spin 0.8s linear infinite;
}
@keyframes cma-spin {
    to { transform: rotate(360deg); }
}

/* ── Comp Detail Modal ── */
body.page-id-10592 .cma-modal-overlay,
.cma-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cma-modal-overlay.open {
    display: flex;
}
.cma-modal-inner {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.90);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.cma-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0,0,0,.08);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.15s;
}
.cma-modal-close:hover { background: rgba(0,0,0,.15); }
.cma-modal-photo {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0,0,0,.06);
    border-radius: 24px 24px 0 0;
    position: relative;
}
.cma-modal-body {
    padding: 20px 24px 24px;
}
.cma-modal-price {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}
.cma-modal-ppsf {
    font-size: 14px;
    font-weight: 600;
    color: #007bff;
}
.cma-modal-addr {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-top: 4px;
}
.cma-modal-table {
    margin-top: 16px;
    border-top: 1px solid rgba(0,0,0,.08);
}
.cma-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: 13px;
}
.cma-modal-key {
    color: #9ca3af;
    font-weight: 600;
}
.cma-modal-val {
    color: #1a1a1a;
    font-weight: 600;
    text-align: right;
}
.cma-modal-remarks {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 14px;
    padding: 12px;
    background: rgba(0,0,0,.03);
    border-radius: 10px;
    max-height: 120px;
    overflow-y: auto;
}
.cma-modal-view-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #007bff 0%, #0055d4 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 18px;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.30);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cma-modal-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.40);
    color: #ffffff;
    text-decoration: none;
}
