/* Club Estates article components — extracted from the proven template. Shared by all generated articles. */
:root {
            --gold: #A3884F;
            --gold-light: #C4AB6E;
            --gold-dark: #8A7342;
            --black: #1A1A1A;
            --charcoal: #2C2C2C;
            --slate: #4A4A4A;
            --warm-gray: #8B8680;
            --stone: #C8C2B8;
            --cream: #F5F0EA;
            --ivory: #FAF8F5;
            --white: #FFFFFF;
            --serif: 'Cormorant Garamond', 'Georgia', serif;
            --sans: 'Inter', -apple-system, sans-serif;
            --max-width: 1280px;
        }
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        body {
            font-family: var(--sans);
            color: var(--charcoal);
            background: var(--white);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        /* HERO */
        .post-hero {
            margin-top: 56px;
            position: relative;
            width: 100%;
            aspect-ratio: 21/9;
            max-height: 560px;
            min-height: 460px;
            overflow: visible;
            background: linear-gradient(135deg, var(--cream) 0%, var(--stone) 100%);
        }
        .post-hero-img-wrap { position: absolute; inset: 0; overflow: hidden; }
        .post-hero img { width: 100%; height: 100%; object-fit: cover; }
        .post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.45) 30%, rgba(0,0,0,0.1) 55%, transparent 75%); }
        .post-hero .article-header { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 0 40px 40px; }

        /* ARTICLE HEADER */
        .article-header { max-width: 820px; margin: 0 auto; text-align: center; }
        .article-category { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 16px; }
        .post-hero .article-category { color: var(--gold-light); }
        .article-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); font-weight: 400; line-height: 1.2; margin-bottom: 20px; }
        .post-hero .article-title { color: var(--white); text-shadow: 0 2px 30px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.4); }
        .article-meta { display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 13px; }
        .post-hero .article-meta { color: rgba(255,255,255,0.8); }
        .article-meta-divider { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.5); }

        /* ARTICLE LAYOUT */
        .article-layout {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 48px 40px 80px;
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 56px;
        }
        .article-body { max-width: 760px; }

        /* ARTICLE CONTENT */
        .article-content { font-size: 17px; line-height: 1.85; color: var(--charcoal); }
        .article-content p { margin-bottom: 24px; }
        .article-content h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; color: var(--black); margin-top: 48px; margin-bottom: 16px; line-height: 1.3; }
        .article-content h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--black); margin-top: 36px; margin-bottom: 12px; }
        .article-content strong { font-weight: 600; color: var(--black); }
        .article-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-light); transition: color 0.2s; }
        .article-content a:hover { color: var(--gold-dark); }
        .article-content hr { border: none; height: 1px; background: var(--cream); margin: 48px 0; }
        .article-content blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 28px; margin: 36px 0; font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--slate); line-height: 1.5; }
        .article-content ul, .article-content ol { margin: 20px 0 24px 24px; }
        .article-content li { margin-bottom: 8px; }
        .article-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 32px 0; }

        /* SHARE */
        .article-bottom { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--cream); }
        .share-row { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
        .share-label { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--warm-gray); }
        .share-links { display: flex; gap: 8px; }
        .share-link { width: 36px; height: 36px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background 0.3s; }
        .share-link:hover { background: var(--gold); }
        .share-link svg { width: 15px; height: 15px; fill: var(--slate); transition: fill 0.3s; }
        .share-link:hover svg { fill: var(--white); }

        /* SIDEBAR */
        .article-sidebar { position: sticky; top: 80px; align-self: start; }
        .sidebar-section { margin-bottom: 36px; }
        .sidebar-heading { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--black); padding-bottom: 12px; border-bottom: 2px solid var(--black); margin-bottom: 16px; }
        .sidebar-post { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--cream); text-decoration: none; color: inherit; transition: background 0.2s; }
        .sidebar-post:last-child { border-bottom: none; }
        .sidebar-post:hover { background: rgba(0,0,0,0.01); }
        .sidebar-post-thumb { aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: linear-gradient(135deg, var(--cream) 0%, var(--stone) 100%); }
        .sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .sidebar-post-body { display: flex; flex-direction: column; justify-content: center; }
        .sidebar-post-title { font-family: var(--serif); font-size: 16px; font-weight: 400; color: var(--black); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .sidebar-post-price { font-size: 13px; color: var(--gold); margin-top: 4px; font-weight: 500; }
        .sidebar-ads { display: flex; flex-direction: column; gap: 32px; }
        .ad-unit { display: flex; align-items: center; justify-content: center; background: var(--cream); border: 1px dashed var(--stone); border-radius: 3px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--stone); }
        .ad-300x250 { width: 300px; height: 250px; }
        .ad-300x600 { width: 300px; height: 600px; }

        /* RELATED SECTION */
        .related-section { padding: 80px 40px; background: var(--ivory); }
        .related-inner { max-width: var(--max-width); margin: 0 auto; }
        .related-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 2px solid var(--black); margin-bottom: 32px; }
        .related-title { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--black); }
        .related-link { font-size: 12px; font-weight: 500; color: var(--gold); text-decoration: none; letter-spacing: 1px; text-transform: uppercase; }
        .related-link:hover { color: var(--gold-dark); }
        .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
        .related-card { background: var(--white); border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 4px rgba(0,0,0,0.04); transition: transform 0.35s, box-shadow 0.35s; }
        .related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
        .related-card-image { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--cream) 0%, var(--stone) 100%); }
        .related-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
        .related-card:hover .related-card-image img { transform: scale(1.04); }
        .related-card-body { padding: 24px; }
        .related-card-category { font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
        .related-card-title { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--black); line-height: 1.3; margin-bottom: 8px; }
        .related-card-price { font-size: 14px; color: var(--gold-dark); font-weight: 500; }

        /* LEADERBOARD AD */
        .ad-leaderboard { text-align: center; padding: 24px 0; background: var(--ivory); }
        .ad-leaderboard-inner { display: inline-flex; align-items: center; justify-content: center; width: 728px; max-width: 100%; height: 90px; background: var(--cream); border: 1px dashed var(--stone); border-radius: 3px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--stone); }

        /* PROPERTY CARD */
        .property-feature { margin: 40px 0; background: var(--ivory); border-radius: 8px; overflow: hidden; border: 1px solid var(--cream); transition: box-shadow 0.3s; }
        .property-feature:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
        .property-feature-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; }
        .property-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
        .property-feature:hover .property-feature-img img { transform: scale(1.03); }
        .property-rank { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; background: var(--gold); color: var(--white); font-family: var(--serif); font-size: 20px; font-weight: 500; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
        .property-feature-body { padding: 32px; }
        .property-feature-price { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--gold-dark); margin-bottom: 4px; }
        .property-feature-address { font-size: 14px; font-weight: 500; color: var(--black); letter-spacing: 0.5px; margin-bottom: 4px; }
        .property-feature-community { font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
        .property-stats { display: flex; gap: 24px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--cream); }
        .property-stat { text-align: center; }
        .property-stat-value { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--black); }
        .property-stat-label { font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--warm-gray); }
        .property-feature-desc { font-size: 15px; line-height: 1.7; color: var(--slate); margin-bottom: 24px; }
        .property-feature-cta { display: inline-block; padding: 12px 28px; background: var(--gold); color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background 0.3s; }
        .property-feature-cta:hover { background: var(--gold-dark); color: var(--white); }

        /* TOC */
        .toc { background: var(--ivory); border: 1px solid var(--cream); border-radius: 8px; padding: 28px 32px; margin: 32px 0 48px; }
        .toc-title { font-family: var(--serif); font-size: 20px; color: var(--black); margin-bottom: 16px; }
        .toc ol { margin: 0; padding-left: 20px; }
        .toc li { margin-bottom: 8px; font-size: 14px; color: var(--slate); }
        .toc li a { color: var(--slate); text-decoration: none; transition: color 0.2s; }
        .toc li a:hover { color: var(--gold); }
        .toc .toc-price { color: var(--warm-gray); font-size: 13px; }

        /* ============================================
           DYNAMIC / ANIMATED WIDGETS
           ============================================ */

        /* Stats row — animated counters */
        .ce-stats-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
            margin: 48px 0;
            padding: 40px 32px;
            background: linear-gradient(135deg, var(--black) 0%, var(--charcoal) 100%);
            border-radius: 10px;
            color: var(--white);
        }
        .ce-stat {
            text-align: center;
            position: relative;
        }
        .ce-stat-value {
            font-family: var(--serif);
            font-size: clamp(32px, 4vw, 48px);
            font-weight: 500;
            color: var(--gold-light);
            line-height: 1;
            margin-bottom: 10px;
            letter-spacing: 0.5px;
            display: block;
        }
        .ce-stat-value .ce-prefix,
        .ce-stat-value .ce-suffix {
            font-size: 0.65em;
            color: var(--gold);
            font-weight: 400;
        }
        .ce-stat-label {
            font-family: var(--sans);
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.75);
            line-height: 1.4;
        }
        .ce-stat-source {
            font-size: 10px;
            color: rgba(255,255,255,0.4);
            margin-top: 6px;
            letter-spacing: 0.3px;
        }
        @media (max-width: 768px) {
            .ce-stats-row { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; padding: 28px 20px; }
        }

        /* Bar chart — animated growth */
        .ce-bar-chart {
            background: var(--ivory);
            border: 1px solid var(--cream);
            border-radius: 10px;
            padding: 36px 32px;
            margin: 48px 0;
        }
        .ce-bar-chart-title {
            font-family: var(--serif);
            font-size: 24px;
            color: var(--black);
            margin-bottom: 6px;
            font-weight: 500;
        }
        .ce-bar-chart-subtitle {
            font-size: 13px;
            color: var(--warm-gray);
            margin-bottom: 28px;
            letter-spacing: 0.3px;
        }
        .ce-bar-row {
            display: grid;
            grid-template-columns: 180px 1fr 80px;
            gap: 16px;
            align-items: center;
            margin-bottom: 16px;
        }
        .ce-bar-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--charcoal);
            text-align: right;
            letter-spacing: 0.3px;
        }
        .ce-bar-track {
            height: 28px;
            background: var(--white);
            border-radius: 3px;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
        }
        .ce-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--gold-light) 0%, var(--gold) 70%, var(--gold-dark) 100%);
            border-radius: 3px;
            width: 0;
            transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
            position: relative;
            box-shadow: 0 1px 4px rgba(163, 136, 79, 0.3);
        }
        .ce-bar-fill.is-leader {
            background: linear-gradient(90deg, var(--charcoal) 0%, var(--black) 100%);
            box-shadow: 0 1px 4px rgba(0,0,0,0.3);
        }
        .ce-bar-value {
            font-size: 14px;
            font-weight: 600;
            color: var(--black);
            font-family: var(--serif);
            letter-spacing: 0.3px;
        }
        .ce-bar-caption {
            font-size: 11px;
            color: var(--warm-gray);
            margin-top: 20px;
            font-style: italic;
            letter-spacing: 0.2px;
            border-top: 1px solid var(--cream);
            padding-top: 16px;
        }
        @media (max-width: 768px) {
            .ce-bar-row { grid-template-columns: 110px 1fr 64px; gap: 10px; }
            .ce-bar-label { font-size: 11px; }
            .ce-bar-value { font-size: 12px; }
            .ce-bar-chart { padding: 24px 18px; }
        }

        /* Impact cards — price comparison */
        .ce-impact-cards {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
            margin: 44px 0;
        }
        .ce-impact-card {
            background: var(--white);
            border: 1px solid var(--cream);
            border-radius: 8px;
            padding: 28px 22px;
            text-align: center;
            position: relative;
            overflow: hidden;
            transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
            opacity: 0;
            transform: translateY(16px);
        }
        .ce-impact-card.ce-revealed {
            opacity: 1;
            transform: translateY(0);
        }
        .ce-impact-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 36px rgba(0,0,0,0.08);
        }
        .ce-impact-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
        }
        .ce-impact-value {
            font-family: var(--serif);
            font-size: 42px;
            font-weight: 500;
            color: var(--gold-dark);
            line-height: 1;
            margin-bottom: 10px;
        }
        .ce-impact-value .ce-prefix { font-size: 0.6em; }
        .ce-impact-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--black);
            margin-bottom: 6px;
        }
        .ce-impact-desc {
            font-size: 12px;
            color: var(--slate);
            line-height: 1.5;
        }
        @media (max-width: 768px) {
            .ce-impact-cards { grid-template-columns: 1fr; }
        }

        /* RESPONSIVE */
        @media (max-width: 1024px) {
            .article-layout { grid-template-columns: 1fr; gap: 48px; }
            .article-sidebar { position: static; }
            .sidebar-ads { flex-direction: row; flex-wrap: wrap; }
            .related-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 768px) {
            .post-hero { aspect-ratio: 16/9; max-height: 360px; min-height: 280px; }
            .post-hero .article-header { padding: 0 20px 24px; }
            .article-layout { padding: 36px 20px 60px; }
            .article-content { font-size: 16px; }
            .article-content h2 { font-size: 26px; }
            .article-content blockquote { font-size: 19px; padding-left: 20px; }
            .related-section { padding: 60px 20px; }
            .related-grid { grid-template-columns: 1fr; gap: 20px; }
            .sidebar-ads { display: none; }
            .property-feature-body { padding: 24px; }
            .property-stats { gap: 16px; flex-wrap: wrap; }
            .toc { padding: 20px 24px; }
            .article-meta { flex-wrap: wrap; gap: 8px; }
        }

.further-reading { padding: 80px 40px; background: var(--white); border-top: 1px solid rgba(0,0,0,0.06); }
        .fr-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: center; }
        .fr-kicker { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
        .fr-headline { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.15; color: var(--black); margin: 0 0 18px; letter-spacing: -0.3px; }
        .fr-dek { font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.55; color: var(--charcoal); margin: 0 0 24px; }
        .fr-cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--gold); transition: color 0.25s, border-color 0.25s; }
        .fr-cta:hover { color: var(--gold-dark); border-color: var(--gold-dark); }
        .fr-cta .fr-arrow { transition: transform 0.25s; }
        .fr-cta:hover .fr-arrow { transform: translateX(4px); }
        .fr-source { font-family: var(--sans); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
        .fr-source-label { font-family: var(--serif); font-size: 14px; font-style: italic; color: var(--charcoal); margin-top: 8px; }
        @media (max-width: 768px) {
            .further-reading { padding: 60px 20px; }
            .fr-inner { grid-template-columns: 1fr; gap: 24px; }
            .fr-headline { font-size: 26px; }
            .fr-dek { font-size: 15px; }
        }

/* Listing agent credit (Redfin-sourced) */
.property-feature-agent { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.2px; color: var(--warm-gray); margin: 16px 0 2px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.07); }
.property-feature-agent strong { color: var(--charcoal); font-weight: 600; }
.property-feature-agent a { color: var(--gold); text-decoration: none; }
.property-feature-agent a:hover { color: var(--gold-dark); }
