<?php
/**
 * The template for displaying 404 pages (not found)
 *
 * @package HomeProz
 */

// Prevent direct access
if (!defined('ABSPATH')) {
    exit;
}

get_header();
?>

<main id="primary" class="site-main">
    <div class="container">
        <section class="error-404">
            <header class="error-header">
                <h1 class="error-title">404</h1>
                <p class="error-subtitle">Page Not Found</p>
            </header>

            <div class="error-content">
                <p>The page you're looking for doesn't exist or has been moved.</p>
                <p>Let's get you back on track:</p>

                <div class="error-actions">
                    <a href="<?php echo esc_url(home_url('/')); ?>" class="btn btn-primary">Go Home</a>
                    <a href="<?php echo esc_url(home_url('/properties/')); ?>" class="btn btn-secondary">View Properties</a>
                </div>
            </div>

            <div class="error-search">
                <p>Or try searching:</p>
                <?php get_search_form(); ?>
            </div>
        </section>
    </div>
</main>

<?php
get_footer();
