<?php
require __DIR__ . '/includes/bootstrap.php';
header('Content-Type: application/xml; charset=UTF-8');
$pages = ['/', '/brand-photography/', '/retro-video/', '/stories/', '/ai-filter/', '/salon/', '/contact/', '/film-review/', '/handbook/', '/image-poetry/', '/filter-workshop/', '/story-darkroom/'];
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<urlset>\n";
foreach ($pages as $path) {
    echo "  <url>\n";
    echo "    <loc>" . e(site_url($path)) . "</loc>\n";
    echo "    <lastmod>" . date('Y-m-d') . "</lastmod>\n";
    echo "    <changefreq>weekly</changefreq>\n";
    echo "    <priority>" . ($path === '/' ? '1.0' : '0.8') . "</priority>\n";
    echo "  </url>\n";
}
echo "</urlset>\n";
