﻿{"status":"error","message":"Unknown action"}﻿<!DOCTYPE html>
<html lang="th">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Smart Match | จับคู่อสังหาริมทรัพย์และนายทุน | Nayna (นายหน้า จำนอง-ขายฝาก)</title>
    <meta name="description" content="ระบบจับคู่ทรัพย์และทุนอัจฉริยะ วิเคราะห์ทำเล วงเงิน และอัตราดอกเบี้ย">
    
    <!-- Google Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    
    <!-- Bootstrap Icons -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
    
    <!-- Nayna CSS -->
    <link rel="stylesheet" href="/assets/css/style.css?v=1.0.0">
    </head>
<body>

<header class="site-header">
    <div class="container navbar">
        <!-- Logo -->
        <a href="/index.php" class="brand-logo">
            <div class="brand-icon">
                <i class="bi bi-buildings-fill"></i>
            </div>
            <div>
                NAYNA <span class="brand-tag">จำนอง-ขายฝาก</span>
            </div>
        </a>

        <!-- Desktop Navigation -->
        <ul class="nav-links">
            <li>
                <a href="/index.php" class="nav-link ">
                    <i class="bi bi-house"></i> หน้าแรก
                </a>
            </li>
            <li>
                <a href="/properties.php" class="nav-link ">
                    <i class="bi bi-grid"></i> รายการทรัพย์
                </a>
            </li>
            <li>
                <a href="/investor_demands.php" class="nav-link ">
                    <i class="bi bi-cash-stack"></i> ทุนต้องการทรัพย์
                </a>
            </li>
            <li>
                <a href="/match.php" class="nav-link active">
                    <i class="bi bi-stars" style="color: var(--gold);"></i> Smart Match
                </a>
            </li>
                    </ul>

        <!-- Action / Auth buttons -->
        <div class="nav-actions">
                            <a href="/login.php" class="btn btn-outline btn-sm">เข้าสู่ระบบ</a>
                <a href="/register.php" class="btn btn-primary btn-sm">สมัครสมาชิก</a>
                    </div>
    </div>
</header>

<main class="site-main">

<div class="container" style="margin-top: 32px; margin-bottom: 60px;">
    <!-- Banner Header -->
    <div style="background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%); color: white; border-radius: var(--radius-xl); padding: 36px 32px; margin-bottom: 32px; position: relative; overflow: hidden;">
        <div style="max-width: 680px; position: relative; z-index: 1;">
            <div style="display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem; color: #a7f3d0; margin-bottom: 12px;">
                <i class="bi bi-stars" style="color: #fbbf24;"></i> AI-POWERED SMART MATCH
            </div>
            <h1 style="font-size: 2rem; font-weight: 800; margin-bottom: 10px; color: white;">
                ระบบจับคู่อัจฉริยะ (Smart Match)
            </h1>
            <p style="color: #cbd5e1; font-size: 0.98rem; line-height: 1.6;">
                วิเคราะห์ความเข้ากันได้ระหว่าง "ทรัพย์ขายฝาก-จำนอง" กับ "สเปกเงินทุนของนายทุน" ตรวจสอบวงเงิน ดอกเบี้ย ทำเล และประเภททรัพย์ เพื่อให้จับคู่ได้เร็วที่สุดโดยไม่ต้องมีดิว
            </p>
        </div>
    </div>

    <!-- Match Mode Selector (If user has properties) -->
    
    <!-- Results Section -->
    <div>
        <div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;">
            <h2 style="font-size: 1.35rem; font-weight: 800; color: var(--text-primary);">
                ผลการจับคู่ที่ความเข้ากันได้สูง (Match Pairs)
            </h2>
            <span style="font-size: 0.88rem; color: var(--text-muted);">พบ 0 คู่ที่ตรงเกณฑ์</span>
        </div>

                    <div class="card-box" style="padding: 60px 20px; text-align: center;">
                <i class="bi bi-stars" style="font-size: 3rem; color: #fbbf24;"></i>
                <h3 style="font-size: 1.25rem; font-weight: 700; margin-top: 14px;">ยังไม่มีคู่แมตช์ที่ตรงเกณฑ์ในขณะนี้</h3>
                <p style="color: var(--text-muted); font-size: 0.88rem; margin-top: 6px;">ลงประกาศทรัพย์หรือลงสเปกความต้องการนายทุนเพิ่ม เพื่อให้ระบบเริ่มจับคู่ทันที</p>
                <div style="display: flex; justify-content: center; gap: 12px; margin-top: 18px;">
                    <a href="/add_property.php" class="btn btn-primary btn-sm"><i class="bi bi-plus-circle"></i> ลงประกาศทรัพย์</a>
                    <a href="/investor_demands.php" class="btn btn-gold btn-sm"><i class="bi bi-cash"></i> ลงสเปกนายทุน</a>
                </div>
            </div>
            </div>
</div>

<style>
@media (max-width: 800px) {
    .card-box[style*="grid-template-columns: 1fr 140px 1fr"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}
</style>

﻿</main>

<footer style="background: var(--navy); color: #94a3b8; padding: 48px 0 32px; border-top: 1px solid var(--navy-light);">
    <div class="container">
        <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-bottom: 36px;">
            <!-- Brand Column -->
            <div>
                <div style="display: flex; align-items: center; gap: 10px; color: white; font-weight: 800; font-size: 1.25rem; margin-bottom: 14px;">
                    <div style="width: 36px; height: 36px; background: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;">
                        <i class="bi bi-buildings-fill" style="color: white;"></i>
                    </div>
                    NAYNA
                </div>
                <p style="font-size: 0.88rem; line-height: 1.6; color: #94a3b8; margin-bottom: 16px;">
                    ศูนย์กลางและจุดเชื่อมต่อนายหน้าอสังหาริมทรัพย์ จำนอง ขายฝาก เปิดโอกาสให้นายหน้าติดทรัพย์และนายหน้าติดนายทุนได้พบกัน เจรจาตรง ปลอดภัย และรวดเร็ว
                </p>
                <div style="display: inline-block; background: rgba(255, 255, 255, 0.05); padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.76rem; border: 1px solid rgba(255, 255, 255, 0.1);">
                    <i class="bi bi-info-circle" style="color: var(--gold);"></i> ระบบไม่มีระบบดิว ไม่ถือเงินประกัน เป็นเพียงจุดเชื่อมต่อให้พบกัน
                </div>
            </div>

            <!-- Quick Links -->
            <div>
                <h4 style="color: white; font-size: 1rem; margin-bottom: 16px;">เมนูหลัก</h4>
                <ul style="list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem;">
                    <li><a href="/properties.php" style="color: #94a3b8;">ค้นหาทรัพย์ จำนอง-ขายฝาก</a></li>
                    <li><a href="/investor_demands.php" style="color: #94a3b8;">สเปกความต้องการนายทุน</a></li>
                    <li><a href="/match.php" style="color: #94a3b8;">Smart Match จับคู่อัตโนมัติ</a></li>
                    <li><a href="/add_property.php" style="color: #94a3b8;">ลงประกาศทรัพย์ใหม่</a></li>
                </ul>
            </div>

            <!-- Categories -->
            <div>
                <h4 style="color: white; font-size: 1rem; margin-bottom: 16px;">ประเภทธุรกรรม</h4>
                <ul style="list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem;">
                    <li><a href="/properties.php?type=consignment" style="color: #94a3b8;">ขายฝากที่ดินและอสังหาฯ</a></li>
                    <li><a href="/properties.php?type=mortgage" style="color: #94a3b8;">จำนองบ้านและคอนโด</a></li>
                    <li><a href="/properties.php?type=sale" style="color: #94a3b8;">ขายด่วน / ปิดภาระหนี้</a></li>
                    <li><a href="/chat_list.php" style="color: #94a3b8;">ห้องสนทนาเรียลไทม์</a></li>
                </ul>
            </div>
        </div>

        <div style="border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem;">
            <div>&copy; 2026 Nayna Platform. All rights reserved. Real Estate & Mortgage Connection Hub.</div>
            <div style="display: flex; gap: 16px;">
                <span>WebSocket Real-time Enabled</span>
                <span>Fast Smart Matching</span>
            </div>
        </div>
    </div>
</footer>

<!-- Mobile Bottom Navigation -->
<nav class="mobile-nav">
    <a href="/index.php" class="mobile-nav-item ">
        <i class="bi bi-house-door"></i>
        <span>หน้าแรก</span>
    </a>
    <a href="/properties.php" class="mobile-nav-item ">
        <i class="bi bi-grid"></i>
        <span>ทรัพย์</span>
    </a>
    <a href="/match.php" class="mobile-nav-item active">
        <i class="bi bi-stars" style="color: var(--gold);"></i>
        <span>จับคู่</span>
    </a>
    <a href="/chat_list.php" class="mobile-nav-item " style="position: relative;">
        <i class="bi bi-chat-dots"></i>
        <span>แชท</span>
            </a>
    <a href="/profile.php" class="mobile-nav-item ">
        <i class="bi bi-person"></i>
        <span>โปรไฟล์</span>
    </a>
</nav>

<!-- Main Scripts -->
<script src="/assets/js/app.js?v=1.0.0"></script>
</body>
</html>
