/**
 * Ventura County Market Report - Frontend Styles
 */

.vcmr-report-container {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.7;
}

.vcmr-report-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a365d;
    margin: 0 0 10px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #3182ce;
}

.vcmr-report-date {
    font-size: 14px;
    color: #718096;
    margin: 0 0 25px 0;
    font-style: italic;
}

.vcmr-report-content {
    color: #2d3748;
    font-size: 16px;
}

.vcmr-report-content p {
    margin: 0 0 18px 0;
}

.vcmr-report-content p:last-child {
    margin-bottom: 0;
}

.vcmr-report-content strong,
.vcmr-report-content b {
    color: #1a365d;
    font-weight: 600;
}

.vcmr-report-content ul,
.vcmr-report-content ol {
    margin: 0 0 18px 20px;
    padding: 0;
}

.vcmr-report-content li {
    margin-bottom: 8px;
}

.vcmr-report-disclaimer {
    margin: 25px 0 0 0;
    padding: 15px;
    background: #f7fafc;
    border-left: 4px solid #cbd5e0;
    font-size: 13px;
    color: #718096;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

.vcmr-no-report {
    padding: 40px;
    text-align: center;
    background: #f7fafc;
    border-radius: 8px;
    color: #718096;
}

.vcmr-no-report p {
    margin: 0;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .vcmr-report-container {
        padding: 20px;
        margin: 0 10px;
    }

    .vcmr-report-title {
        font-size: 22px;
    }

    .vcmr-report-content {
        font-size: 15px;
    }

    .vcmr-highlights-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vcmr-highlight-card {
        padding: 20px 15px;
    }

    .vcmr-highlight-number {
        font-size: 40px;
    }

    .vcmr-highlight-label {
        font-size: 10px;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .vcmr-highlight-number {
        font-size: 36px;
    }

    .vcmr-highlight-label {
        font-size: 11px;
    }
}

/* =====================================================
   MLS Live Data Shortcode Styles
   ===================================================== */

.vcmr-mls-report {
    font-family: inherit;
}

.vcmr-mls-report-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a365d;
}

/* Pulse Stats (Today) */
.vcmr-mls-pulse-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.vcmr-mls-stat-card {
    background: #f8f6f3;
    border: 1px solid #e8e4de;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vcmr-mls-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7eb8c9 0%, #a8d4df 50%, #7eb8c9 100%);
}

.vcmr-mls-stat-number {
    display: block;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 8px;
    color: #5a9aab;
}

.vcmr-mls-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b6459;
}

/* Market Context Stats */
.vcmr-mls-market-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.vcmr-mls-market-stat {
    padding: 15px;
    background: #fafafa;
    border-radius: 6px;
    text-align: center;
}

.vcmr-mls-market-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.vcmr-mls-market-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stale Notice */
.vcmr-mls-stale-notice {
    margin-top: 15px;
    padding: 10px;
    background: #fff9e6;
    border-left: 3px solid #f0c14b;
    font-size: 12px;
    color: #735c0f;
}

/* Data Source Notice */
.vcmr-mls-data-source {
    margin-top: 15px;
    padding: 8px 12px;
    background: #f0f7fa;
    border-radius: 4px;
    font-size: 12px;
    color: #4a7c94;
    text-align: center;
}

/* Unavailable / Error */
.vcmr-mls-unavailable,
.vcmr-mls-error {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 6px;
    text-align: center;
    color: #666;
}

.vcmr-mls-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Single Stat */
.vcmr-mls-stat {
    display: inline-flex;
    gap: 5px;
    align-items: baseline;
}

.vcmr-mls-stat .vcmr-mls-stat-label {
    font-size: inherit;
    text-transform: none;
    letter-spacing: normal;
}

.vcmr-mls-stat .vcmr-mls-stat-value {
    font-weight: 600;
}

/* MLS Responsive */
@media (max-width: 768px) {
    .vcmr-mls-pulse-stats {
        grid-template-columns: 1fr;
    }

    .vcmr-mls-market-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .vcmr-mls-stat-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .vcmr-mls-market-stats {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Market Overview Grid (All Regions)
   ===================================================== */

.vcmr-market-overview {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.vcmr-market-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.vcmr-market-card {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.vcmr-market-card-info {
    flex: 1;
    padding: 25px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vcmr-market-card-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 10px;
}

.vcmr-market-card-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: #01467B;
    margin: 0 0 15px 0;
}

.vcmr-market-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.vcmr-market-card-btn {
    display: inline-block;
    background: #01467B;
    color: #fff;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.vcmr-market-card-btn:hover {
    background: #00325A;
    color: #fff;
    text-decoration: none;
}

.vcmr-market-card-stats {
    display: flex;
    flex-direction: column;
    width: 160px;
    flex-shrink: 0;
}

.vcmr-market-card-stat {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 12px;
}

.vcmr-market-card-stat:nth-child(1) {
    background: #01467B;
    color: #fff;
}

.vcmr-market-card-stat:nth-child(2) {
    background: #d4cfc5;
    color: #01467B;
}

.vcmr-market-card-stat:nth-child(3) {
    background: #e8e4dc;
    color: #01467B;
}

.vcmr-market-card-stat-number {
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.vcmr-market-card-stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Market Overview Responsive */
@media (max-width: 1024px) {
    .vcmr-market-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .vcmr-market-card {
        flex-direction: column;
    }

    .vcmr-market-card-stats {
        width: 100%;
        flex-direction: row;
    }

    .vcmr-market-card-stat {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
        gap: 5px;
    }

    .vcmr-market-card-stat-number {
        font-size: 28px;
    }

    .vcmr-market-card-stat-label {
        font-size: 9px;
    }

    .vcmr-market-card-title {
        font-size: 20px;
    }
}


/* ---------- Neighborhood table: [vcmr_neighborhoods] ---------- */
/* Fonts and colors are inherited from the page, so the table follows the site's own styles. */
.vcmr-neighborhoods {
    width: 100%;
}

.vcmr-neighborhoods-city {
    margin: 2.5em 0 0.5em;
}

.vcmr-neighborhoods-city:first-child {
    margin-top: 0;
}

.vcmr-neighborhoods-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vcmr-neighborhoods-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    margin: 0;
    font: inherit;
    color: inherit;
    background: none;
}

.vcmr-neighborhoods-table th,
.vcmr-neighborhoods-table td {
    padding: 14px 16px 14px 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-bottom-color: rgba(128, 140, 145, 0.35);
    background: none;
    text-align: left;
    font-weight: inherit;
    vertical-align: baseline;
}

.vcmr-neighborhoods-table thead th {
    font-size: 0.72em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
    white-space: nowrap;
}

.vcmr-neighborhoods-table .vcmr-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vcmr-neighborhoods-table th:last-child,
.vcmr-neighborhoods-table td:last-child {
    padding-right: 0;
}

.vcmr-neighborhoods-table tbody tr:nth-child(odd) td,
.vcmr-neighborhoods-table tbody tr:nth-child(odd) th,
.vcmr-neighborhoods-table tbody tr:hover > td,
.vcmr-neighborhoods-table tbody tr:hover > th {
    background: none;
}

.vcmr-neighborhoods-note,
.vcmr-neighborhoods-empty {
    margin: 1em 0 0;
    font-size: 0.85em;
    opacity: 0.8;
}


/* ---------- Written market copy: [vcmr_market_summary], [vcmr_city_story], [vcmr_mortgage_rates], [vcmr_takeaways] ---------- */
/* Fonts and colors are inherited from the page. Only the line length and spacing are set here. */
.vcmr-story {
    max-width: 46em;
}

.vcmr-story p {
    margin: 0;
}

.vcmr-takeaways {
    margin: 0;
    padding-left: 1.2em;
}

.vcmr-takeaways li {
    margin: 0 0 0.7em;
}

.vcmr-takeaways li:last-child {
    margin-bottom: 0;
}
