/* ═══════════════════════════════════════════════════════════
   SEO Enhanced Components — Modules 1-6 (v2)
   ═══════════════════════════════════════════════════════════ */

/* ── Module 2: Price Insights ── */
.seo-enhanced-prices {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.seo-enhanced-prices__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #1a1a2e;
}
.seo-enhanced-prices__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.seo-enhanced-prices__card {
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #e9ecef;
}
.seo-enhanced-prices__label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.seo-enhanced-prices__value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
}
.seo-enhanced-prices__value small { font-size: 0.7em; font-weight: 400; }
.seo-enhanced-prices__card--below_average { border-color: #28a745; }
.seo-enhanced-prices__card--above_average { border-color: #fd7e14; }
.seo-enhanced-prices__card--at_average { border-color: #007bff; }

.seo-enhanced-prices__range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    font-size: 0.85rem;
    color: #495057;
}
.seo-enhanced-prices__range-bar {
    flex: 1;
    height: 6px;
    background: #dee2e6;
    border-radius: 3px;
    position: relative;
}
.seo-enhanced-prices__range-fill {
    position: absolute;
    top: 0; bottom: 0;
    background: linear-gradient(90deg, #28a745, #007bff, #fd7e14);
    border-radius: 3px;
}

.seo-enhanced-prices__nearby { margin-top: 1rem; }
.seo-enhanced-prices__subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #495057;
}
.seo-enhanced-prices__nearby-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.seo-enhanced-prices__nearby-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    color: #495057;
}
.seo-enhanced-prices__nearby-item small { color: #adb5bd; }
.seo-enhanced-prices__disclaimer {
    margin: 0.75rem 0 0;
    color: #adb5bd;
    font-size: 0.75rem;
    font-style: italic;
}

/* ── Module 1: Market Context ── */
.seo-enhanced-market {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.seo-enhanced-market__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #1a1a2e;
}
.seo-enhanced-market__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.seo-enhanced-market__stat {
    text-align: center;
    padding: 0.5rem;
}
.seo-enhanced-market__number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
}
.seo-enhanced-market__label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
}
.seo-enhanced-market__badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    background: #e8f5e9;
    color: #2e7d32;
}
.seo-enhanced-market__stat--emerging .seo-enhanced-market__badge {
    background: #fff3e0;
    color: #e65100;
}
.seo-enhanced-market__stat--mature .seo-enhanced-market__badge {
    background: #e3f2fd;
    color: #1565c0;
}
.seo-enhanced-market__detail {
    display: block;
    font-size: 0.7rem;
    color: #adb5bd;
    margin-top: 0.2rem;
}
.seo-enhanced-market__trend {
    font-size: 0.85rem;
    font-weight: 500;
}
.seo-enhanced-market__value {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a1a2e;
}

.seo-enhanced-market__availability {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem;
    padding: 0.6rem 0.8rem;
    background: #f0fdf4;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.seo-enhanced-market__avail-pct {
    font-weight: 700;
    color: #16a34a;
    font-size: 1rem;
}
.seo-enhanced-market__avail-text { color: #495057; }
.seo-enhanced-market__avail-extra { color: #6c757d; font-size: 0.8rem; }
.seo-enhanced-market__text {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

/* ── Module 4: Decision Helper ── */
.seo-enhanced-decision {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.seo-enhanced-decision__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #1a1a2e;
}
.seo-enhanced-decision__subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: #374151;
}
.seo-enhanced-decision__tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}
.seo-enhanced-decision__tier {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #e9ecef;
}
.seo-enhanced-decision__tier--low { border-left: 3px solid #28a745; }
.seo-enhanced-decision__tier--mid { border-left: 3px solid #007bff; }
.seo-enhanced-decision__tier--high { border-left: 3px solid #fd7e14; }
.seo-enhanced-decision__tier-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.seo-enhanced-decision__tier-range {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}
.seo-enhanced-decision__tier-count {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
}
.seo-enhanced-decision__tier-rating {
    display: block;
    font-size: 0.8rem;
    color: #f59e0b;
    margin-top: 0.2rem;
}

.seo-enhanced-decision__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.seo-enhanced-decision__list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.2rem;
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.5;
}
.seo-enhanced-decision__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}
.seo-enhanced-decision__list--warning li::before {
    content: '⚠';
    color: #f59e0b;
}
.seo-enhanced-decision__list--tip li::before {
    content: '💡';
}

/* ── Module 6: Trust Signals ── */
.seo-enhanced-trust {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.seo-enhanced-trust__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #1a1a2e;
}
.seo-enhanced-trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.seo-enhanced-trust__item {
    text-align: center;
    padding: 0.5rem;
}
.seo-enhanced-trust__icon {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}
.seo-enhanced-trust__value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
}
.seo-enhanced-trust__label {
    display: block;
    font-size: 0.72rem;
    color: #6c757d;
}
.seo-enhanced-trust__reviews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.seo-enhanced-trust__badge {
    display: inline-block;
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 500;
}
.seo-enhanced-trust__badge--positive { background: #e8f5e9; color: #2e7d32; }
.seo-enhanced-trust__activity {
    font-size: 0.85rem;
    color: #495057;
    margin: 0.5rem 0 0;
}
.seo-enhanced-trust__text {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
    margin: 0.5rem 0 0;
}

/* ── Module 3: Contextual FAQ ── */
.seo-enhanced-faq {
    margin: 1.5rem 0;
}
.seo-enhanced-faq__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #1a1a2e;
}
.seo-enhanced-faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.seo-enhanced-faq__item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}
.seo-enhanced-faq__item[open] {
    border-color: #6366f1;
}
.seo-enhanced-faq__question {
    padding: 0.8rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    color: #1a1a2e;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.seo-enhanced-faq__question::before {
    content: '▸';
    transition: transform 0.2s;
    color: #6366f1;
}
.seo-enhanced-faq__item[open] .seo-enhanced-faq__question::before {
    transform: rotate(90deg);
}
.seo-enhanced-faq__question::-webkit-details-marker { display: none; }
.seo-enhanced-faq__answer {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
}
.seo-enhanced-faq__short { margin: 0 0 0.5rem; }
.seo-enhanced-faq__full {
    margin: 0;
    color: #6c757d;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .seo-enhanced-prices__grid,
    .seo-enhanced-market__grid,
    .seo-enhanced-decision__tiers,
    .seo-enhanced-trust__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
