/**
 * StaySTRA Analyzer Cities - Minimal CSS
 * Reuses theme styles (.container, .section) and analyzer styles.
 * City pages match the main analyzer page layout (no hero).
 */

/* ============================
   Breadcrumbs
   ============================ */

.sac-breadcrumbs {
    padding: 1rem 0 0;
    font-size: 0.875rem;
}

.sac-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.sac-breadcrumb-list li {
    display: flex;
    align-items: center;
}

.sac-breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #999;
}

.sac-breadcrumb-list a {
    color: var(--primary, #0073e6);
    text-decoration: none;
}

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

.sac-breadcrumb-list li[aria-current="page"] {
    color: var(--muted-foreground, #666);
}

/* ============================
   City Page Heading
   ============================ */

.sac-city-heading {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.sac-city-heading h1 {
    margin-bottom: 0.5rem;
}

.sac-city-heading p {
    font-size: 1.125rem;
    color: var(--muted-foreground, #666);
    margin: 0;
}

/* ============================
   Market Snapshot (4-stat grid)
   Tight spacing — no .section padding
   ============================ */

.sac-market-snapshot {
    padding: 2rem 0 3rem;
}

.sac-market-snapshot h2 {
    margin-bottom: 1.5rem;
}

.sac-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.sac-stat-card {
    background: var(--card, #fff);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.sac-stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted-foreground, #666);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sac-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground, #333);
}

/* ============================
   Hub Page Hero (hub page keeps the hero)
   ============================ */

.sac-hub-page .sac-hero {
    padding-bottom: 2rem;
}

.sac-hub-page .sac-analyzer-section {
    padding-top: 0;
}

/* ============================
   SEO Content Section
   ============================ */

.sac-content-container {
    max-width: 800px;
}

.sac-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.sac-content p,
.sac-content li {
    line-height: 1.7;
    color: var(--muted-foreground, #444);
}

.sac-content ul,
.sac-content ol {
    padding-left: 1.25rem;
}

.sac-content ol li,
.sac-content ul li {
    margin-bottom: 0.5rem;
}

/* ============================
   FAQ
   ============================ */

.sac-faq {
    margin-top: 1.5rem;
}

.sac-faq-item {
    border-bottom: 1px solid var(--border, #eee);
    padding: 1.25rem 0;
}

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

.sac-faq-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--foreground, #333);
}

.sac-faq-item p {
    margin: 0;
    font-size: 0.9375rem;
}

/* ============================
   Cross-links
   ============================ */

.sac-cross-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #eee);
}

.sac-cross-links a {
    color: var(--primary, #0073e6);
    text-decoration: none;
    font-weight: 500;
}

.sac-cross-links a:hover {
    text-decoration: underline;
}

/* ============================
   City Grid (state page + hub popular)
   ============================ */

.sac-cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.sac-city-card {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sac-city-card:hover {
    border-color: var(--primary, #0073e6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}

.sac-city-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--foreground, #333);
}

.sac-city-stats {
    font-size: 0.8125rem;
    color: var(--muted-foreground, #666);
    margin-top: 4px;
}

/* ============================
   State Directory (hub page)
   ============================ */

.sac-state-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.sac-state-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

.sac-state-item:hover {
    border-color: var(--primary, #0073e6);
    text-decoration: none;
    color: inherit;
}

.sac-state-name {
    font-weight: 500;
    color: var(--foreground, #333);
}

.sac-state-count {
    font-size: 0.8125rem;
    color: #999;
}

/* ============================
   State Page Header
   ============================ */

.sac-state-header h1 {
    margin-bottom: 0.75rem;
}

.sac-state-intro {
    font-size: 1.125rem;
    color: var(--muted-foreground, #555);
    max-width: 700px;
}

.sac-state-cta {
    padding-top: 0;
}

.sac-state-cta a {
    color: var(--primary, #0073e6);
    text-decoration: none;
}

.sac-state-cta a:hover {
    text-decoration: underline;
}

/* ============================
   Cross-link CTA on Location Pages
   ============================ */

.sac-location-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--muted, #f7f7f7);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
}

.sac-location-cta h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.sac-location-cta p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9375rem;
    color: var(--muted-foreground, #555);
}

.sac-location-cta-link {
    display: inline-block;
    color: var(--primary, #0073e6);
    font-weight: 600;
    text-decoration: none;
}

.sac-location-cta-link:hover {
    text-decoration: underline;
}

/* ============================
   Responsive
   ============================ */

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

    .sac-cities {
        grid-template-columns: 1fr;
    }

    .sac-state-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .sac-city-heading p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .sac-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .sac-stat-value {
        font-size: 1.375rem;
    }
}

/* ============================
   Dark Mode Support
   ============================ */

.dark .sac-stat-card,
.dark .sac-city-card,
.dark .sac-state-item {
    background: var(--card);
    border-color: var(--border);
}

.dark .sac-location-cta {
    background: var(--card);
    border-color: var(--border);
}
