<?xml version="1.0" encoding="UTF-8"?>
<!--
  ============================================
  PRODUCT: CUNG BAN LANG NGHE
  Function/Role/Purpose: sitemap.xml — Static pages sitemap
  Path: frontend/public/sitemap.xml
  Version: 3.3
  Date: 13-05-2026

  COMPATIBILITY MATRIX (v6.7.3 stack):
    Worker:    CBLN_API_PROXY_6.7.3.js   ✅
    Robots:    robots.txt v5.5.0-static  ✅
    Headers:   _headers v2.5.0           ✅
    SW:        sw.js v1.4.0              ✅

  V3.3 CHANGES (from v3.2):
  - ADDED: /danh-muc (priority 0.8)
           Was missing despite having dedicated Worker SEO meta.
           This is the category index HUB page — distinct from
           dynamic /danh-muc/{slug} pages (those go to
           /api/v1/sitemap-categories.xml).
  - ADDED: /tac-gia/ths-nguyen-duc-doanh (priority 0.8)
           Founder author page — critical E-E-A-T anchor for
           AdSense readiness. Has dedicated Worker SEO_ROUTE_META
           with profile-type Schema.org. Also exists in
           /api/v1/sitemap-authors.xml — Google handles duplicate
           URLs across sitemaps gracefully (treats as same URL).
  - PRESERVED: All 21 existing entries with lastmod 2026-05-07.
               Per Google guidance, lastmod should reflect when
               page CONTENT changed, not when Worker logic changed.
               Worker v6.7.3 perf hints don't alter content.

  V3.2 CHANGES (preserved):
  - Lastmod synchronized to 2026-05-07 (Worker v6.7.0 + index.html v3.2.0)
  - 4-space indentation, consistent <url> block format
  - Companion /sitemap.xml requires X-Robots-Tag: noindex via
    _headers (now v2.5.0) to prevent GSC "Crawled - not indexed"
    flag on the sitemap file itself. Google still parses URLs
    INSIDE this sitemap normally — noindex only applies to the
    document, not its content.

  SCOPE — STATIC URLS ONLY:
  This sitemap contains 23 stable, hand-curated routes that exist
  as pre-built React routes. Dynamic content (individual stories,
  blog articles, authors, relax posts, categories) is served by
  separate sitemaps under /api/v1/sitemap-*.xml — see
  sitemap-index.xml.

  PRIORITY DISTRIBUTION (v3.3):
  - 1.0 (1 URL):  Homepage
  - 0.9 (4 URLs): Main content hubs (cảm xúc, câu chuyện, thư giãn, bài viết)
  - 0.8 (9 URLs): 6 emotion categories + /tac-gia + /danh-muc + founder page
  - 0.7 (4 URLs): Community + info pages
  - 0.6 (5 URLs): Legal pages (low priority but indexed for trust)
  Total: 23 URLs

  DELIBERATELY EXCLUDED (handled by dynamic sitemaps):
  - /tac-gia/{slug}        → /api/v1/sitemap-authors.xml
                             (except founder, see v3.3 note above)
  - /bai-viet/{slug}       → /api/v1/sitemap-blog.xml
  - /cau-chuyen/{slug}     → /api/v1/sitemap-stories.xml
  - /thu-gian/{slug}       → /api/v1/sitemap-relax.xml
  - /danh-muc/{slug}       → /api/v1/sitemap-categories.xml
                             (except hub /danh-muc, see v3.3 note above)
  - /admin/*               → robots.txt Disallow
  - /api/*                 → robots.txt Disallow
  - 301-redirect URLs      → not indexed by design
  ============================================
-->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

    <!-- ============================================
         HOMEPAGE — Priority 1.0
         Worker v6.7.0+ injects ROUTE_SSR_CONTENT['/']
         with H1 + 6 emotion links + Zero-Knowledge pitch
         ============================================ -->
    <url>
        <loc>https://cungbanlangnghe.vn/</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
    </url>

    <!-- ============================================
         MAIN CONTENT HUBS — Priority 0.9
         Each has Worker SSR with H1 + content overview
         ============================================ -->
    <url>
        <loc>https://cungbanlangnghe.vn/cam-xuc</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.9</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/cau-chuyen</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/thu-gian</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/bai-viet</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.9</priority>
    </url>

    <!-- ============================================
         EMOTION CATEGORY PAGES — Priority 0.8
         Each has dedicated SSR with topic H1 + advice content
         (Fixes GSC "Crawled - not indexed" for /cam-xuc/stress)
         ============================================ -->
    <url>
        <loc>https://cungbanlangnghe.vn/cam-xuc/stress</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/cam-xuc/co-don</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/cam-xuc/tinh-yeu-hoc-tro</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/cam-xuc/thi-cu-ap-luc</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/cam-xuc/gia-dinh</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/cam-xuc/khac</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>

    <!-- ============================================
         CATEGORY HUB — Priority 0.8 (V3.3 NEW)
         /danh-muc is the static category INDEX page.
         Worker has dedicated SEO_ROUTE_META['/danh-muc'].
         Individual /danh-muc/{slug} pages live in
         /api/v1/sitemap-categories.xml (dynamic).
         ============================================ -->
    <url>
        <loc>https://cungbanlangnghe.vn/danh-muc</loc>
        <lastmod>2026-05-13</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>

    <!-- ============================================
         E-E-A-T TRUST PAGES — Priority 0.8
         /tac-gia = author list page
         /tac-gia/ths-nguyen-duc-doanh = founder profile (V3.3 NEW)
         The founder page is the primary E-E-A-T anchor for
         AdSense pre-approval review. Also exists in
         /api/v1/sitemap-authors.xml — duplicate is OK.
         ============================================ -->
    <url>
        <loc>https://cungbanlangnghe.vn/tac-gia</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/tac-gia/ths-nguyen-duc-doanh</loc>
        <lastmod>2026-05-13</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>

    <!-- ============================================
         COMMUNITY & INFO PAGES — Priority 0.7
         ============================================ -->
    <url>
        <loc>https://cungbanlangnghe.vn/hoi-dap</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/gioi-thieu</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/lien-he</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/viet-cau-chuyen</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>

    <!-- ============================================
         LEGAL PAGES — Priority 0.6
         Lower priority but indexed (trust signals + AdSense compliance)
         ============================================ -->
    <url>
        <loc>https://cungbanlangnghe.vn/chinh-sach-bao-mat</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>yearly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/dieu-khoan-su-dung</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>yearly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/tuyen-bo-mien-tru-trach-nhiem</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>yearly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/quyen-rieng-tu</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>yearly</changefreq>
        <priority>0.6</priority>
    </url>

    <url>
        <loc>https://cungbanlangnghe.vn/chinh-sach-cookie</loc>
        <lastmod>2026-05-07</lastmod>
        <changefreq>yearly</changefreq>
        <priority>0.6</priority>
    </url>

</urlset>