/* City Landing Page — SEO page for /region/{city}/{intent} */

/* Reset & Base */
.cl-page { color: #1a1a1a; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.cl-page a { text-decoration: none; color: inherit; }
.cl-page img { display: block; max-width: 100%; }
.cl-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.cl-logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: #1a1a1a; }
.cl-logo svg { width: 32px; height: 32px; }

/* Hero */
.cl-hero { background: linear-gradient(135deg, #2d1b4e 0%, #4a1942 30%, #7b1f5c 60%, #9c4070 100%); padding: 80px 0 60px; color: #fff; }
.cl-hero-inner { display: flex; gap: 48px; align-items: flex-start; }
.cl-hero-content { flex: 1; min-width: 0; }
.cl-hero-auth { flex: 0 0 380px; }
.cl-hero-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.cl-hero-label .dot { width: 8px; height: 8px; background: #4caf50; border-radius: 50%; }
.cl-hero h1 { font-size: 56px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.cl-hero h1 .city { background: linear-gradient(90deg, #ff9800, #e91e63); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cl-hero-desc { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.75); max-width: 460px; margin-bottom: 32px; }
.cl-hero-buttons { display: flex; gap: 16px; margin-bottom: 48px; }
.cl-btn-hero-primary { font-size: 16px; font-weight: 600; color: #fff; background: #c2185b; border: none; border-radius: 28px; padding: 14px 32px; cursor: pointer; transition: background 0.2s; }
.cl-btn-hero-primary:hover { background: #ad1457; }
.cl-btn-hero-secondary { font-size: 16px; font-weight: 600; color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 28px; padding: 14px 32px; cursor: pointer; transition: border-color 0.2s; }
.cl-btn-hero-secondary:hover { border-color: rgba(255,255,255,0.7); }
.cl-hero-stats { display: flex; gap: 16px; }
.cl-stat-card { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 12px 20px; }
.cl-stat-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); }
.cl-stat-number { font-size: 20px; font-weight: 700; }
.cl-stat-label { font-size: 13px; color: rgba(255,255,255,0.6); }

/* Hero Auth Widget */
.cl-hero-auth .form-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    color: #1a1a1a;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* Profiles Section */
.cl-profiles-section { padding: 64px 0; }
.cl-profiles-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; }
.cl-profiles-header h2 { font-size: 32px; font-weight: 900; }
.cl-profiles-header h2 .city { color: #c2185b; }
.cl-profiles-subtitle { font-size: 15px; color: #888; margin-top: 4px; }
.cl-gender-tabs { display: flex; border: 1px solid #e0e0e0; border-radius: 28px; overflow: hidden; }
.cl-gender-tab { padding: 10px 24px; font-size: 15px; font-weight: 500; border: none; background: #fff; cursor: pointer; transition: all 0.2s; color: #555; }
.cl-gender-tab.active { background: #fff; color: #1a1a1a; font-weight: 600; box-shadow: inset 0 0 0 1.5px #1a1a1a; border-radius: 28px; }
.cl-gender-tab:hover:not(.active) { background: #f5f5f5; }

/* Profile Cards Grid */
.cl-profiles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.cl-profile-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
    will-change: transform;
}
.cl-profile-card:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
    border-color: #f0c5d4;
    transform: translateY(-4px) scale(1.025);
}
.cl-profile-photo { position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; }
.cl-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 380ms ease;
}
.cl-profile-card:hover .cl-profile-photo img { transform: scale(1.06); }
.cl-profile-photo .overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 16px 12px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; }
.cl-profile-name { font-size: 18px; font-weight: 700; }
.cl-profile-city { font-size: 13px; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.cl-badge-online { position: absolute; top: 12px; right: 12px; background: #4caf50; color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 16px; display: flex; align-items: center; gap: 4px; }
.cl-badge-online .dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; }
.cl-profile-footer { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cl-profile-goal {
    font-size: 13px;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.cl-profile-goal-emoji { font-size: 14px; line-height: 1; }
.cl-profile-goal-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cl-profile-link { font-size: 13px; font-weight: 600; color: #c2185b; }
.cl-btn-more { display: block; margin: 0 auto; font-size: 16px; font-weight: 600; color: #fff; background: #c2185b; border: none; border-radius: 28px; padding: 14px 40px; cursor: pointer; transition: background 0.2s; }
.cl-btn-more:hover { background: #ad1457; }

/* Long-form SEO section (merged seo_text + about_text), bottom of page */
.cl-longform-section {
    padding: 56px 0;
    background: #fafafa;
    border-top: 1px solid #eee;
}
.cl-longform-container { max-width: 1100px; }
.cl-longform-section > .cl-longform-container > h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 16px;
}
.cl-longform-section h3 {
    font-size: 19px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #222;
}
.cl-longform-section p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 16px;
}
.cl-longform-divider {
    border: 0;
    border-top: 1px solid #e2e2e2;
    margin: 32px 0 20px;
}

/* Collapsible long-form text */
.cl-collapsible {
    position: relative;
}
.cl-collapsible-body {
    position: relative;
    overflow: hidden;
    max-height: 90px;
    transition: max-height 480ms ease;
}
.cl-collapsible.is-open .cl-collapsible-body {
    max-height: 12000px;
}
.cl-collapsible-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0) 0%, rgba(250, 250, 250, 0.85) 60%, #fafafa 100%);
    transition: opacity 220ms ease;
}
.cl-collapsible.is-open .cl-collapsible-fade {
    opacity: 0;
}
.cl-collapsible-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 18px;
    background: #fff;
    color: #c2185b;
    border: 1px solid #f0c5d4;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}
.cl-collapsible-toggle:hover {
    background: #fff5f8;
    border-color: #c2185b;
}
.cl-collapsible-chevron {
    width: 14px;
    height: 14px;
    transition: transform 220ms ease;
}
.cl-collapsible.is-open .cl-collapsible-chevron {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .cl-longform-section { padding: 60px 20px; }
    .cl-longform-section > .cl-longform-container > h2 { font-size: 22px; }
    .cl-collapsible-body { max-height: 110px; }
    .cl-collapsible-fade { height: 110px; }
}

/* Features Section */
.cl-features-section { padding: 64px 0; background: #f8f8f8; }
.cl-features-section .cl-section-title { text-align: center; font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.cl-features-section .cl-section-subtitle { text-align: center; font-size: 16px; color: #888; margin-bottom: 48px; }
.cl-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cl-feature-card { background: #fff; border-radius: 12px; padding: 32px 28px; border: 1px solid #eee; }
.cl-feature-icon { width: 40px; height: 40px; margin-bottom: 20px; color: #c2185b; }
.cl-feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cl-feature-card p { font-size: 14px; color: #777; line-height: 1.6; }

/* Categories Section */
.cl-categories-section { padding: 64px 0; }
.cl-categories-section h2 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.cl-categories-section .cl-section-subtitle { font-size: 16px; color: #888; margin-bottom: 32px; }
.cl-categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cl-category-card { border: 1px solid #eee; border-radius: 12px; padding: 24px; transition: box-shadow 0.2s, border-color 0.2s; cursor: pointer; display: block; text-decoration: none; }
.cl-category-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.cl-category-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: #c2185b; }
.cl-category-card p { font-size: 14px; color: #888; }
.cl-category-card.is-current {
    border: 2px solid #c2185b;
    background: #fff5f8;
    padding: 23px;
}
div.cl-category-card.is-current { cursor: default; }
a.cl-category-card.is-current:hover { box-shadow: 0 6px 18px rgba(194, 24, 91, 0.18); }

/* Age cuts Section */
.cl-age-cuts-section { padding: 56px 0; border-top: 1px solid #eee; background: #fff; }
.cl-age-cuts-section h2 { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.cl-age-cuts-section .cl-section-subtitle { font-size: 16px; color: #888; margin-bottom: 24px; }
.cl-age-cuts-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cl-age-cut-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 14px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.cl-age-cut-card:hover {
    border-color: #f0c5d4;
    box-shadow: 0 6px 20px rgba(194, 24, 91, 0.10);
    transform: translateY(-2px);
}
.cl-age-cut-card.is-active {
    border-color: #c2185b;
    background: #fff5f8;
    color: #c2185b;
}
.cl-age-cut-range { font-size: 22px; font-weight: 800; }
.cl-age-cut-suffix { font-size: 13px; color: #888; }
.cl-age-cut-card.is-active .cl-age-cut-suffix { color: #c2185b; }

@media (max-width: 768px) {
    .cl-age-cuts-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Cities Section */
.cl-cities-section { padding: 64px 0; background: #f8f8f8; }
.cl-cities-section h2 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.cl-cities-section .cl-section-subtitle { font-size: 16px; color: #888; margin-bottom: 32px; }
.cl-cities-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cl-city-tag { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #fff; border: 1px solid #eee; border-radius: 10px; font-size: 15px; font-weight: 500; color: #333; transition: all 0.2s; }
.cl-city-tag:hover { border-color: #c2185b; color: #c2185b; }
.cl-city-icon { width: 32px; height: 32px; border-radius: 50%; background: #fdf0f4; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #c2185b; }
.cl-city-info { display: flex; flex-direction: column; }
.cl-city-name { font-weight: 600; font-size: 15px; }
.cl-city-count { font-size: 13px; color: #999; font-weight: 400; }

/* FAQ Section */
.cl-faq-section { padding: 64px 0; }
.cl-faq-section h2 { font-size: 32px; font-weight: 900; margin-bottom: 8px; text-align: center; }
.cl-faq-section .cl-section-subtitle { font-size: 16px; color: #888; margin-bottom: 32px; text-align: center; }
.cl-faq-list { max-width: 720px; margin: 0 auto; }
.cl-faq-item { border: 1px solid #eee; border-radius: 10px; margin-bottom: 12px; padding: 0 20px; }
.cl-faq-question { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-size: 16px; font-weight: 600; color: #1a1a1a; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-family: inherit; }
.cl-faq-question svg { width: 20px; height: 20px; flex-shrink: 0; color: #999; transition: transform 0.3s; }
.cl-faq-item.open .cl-faq-question svg { transform: rotate(180deg); }
.cl-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.cl-faq-item.open .cl-faq-answer { max-height: 200px; }
.cl-faq-answer p { padding: 0 0 20px; font-size: 15px; color: #666; line-height: 1.6; }

/* ============================================================
   Profile Sidebar — overlay mode for city landing
   (mirrors .right-sidebar / .profile-preview styles from
    style.css + search.css, scoped to .cl-right-sidebar)
   ============================================================ */

.cl-sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cl-sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.cl-right-sidebar {
    position: fixed !important;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    border: none;
}
.cl-right-sidebar.open { transform: translateX(0); }

/* Close button */
.cl-right-sidebar .close-sidebar {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Profile preview container */
.cl-right-sidebar .profile-preview { padding: 20px; }

/* Header: hide small avatar, show name + city */
.cl-right-sidebar .profile-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.cl-right-sidebar .profile-header .profile-photo { display: none !important; }
.cl-right-sidebar .profile-basic h2 { margin: 0 0 10px 0; font-size: 24px; color: #333; }
.cl-right-sidebar .profile-basic p { margin: 0; color: #888; display: flex; align-items: center; gap: 8px; }

/* Gallery (same as search sidebar) */
.cl-right-sidebar .profile-gallery { display: block !important; margin: 6px 0 14px; }
.cl-right-sidebar .profile-gallery-stage { position: relative; border-radius: 16px; overflow: hidden; background: #f2f2f2; }
.cl-right-sidebar .profile-gallery-stage .card-photo-slider { position: relative; width: 100%; aspect-ratio: 4/5; height: auto; border-radius: 16px; overflow: hidden; display: block; }
.cl-right-sidebar .profile-gallery-stage .card-photo-slider .card-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: none; pointer-events: none; }
.cl-right-sidebar .profile-gallery-stage .card-photo-slider .card-image.active { display: block; z-index: 1; }
.cl-right-sidebar .profile-gallery-stage .chat-photo-hit { position: absolute; top: 0; bottom: 0; width: 50%; border: none; background: transparent; cursor: pointer; z-index: 2; }
.cl-right-sidebar .profile-gallery-stage .chat-photo-hit--prev { left: 0; }
.cl-right-sidebar .profile-gallery-stage .chat-photo-hit--next { right: 0; }
.cl-right-sidebar .profile-gallery-stage .photo-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; padding: 0 10px; transform: translateY(-50%); z-index: 3; opacity: 0; transition: opacity 0.18s ease; pointer-events: none; }
.cl-right-sidebar .profile-gallery-stage:hover .photo-nav { opacity: 1; pointer-events: auto; }
.cl-right-sidebar .profile-gallery-stage .photo-nav button { background: rgba(255,255,255,0.78); border: none; border-radius: 999px; width: 38px; height: 38px; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #333; transition: background 0.15s ease; }
.cl-right-sidebar .profile-gallery-stage .photo-nav button:hover { background: #fff; }
.cl-right-sidebar .profile-gallery-stage .photo-indicators { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; pointer-events: none; }
.cl-right-sidebar .profile-gallery-stage .photo-indicators .dot { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.45); transition: background 0.2s; }
.cl-right-sidebar .profile-gallery-stage .photo-indicators .dot.active { background: #fff; }

/* Goal block */
.cl-right-sidebar .profile-goal { padding: 12px 12px; border: 1px solid rgba(42,46,69,0.08); border-radius: 16px; background: rgba(247,247,251,0.75); margin-bottom: 14px; }
.cl-right-sidebar .profile-goal-title { font-weight: 700; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: rgba(42,46,69,0.72); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(42,46,69,0.08); }
.cl-right-sidebar .profile-goal-text { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 600; font-size: 18px; color: rgba(42,46,69,0.90); }
.cl-right-sidebar .profile-goal-emoji { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 28px; }

/* Action buttons */
.cl-right-sidebar .profile-actions { display: block; margin-bottom: 16px; }
.cl-right-sidebar .profile-actions .profile-actions-row { display: flex; gap: 12px; width: 100%; }
.cl-right-sidebar .profile-action-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 14px; border: 1px solid rgba(255,204,213,0.9); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; color: #111; transition: background 160ms ease, transform 120ms ease, border-color 160ms ease; }
.cl-right-sidebar .profile-action-btn.profile-action-btn--primary-action { height: 56px; border-radius: 16px; font-size: 18px; font-weight: 700; padding: 0 16px; }
.cl-right-sidebar .profile-action-btn:hover { transform: translateY(-1px); border-color: rgba(218,25,79,0.5); }

/* Red CTA button for landing (instead of default outline style) */
.cl-right-sidebar .cl-landing-write-btn { background: #c2185b !important; color: #fff !important; border-color: #c2185b !important; }
.cl-right-sidebar .cl-landing-write-btn:hover { background: #ad1457 !important; border-color: #ad1457 !important; }

/* Profile info sections */
.cl-right-sidebar .profile-info { display: flex; flex-direction: column; gap: 14px; }
.cl-right-sidebar .profile-info .info-section { margin-bottom: 0; padding: 12px 12px; border: 1px solid rgba(42,46,69,0.08); border-radius: 16px; background: rgba(247,247,251,0.75); }
.cl-right-sidebar .profile-info .info-section h3 { margin: 0 0 10px 0; padding-bottom: 10px; border-bottom: 1px solid rgba(42,46,69,0.08); font-weight: 800; color: #2A2E45; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.85; }
.cl-right-sidebar .profile-info .info-section h3 i { color: #FD3A73; }
.cl-right-sidebar .profile-info .info-section p { margin: 0; color: rgba(42,46,69,0.85); line-height: 1.45; }

/* Interests tags */
.cl-right-sidebar .profile-info .interests-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cl-right-sidebar .profile-info .tag { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(42,46,69,0.10); background: #fff; font-size: 13px; color: rgba(42,46,69,0.85); }

/* Info list (main info rows) */
.cl-right-sidebar .profile-info .info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.cl-right-sidebar .profile-info .info-list li { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: rgba(42,46,69,0.90); padding: 10px 0; }
.cl-right-sidebar .profile-info .info-list li:first-child { padding-top: 0; }
.cl-right-sidebar .profile-info .info-list li + li { border-top: 1px solid rgba(42,46,69,0.08); }
.cl-right-sidebar .profile-info .info-list li i { color: #FD3A73; opacity: 0.9; width: 18px; text-align: center; flex: 0 0 auto; }
.cl-right-sidebar .profile-info .info-list li .profile-meta-text { color: rgba(42,46,69,0.90); font-weight: 400; font-size: 16px; }

/* Subsections (more about me, lifestyle) */
.cl-right-sidebar .profile-info .profile-subsections { display: flex; flex-direction: column; gap: 0; margin-top: 2px; }
.cl-right-sidebar .profile-info .profile-subsection { padding-top: 8px; border-top: 1px solid rgba(42,46,69,0.08); }
.cl-right-sidebar .profile-info .profile-subsection:first-child { padding-top: 0; border-top: none; }
.cl-right-sidebar .profile-info .profile-subsection-title { font-weight: 800; font-size: 12px; color: rgba(42,46,69,0.72); text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 4px 0; }
.cl-right-sidebar .profile-info .profile-subsections .info-list li { padding: 6px 0; }
.cl-right-sidebar .profile-info .profile-subsections .info-list li .profile-meta-text { font-weight: 400; color: rgba(42,46,69,0.85); }

/* Auth Modal */
.cl-auth-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cl-auth-modal-overlay.open { opacity: 1; pointer-events: auto; }
.cl-auth-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); width: 420px; max-width: 92vw; max-height: 90vh; max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); z-index: 301; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
.cl-auth-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.cl-auth-modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.06); border: none; color: #666; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background 0.2s; }
.cl-auth-modal-close:hover { background: rgba(0,0,0,0.12); }
.cl-auth-modal-body { padding: 8px; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
.cl-auth-modal-body .form-card { box-shadow: none; padding: 24px 20px; }

/* About City */
.cl-about-city { padding: 64px 0; background: #f8f8f8; }
.cl-about-city h2 { font-size: 32px; font-weight: 900; margin-bottom: 24px; }
.cl-about-city p { font-size: 16px; color: #555; line-height: 1.7; margin-bottom: 16px; max-width: 800px; }

/* CTA Section */
.cl-cta-section { padding: 80px 0; background: linear-gradient(135deg, #2d1b4e 0%, #7b1f5c 60%, #c2185b 100%); text-align: center; color: #fff; }
.cl-cta-label { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.cl-cta-section h2 { font-size: 40px; font-weight: 900; margin-bottom: 16px; }
.cl-cta-section h2 .city { background: linear-gradient(90deg, #ff9800, #e91e63); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cl-cta-desc { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 32px; }
.cl-cta-buttons { display: flex; gap: 16px; justify-content: center; }

/* Footer */
.cl-footer { padding: 72px 0 36px; border-top: 1px solid #eee; }
.cl-footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cl-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 20px; font-weight: 800; color: #1a1a1a; }
.cl-footer-brand img { height: 40px; }
.cl-footer-text { margin: 0; color: #888; font-size: 14px; line-height: 1.6; }
.cl-footer h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #1a1a1a; }
.cl-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cl-footer a { color: #555; font-weight: 600; font-size: 14px; transition: color 0.2s; }
.cl-footer a:hover { color: #c2185b; }
.cl-download-buttons { display: grid; gap: 10px; }
.cl-btn-glass { width: 100%; height: 44px; padding: 0 14px; color: #555; background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.12); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s; }
.cl-btn-glass:hover { background: rgba(0,0,0,0.08); }
.cl-btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.cl-footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid #eee; text-align: center; font-size: 13px; color: #aaa; }

/* Breadcrumbs */
.cl-breadcrumbs { padding: 12px 0; font-size: 14px; color: #888; border-bottom: 1px solid #f0f0f0; }
.cl-breadcrumbs a { color: #666; }
.cl-breadcrumbs a:hover { color: #c2185b; }
.cl-breadcrumbs span { color: #aaa; margin: 0 6px; }

/* Responsive */
@media (max-width: 1024px) {
    .cl-hero-inner { flex-direction: column; }
    .cl-hero-auth { flex: none; width: 100%; max-width: 480px; }
    .cl-profiles-grid { grid-template-columns: repeat(3, 1fr); }
    .cl-features-grid { grid-template-columns: repeat(2, 1fr); }
    .cl-cities-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .cl-container { padding: 0 20px; }
    .cl-hero h1 { font-size: 36px; }
    .cl-hero-stats { flex-wrap: wrap; }
    .cl-profiles-grid { grid-template-columns: repeat(2, 1fr); }
    .cl-profiles-header { flex-direction: column; gap: 16px; }
    .cl-features-grid { grid-template-columns: 1fr; }
    .cl-categories-grid { grid-template-columns: 1fr; }
    .cl-cities-grid { grid-template-columns: repeat(2, 1fr); }
    .cl-hero-buttons { flex-direction: column; align-items: flex-start; }
    .cl-footer-grid { grid-template-columns: 1fr 1fr; }
    .cl-cta-section h2 { font-size: 28px; }
}
@media (max-width: 480px) {
    .cl-profiles-grid { grid-template-columns: 1fr; }
}

/* Error pages (404 / 500) — rendered inside either city-landing (guest)
   or the in-app layout (authed). The --inapp variant trims vertical
   padding so the card fits a content area shared with the app's nav. */
.cl-error-section {
    padding: 80px 0 96px;
    background: #ffffff;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.cl-error-section--inapp {
    /* In-app layout puts the error section inside <main> with its own
       min-height, leaving a stripe of empty bg below the white card.
       Force the section to fill that area and centre the content. */
    min-height: calc(100vh - 80px);
    padding: 24px 16px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Anchor variants of the hero buttons — keep their text colour through
   :visited / :hover / :active / :focus, otherwise the browser swaps in
   default link / visited colours and the label goes dark on the pink fill. */
a.cl-btn-hero-primary,
a.cl-btn-hero-primary:visited,
a.cl-btn-hero-primary:hover,
a.cl-btn-hero-primary:active,
a.cl-btn-hero-primary:focus {
    color: #ffffff;
    text-decoration: none;
}
a.cl-btn-hero-secondary,
a.cl-btn-hero-secondary:visited {
    color: #ffffff;
    text-decoration: none;
}
a.cl-btn-hero-secondary--dark,
a.cl-btn-hero-secondary--dark:visited {
    color: #1a1a1a;
    text-decoration: none;
}
a.cl-btn-hero-secondary--dark:hover,
a.cl-btn-hero-secondary--dark:focus,
a.cl-btn-hero-secondary--dark:active {
    color: #c2185b;
    text-decoration: none;
}

.cl-error-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.cl-error-code {
    font-size: clamp(72px, 12vw, 120px);
    line-height: 1;
    font-weight: 900;
    background: linear-gradient(90deg, #ff9800, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px;
}

.cl-error-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.cl-error-text {
    margin: 0 auto 32px;
    max-width: 540px;
    color: #555;
    font-size: 17px;
    line-height: 1.55;
}

.cl-error-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Secondary button on a light background — the default .cl-btn-hero-secondary
   uses white border + white text for the hero gradient, doesn't read on white */
.cl-btn-hero-secondary--dark {
    color: #1a1a1a;
    border-color: rgba(26, 26, 26, 0.2);
    background: #ffffff;
}
.cl-btn-hero-secondary--dark:hover {
    border-color: rgba(194, 24, 91, 0.5);
    color: #c2185b;
}

@media (max-width: 640px) {
    .cl-error-section { padding: 56px 0 72px; }
    .cl-error-actions { display: flex; flex-direction: column; align-items: stretch; }
    .cl-error-actions a { width: 100%; }
}

/* Static informational pages (about / support-info / business / stories) */
.cl-static-hero {
    padding: 56px 0 24px;
    background: #ffffff;
    text-align: center;
}
.cl-static-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    margin: 0 0 14px;
    color: #1a1a1a;
}
.cl-static-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.5;
    max-width: 720px;
    margin: 0 auto;
}

.cl-static-content {
    padding: 32px 0 80px;
    background: #ffffff;
}
.cl-static-container { max-width: 760px; }

.cl-static-section { margin: 0 0 36px; }
.cl-static-section:last-child { margin-bottom: 0; }
.cl-static-section h2 {
    font-size: 24px;
    font-weight: 800;
    color: #c2185b;
    margin: 0 0 14px;
}
.cl-static-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 14px;
}
.cl-static-section p:last-child { margin-bottom: 0; }
.cl-static-section strong { font-weight: 700; color: #1a1a1a; }

@media (max-width: 768px) {
    .cl-static-hero { padding: 40px 0 16px; }
    .cl-static-content { padding: 24px 0 60px; }
    .cl-static-section h2 { font-size: 20px; }
}

/* Sitemap (city catalog) */
.cl-sitemap-section { padding: 64px 0 96px; background: #ffffff; }
.cl-sitemap-section h1 { font-size: 36px; font-weight: 900; margin-bottom: 12px; }
.cl-sitemap-lead { font-size: 16px; color: #666; margin-bottom: 40px; max-width: 760px; }
.cl-sitemap-groups { display: grid; gap: 36px; }
.cl-sitemap-group h2 {
    font-size: 28px;
    font-weight: 900;
    color: #c2185b;
    border-bottom: 1px solid #f0c5d4;
    padding-bottom: 8px;
    margin-bottom: 18px;
}
.cl-sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px 24px;
}
.cl-sitemap-list a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.6;
    transition: color 0.15s ease;
}
.cl-sitemap-list a:hover { color: #c2185b; }

/* === Unified styling: alt-bg pattern + auth modal (mirrors landing.php) === */

/* Alternating section backgrounds on city pages — order on page:
   profiles → features → categories → age-cuts → cities → faq → cta → longform.
   `.cl-cta-section` is intentionally left untouched — it has its own dark
   purple→pink gradient with white text and acts as the strong visual break
   before the longform tail. */
.cl-profiles-section { background: #ffffff; }
.cl-features-section { background: #f5f6fb; }
.cl-categories-section { background: #ffffff; }
.cl-age-cuts-section { background: #f7f7fb; }
.cl-cities-section { background: #ffffff; }
.cl-faq-section { background: #f5f6fb; }
.cl-longform-section { background: #ffffff; border-top: 1px solid #eef0f5; }

/* Longform-section now sits on white; default fade (white) already matches —
   override the original `#fafafa` fade so it blends with the new bg */
.cl-collapsible-fade {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 60%, #ffffff 100%);
}

/* Auth modal — same rules as landing.php registerCss, replicated for the city-landing layout */
.landing-auth-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.landing-auth-modal-overlay.open { opacity: 1; pointer-events: auto; }
.landing-auth-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); width: 420px; max-width: 92vw; max-height: 90vh; max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); z-index: 301; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
.landing-auth-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.landing-auth-modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.06); border: none; color: #666; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background 0.2s; }
.landing-auth-modal-close:hover { background: rgba(0,0,0,0.12); }
.landing-auth-modal-body { padding: 8px; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
.landing-auth-modal-body .form-card { box-shadow: none; padding: 24px 20px; }
