/* ================================================
   Homepage SEO Sections Styling
   Based on Style Guide CSS Variables
   ================================================ */

/* ========== QUICK STATS SECTION ========== */
.quick-stats-section {
    background: var(--bg-light, #f5f5f5);
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .quick-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary, #1e3a5f);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light, #666666);
    font-weight: 500;
}

/* ========== STAT FEATURE CARDS ========== */
.stat-item--feature {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.stat-icon {
    font-size: 1.75rem;
    color: var(--primary, #1e3a5f);
    flex-shrink: 0;
}

.stat-feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.2;
}

.stat-feature-sub {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
    line-height: 1.3;
}

/* ========== SEO CONTENT SECTIONS ========== */
.seo-intro-section,
.neighborhoods-section,
.market-overview-section,
.property-types-section,
.location-section,
.seo-footer-section {
    padding: 48px 0;
}

.seo-intro-section {
    background: white;
}

.neighborhoods-section {
    background: var(--bg-light, #f5f5f5);
}

.market-overview-section {
    background: white;
}

/* ========== PROPERTY TYPES SECTION ========== */
.property-types-section {
    padding: 48px 0;
    background: white;
}

.property-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .property-types-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.property-type-card {
    background: var(--bg-light, #f5f5f5);
    border-radius: var(--radius-lg, 12px);
    padding: 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.property-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.property-type-icon {
    font-size: 2.5rem;
    color: var(--primary, #1e3a5f);
    margin-bottom: 16px;
}

.property-type-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark, #333333);
    margin-bottom: 8px;
}

.property-type-card p {
    font-size: 0.875rem;
    color: var(--text-light, #666666);
    margin: 0;
    line-height: 1.5;
}

.location-section {
    background: var(--bg-light, #f5f5f5);
}

.seo-footer-section {
    background: white;
}

/* ========== PROSE STYLING (SEO Text) ========== */
.seo-content.prose {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark, #333333);
}

.seo-content.prose p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.seo-content.prose p:last-child {
    margin-bottom: 0;
}

.seo-content.prose strong {
    color: var(--primary, #1e3a5f);
    font-weight: 600;
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary, #1e3a5f);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light, #666666);
    text-align: center;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== FEATURED LISTINGS ========== */
.featured-listings-section {
    padding: 48px 0;
    background: white;
}

.ads-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

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

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

.ad-card {
    display: block;
    background: white;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.ad-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--bg-light, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light, #666666);
}

.ad-info {
    padding: 20px;
}

.ad-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark, #333333);
    margin-bottom: 8px;
}

.ad-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary, #f47920);
    margin-bottom: 4px;
}

.ad-location {
    font-size: 0.875rem;
    color: var(--text-light, #666666);
    margin: 0;
}

/* ========== NEIGHBORHOODS GRID ========== */
.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

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

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

.neighborhood-card {
    display: block;
    background: white;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.neighborhood-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.neighborhood-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.neighborhood-image-placeholder {
    width: 100%;
    height: 120px;
    background: var(--bg-light, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light, #666666);
}

.neighborhood-info {
    padding: 16px;
}

.neighborhood-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #333333);
    margin-bottom: 4px;
}

.neighborhood-count {
    font-size: 0.875rem;
    color: var(--text-light, #666666);
    margin: 0;
}

/* ========== ARTICLES GRID ========== */
.articles-section {
    padding: 48px 0;
    background: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

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

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

.article-card {
    display: block;
    background: white;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.article-image-placeholder {
    width: 100%;
    height: 160px;
    background: var(--bg-light, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light, #666666);
}

.article-info {
    padding: 16px;
}

.article-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #333333);
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 0.875rem;
    color: var(--text-light, #666666);
    line-height: 1.5;
    margin: 0;
}

/* ========== FAQ SECTION ========== */
.faq-section {
    padding: 48px 0;
    background: var(--bg-light, #f5f5f5);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary, #1e3a5f);
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark, #333333);
    margin: 0;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--primary, #1e3a5f), var(--accent, #2563eb));
    color: white;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-section .btn {
    background: var(--secondary, #f47920);
    border-color: var(--secondary, #f47920);
    color: white;
    font-size: 1.125rem;
    padding: 14px 32px;
}

.cta-section .btn:hover {
    background: #e56910;
    border-color: #e56910;
    transform: translateY(-2px);
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.mt-6 {
    margin-top: 32px;
}

.mt-8 {
    margin-top: 40px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ========== POPULAR SEARCHES (link hub) ========== */
.popular-searches-section {
    padding: 48px 0;
    background: #f7f8fa;
}

.popular-searches-section .section-subtitle {
    text-align: center;
    color: #555;
    margin: 8px 0 28px;
    font-size: 0.9375rem;
}

.popular-searches-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.popular-search-item {
    display: flex;
}

.popular-search-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.popular-search-link:hover {
    border-color: var(--primary-color, #d81a1a);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.popular-search-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(216, 26, 26, 0.08);
    color: var(--primary-color, #d81a1a);
    border-radius: 6px;
    font-size: 0.875rem;
}

.popular-search-label {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.3;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }

    .seo-content.prose {
        font-size: 0.9375rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .popular-searches-grid {
        grid-template-columns: 1fr;
    }
}
