/**
 * Branded Residences API - WordPress Plugin Styles
 * Version: 2.4.0
 * Inherits your theme's existing typography, colors, and spacing
 * Compatible with most WordPress themes including Elementor
 */

/* Base reset for plugin elements - ensures consistent behavior across themes */
.br-brands-directory,
.br-brand-detail,
.br-market-selector-page,
.br-news-feed,
.br-insights-dashboard {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

.br-brands-directory *,
.br-brand-detail *,
.br-market-selector-page *,
.br-news-feed *,
.br-insights-dashboard * {
    box-sizing: border-box;
}

/* News Feed - Uses theme defaults */
.br-news-feed {
    display: grid;
    gap: 1.5em;
}

.br-article {
    background: inherit;
    border: 1px solid currentColor;
    border-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.br-article:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.br-article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.br-article-content {
    padding: 1.25em;
}

.br-article-title {
    font-size: 1.25em;
    font-weight: 600;
    margin: 0 0 0.5em 0;
    line-height: 1.3;
}

.br-article-title a {
    color: inherit;
    text-decoration: none;
}

.br-article-title a:hover {
    text-decoration: underline;
}

.br-article-summary {
    opacity: 0.8;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 1em 0;
}

.br-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    align-items: center;
    margin-bottom: 0.75em;
}

.br-brand-tag {
    background: currentColor;
    color: inherit;
    background-color: rgba(0, 0, 0, 0.08);
    padding: 0.25em 0.75em;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.br-sentiment {
    padding: 0.25em 0.75em;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 500;
}

.br-sentiment-positive {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.br-sentiment-neutral {
    background: rgba(107, 114, 128, 0.15);
    color: #4b5563;
}

.br-sentiment-analytical {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.br-date {
    opacity: 0.6;
    font-size: 0.85em;
}

/* Exclusive/Featured Article Styles - Branded Living Content */
.br-article-exclusive {
    position: relative;
    border: 2px solid #c9a962;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
}

.br-article-featured {
    border-left: 4px solid #c9a962;
}

.br-exclusive-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #c9a962 0%, #a08040 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(201, 169, 98, 0.3);
    z-index: 10;
}

.br-exclusive-badge svg {
    width: 12px;
    height: 12px;
}

/* Dark mode support for exclusive badge */
.dark .br-article-exclusive,
[data-theme="dark"] .br-article-exclusive {
    border-color: #d4af37;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0) 50%);
}

.dark .br-exclusive-badge,
[data-theme="dark"] .br-exclusive-badge {
    background: linear-gradient(135deg, #d4af37 0%, #b8942e 100%);
}

.br-key-insight {
    background: rgba(0, 0, 0, 0.03);
    border-left: 3px solid currentColor;
    border-left-color: rgba(0, 0, 0, 0.2);
    padding: 0.75em 1em;
    margin: 0;
    font-size: 0.9em;
    font-style: italic;
}

/* Brands Grid - Inherits theme styling */
.br-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5em;
}

.br-brand-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 1.5em;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.br-brand-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.br-brand-clickable:hover {
    transform: translateY(-2px);
    cursor: pointer;
}

.br-brand-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.br-brand-link:hover {
    text-decoration: none;
}

.br-brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1em;
}

.br-brand-name {
    font-size: 1.15em;
    font-weight: 600;
    margin: 0 0 0.5em 0;
}

.br-brand-description {
    opacity: 0.75;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0 0 1em 0;
}

.br-brand-meta {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.br-positioning,
.br-project-count {
    font-size: 0.85em;
    opacity: 0.7;
}

.br-positioning {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25em 0.75em;
    border-radius: 3px;
    text-transform: capitalize;
}

/* Brand Performance - Theme-native */
.br-brand-performance {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 1.5em;
}

.br-performance-header {
    text-align: center;
    margin-bottom: 1.5em;
}

.br-performance-header h2 {
    font-size: 1.75em;
    margin: 0 0 0.5em 0;
}

.br-performance-header p {
    opacity: 0.75;
    max-width: 600px;
    margin: 0 auto;
}

.br-performance-stats,
.br-market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1em;
    margin-bottom: 1.5em;
}

.br-stat {
    background: rgba(0, 0, 0, 0.03);
    padding: 1.25em;
    border-radius: 4px;
    text-align: center;
}

.br-stat-value {
    display: block;
    font-size: 2em;
    font-weight: 700;
    line-height: 1;
}

.br-stat-label {
    display: block;
    margin-top: 0.5em;
    font-size: 0.8em;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.br-sentiment-breakdown h3,
.br-recent-news h3,
.br-top-brands h3,
.br-market-news h3 {
    font-size: 1.1em;
    margin: 1.5em 0 0.75em 0;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.br-sentiment-bars {
    display: flex;
    gap: 0.75em;
    flex-wrap: wrap;
}

.br-sentiment-bar {
    background: rgba(0, 0, 0, 0.03);
    padding: 0.5em 1em;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.br-sentiment-label {
    font-weight: 500;
}

.br-sentiment-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2em 0.5em;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
}

.br-recent-news ul,
.br-top-brands ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.br-recent-news li,
.br-top-brands li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.br-recent-news li:last-child,
.br-top-brands li:last-child {
    border-bottom: none;
}

.br-recent-news a {
    color: inherit;
    text-decoration: none;
    flex: 1;
}

.br-recent-news a:hover {
    text-decoration: underline;
}

.br-recent-news time {
    opacity: 0.5;
    font-size: 0.85em;
    margin-left: 1em;
    white-space: nowrap;
}

/* Market Brief - Inherits theme */
.br-market-brief {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 1.5em;
}

.br-market-header {
    text-align: center;
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.br-market-header h2 {
    font-size: 1.75em;
    margin: 0 0 0.5em 0;
}

.br-market-summary {
    opacity: 0.8;
    font-size: 1.05em;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.br-mention-count {
    font-weight: 600;
    font-size: 0.9em;
    opacity: 0.7;
}

.br-news-item {
    padding: 0.6em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.br-news-item a {
    color: inherit;
    text-decoration: none;
}

.br-news-item a:hover {
    text-decoration: underline;
}

/* Error and Empty States */
.br-error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding: 1em 1.25em;
    border-radius: 4px;
    border-left: 3px solid #dc2626;
}

.br-empty {
    background: rgba(0, 0, 0, 0.03);
    padding: 2em;
    border-radius: 4px;
    text-align: center;
    font-style: italic;
    opacity: 0.7;
}

/* Brand Detail Page */
.br-brand-detail {
    max-width: 800px;
}

.br-brand-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.br-brand-detail-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.br-brand-detail-info h1 {
    font-size: 2em;
    margin: 0 0 0.25em 0;
}

.br-brand-detail-description {
    font-size: 1.1em;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 1.5em;
}

.br-brand-markets {
    margin-bottom: 1.5em;
}

.br-brand-markets h3,
.br-brand-news h3,
.br-brand-stats-header {
    font-size: 1.1em;
    margin: 0 0 0.75em 0;
}

.br-brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.br-brand-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1em;
    margin-bottom: 1.5em;
}

.br-brand-news {
    margin-top: 1.5em;
}

.br-active-brands {
    margin: 1.5em 0;
}

.br-active-brands h3 {
    font-size: 1.1em;
    margin: 0 0 0.75em 0;
}

/* ============================================
   ENHANCED AI MATCH HERO SECTION
   Premium, luxurious CTA design
   ============================================ */

.br-ai-match {
    background: linear-gradient(180deg, #faf8f5 0%, #f5f2ed 100%);
    border: 1px solid rgba(139, 115, 85, 0.12);
    border-radius: 24px;
    padding: 4em 3em 4.5em;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 3em auto;
    box-sizing: border-box;
    box-shadow: 0 4px 24px rgba(139, 115, 85, 0.08);
}

.br-ai-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    background: linear-gradient(135deg, #8B7355 0%, #a08060 100%);
    color: #fff;
    padding: 0.65em 1.5em;
    border-radius: 30px;
    font-size: 0.75em;
    font-weight: 600;
    margin-bottom: 2.5em;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(139, 115, 85, 0.3);
}

.br-ai-match-badge svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

.br-ai-match-title {
    font-size: 2.25em;
    font-weight: 300;
    margin: 0 0 0.75em 0;
    color: #333;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.br-ai-match-description {
    font-size: 1.1em;
    line-height: 1.75;
    color: #555;
    margin: 0 auto 2.5em auto;
    max-width: 600px;
}

.br-ai-match-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 3em auto;
    text-align: left;
    display: inline-block;
    max-width: 500px;
}

.br-ai-match-features li {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    padding: 0.75em 0;
    font-size: 1em;
    color: #444;
}

.br-ai-match-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    stroke: #8B7355;
    stroke-width: 2.5;
}

.br-ai-match-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    background: linear-gradient(135deg, #8B7355 0%, #7a6449 100%);
    color: #fff;
    padding: 1.1em 3em;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
}

.br-ai-match-button:hover {
    background: linear-gradient(135deg, #7a6449 0%, #6a5640 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(139, 115, 85, 0.4);
}

.br-ai-match-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.br-ai-match-button:hover svg {
    transform: translateX(3px);
}

/* ============================================
   INSIGHTS DASHBOARD - Stat Ribbon & Cards
   ============================================ */

/* Stat Ribbon - Horizontal stats bar */
.br-stat-ribbon {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
    padding: 2em;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.02) 100%);
    border-radius: 12px;
    margin-bottom: 2em;
}

.br-stat-item {
    text-align: center;
    min-width: 100px;
}

.br-stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #8B7355;
    line-height: 1;
}

.br-stat-ribbon .br-stat-label {
    display: block;
    margin-top: 0.5em;
    font-size: 0.85em;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Insights Dashboard */
.br-insights-dashboard {
    margin: 2em 0;
}

/* Insights Grid */
.br-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
}

/* Insight Cards */
.br-insight-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 1.5em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.br-insight-card.br-insight-brands {
    border-top: 3px solid #3b82f6;
}

.br-insight-card.br-insight-developers {
    border-top: 3px solid #10b981;
}

.br-insight-card.br-insight-sentiment {
    border-top: 3px solid #8b5cf6;
}

.br-insight-title {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 1em 0;
    color: inherit;
}

.br-insight-title svg {
    opacity: 0.7;
}

/* Insight List Rows */
.br-insight-list {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.br-insight-row {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.5em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.br-insight-row:last-child {
    border-bottom: none;
}

.br-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 0.8em;
    font-weight: 600;
    flex-shrink: 0;
}

.br-name {
    flex: 1;
    font-weight: 500;
}

.br-count {
    font-weight: 600;
    opacity: 0.7;
    font-size: 0.9em;
}

/* Sentiment Bars (in insight cards) */
.br-sentiment-row {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin-bottom: 0.75em;
}

.br-sentiment-row:last-child {
    margin-bottom: 0;
}

.br-sentiment-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.br-sentiment-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.br-sentiment-bar-fill.br-sentiment-positive {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.br-sentiment-bar-fill.br-sentiment-neutral {
    background: linear-gradient(135deg, #8B7355 0%, #a08060 100%);
}

.br-sentiment-bar-fill.br-sentiment-analytical {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.br-sentiment-percent {
    font-size: 0.85em;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Top Brands/Developers Lists (standalone shortcodes) */
.br-top-brands-list,
.br-top-developers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.br-top-brand-item,
.br-top-developer-item {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.75em 1em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.br-top-brand-item:hover,
.br-top-developer-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.br-top-brand-item .br-rank,
.br-top-developer-item .br-rank {
    width: 28px;
    height: 28px;
    background: #8B7355;
    color: #fff;
    font-weight: 600;
}

.br-top-brand-item .br-brand-name,
.br-top-developer-item .br-developer-name {
    flex: 1;
    font-weight: 500;
}

.br-top-brand-item a.br-brand-name {
    color: inherit;
    text-decoration: none;
}

.br-top-brand-item a.br-brand-name:hover {
    text-decoration: underline;
}

/* Sentiment Chart (standalone shortcode) */
.br-sentiment-chart {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.br-sentiment-chart .br-sentiment-row {
    display: flex;
    align-items: center;
    gap: 1em;
    margin: 0;
}

.br-sentiment-info {
    display: flex;
    align-items: center;
    gap: 0.5em;
    min-width: 100px;
}

.br-sentiment-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.br-sentiment-dot.br-sentiment-positive {
    background: #10b981;
}

.br-sentiment-dot.br-sentiment-neutral {
    background: #8B7355;
}

.br-sentiment-dot.br-sentiment-analytical {
    background: #8b5cf6;
}

.br-sentiment-bar-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1em;
}

.br-sentiment-bar-bg {
    flex: 1;
    height: 10px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 5px;
    overflow: hidden;
}

.br-sentiment-bar-bg .br-sentiment-bar-fill {
    height: 100%;
}

.br-sentiment-value {
    min-width: 80px;
    font-size: 0.9em;
    font-weight: 500;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .br-market-stats,
    .br-performance-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .br-brands-grid {
        grid-template-columns: 1fr;
    }
    
    .br-recent-news li,
    .br-top-brands li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25em;
    }
    
    .br-recent-news time {
        margin-left: 0;
    }
    
    .br-brand-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .br-brand-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .br-ai-match {
        padding: 2.5em 1.5em 3em;
        margin: 2em auto;
        border-radius: 20px;
    }
    
    .br-ai-match-badge {
        font-size: 0.7em;
        padding: 0.6em 1.25em;
    }
    
    .br-ai-match-title {
        font-size: 1.6em;
    }
    
    .br-ai-match-description {
        font-size: 1em;
    }
    
    .br-ai-match-features {
        margin-bottom: 2.5em;
    }
    
    .br-ai-match-features li {
        font-size: 0.95em;
        gap: 0.75em;
    }
    
    .br-ai-match-button {
        font-size: 0.9em;
        padding: 1em 2.25em;
    }
    
    /* News feed mobile */
    .br-news-filtered {
        padding: 1.5em 1em 3em;
    }
    
    .br-news-header h1 {
        font-size: 1.6em;
    }
    
    /* Insights Dashboard Mobile */
    .br-stat-ribbon {
        gap: 1.5em;
        padding: 1.5em;
    }
    
    .br-stat-number {
        font-size: 2em;
    }
    
    .br-insights-grid {
        grid-template-columns: 1fr;
    }
    
    .br-sentiment-info {
        min-width: 80px;
    }
    
    .br-sentiment-value {
        min-width: 60px;
        font-size: 0.8em;
    }
}

/* ============================================
   ENHANCED NEWS FEED - Premium Styling
   ============================================ */

.br-news-filtered {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2em 1.5em 4em;
}

.br-news-header {
    text-align: center;
    margin-bottom: 2.5em;
    padding: 2em 0;
}

.br-news-header h1 {
    font-size: 2.25em;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 0.5em 0;
    color: #333;
}

.br-news-subtitle {
    color: #8B7355;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.br-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25em;
    align-items: flex-end;
    padding: 1.75em 2em;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    margin-bottom: 2em;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.br-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    min-width: 180px;
    flex: 1;
}

.br-filter-group label {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8B7355;
}

.br-filter-select {
    padding: 0.75em 1.25em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #faf8f5;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.br-filter-select:hover {
    border-color: rgba(139, 115, 85, 0.4);
    background: #fff;
}

.br-filter-select:focus {
    outline: none;
    border-color: #8B7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
    background: #fff;
}

.br-filter-reset {
    padding: 0.75em 1.5em;
    background: transparent;
    border: 1px solid rgba(139, 115, 85, 0.25);
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: 500;
    color: #8B7355;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.br-filter-reset:hover {
    background: rgba(139, 115, 85, 0.08);
    border-color: #8B7355;
}

.br-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
    padding: 0 0.5em;
}

.br-results-count {
    font-size: 0.9em;
    font-weight: 500;
    color: #666;
}

.br-loading {
    color: #8B7355;
    font-weight: 500;
    font-size: 0.9em;
}

/* News Grid for filtered results */
.br-news-grid {
    display: grid;
    gap: 1.75em;
    transition: opacity 0.2s ease;
}

.br-article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.br-article-card:hover {
    border-color: rgba(139, 115, 85, 0.2);
    box-shadow: 0 12px 32px rgba(139, 115, 85, 0.1);
    transform: translateY(-4px);
}

.br-article-card .br-article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.br-article-body {
    padding: 1.5em 1.75em 1.75em;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.br-article-card .br-article-title {
    font-size: 1.1em;
    font-weight: 500;
    margin: 0 0 0.75em 0;
    line-height: 1.4;
    color: #333;
}

.br-article-card .br-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.br-article-card .br-article-title a:hover {
    color: #8B7355;
}

.br-article-card .br-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    margin-bottom: 0.75em;
}

.br-article-card .br-brand-tag {
    background: rgba(139, 115, 85, 0.1);
    color: #8B7355;
    padding: 0.35em 0.9em;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.br-article-card .br-sentiment {
    padding: 0.35em 0.9em;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: 500;
}

.br-article-card .br-date {
    font-size: 0.8em;
    color: #888;
    margin-left: auto;
}

.br-article-card .br-article-summary {
    font-size: 0.9em;
    line-height: 1.6;
    color: #555;
    margin: 0 0 1em 0;
    flex: 1;
}

.br-article-card .br-key-insight {
    background: rgba(139, 115, 85, 0.05);
    border-left: 3px solid #8B7355;
    padding: 0.9em 1.1em;
    margin: 0;
    font-size: 0.85em;
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
}

.br-article-card .br-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-top: 1em;
    color: #8B7355;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.br-article-card .br-read-more:hover {
    gap: 0.6em;
}

/* Responsive filter bar */
@media (max-width: 768px) {
    .br-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .br-filter-group {
        min-width: 100%;
    }
    
    .br-filter-reset {
        margin-top: 0.5em;
    }
    
    .br-news-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .br-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .br-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Dark mode support - inherits from theme */
@media (prefers-color-scheme: dark) {
    .br-insight-card {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .br-stat-ribbon {
        background: linear-gradient(135deg, rgba(139, 115, 85, 0.12) 0%, rgba(139, 115, 85, 0.04) 100%);
    }
    
    .br-top-brand-item,
    .br-top-developer-item {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .br-top-brand-item:hover,
    .br-top-developer-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }
    
    .br-sentiment-chart {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .br-sentiment-bar-container,
    .br-sentiment-bar-bg {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .br-rank {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Filter bar dark mode */
    .br-filter-bar {
        background: linear-gradient(135deg, rgba(139, 115, 85, 0.15) 0%, rgba(139, 115, 85, 0.05) 100%);
    }
    
    .br-filter-select {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: inherit;
    }
    
    .br-filter-reset {
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .br-filter-reset:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .br-article-card {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* =====================================================
   ENHANCED BRAND DIRECTORY STYLES
   Premium, elegant card layout
   ===================================================== */

.br-brands-directory {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2em 1.5em 4em;
}

.br-brands-header {
    margin-bottom: 3em;
    text-align: center;
    padding: 2em 0;
}

.br-brands-header h1 {
    font-size: 2.25em;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 0.5em 0;
    color: #333;
}

.br-brands-count {
    color: #8B7355;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.br-brands-grid {
    display: grid;
    gap: 1.75em;
}

.br-brands-grid.br-columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}

.br-brands-grid.br-columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.br-brands-grid.br-columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.br-brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 2em 1.75em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.br-brand-card:hover {
    border-color: rgba(139, 115, 85, 0.3);
    box-shadow: 0 12px 32px rgba(139, 115, 85, 0.12);
    transform: translateY(-4px);
}

.br-brand-card.br-brand-trending {
    border-color: rgba(139, 115, 85, 0.25);
    background: linear-gradient(180deg, rgba(139, 115, 85, 0.03) 0%, transparent 60%);
}

.br-brand-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.br-activity-badge {
    position: absolute;
    top: 1.25em;
    right: 1.25em;
    padding: 0.35em 0.9em;
    border-radius: 20px;
    font-size: 0.65em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.br-badge-trending {
    background: linear-gradient(135deg, #8B7355 0%, #a08060 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.3);
}

.br-badge-active {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.br-brand-card-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25em;
    min-height: 70px;
    align-items: center;
}

.br-brand-logo {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
}

.br-brand-logo-placeholder {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B7355 0%, #a08060 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: 500;
    letter-spacing: 1px;
}

.br-brand-logo-placeholder.br-logo-large {
    width: 100px;
    height: 100px;
    font-size: 2em;
}

.br-brand-name {
    font-size: 1.15em;
    font-weight: 500;
    margin: 0 0 0.75em 0;
    text-align: center;
    letter-spacing: 0.02em;
    color: #333;
}

.br-brand-description {
    flex: 1;
    font-size: 0.875em;
    opacity: 0.65;
    line-height: 1.6;
    margin: 0 0 1.25em 0;
    text-align: center;
    color: #555;
}

.br-brand-stats-row {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin-bottom: 1.25em;
    padding-top: 1.25em;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.br-brand-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.br-stat-number {
    font-size: 1.5em;
    font-weight: 300;
    color: #8B7355;
    line-height: 1;
}

.br-brand-stat .br-stat-label {
    font-size: 0.65em;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    margin-top: 0.25em;
}

.br-brand-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6em;
    margin-top: auto;
}

.br-positioning {
    padding: 0.4em 1em;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.br-positioning-ultra-luxury {
    background: linear-gradient(135deg, #8B7355 0%, #a08060 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(139, 115, 85, 0.25);
}

.br-positioning-luxury {
    background: rgba(139, 115, 85, 0.1);
    color: #8B7355;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.br-positioning-premium {
    background: rgba(107, 114, 128, 0.08);
    color: #4b5563;
    border: 1px solid rgba(107, 114, 128, 0.15);
}

.br-brand-type {
    padding: 0.4em 1em;
    border-radius: 20px;
    font-size: 0.7em;
    background: rgba(0, 0, 0, 0.04);
    color: #666;
    text-transform: capitalize;
}

.br-flagship-preview {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.8em;
    opacity: 0.55;
    text-align: center;
    font-style: italic;
}

.br-flagship-label {
    font-weight: 500;
    font-style: normal;
}

/* =====================================================
   ENHANCED BRAND DETAIL PAGE STYLES
   Premium, centered, luxurious layout
   ===================================================== */

.br-brand-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em 1.5em 4em;
    text-align: center;
}

/* Breadcrumb navigation */
.br-breadcrumb {
    margin-bottom: 3em;
    font-size: 0.85em;
    text-align: left;
    display: inline-block;
    width: 100%;
}

.br-breadcrumb a {
    color: #8B7355;
    text-decoration: none;
    font-weight: 500;
}

.br-breadcrumb a:hover {
    text-decoration: underline;
}

.br-breadcrumb .br-separator {
    margin: 0 0.75em;
    opacity: 0.3;
}

.br-breadcrumb .br-current {
    opacity: 0.6;
}

/* Empty state */
.br-brand-empty {
    text-align: center;
    padding: 4em 2em;
    background: rgba(139, 115, 85, 0.03);
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.br-brand-empty p {
    margin-bottom: 1.5em;
    opacity: 0.7;
}

/* Header - Hero section */
.br-brand-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    margin-bottom: 3em;
    padding: 3em 2em;
    background: linear-gradient(180deg, rgba(139, 115, 85, 0.04) 0%, transparent 100%);
    border-radius: 16px;
    border-bottom: none;
}

.br-brand-detail-logo-wrap {
    flex-shrink: 0;
}

.br-brand-detail-logo {
    max-width: 180px;
    max-height: 100px;
    object-fit: contain;
}

.br-logo-large {
    width: 100px;
    height: 100px;
    font-size: 2.5em;
    background: linear-gradient(135deg, #8B7355 0%, #a08670 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.br-brand-detail-info {
    text-align: center;
}

.br-brand-detail-info h1 {
    margin: 0 0 0.75em 0;
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.br-brand-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75em;
    margin-bottom: 1em;
}

.br-brand-type-badge {
    padding: 0.4em 1em;
    border-radius: 20px;
    font-size: 0.75em;
    background: rgba(139, 115, 85, 0.1);
    color: #8B7355;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.br-parent-company {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.5;
    font-style: italic;
}

/* Content sections */
.br-brand-section {
    margin-bottom: 3em;
    text-align: left;
    padding: 0 1em;
}

.br-brand-section h2 {
    font-size: 0.85em;
    font-weight: 600;
    margin: 0 0 1.25em 0;
    color: #8B7355;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.br-brand-detail-description {
    font-size: 1.1em;
    line-height: 1.8;
    margin: 0;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    color: #444;
}

/* Philosophy quote - elegant blockquote */
.br-philosophy {
    padding: 2em 0;
}

.br-philosophy-quote {
    margin: 0;
    padding: 2em 2.5em;
    background: transparent;
    border: none;
    border-left: none;
    font-style: italic;
    font-size: 1.3em;
    line-height: 1.7;
    text-align: center;
    color: #5a5a5a;
    position: relative;
}

.br-philosophy-quote::before {
    content: '"';
    font-size: 4em;
    color: #8B7355;
    opacity: 0.3;
    position: absolute;
    top: -0.2em;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
}

/* Stats grid - centered cards */
.br-brand-stats-grid {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-bottom: 3em;
    flex-wrap: wrap;
}

.br-stat-card {
    background: #fff;
    border: 1px solid rgba(139, 115, 85, 0.12);
    border-radius: 12px;
    padding: 1.75em 2em;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.br-stat-card.br-stat-highlight {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.06) 0%, rgba(139, 115, 85, 0.02) 100%);
    border-color: rgba(139, 115, 85, 0.3);
}

.br-stat-card .br-stat-value {
    display: block;
    font-size: 2.5em;
    font-weight: 300;
    color: #8B7355;
    line-height: 1;
}

.br-stat-card .br-stat-label {
    display: block;
    font-size: 0.7em;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5em;
}

/* Tags and pills - centered */
.br-amenity-grid,
.br-market-tags,
.br-demographics-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75em;
}

.br-amenity-tag {
    padding: 0.6em 1.25em;
    background: rgba(139, 115, 85, 0.06);
    border: 1px solid rgba(139, 115, 85, 0.12);
    border-radius: 25px;
    font-size: 0.85em;
    color: #5a5a5a;
}

.br-market-tag {
    padding: 0.6em 1.25em;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 25px;
    font-size: 0.85em;
    color: #5a5a5a;
}

.br-demographic-tag {
    padding: 0.6em 1.25em;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 25px;
    font-size: 0.85em;
    color: #3b82f6;
}

/* Sentiment visualization - centered */
.br-sentiment-section {
    margin-bottom: 3em;
}

.br-sentiment-section .br-sentiment-visual {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1em;
}

.br-sentiment-item {
    display: flex;
    align-items: center;
    gap: 1.25em;
}

.br-sentiment-bar-container {
    flex: 1;
    height: 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 5px;
    overflow: hidden;
}

.br-sentiment-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease;
}

.br-sentiment-bar-fill.br-sentiment-positive {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.br-sentiment-bar-fill.br-sentiment-neutral {
    background: linear-gradient(90deg, #8B7355 0%, #a08060 100%);
}

.br-sentiment-bar-fill.br-sentiment-analytical {
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
}

.br-sentiment-info {
    display: flex;
    gap: 0.5em;
    min-width: 110px;
    font-size: 0.85em;
    justify-content: flex-end;
}

.br-sentiment-percent {
    font-weight: 600;
    color: #333;
}

.br-sentiment-label {
    opacity: 0.6;
}

/* News grid - elegant cards */
.br-news-section {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.br-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25em;
    text-align: left;
}

.br-news-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.br-news-card:hover {
    border-color: rgba(139, 115, 85, 0.3);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.08);
    transform: translateY(-2px);
}

.br-news-card a {
    display: block;
    padding: 1.5em;
    color: inherit;
    text-decoration: none;
}

.br-news-card h4 {
    margin: 0 0 1em 0;
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.5;
    color: #333;
}

.br-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    align-items: center;
}

.br-news-date {
    font-size: 0.8em;
    opacity: 0.5;
}

.br-news-sentiment {
    font-size: 0.7em;
    padding: 0.3em 0.75em;
    border-radius: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.br-news-sentiment.br-sentiment-positive {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.br-news-sentiment.br-sentiment-neutral {
    background: rgba(139, 115, 85, 0.1);
    color: #8B7355;
}

.br-news-sentiment.br-sentiment-analytical {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

/* CTA section */
.br-brand-cta {
    margin-top: 3em;
    padding: 2.5em;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.04) 0%, rgba(139, 115, 85, 0.01) 100%);
    border-radius: 16px;
    text-align: center;
}

.br-brand-cta p {
    margin: 0 0 1.25em 0;
    opacity: 0.7;
    font-size: 0.95em;
}

.br-button {
    display: inline-block;
    padding: 0.9em 2.25em;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.9em;
    letter-spacing: 0.3px;
}

.br-button-primary {
    background: linear-gradient(135deg, #8B7355 0%, #7a6549 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.25);
}

.br-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 115, 85, 0.35);
}

/* =====================================================
   MARKET SELECTOR PAGE STYLES
   ===================================================== */

.br-market-selector-page {
    max-width: 1100px;
    margin: 0 auto;
}

.br-market-selector-header {
    text-align: center;
    margin-bottom: 2em;
}

.br-market-selector-header h1 {
    margin: 0 0 0.25em 0;
}

.br-subtitle {
    margin: 0;
    opacity: 0.6;
    font-size: 1.1em;
}

.br-market-dropdown-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    margin-bottom: 2em;
    padding: 1.5em;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.02) 100%);
    border-radius: 8px;
}

.br-market-dropdown-wrap label {
    font-weight: 500;
}

.br-market-select {
    padding: 0.75em 2em 0.75em 1em;
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 4px;
    background: #fff;
    font-size: 1em;
    cursor: pointer;
    min-width: 200px;
}

.br-market-select:focus {
    outline: none;
    border-color: #8B7355;
}

.br-market-report {
    background: #fff;
    border: 1px solid rgba(139, 115, 85, 0.15);
    border-radius: 12px;
    padding: 2em;
}

.br-market-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.br-market-report-header h2 {
    margin: 0;
    font-size: 1.75em;
}

.br-market-sentiment {
    padding: 0.5em 1em;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.br-market-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1em;
    margin-bottom: 2em;
}

.br-market-section {
    margin-bottom: 2em;
}

.br-market-section h3 {
    font-size: 1.1em;
    margin: 0 0 1em 0;
    color: #8B7355;
}

.br-market-two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    margin-bottom: 2em;
}

.br-developer-list {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.br-developer-item {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.75em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

.br-developer-item .br-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8B7355;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75em;
    font-weight: 600;
}

.br-developer-name {
    flex: 1;
    font-weight: 500;
}

.br-developer-item .br-mention-count {
    font-size: 0.85em;
    opacity: 0.6;
}

.br-brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.br-brand-pill {
    padding: 0.5em 1em;
    border-radius: 20px;
    font-size: 0.85em;
    background: rgba(139, 115, 85, 0.1);
}

.br-brand-pill.br-positioning-ultra-luxury {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.2) 0%, rgba(139, 115, 85, 0.1) 100%);
    font-weight: 500;
}

.br-no-data {
    text-align: center;
    padding: 2em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.br-no-data a {
    color: #8B7355;
}

/* ============================================
   PHASE 2: TREND ANALYTICS COMPONENTS
   ============================================ */

/* Trending Topics */
.br-trending-topics {
    background: inherit;
}

.br-trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
    padding-bottom: 0.75em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.br-trending-period {
    font-weight: 600;
    color: #8B7355;
}

.br-trending-count {
    font-size: 0.9em;
    opacity: 0.7;
}

.br-trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1em;
}

.br-trending-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    padding: 1em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border-left: 3px solid #8B7355;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.br-trending-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.br-trending-card.br-sentiment-positive {
    border-left-color: #10b981;
}

.br-trending-card.br-sentiment-neutral {
    border-left-color: #6b7280;
}

.br-trending-card.br-sentiment-analytical {
    border-left-color: #3b82f6;
}

.br-trending-rank {
    font-size: 0.85em;
    font-weight: 700;
    color: #8B7355;
    min-width: 28px;
}

.br-trending-content {
    flex: 1;
}

.br-trending-topic {
    margin: 0 0 0.5em 0;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.3;
}

.br-trending-stats {
    display: flex;
    gap: 0.75em;
    flex-wrap: wrap;
}

.br-mention-badge,
.br-momentum-badge {
    font-size: 0.8em;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    background: rgba(139, 115, 85, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
}

.br-momentum-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.br-momentum-badge svg {
    fill: currentColor;
}

/* Brand Momentum */
.br-brand-momentum {
    background: inherit;
}

.br-momentum-summary {
    display: flex;
    gap: 1em;
    margin-bottom: 1.5em;
}

.br-momentum-stat {
    flex: 1;
    text-align: center;
    padding: 1em;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
}

.br-momentum-stat.br-rising {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.br-momentum-stat.br-stable {
    background: rgba(107, 114, 128, 0.08);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.br-momentum-stat.br-falling {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.br-momentum-stat .br-stat-value {
    display: block;
    font-size: 1.75em;
    font-weight: 700;
    line-height: 1.2;
}

.br-momentum-stat.br-rising .br-stat-value {
    color: #10b981;
}

.br-momentum-stat.br-stable .br-stat-value {
    color: #6b7280;
}

.br-momentum-stat.br-falling .br-stat-value {
    color: #ef4444;
}

.br-momentum-stat .br-stat-label {
    font-size: 0.85em;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.br-momentum-list {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.br-momentum-item {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.75em 1em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.br-momentum-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.br-momentum-item.br-trend-rising {
    border-left: 3px solid #10b981;
}

.br-momentum-item.br-trend-stable {
    border-left: 3px solid #6b7280;
}

.br-momentum-item.br-trend-falling {
    border-left: 3px solid #ef4444;
}

.br-momentum-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8B7355;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75em;
    font-weight: 600;
}

.br-momentum-brand {
    flex: 1;
    min-width: 0;
}

.br-momentum-brand .br-brand-name {
    display: block;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.br-momentum-brand .br-brand-activity {
    display: block;
    font-size: 0.8em;
    opacity: 0.6;
}

.br-momentum-metrics {
    display: flex;
    gap: 0.5em;
    align-items: center;
}

.br-mentions-7d,
.br-mentions-30d {
    font-size: 0.85em;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.br-mentions-7d {
    font-weight: 600;
}

.br-trend-indicator {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.br-trend-rising .br-trend-indicator {
    color: #10b981;
}

.br-trend-stable .br-trend-indicator {
    color: #6b7280;
}

.br-trend-falling .br-trend-indicator {
    color: #ef4444;
}

/* Market Signals */
.br-market-signals {
    background: inherit;
}

.br-signals-intensity {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    margin-bottom: 1.5em;
}

.br-intensity-card {
    text-align: center;
    padding: 1.25em;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
}

.br-intensity-card.br-development {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.br-intensity-card.br-commercial {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.br-intensity-card.br-research {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1) 0%, rgba(139, 115, 85, 0.05) 100%);
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.br-intensity-icon {
    display: block;
    font-size: 1.5em;
    margin-bottom: 0.25em;
}

.br-intensity-value {
    display: block;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
}

.br-intensity-card.br-development .br-intensity-value {
    color: #3b82f6;
}

.br-intensity-card.br-commercial .br-intensity-value {
    color: #10b981;
}

.br-intensity-card.br-research .br-intensity-value {
    color: #8B7355;
}

.br-intensity-label {
    font-size: 0.85em;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.br-signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
}

.br-signals-section {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 1.25em;
}

.br-signals-section h4 {
    margin: 0 0 1em 0;
    font-size: 1em;
    font-weight: 600;
    color: #8B7355;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5em;
}

.br-signal-items {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.br-signal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 0;
}

.br-signal-label {
    font-size: 0.9em;
}

.br-signal-value {
    font-weight: 600;
    background: rgba(139, 115, 85, 0.1);
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.9em;
}

.br-hot-markets {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.br-hot-market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

.br-market-name {
    font-weight: 500;
}

.br-market-activity {
    font-size: 0.85em;
    opacity: 0.7;
}

/* ===========================================================================
   PHASE 3: ENHANCED MARKET PAGES COMPONENTS
   =========================================================================== */

/* Markets Overview */
.br-markets-overview {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 1.5em;
}

.br-markets-header {
    display: flex;
    gap: 2em;
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.br-markets-stat {
    display: flex;
    flex-direction: column;
}

.br-markets-stat .br-stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #8B7355;
    line-height: 1;
}

.br-markets-stat .br-stat-label {
    font-size: 0.85em;
    opacity: 0.7;
    margin-top: 0.25em;
}

.br-markets-regions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    margin-bottom: 1.5em;
}

.br-region-badge {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 1em;
    background: rgba(139, 115, 85, 0.1);
    border-radius: 20px;
    font-size: 0.9em;
}

.br-region-name {
    font-weight: 500;
}

.br-region-count {
    background: #8B7355;
    color: #fff;
    padding: 0.15em 0.5em;
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: 600;
}

.br-markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1em;
}

.br-market-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.25em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid transparent;
}

.br-market-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.br-market-card.br-intensity-very_high {
    border-left-color: #059669;
}

.br-market-card.br-intensity-high {
    border-left-color: #10b981;
}

.br-market-card.br-intensity-medium {
    border-left-color: #8B7355;
}

.br-market-card.br-intensity-low {
    border-left-color: #d1d5db;
}

.br-market-card .br-market-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
    padding-bottom: 0;
    border-bottom: none;
}

.br-market-location {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.br-market-region {
    font-size: 0.85em;
    opacity: 0.6;
}

.br-market-stats {
    display: flex;
    gap: 1.5em;
    margin-bottom: 1em;
}

.br-market-card .br-market-activity,
.br-market-articles {
    display: flex;
    flex-direction: column;
}

.br-activity-score,
.br-articles-count {
    font-size: 1.5em;
    font-weight: 700;
    color: #8B7355;
    line-height: 1;
}

.br-activity-label,
.br-articles-label {
    font-size: 0.75em;
    opacity: 0.6;
    text-transform: uppercase;
    margin-top: 0.25em;
}

.br-market-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.br-brand-tag {
    background: rgba(139, 115, 85, 0.1);
    padding: 0.25em 0.75em;
    border-radius: 12px;
    font-size: 0.8em;
}

/* Developers Ranking */
.br-developers-ranking {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 1.5em;
}

.br-developers-header {
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.br-header-stat {
    font-size: 1.1em;
    font-weight: 600;
    color: #8B7355;
}

.br-developers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.br-developer-item {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
}

.br-developer-item.br-intensity-high {
    border-left-color: #059669;
}

.br-developer-item.br-intensity-medium {
    border-left-color: #8B7355;
}

.br-developer-item.br-intensity-low {
    border-left-color: #d1d5db;
}

.br-developer-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B7355, #a08060);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9em;
}

.br-developer-info {
    flex: 1;
}

.br-developer-name {
    font-weight: 600;
    display: block;
}

.br-developer-meta {
    display: flex;
    gap: 1em;
    font-size: 0.85em;
    opacity: 0.6;
    margin-top: 0.25em;
}

.br-developer-activity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1em;
}

.br-activity-count {
    font-size: 1.25em;
    font-weight: 700;
    color: #8B7355;
    line-height: 1;
}

.br-developer-sentiment {
    padding: 0.25em 0.75em;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.br-developer-sentiment.br-sentiment-positive {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.br-developer-sentiment.br-sentiment-neutral {
    background: rgba(139, 115, 85, 0.1);
    color: #8B7355;
}

.br-developer-sentiment.br-sentiment-analytical {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

/* Market Analytics */
.br-market-analytics {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.br-market-hero {
    background: linear-gradient(135deg, #8B7355, #6b5a45);
    color: #fff;
    padding: 2em;
    text-align: center;
}

.br-market-title {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
}

.br-market-region-tag {
    display: inline-block;
    margin-top: 0.5em;
    padding: 0.25em 1em;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9em;
}

.br-analytics-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 1px;
}

.br-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5em;
    background: #fff;
    text-align: center;
}

.br-summary-value {
    font-size: 1.75em;
    font-weight: 700;
    color: #8B7355;
    line-height: 1;
}

.br-summary-label {
    font-size: 0.85em;
    opacity: 0.6;
    margin-top: 0.5em;
}

.br-summary-card.br-activity-very-active {
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.1), #fff);
}

.br-summary-card.br-activity-very-active .br-summary-value {
    color: #059669;
}

.br-summary-card.br-activity-active {
    background: linear-gradient(to bottom, rgba(139, 115, 85, 0.1), #fff);
}

.br-analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(0, 0, 0, 0.05);
    padding: 1.5em;
    gap: 1.5em;
    background: rgba(0, 0, 0, 0.02);
}

.br-analytics-section {
    background: #fff;
    padding: 1.25em;
    border-radius: 8px;
}

.br-analytics-section h4 {
    margin: 0 0 1em 0;
    font-size: 1em;
    font-weight: 600;
    color: #8B7355;
}

.br-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.br-metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.br-metric-label {
    opacity: 0.7;
}

.br-metric-value {
    font-weight: 600;
    color: #8B7355;
}

.br-announcement-types {
    margin-top: 1em;
}

.br-announcement-types h5 {
    font-size: 0.9em;
    font-weight: 600;
    margin: 0 0 0.5em 0;
    opacity: 0.8;
}

.br-announcement-type {
    display: flex;
    justify-content: space-between;
    padding: 0.5em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.br-announcement-type:last-child {
    border-bottom: none;
}

.br-pricing-range {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1.25em;
    font-weight: 600;
    justify-content: center;
    padding: 1em 0;
}

.br-price-min,
.br-price-max {
    color: #8B7355;
}

.br-price-separator {
    opacity: 0.5;
    font-weight: normal;
}

.br-price-disclaimer {
    display: block;
    text-align: center;
    font-size: 0.8em;
    opacity: 0.6;
}

.br-developer-section,
.br-brand-section,
.br-news-section {
    grid-column: 1 / -1;
    margin-top: 0.5em;
}

.br-developer-list,
.br-brand-presence-list,
.br-recent-news-list {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.br-developer-row {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.75em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
}

.br-developer-row .br-developer-name {
    flex: 1;
    font-weight: 500;
}

.br-developer-mentions {
    font-size: 0.9em;
    color: #8B7355;
    font-weight: 600;
}

.br-developer-types {
    font-size: 0.8em;
    opacity: 0.6;
}

.br-brand-presence-item {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.75em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    border-left: 3px solid transparent;
}

.br-brand-presence-item.br-intensity-high {
    border-left-color: #059669;
}

.br-brand-presence-item.br-intensity-medium {
    border-left-color: #8B7355;
}

.br-brand-presence-item.br-intensity-low {
    border-left-color: #d1d5db;
}

.br-brand-presence-item .br-brand-name {
    flex: 1;
    font-weight: 500;
}

.br-brand-mentions {
    font-weight: 600;
    color: #8B7355;
}

.br-brand-sentiment {
    padding: 0.2em 0.6em;
    border-radius: 10px;
    font-size: 0.8em;
}

.br-news-item {
    padding: 0.75em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
}

.br-news-item a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25em;
}

.br-news-item a:hover {
    color: #8B7355;
}

.br-news-meta {
    display: flex;
    gap: 1em;
    font-size: 0.85em;
    opacity: 0.6;
}

.br-no-data {
    text-align: center;
    padding: 2em;
    opacity: 0.6;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .br-brand-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .br-brand-badges {
        justify-content: center;
    }
    
    .br-market-report-header {
        flex-direction: column;
        gap: 1em;
        text-align: center;
    }
    
    .br-market-dropdown-wrap {
        flex-direction: column;
    }
    
    .br-market-select {
        width: 100%;
    }
    
    /* Trend analytics responsive */
    .br-momentum-summary {
        flex-direction: column;
    }
    
    .br-signals-intensity {
        grid-template-columns: 1fr;
    }
    
    .br-momentum-metrics {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25em;
    }
    
    /* Phase 3 responsive */
    .br-markets-header {
        flex-direction: column;
        gap: 1em;
    }
    
    .br-markets-grid {
        grid-template-columns: 1fr;
    }
    
    .br-analytics-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .br-analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .br-developer-item {
        flex-wrap: wrap;
    }
    
    .br-developer-info {
        flex-basis: 100%;
        order: 1;
    }
    
    .br-developer-rank {
        order: 0;
    }
}

/* ============ PHASE 4: GOOGLE TRENDS STYLES ============ */
/* Elementor-compatible with high specificity */

.br-google-trends,
.elementor-widget-shortcode .br-google-trends,
.elementor-shortcode .br-google-trends {
    padding: 1.5em !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-family: inherit;
    box-sizing: border-box;
}

.br-google-trends .br-trends-header,
.elementor-widget-shortcode .br-trends-header {
    margin-bottom: 1.5em !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5em !important;
}

.br-google-trends .br-trends-title,
.elementor-widget-shortcode .br-trends-title,
.br-trends-title {
    font-size: 1.25em !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit;
}

.br-google-trends .br-trends-subtitle,
.br-trends-subtitle {
    font-size: 0.9em !important;
    opacity: 0.7;
    display: block;
    width: 100%;
    margin-top: 0.25em;
}

.br-google-trends .br-trends-geo,
.br-trends-geo {
    font-size: 0.85em !important;
    padding: 0.25em 0.75em !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    display: inline-block;
}

/* Trends Summary Grid - High Specificity for Elementor */
.br-google-trends .br-trends-summary-grid,
.elementor-widget-shortcode .br-trends-summary-grid,
.br-trends-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1em !important;
    margin-bottom: 1.5em !important;
}

.br-google-trends .br-trends-stat,
.elementor-widget-shortcode .br-trends-stat,
.br-trends-stat {
    text-align: center !important;
    padding: 1em !important;
    background: rgba(0, 0, 0, 0.02) !important;
    border-radius: 6px !important;
    box-sizing: border-box;
}

.br-google-trends .br-trends-stat .br-stat-value,
.br-trends-stat .br-stat-value {
    display: block !important;
    font-size: 1.75em !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.br-google-trends .br-trends-stat .br-stat-label,
.br-trends-stat .br-stat-label {
    display: block !important;
    font-size: 0.8em !important;
    opacity: 0.7;
    margin-top: 0.25em !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Trend Direction Indicators */
.br-trend-rising {
    border-left: 3px solid #10b981;
}

.br-trend-rising .br-stat-value {
    color: #10b981;
}

.br-trend-declining {
    border-left: 3px solid #ef4444;
}

.br-trend-declining .br-stat-value {
    color: #ef4444;
}

.br-trend-stable {
    border-left: 3px solid #6b7280;
}

/* Chart Container */
.br-trends-chart-container {
    margin: 1.5em 0;
}

.br-trends-chart {
    display: flex;
    align-items: flex-end;
    height: 150px;
    gap: 2px;
    padding: 0.5em 0;
}

.br-chart-bar {
    flex: 1;
    min-width: 4px;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 2px 2px 0 0;
    transition: opacity 0.2s ease;
    cursor: help;
}

.br-chart-bar:hover {
    opacity: 0.8;
}

.br-chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    opacity: 0.6;
    margin-top: 0.5em;
}

/* Related Topics/Queries Grid */
.br-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
}

.br-related-section h4 {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 1em 0;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.br-related-subsection {
    margin-bottom: 1.25em;
}

.br-related-subsection h5 {
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0.7;
    margin: 0 0 0.5em 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.br-related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.br-related-item.br-rising {
    color: #10b981;
}

.br-topic-title,
.br-query-text {
    flex: 1;
    font-size: 0.95em;
}

.br-topic-value,
.br-query-value {
    font-size: 0.85em;
    font-weight: 600;
    padding: 0.15em 0.5em;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-left: 0.5em;
}

/* Market Comparison Bars - Elementor Compatible */
.br-google-trends .br-market-comparison,
.elementor-widget-shortcode .br-market-comparison,
.br-market-comparison {
    margin: 1.5em 0 !important;
}

.br-google-trends .br-market-comparison h4,
.br-market-comparison h4 {
    font-size: 1em !important;
    font-weight: 600 !important;
    margin: 0 0 1em 0 !important;
}

.br-google-trends .br-market-bars,
.br-market-bars {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75em !important;
}

.br-google-trends .br-market-bar-row,
.br-market-bar-row {
    display: flex !important;
    align-items: center !important;
    gap: 1em !important;
}

.br-google-trends .br-market-bar-row .br-market-name,
.br-market-bar-row .br-market-name {
    min-width: 100px !important;
    font-size: 0.9em !important;
    font-weight: 500 !important;
}

.br-google-trends .br-market-bar-container,
.br-market-bar-container {
    flex: 1 !important;
    height: 24px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.br-google-trends .br-market-bar,
.br-market-bar {
    height: 100% !important;
    background: linear-gradient(to right, #3b82f6, #60a5fa) !important;
    border-radius: 4px !important;
    transition: width 0.3s ease;
}

.br-market-bar.br-trend-rising {
    background: linear-gradient(to right, #10b981, #34d399);
}

.br-market-bar.br-trend-declining {
    background: linear-gradient(to right, #ef4444, #f87171);
}

.br-market-bar-row .br-market-value {
    min-width: 40px;
    text-align: right;
    font-size: 0.9em;
    font-weight: 600;
}

/* Luxury Markets Grid - Elementor Compatible */
.br-google-trends .br-luxury-grid,
.elementor-widget-shortcode .br-luxury-grid,
.br-luxury-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5em !important;
}

.br-google-trends .br-luxury-section h4,
.br-luxury-section h4 {
    font-size: 1em !important;
    font-weight: 600 !important;
    margin: 0 0 1em 0 !important;
    padding-bottom: 0.5em !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.br-google-trends .br-keyword-list,
.br-keyword-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5em !important;
}

.br-google-trends .br-keyword-item,
.br-keyword-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75em !important;
    background: rgba(0, 0, 0, 0.02) !important;
    border-radius: 6px !important;
}

.br-keyword-text {
    font-size: 0.95em;
    flex: 1;
}

.br-keyword-stats {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.br-keyword-interest {
    font-weight: 600;
    font-size: 0.9em;
}

.br-keyword-trend {
    font-size: 0.8em;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.br-keyword-trend.br-trend-rising {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.br-keyword-trend.br-trend-declining {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.br-hotmarkets-list {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.br-hotmarket-item {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.br-hotmarket-item .br-market-name {
    min-width: 80px;
    font-size: 0.9em;
}

.br-hotmarket-item .br-market-bar-container {
    flex: 1;
    height: 20px;
}

.br-hotmarket-item .br-market-interest {
    min-width: 35px;
    text-align: right;
    font-weight: 600;
    font-size: 0.85em;
}

/* Trends Meta */
.br-trends-meta {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    opacity: 0.6;
}

.br-trends-description {
    font-style: italic;
}

/* Simulated Data Indicator */
.br-simulated-data {
    position: relative;
}

.br-simulated-data::before {
    content: "Sample Data";
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    font-size: 0.65em;
    padding: 0.25em 0.5em;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .br-simulated-data::before,
[data-theme="dark"] .br-simulated-data::before {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* Dark Mode Support */
.dark .br-google-trends,
[data-theme="dark"] .br-google-trends {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: #1a1a1a !important;
}

.dark .br-trends-geo,
[data-theme="dark"] .br-trends-geo {
    background: rgba(255, 255, 255, 0.1);
}

.dark .br-trends-stat,
[data-theme="dark"] .br-trends-stat {
    background: rgba(255, 255, 255, 0.05);
}

.dark .br-market-bar-container,
[data-theme="dark"] .br-market-bar-container {
    background: rgba(255, 255, 255, 0.1);
}

.dark .br-keyword-item,
[data-theme="dark"] .br-keyword-item {
    background: rgba(255, 255, 255, 0.05);
}

.dark .br-related-item,
[data-theme="dark"] .br-related-item {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .br-topic-value,
.dark .br-query-value,
.dark .br-keyword-trend,
[data-theme="dark"] .br-topic-value,
[data-theme="dark"] .br-query-value,
[data-theme="dark"] .br-keyword-trend {
    background: rgba(255, 255, 255, 0.1);
}

/* Google Trends Responsive */
@media (max-width: 768px) {
    .br-trends-header {
        flex-direction: column;
        text-align: center;
    }
    
    .br-trends-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .br-related-grid,
    .br-luxury-grid {
        grid-template-columns: 1fr;
    }
    
    .br-market-bar-row {
        flex-wrap: wrap;
    }
    
    .br-market-bar-row .br-market-name {
        min-width: 100%;
        margin-bottom: 0.25em;
    }
    
    .br-trends-meta {
        flex-direction: column;
        gap: 0.5em;
        text-align: center;
    }
}

/* ==========================================================================
   Phase 5: Market Page - Server-Side Rendered for SEO
   Styled to match brandedliving.co visual identity (clean white, black text)
   ========================================================================== */

.br-market-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
    font-family: inherit;
    color: #1a1a1a;
    line-height: 1.7;
}

/* Hero Section */
.br-market-hero {
    background: #ffffff;
    padding: 3em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 2em;
    margin-left: -2em;
    margin-right: -2em;
    padding-left: 2em;
    padding-right: 2em;
}

.br-market-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.br-market-updated {
    display: inline-block;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 1em;
    padding: 0.5em 1em;
    background: #f5f5f5;
    border-radius: 4px;
}

.br-market-title {
    font-size: 3em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25em 0;
    line-height: 1.1;
    font-family: Georgia, 'Times New Roman', serif;
}

.br-market-tagline {
    font-size: 1.5em;
    color: #555;
    font-weight: 300;
    margin: 0 0 1.5em 0;
    font-style: italic;
}

.br-market-overview {
    font-size: 1.125em;
    color: #444;
    line-height: 1.8;
    margin: 0;
}

/* Stats Grid */
.br-market-stats {
    background: #f9f9f9;
    padding: 2em 0;
    margin-bottom: 3em;
}

.br-market-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1em;
}

@media (max-width: 992px) {
    .br-market-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .br-market-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.br-market-stats .br-stat-card {
    background: #ffffff;
    padding: 1.5em 1em;
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.br-market-stats .br-stat-value {
    display: block;
    font-size: 1.75em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25em;
}

.br-market-stats .br-stat-label {
    display: block;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
}

/* Section Titles */
.br-market-section {
    margin-bottom: 3em;
}

.br-section-title {
    font-size: 1.75em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5em 0;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #1a1a1a;
    font-family: Georgia, 'Times New Roman', serif;
}

/* Drivers Grid */
.br-drivers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
}

.br-driver-card {
    background: #fff;
    padding: 1.5em;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.br-driver-card h3 {
    font-size: 1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5em 0;
}

.br-driver-card p {
    font-size: 0.9em;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Neighborhoods */
.br-neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
}

.br-neighborhood-card {
    background: #fff;
    padding: 1.5em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.br-neighborhood-card h3 {
    font-size: 1.25em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5em 0;
}

.br-neighborhood-signature {
    font-size: 0.95em;
    color: #555;
    font-style: italic;
    margin: 0 0 1em 0;
}

.br-neighborhood-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1em;
}

.br-price-range {
    background: #1a1a1a;
    color: #fff;
    padding: 0.25em 0.75em;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 500;
}

.br-demographic {
    background: #f0f0f0;
    color: #555;
    padding: 0.25em 0.75em;
    border-radius: 3px;
    font-size: 0.8em;
}

.br-key-projects {
    font-size: 0.85em;
    color: #666;
    line-height: 1.6;
}

.br-key-projects strong {
    color: #444;
}

/* Brand Leaders */
.br-brand-leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
}

.br-brand-leader-card {
    background: #fff;
    padding: 1.5em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.br-brand-leader-card h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1em 0;
    padding-bottom: 0.75em;
    border-bottom: 1px solid #eee;
}

.br-brand-leader-card .br-brand-stats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.br-brand-leader-card .br-brand-stats li {
    padding: 0.5em 0;
    font-size: 0.9em;
    color: #444;
    border-bottom: 1px dotted #eee;
}

.br-brand-leader-card .br-brand-stats li:last-child {
    border-bottom: none;
}

.br-brand-leader-card .br-brand-stats strong {
    color: #1a1a1a;
}

/* Rising Contenders */
.br-contenders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
}

.br-contender-card {
    background: #f9f9f9;
    padding: 1.25em;
    border-radius: 4px;
}

.br-contender-card h4 {
    font-size: 1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5em 0;
}

.br-contender-card p {
    font-size: 0.85em;
    color: #666;
    margin: 0;
}

/* Investment Analysis */
.br-investment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
    margin-bottom: 2em;
}

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

.br-investment-card {
    background: #fff;
    padding: 1.5em;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.br-investment-card.br-highlight {
    background: #1a1a1a;
    color: #fff;
}

.br-invest-value {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 0.25em;
}

.br-investment-card.br-highlight .br-invest-value {
    color: #fff;
}

.br-invest-label {
    display: block;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.br-invest-note {
    display: block;
    font-size: 0.75em;
    margin-top: 0.5em;
    opacity: 0.6;
}

.br-tax-section {
    background: #f9f9f9;
    padding: 1.5em;
    border-radius: 4px;
}

.br-tax-section h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1em 0;
}

.br-tax-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75em;
}

.br-tax-list li {
    font-size: 0.9em;
    color: #444;
    padding-left: 1.5em;
    position: relative;
}

.br-tax-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

/* Pipeline */
.br-pipeline-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
}

@media (max-width: 768px) {
    .br-pipeline-columns {
        grid-template-columns: 1fr;
    }
}

.br-pipeline-col h3 {
    font-size: 1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1em 0;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #ddd;
}

.br-pipeline-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.br-pipeline-col li {
    padding: 0.75em 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
}

.br-pipeline-col li:last-child {
    border-bottom: none;
}

.br-project-price {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 0.15em 0.5em;
    border-radius: 3px;
    font-size: 0.85em;
    margin-left: 0.5em;
}

.br-project-desc {
    display: block;
    color: #777;
    font-size: 0.9em;
    margin-top: 0.25em;
}

/* Demographics */
.br-demographics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
}

@media (max-width: 768px) {
    .br-demographics-grid {
        grid-template-columns: 1fr;
    }
}

.br-demo-col h3 {
    font-size: 1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1em 0;
}

.br-demo-bar {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 0.75em;
}

.br-demo-label {
    flex: 0 0 120px;
    font-size: 0.85em;
    color: #555;
}

.br-progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.br-progress-fill {
    height: 100%;
    background: #1a1a1a;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.br-demo-pct {
    flex: 0 0 40px;
    font-size: 0.85em;
    font-weight: 600;
    color: #1a1a1a;
    text-align: right;
}

/* Amenities */
.br-amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
}

@media (max-width: 768px) {
    .br-amenities-grid {
        grid-template-columns: 1fr;
    }
}

.br-amenity-col h3 {
    font-size: 1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1em 0;
}

.br-amenity-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.br-amenity-col li {
    padding: 0.5em 0;
    font-size: 0.9em;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}

.br-amenity-col.br-differentiating li {
    padding-left: 1.25em;
    position: relative;
}

.br-amenity-col.br-differentiating li::before {
    content: "★";
    position: absolute;
    left: 0;
    color: #d4a574;
}

/* Challenges */
.br-challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

@media (max-width: 768px) {
    .br-challenges-grid {
        grid-template-columns: 1fr;
    }
}

.br-challenge-card {
    background: #fff8f5;
    padding: 1.5em;
    border-radius: 4px;
    border-left: 3px solid #dc7856;
}

.br-challenge-card h3 {
    font-size: 1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1em 0;
}

.br-challenge-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.br-challenge-card li {
    padding: 0.5em 0;
    font-size: 0.85em;
    color: #555;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Outlook */
.br-outlook-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

@media (max-width: 768px) {
    .br-outlook-grid {
        grid-template-columns: 1fr;
    }
}

.br-outlook-col {
    background: #f0fdf4;
    padding: 1.5em;
    border-radius: 4px;
}

.br-outlook-col.br-risks {
    background: #fef2f2;
}

.br-outlook-col h3 {
    font-size: 1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1em 0;
}

.br-outlook-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.br-outlook-col li {
    padding: 0.5em 0;
    font-size: 0.85em;
    color: #444;
    padding-left: 1.25em;
    position: relative;
}

.br-outlook-col li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #16a34a;
}

.br-outlook-col.br-risks li::before {
    content: "⚠";
    color: #dc2626;
}

/* Related News */
.br-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

@media (max-width: 768px) {
    .br-news-grid {
        grid-template-columns: 1fr;
    }
}

.br-news-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.br-news-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.br-news-content {
    padding: 1.25em;
}

.br-news-card h3 {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 0.75em 0;
    line-height: 1.4;
}

.br-news-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.br-news-card h3 a:hover {
    text-decoration: underline;
}

.br-news-card p {
    font-size: 0.85em;
    color: #666;
    margin: 0 0 0.75em 0;
    line-height: 1.6;
}

.br-news-card time {
    font-size: 0.75em;
    color: #999;
}

/* CTAs */
.br-market-ctas {
    background: #1a1a1a;
    padding: 3em 2em;
    margin: 3em -2em;
    border-radius: 0;
}

.br-market-ctas .br-section-title {
    color: #fff;
    border-bottom-color: #444;
    text-align: center;
}

.br-ctas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

@media (max-width: 768px) {
    .br-ctas-grid {
        grid-template-columns: 1fr;
    }
}

.br-cta-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2em;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.br-cta-card h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.75em 0;
}

.br-cta-card p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5em 0;
    line-height: 1.6;
}

.br-cta-button {
    display: inline-block;
    background: #fff;
    color: #1a1a1a;
    padding: 0.75em 1.5em;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.br-cta-button:hover {
    background: #f0f0f0;
    color: #1a1a1a;
    text-decoration: none;
}

/* Related Markets */
.br-related-markets {
    border-top: 1px solid #eee;
    padding-top: 2em;
}

.br-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}

@media (max-width: 768px) {
    .br-related-grid {
        grid-template-columns: 1fr;
    }
}

.br-related-card {
    background: #f9f9f9;
    padding: 1.5em;
    border-radius: 4px;
    text-align: center;
}

.br-related-card h3 {
    font-size: 1.25em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5em 0;
}

.br-related-card p {
    font-size: 0.9em;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Error state */
.br-market-page-error {
    background: #fef2f2;
    padding: 2em;
    border-radius: 4px;
    text-align: center;
    color: #dc2626;
}

/* Dark mode support */
.dark .br-market-page,
[data-theme="dark"] .br-market-page {
    color: #e5e5e5;
}

.dark .br-market-hero,
[data-theme="dark"] .br-market-hero {
    background: #1a1a1a;
    border-color: #333;
}

.dark .br-market-title,
.dark .br-section-title,
[data-theme="dark"] .br-market-title,
[data-theme="dark"] .br-section-title {
    color: #fff;
}

.dark .br-market-stats,
[data-theme="dark"] .br-market-stats {
    background: #111;
}

.dark .br-market-stats .br-stat-card,
.dark .br-driver-card,
.dark .br-neighborhood-card,
.dark .br-brand-leader-card,
.dark .br-investment-card,
.dark .br-news-card,
[data-theme="dark"] .br-market-stats .br-stat-card,
[data-theme="dark"] .br-driver-card,
[data-theme="dark"] .br-neighborhood-card,
[data-theme="dark"] .br-brand-leader-card,
[data-theme="dark"] .br-investment-card,
[data-theme="dark"] .br-news-card {
    background: #222;
    border-color: #333;
}

.dark .br-contender-card,
.dark .br-tax-section,
.dark .br-related-card,
[data-theme="dark"] .br-contender-card,
[data-theme="dark"] .br-tax-section,
[data-theme="dark"] .br-related-card {
    background: #222;
}

.dark .br-investment-card.br-highlight,
[data-theme="dark"] .br-investment-card.br-highlight {
    background: #333;
}

.dark .br-progress-bar,
[data-theme="dark"] .br-progress-bar {
    background: #333;
}

.dark .br-progress-fill,
[data-theme="dark"] .br-progress-fill {
    background: #fff;
}

.dark .br-market-ctas,
[data-theme="dark"] .br-market-ctas {
    background: #111;
}

/* Market Page Enhanced Mobile Responsiveness */
@media (max-width: 576px) {
    .br-market-hero {
        padding: 2em 0;
    }
    
    .br-market-title {
        font-size: 2em;
    }
    
    .br-market-tagline {
        font-size: 1.25em;
    }
    
    .br-market-overview {
        font-size: 1em;
    }
    
    .br-section-title {
        font-size: 1.35em;
    }
    
    .br-drivers-grid,
    .br-neighborhoods-grid,
    .br-brand-leaders-grid,
    .br-contenders-grid {
        grid-template-columns: 1fr;
    }
    
    .br-investment-grid {
        grid-template-columns: 1fr;
    }
    
    .br-challenges-grid,
    .br-outlook-grid,
    .br-ctas-grid,
    .br-related-grid {
        grid-template-columns: 1fr;
    }
    
    .br-market-ctas {
        padding: 2em 1.5em;
    }
    
    .br-demo-bar {
        flex-wrap: wrap;
    }
    
    .br-demo-label {
        flex: 0 0 100%;
        margin-bottom: 0.25em;
    }
    
    .br-amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .br-tax-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MARKET CARDS - Clickable Market Navigation
   ============================================ */

/* Related Markets Card Links */
.br-related-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.br-related-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.br-related-card-link:hover h3 {
    color: #b8860b;
}

.br-card-arrow {
    display: block;
    margin-top: 1em;
    font-size: 1.25em;
    color: #b8860b;
    transition: transform 0.2s ease;
}

.br-related-card-link:hover .br-card-arrow {
    transform: translateX(4px);
}

/* Market Cards Grid (for Market Intelligence page) */
.br-market-cards-container {
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 1em;
}

.br-market-cards-title {
    text-align: center;
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 1.5em;
    color: inherit;
}

.br-market-cards-grid {
    display: grid;
    gap: 1.5em;
}

.br-market-cards-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.br-market-cards-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.br-market-cards-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.br-market-card-item {
    display: block;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.75em;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.br-market-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b8860b, #d4a84b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.br-market-card-item:hover::before {
    transform: scaleX(1);
}

.br-market-card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: #b8860b;
}

.br-market-card-content {
    position: relative;
    z-index: 1;
}

.br-market-card-name {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 0.5em 0;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.br-market-card-item:hover .br-market-card-name {
    color: #b8860b;
}

.br-market-card-tagline {
    font-size: 0.95em;
    color: #666;
    margin: 0 0 1.25em 0;
    line-height: 1.5;
}

.br-market-card-stats {
    display: flex;
    gap: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #eee;
    margin-bottom: 1em;
}

.br-market-card-stat {
    text-align: center;
    flex: 1;
}

.br-market-card-stat .br-stat-value {
    display: block;
    font-size: 1.35em;
    font-weight: 700;
    color: #b8860b;
}

.br-market-card-stat .br-stat-label {
    display: block;
    font-size: 0.75em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25em;
}

.br-market-card-arrow {
    display: block;
    font-size: 0.9em;
    color: #b8860b;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.br-market-card-item:hover .br-market-card-arrow {
    transform: translateX(6px);
}

/* Dark mode for Market Cards */
.dark .br-market-card-item,
[data-theme="dark"] .br-market-card-item {
    background: #1a1a1a;
    border-color: #333;
}

.dark .br-market-card-name,
[data-theme="dark"] .br-market-card-name {
    color: #fff;
}

.dark .br-market-card-tagline,
[data-theme="dark"] .br-market-card-tagline {
    color: #999;
}

.dark .br-market-card-stats,
[data-theme="dark"] .br-market-card-stats {
    border-top-color: #333;
}

/* Market Cards Responsive */
@media (max-width: 992px) {
    .br-market-cards-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .br-market-cards-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .br-market-cards-cols-2,
    .br-market-cards-cols-3,
    .br-market-cards-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .br-market-cards-title {
        font-size: 1.5em;
    }
    
    .br-market-card-item {
        padding: 1.25em;
    }
    
    .br-market-card-stats {
        gap: 0.75em;
    }
}

/* ============================================
   PILLAR PAGE - Complete Guide Styling
   ============================================ */

.br-pillar-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5em;
    color: #1a1a1a;
    font-size: 1.1em;
    line-height: 1.7;
}

/* Hero */
.br-pillar-hero {
    text-align: center;
    padding: 3em 0 2em;
    border-bottom: 1px solid #eee;
    margin-bottom: 2em;
}

.br-pillar-updated {
    font-size: 0.85em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1em;
}

.br-pillar-title {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5em 0;
    color: #1a1a1a;
}

.br-pillar-subtitle {
    font-size: 1.25em;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Table of Contents */
.br-toc {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5em 2em;
    margin-bottom: 3em;
}

.br-toc-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 1em 0;
    color: #333;
}

.br-toc-list {
    margin: 0;
    padding-left: 1.5em;
}

.br-toc-list li {
    margin-bottom: 0.5em;
}

.br-toc-list a {
    color: #b8860b;
    text-decoration: none;
}

.br-toc-list a:hover {
    text-decoration: underline;
}

/* Sections */
.br-pillar-section {
    margin-bottom: 3.5em;
    padding-top: 1em;
}

.br-pillar-section .br-section-title {
    font-size: 1.75em;
    font-weight: 700;
    margin: 0 0 1em 0;
    color: #1a1a1a;
    border-bottom: 2px solid #b8860b;
    padding-bottom: 0.5em;
}

.br-pillar-content p {
    margin-bottom: 1.25em;
}

.br-lead {
    font-size: 1.15em;
    color: #333;
}

.br-subsection-title {
    font-size: 1.35em;
    font-weight: 600;
    margin: 2em 0 1em 0;
    color: #333;
}

/* Value Grid */
.br-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin: 1.5em 0;
}

.br-value-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.25em;
}

.br-value-card h4 {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 0.5em 0;
    color: #b8860b;
}

.br-value-card p {
    font-size: 0.9em;
    margin: 0;
    color: #666;
}

/* Comparison Table */
.br-comparison-table-wrapper {
    overflow-x: auto;
    margin: 1.5em 0;
}

.br-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.br-comparison-table th,
.br-comparison-table td {
    padding: 0.75em 1em;
    text-align: left;
    border: 1px solid #e5e5e5;
}

.br-comparison-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.br-comparison-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Timeline */
.br-timeline {
    position: relative;
    margin: 2em 0;
    padding-left: 2em;
    border-left: 2px solid #b8860b;
}

.br-timeline-item {
    position: relative;
    margin-bottom: 1.5em;
    padding-left: 1em;
}

.br-timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35em;
    top: 0.35em;
    width: 12px;
    height: 12px;
    background: #b8860b;
    border-radius: 50%;
}

.br-timeline-year {
    display: block;
    font-weight: 700;
    color: #b8860b;
    font-size: 0.95em;
}

.br-timeline-event {
    color: #666;
}

/* Highlight Stat */
.br-highlight-stat {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
    padding: 2em;
    border-radius: 8px;
    text-align: center;
    margin: 2em 0;
}

.br-stat-number {
    display: block;
    font-size: 3em;
    font-weight: 700;
    color: #d4a84b;
}

.br-stat-text {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Brands Showcase */
.br-brands-showcase {
    display: grid;
    gap: 1.25em;
    margin: 1.5em 0;
}

.br-brand-profile {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #b8860b;
    padding: 1.25em 1.5em;
    border-radius: 0 6px 6px 0;
}

.br-brand-profile h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 0.5em 0;
    color: #1a1a1a;
}

.br-brand-desc {
    font-size: 0.95em;
    color: #666;
    margin: 0;
}

/* Investment Highlights */
.br-investment-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin: 1.5em 0;
}

.br-invest-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.5em;
    text-align: center;
}

.br-invest-card h4 {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 0 0 0.5em 0;
}

.br-invest-stat {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: #b8860b;
    margin-bottom: 0.25em;
}

.br-invest-card p {
    font-size: 0.85em;
    color: #666;
    margin: 0;
}

/* Steps Grid */
.br-steps-grid {
    display: grid;
    gap: 1.25em;
    margin: 1.5em 0;
}

.br-step-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.5em;
    position: relative;
}

.br-step-number {
    position: absolute;
    top: -0.75em;
    left: 1em;
    width: 2em;
    height: 2em;
    background: #b8860b;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.br-step-card h4 {
    margin: 0.5em 0 0.75em 0;
    font-size: 1.1em;
    color: #1a1a1a;
}

.br-step-card ul {
    margin: 0;
    padding-left: 1.25em;
    font-size: 0.95em;
}

.br-step-card li {
    margin-bottom: 0.5em;
    color: #666;
}

/* Developer Benefits */
.br-dev-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin: 1.5em 0;
}

.br-dev-benefit {
    background: #f9f9f9;
    padding: 1.25em;
    border-radius: 6px;
    text-align: center;
}

.br-dev-benefit h4 {
    font-size: 1em;
    color: #333;
    margin: 0 0 0.5em 0;
}

.br-dev-benefit p {
    font-size: 0.9em;
    color: #b8860b;
    margin: 0;
    font-weight: 600;
}

.br-structure-list {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.br-structure-list li {
    padding: 0.75em 1em;
    background: #fff;
    border: 1px solid #e5e5e5;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

/* Emerging Markets */
.br-emerging-markets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    margin: 1em 0;
}

.br-emerging-tag {
    background: #f5f5f5;
    padding: 0.5em 1em;
    border-radius: 20px;
    font-size: 0.9em;
    color: #666;
}

/* Trends Grid */
.br-trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25em;
    margin: 1.5em 0;
}

.br-trend-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.5em;
}

.br-trend-card h4 {
    font-size: 1.1em;
    color: #b8860b;
    margin: 0 0 0.75em 0;
}

.br-trend-card p {
    font-size: 0.95em;
    color: #666;
    margin: 0;
}

/* FAQ */
.br-faq-list {
    margin: 1.5em 0;
}

.br-faq-item {
    border-bottom: 1px solid #e5e5e5;
    padding: 1.25em 0;
}

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

.br-faq-item h3 {
    font-size: 1.1em;
    color: #1a1a1a;
    margin: 0 0 0.75em 0;
}

.br-faq-item p {
    color: #666;
    margin: 0;
}

/* Pillar CTAs */
.br-pillar-ctas {
    background: #1a1a1a;
    color: #fff;
    padding: 3em 2em;
    border-radius: 8px;
    margin: 3em 0;
}

.br-pillar-ctas .br-section-title {
    color: #fff;
    border-bottom-color: #d4a84b;
    text-align: center;
}

/* Footer */
.br-pillar-footer {
    border-top: 1px solid #eee;
    padding-top: 2em;
    margin-top: 3em;
    font-size: 0.9em;
    color: #666;
}

.br-disclaimer {
    font-size: 0.85em;
    color: #999;
    font-style: italic;
}

/* Pillar Page Dark Mode */
.dark .br-pillar-page,
[data-theme="dark"] .br-pillar-page {
    color: #e5e5e5;
}

.dark .br-pillar-title,
[data-theme="dark"] .br-pillar-title {
    color: #fff;
}

.dark .br-toc,
[data-theme="dark"] .br-toc {
    background: #1a1a1a;
    border-color: #333;
}

.dark .br-value-card,
.dark .br-brand-profile,
.dark .br-invest-card,
.dark .br-step-card,
.dark .br-trend-card,
[data-theme="dark"] .br-value-card,
[data-theme="dark"] .br-brand-profile,
[data-theme="dark"] .br-invest-card,
[data-theme="dark"] .br-step-card,
[data-theme="dark"] .br-trend-card {
    background: #222;
    border-color: #333;
}

.dark .br-comparison-table th,
[data-theme="dark"] .br-comparison-table th {
    background: #333;
    color: #fff;
}

.dark .br-comparison-table td,
[data-theme="dark"] .br-comparison-table td {
    border-color: #333;
}

.dark .br-dev-benefit,
.dark .br-emerging-tag,
[data-theme="dark"] .br-dev-benefit,
[data-theme="dark"] .br-emerging-tag {
    background: #333;
    color: #ccc;
}

.dark .br-faq-item,
[data-theme="dark"] .br-faq-item {
    border-color: #333;
}

.dark .br-pillar-footer,
[data-theme="dark"] .br-pillar-footer {
    border-color: #333;
}

/* Pillar Page Responsive */
@media (max-width: 768px) {
    .br-pillar-title {
        font-size: 1.75em;
    }
    
    .br-pillar-subtitle {
        font-size: 1.1em;
    }
    
    .br-pillar-section .br-section-title {
        font-size: 1.4em;
    }
    
    .br-value-grid,
    .br-investment-highlights,
    .br-dev-benefits {
        grid-template-columns: 1fr;
    }
    
    .br-highlight-stat {
        padding: 1.5em;
    }
    
    .br-stat-number {
        font-size: 2.5em;
    }
    
    .br-pillar-ctas {
        padding: 2em 1.5em;
    }
}
