/* ============================================================
   City SEO Page — front-end template styles
   Plain, self-contained. Easy to override from the theme later.
   ============================================================ */

.cspm-page {
    --cspm-accent: #2271b1;
    --cspm-accent-dark: #135e96;
    --cspm-ink: #1d2327;
    --cspm-muted: #646970;
    --cspm-line: #e3e5e8;
    --cspm-bg-soft: #f6f7f9;
    --cspm-radius: 16px;

    color: var(--cspm-ink);
    font-size: 16px;
    line-height: 1.65;
}

/* ---------- Hero ---------- */
.cspm-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--cspm-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937 0%, #2271b1 55%, #3b82f6 100%);
    margin-bottom: 32px;
}

.cspm-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 400px at 20% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
        radial-gradient(800px 500px at 120% 120%, rgba(0, 0, 0, 0.35), transparent 60%);
}

.cspm-hero-inner {
    position: relative;
    text-align: center;
    padding: 48px 24px;
}

.cspm-hero-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* ---------- Body ---------- */
.cspm-page-body {
    max-width: 860px;
    margin: 0 auto;
}

.cspm-image {
    margin: 0 0 28px;
    border-radius: var(--cspm-radius);
    overflow: hidden;
}

.cspm-image img {
    display: block;
    width: 100%;
    height: auto;
}

.cspm-content {
    margin-bottom: 32px;
}

.cspm-intro {
    font-size: 18px;
    color: #30353b;
}

.cspm-main {
    margin-top: 16px;
}

.cspm-content p {
    margin: 0 0 16px;
}

/* ---------- CTA ---------- */
.cspm-cta {
    background: var(--cspm-bg-soft);
    border: 1px solid var(--cspm-line);
    border-radius: var(--cspm-radius);
    padding: 28px;
    margin-bottom: 36px;
    text-align: center;
}

.cspm-cta-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
}

/* ---------- FAQ ---------- */
.cspm-faq {
    max-width: 860px;
    margin: 0 auto 40px;
}

.cspm-faq-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 18px;
}

.cspm-faq-item {
    border: 1px solid var(--cspm-line);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.cspm-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 0;
    padding: 18px 20px;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    color: var(--cspm-ink);
    cursor: pointer;
}

.cspm-faq-q:hover {
    background: var(--cspm-bg-soft);
}

.cspm-faq-icon {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
    color: var(--cspm-accent);
    transition: transform 0.2s ease;
}

.cspm-faq-item.is-open .cspm-faq-icon {
    transform: rotate(45deg);
}

.cspm-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding: 0 20px;
}

.cspm-faq-item.is-open .cspm-faq-a {
    padding: 0 20px 18px;
}

.cspm-faq-a p {
    margin: 0 0 12px;
    color: #30353b;
}

/* ---------- Links accordion (countries -> cities) ---------- */
.cspm-links {
    max-width: 980px;
    margin: 0 auto 48px;
}

.cspm-links-group {
    border: 1px solid var(--cspm-line);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.cspm-links-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 0;
    padding: 16px 20px;
    cursor: pointer;
    text-align: left;
}

.cspm-links-head:hover {
    background: var(--cspm-bg-soft);
}

.cspm-links-country {
    font-size: 18px;
    font-weight: 800;
    color: var(--cspm-ink);
}

.cspm-links-count {
    background: #f0f6fc;
    color: var(--cspm-accent-dark);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 700;
}

.cspm-links-icon {
    margin-left: auto;
    transition: transform 0.2s ease;
    color: var(--cspm-muted);
}

.cspm-links-group.is-open .cspm-links-icon {
    transform: rotate(180deg);
}

.cspm-links-cities {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 20px 20px;
}

.cspm-links-group.is-open .cspm-links-cities {
    display: flex;
}

.cspm-links-city {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--cspm-bg-soft);
    border: 1px solid var(--cspm-line);
    color: var(--cspm-ink);
    text-decoration: none;
    font-size: 14px;
    transition: 0.15s ease;
}

.cspm-links-city:hover {
    border-color: var(--cspm-accent);
    color: var(--cspm-accent-dark);
}

.cspm-links-city.is-current {
    background: var(--cspm-accent);
    border-color: var(--cspm-accent);
    color: #fff;
    font-weight: 700;
}

@media (max-width: 600px) {
    .cspm-hero { min-height: 240px; }
}
