/* Enhanced Color Palette */
:root {
    /* Vibrant Primary Colors */
    --color-primary: #3b82f6;
    --color-secondary: #8b5cf6;
    --color-accent: #ec4899;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #06b6d4;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-cool: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --gradient-luxury: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.95);

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Interactive Elements */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);

    /* Animation Durations */
    --transition-fast: 0.15s;
    --transition-base: 0.3s;
    --transition-slow: 0.5s;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.05;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Dashboard Container */
.dashboard-container {
    position: relative;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Enhanced Header */
.dashboard-header {
    position: relative;
    background: var(--gradient-cool);
    color: white;
    padding: 3rem 0;
    overflow: hidden;
}

.header-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.header-particles::before,
.header-particles::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.header-particles::before {
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.header-particles::after {
    bottom: -100px;
    right: -100px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -50px) scale(1.1); }
    50% { transform: translate(-50px, 100px) scale(0.9); }
    75% { transform: translate(50px, 50px) scale(1.05); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Author Section */
.author-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.author-image-wrapper {
    position: relative;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-base);
}

.author-image:hover {
    transform: scale(1.05);
}

.author-image-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(255, 216, 155, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.author-info {
    text-align: left;
}

.author-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.author-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    font-weight: 300;
}

.author-badges {
    display: flex;
    gap: 0.75rem;
}

.author-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    transition: all var(--transition-base);
}

.author-badges .badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.author-badges .badge i {
    color: #ffd89b;
}

.report-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 216, 155, 1);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease;
}

.luxury-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    animation: slideInLeft 0.6s ease;
}

.title-line:nth-child(2) {
    animation: slideInRight 0.6s ease;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(50px); }
}

.gradient-text {
    background: linear-gradient(90deg, #ffd89b, #19547b, #ffd89b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.header-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.location-badge,
.season-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-weight: 500;
    transition: all var(--transition-base);
}

.location-badge:hover,
.season-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.header-description {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Market Ticker */
.market-ticker {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    gap: 3rem;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.ticker-item i {
    color: #ffd89b;
}

/* Enhanced Navigation Tabs */
.tab-navigation {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-wrapper {
    position: relative;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    border-radius: 3px 3px 0 0;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-buttons::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: 8px;
    white-space: nowrap;
    position: relative;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--color-primary);
}

.tab-btn.active {
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px 3px 0 0;
}

/* Main Content */
.dashboard-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Interactive Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.metric-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    overflow: hidden;
    cursor: pointer;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.metric-card.premium::before {
    background: var(--gradient-luxury);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.metric-card:hover .card-glow {
    opacity: 1;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-luxury);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.metric-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.2); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.2; }
}

.metric-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.75rem;
    color: var(--color-primary);
}

.metric-content h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.metric-chart {
    margin: 1rem 0;
    height: 50px;
}

.change-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.change-indicator.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.change-indicator.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.change-indicator.premium {
    background: var(--gradient-luxury);
    color: white;
}

.card-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.metric-card:hover .card-hover-info {
    transform: translateY(0);
}

.card-hover-info p {
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

/* Market Health Gauge */
.market-health-gauge {
    position: relative;
    width: 100%;
    height: 80px;
    margin: 1rem 0;
}

.gauge {
    width: 100%;
    height: 100%;
}

.gauge-fill {
    transition: stroke-dashoffset 1s ease;
    animation: gaugeAnimation 2s ease forwards;
}

@keyframes gaugeAnimation {
    from { stroke-dashoffset: 251; }
    to { stroke-dashoffset: 100; }
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-success);
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

/* Enhanced Data Visualization */
.visualization-container {
    background: white;
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.visualization-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

.viz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.viz-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.viz-title i {
    color: var(--color-primary);
}

.viz-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.control-group {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
}

.viz-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.viz-btn.active {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.viz-btn:hover:not(.active) {
    color: var(--text-primary);
}

.premium-select {
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.premium-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.premium-chart-container {
    position: relative;
    height: 650px;
    display: none;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 30px;
}

.premium-chart-container.active {
    display: block;
}

.chart-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

#communities-chart {
    max-height: 580px;
}

.premium-table-container {
    display: none;
}

.premium-table-container.active {
    display: block;
}

.luxury-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.luxury-table thead th {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.luxury-table thead th:first-child {
    border-radius: 12px 0 0 12px;
}

.luxury-table thead th:last-child {
    border-radius: 0 12px 12px 0;
}

.luxury-table thead th i {
    margin-right: 8px;
    color: #fbbf24;
}

.luxury-table tbody tr {
    background: white;
    transition: all 0.3s ease;
}

.luxury-table tbody tr:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.luxury-table tbody td {
    padding: 20px 18px;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.luxury-table tbody td:first-child {
    border-left: 1px solid #f3f4f6;
    border-radius: 12px 0 0 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.luxury-table tbody td:last-child {
    border-right: 1px solid #f3f4f6;
    border-radius: 0 12px 12px 0;
}

.community-cards-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.community-cards-grid.active {
    display: grid;
}

/* Premium Market Insights */
.insights-container {
    margin-bottom: 60px;
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.insights-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50px;
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.insight-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.insight-card.elevated {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.card-shimmer {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.card-content h5 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: all 0.5s ease;
}

.card-trend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-trend.up {
    color: #10b981;
}

.card-trend.down {
    color: #ef4444;
}

.card-trend.gold {
    color: #f59e0b;
}

.card-chart {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 60px;
    opacity: 0.3;
}

.card-gauge {
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 15px;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 2px;
    transition: width 1s ease;
}

.performance-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
    margin-top: 15px;
}

.perf-bar {
    flex: 1;
    background: linear-gradient(to top, #fbbf24 0%, #f59e0b 100%);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.insight-card.featured {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
}

/* Community Cards Styles */
.community-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.community-card.hot {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

.community-card.active {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
}

.community-card.slow {
    border-color: #6b7280;
    background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
}

.community-card-header {
    margin-bottom: 20px;
}

.community-card-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.price-range {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

.community-card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.community-stat {
    text-align: center;
}

.community-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.community-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.community-stat.highlight .stat-value {
    color: var(--color-primary);
}

.community-card-footer {
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.activity-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.activity-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 3px;
    transition: width 1s ease;
}

/* Activity Feed */
.activity-feed {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.feed-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feed-title i {
    color: var(--color-danger);
    animation: pulse 1.5s infinite;
}

.feed-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all var(--transition-base);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.feed-item:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    transform: translateX(5px);
}

.feed-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.25rem;
}

.feed-item.new .feed-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.feed-item.sold .feed-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
}

.feed-item.price-change .feed-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.feed-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feed-text {
    flex: 1;
    font-weight: 500;
}

.feed-price {
    font-weight: 700;
    color: var(--color-primary);
}

.feed-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* St Andrews Stats */
.st-andrews-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.stat-card.luxury {
    background: var(--gradient-luxury);
    color: white;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Price Distribution */
.price-distribution {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.price-distribution h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.distribution-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
}

.dist-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin: 0 1rem;
}

.bar-fill {
    width: 80px;
    background: var(--gradient-primary);
    border-radius: 10px 10px 0 0;
    position: relative;
    transition: all var(--transition-base);
    animation: growBar 1s ease forwards;
}

@keyframes growBar {
    from { height: 0 !important; }
}

.bar-fill:hover {
    transform: scaleY(1.05);
    filter: brightness(1.1);
}

.bar-value {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 1.25rem;
}

.bar-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.75rem;
}

.feature-icon.waterfront {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feature-icon.pool {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

.feature-icon.new {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.feature-icon.golf {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: white;
}

.feature-card h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Top Listing */
.top-listing {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.top-listing h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.listing-card {
    position: relative;
    background: var(--gradient-luxury);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    overflow: hidden;
}

.listing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.listing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.listing-details {
    position: relative;
    z-index: 1;
}

.listing-details h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.listing-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.listing-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.listing-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Premium Local Communities Section */
.communities-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    overflow: hidden;
    z-index: 0;
}

.communities-bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.premium-header {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
    z-index: 1;
}

.header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 100px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.premium-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    margin-bottom: 10px;
}

.icon-wrapper i {
    font-size: 1.8rem;
    color: white;
}

.title-text {
    font-size: 2.5rem;
    line-height: 1.2;
}

.subtitle-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.premium-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* St. Andrews Showcase */
.st-andrews-showcase {
    position: relative;
    margin-bottom: 60px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.showcase-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.animated-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e293b 0%, #3730a3 25%, #1e3a8a 50%, #1e293b 75%, #3730a3 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pattern-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.05) 35px, rgba(255,255,255,0.05) 70px);
}

.showcase-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    color: white;
}

.showcase-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.icon-luxury {
    position: relative;
    width: 80px;
    height: 80px;
}

.icon-luxury i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: #fbbf24;
    z-index: 2;
}

.icon-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.showcase-titles {
    flex: 1;
}

.showcase-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.showcase-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.showcase-badge {
    padding: 10px 25px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.showcase-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.metric-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.metric-item.premium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

.metric-item.highlight {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.metric-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.metric-icon i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.metric-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    filter: blur(30px);
    z-index: -1;
}

.highlight-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.highlight-header i {
    font-size: 2rem;
    color: #fbbf24;
}

.highlight-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.highlight-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-value.green {
    color: #10b981;
}

.stat-value.blue {
    color: #3b82f6;
}

.stat-value.gold {
    color: #fbbf24;
}

.communities-grid {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.grid-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.chart-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.chart-selector {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-selector:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

.chart-selector:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.communities-table {
    overflow-x: auto;
    margin-top: 20px;
}

.communities-table table {
    width: 100%;
    border-collapse: collapse;
}

.communities-table th {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.communities-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-primary);
}

.communities-table tr:hover {
    background: #f8fafc;
}

.market-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.summary-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

.summary-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.summary-card h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.summary-change {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-change.positive {
    color: var(--color-success);
}

.top-communities {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-align: center;
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.leader-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.leader-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leader-list {
    list-style: none;
    counter-reset: leader-counter;
}

.leader-list li {
    counter-increment: leader-counter;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-left: 40px;
    transition: all 0.3s ease;
}

.leader-list li:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    transform: translateX(5px);
}

.leader-list li::before {
    content: counter(leader-counter);
    position: absolute;
    left: 12px;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.leader-list li:first-child::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.community-name {
    font-weight: 600;
    color: var(--text-primary);
}

.community-stat {
    font-weight: 700;
    color: var(--color-primary);
}

/* Interactive Map */
.map-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.map-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.map-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
    position: relative;
    z-index: 10;
}

.map-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

.map-btn.active {
    background: var(--gradient-primary);
    color: white;
}

.interactive-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-svg {
    width: 100%;
    height: auto;
}

.community {
    cursor: pointer;
    transition: all var(--transition-base);
}

.community:hover {
    transform: scale(1.1);
}

.property-marker {
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.map-info-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.map-info-panel h5 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Footer */
.dashboard-footer {
    background: var(--bg-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.footer-actions {
    display: flex;
    gap: 1rem;
}

.btn-export,
.btn-share,
.btn-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-contact {
    background: var(--gradient-warm);
}

.btn-export:hover,
.btn-share:hover,
.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer-author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-xl);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.fab-container:hover .fab-menu {
    display: flex;
    animation: fabMenuOpen 0.3s ease;
}

@keyframes fabMenuOpen {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fab-option {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-option:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.fab-label {
    position: absolute;
    right: 60px;
    background: var(--bg-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.fab-option:hover .fab-label {
    opacity: 1;
}

/* Boca Raton Tab Styles */
.market-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.overview-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.overview-card.gradient-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-secondary);
}

.card-header i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.card-stats {
    margin-bottom: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-value.highlight {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.stat-value.positive {
    color: var(--color-success);
}

.stat-value.negative {
    color: var(--color-danger);
}

.market-indicator {
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.market-indicator.balanced {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
}

.market-indicator.buyers {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.chart-section-full {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.chart-wrapper-large {
    height: 400px;
}

.chart-wrapper-medium {
    height: 350px;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.neighborhood-grid {
    margin-bottom: 3rem;
}

.neighborhood-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.neighborhood-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.neighborhood-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.neighborhood-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
}

.neighborhood-card h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.neighborhood-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.neighborhood-features {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Delray Beach Tab Styles */
.delray-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.delray-stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: all var(--transition-base);
}

.delray-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-icon-large {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
    font-size: 1.25rem;
}

.stat-info {
    flex: 1;
}

.stat-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-comparison {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.previous {
    font-size: 0.75rem;
    color: var(--text-light);
}

.change-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.change-badge.improvement {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.trend-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.trend-indicator.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.trend-indicator.neutral {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.highlights-section {
    margin-bottom: 3rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.highlight-box {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.highlight-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.highlight-header i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.25rem;
}

.highlight-header.beachfront i {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.highlight-header.downtown i {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.highlight-header.investment i {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.highlight-box p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Price Segments Tab Styles */
.price-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tier-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.tier-card.tier-entry::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.tier-card.tier-mid::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.tier-card.tier-high::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.tier-card.tier-ultra::before {
    background: linear-gradient(90deg, #ec4899, #f472b6);
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tier-header {
    margin-bottom: 1.5rem;
}

.tier-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tier-range {
    font-size: 1rem;
    color: var(--text-secondary);
}

.tier-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.tier-stat {
    text-align: center;
}

.tier-stat .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.tier-stat .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tier-chart {
    height: 150px;
    margin-bottom: 1.5rem;
}

.tier-insights h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tier-insights ul {
    list-style: none;
    padding: 0;
}

.tier-insights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tier-insights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.performance-matrix {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.matrix-chart {
    height: 400px;
}

/* Enhanced Map Styles */
.map-container-enhanced {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.map-wrapper {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 2rem;
}

.interactive-map-new {
    position: relative;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-area {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(180deg, #87ceeb 0%, #e0f6ff 30%, #f0f9ff 60%, #fef3c7 90%, #fde68a 100%);
}

/* Ocean waves animation */
.ocean-area {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.2));
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: wave 8s linear infinite;
}

.wave:nth-child(2) {
    animation-delay: 2s;
    opacity: 0.7;
}

.wave:nth-child(3) {
    animation-delay: 4s;
    opacity: 0.5;
}

@keyframes wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Waterway */
.waterway {
    position: absolute;
    left: 70%;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    opacity: 0.3;
    border-radius: 10px;
}

/* Highways */
.highway {
    position: absolute;
    background: rgba(100, 100, 100, 0.2);
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.highway.a1a {
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

.highway.us1 {
    left: 60%;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

.highway.i95 {
    left: 20%;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

/* Map Communities */
.map-community {
    position: absolute;
    cursor: pointer;
    transition: all var(--transition-base);
}

.map-community:hover {
    transform: scale(1.1);
    z-index: 10;
}

.community-marker {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--color-primary);
    font-size: 1.5rem;
    color: var(--color-primary);
}

.community-marker.beach {
    border-color: var(--color-info);
    color: var(--color-info);
}

.community-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.community-popup {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
    min-width: 200px;
    z-index: 100;
}

.map-community:hover .community-popup {
    opacity: 1;
    pointer-events: auto;
    bottom: 90px;
}

.community-popup h5 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.community-popup p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

/* Property dots */
.property-dots {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--shadow-md);
    animation: dotPulse 2s infinite;
}

.dot.mid {
    background: #10b981;
}

.dot.high {
    background: #3b82f6;
}

.dot.luxury {
    background: #8b5cf6;
}

.dot.ultra {
    background: #ec4899;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Map Legend */
.map-legend-new {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.map-legend-new h5 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

/* Map Stats Panel */
.map-stats-panel {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.5rem;
}

.map-stats-panel h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.map-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.map-stat:last-child {
    border-bottom: none;
}

.map-stat .stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.map-stat .stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
    }

    .author-section {
        flex-direction: column;
        text-align: center;
    }

    .author-info {
        text-align: center;
    }

    .author-badges {
        justify-content: center;
    }

    .author-image {
        width: 100px;
        height: 100px;
    }

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

    .charts-section {
        grid-template-columns: 1fr;
    }

    .st-andrews-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .tab-buttons {
        overflow-x: auto;
    }

    .distribution-bars {
        height: 150px;
    }

    .bar-fill {
        width: 60px;
    }
}