        /* (CSS เดิมทั้งหมด ไม่มีการเปลี่ยนแปลง) */
        :root {
            --primary: #f43f5e;
            --primary-soft: #fff1f2;
            --dark: #1e293b;
            --secondary: #64748b;
            --bg-body: #f8fafc;
        }

        body {
            font-family: 'Prompt', sans-serif;
            background-color: var(--bg-body);
            color: var(--dark);
        }

        .text-primary {
            color: var(--primary) !important;
        }

        .hero-section {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            padding: 50px 0 70px;
            position: relative;
            color: white;
        }

        .hero-title {
            font-weight: 800;
            letter-spacing: -1px;
            font-size: 3.5rem;
        }

        .filter-card {
            background: white;
            border-radius: 20px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            padding: 24px;
        }

        .form-label-sm {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--secondary);
            margin-bottom: 8px;
            display: block;
        }

        .custom-input {
            background-color: #f1f5f9;
            border: 2px solid transparent;
            border-radius: 12px;
            padding: 10px 15px;
            transition: all 0.2s;
        }

        .custom-input:focus {
            background-color: white;
            border-color: var(--primary);
            box-shadow: none;
        }

        .cat-pill {
            display: inline-block;
            padding: 6px 16px;
            border-radius: 50px;
            background: #f1f5f9;
            color: #475569;
            font-size: 13px;
            font-weight: 500;
            margin: 0 4px 8px 0;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
        }

        .cat-pill:hover {
            background: #e2e8f0;
        }

        .cat-pill.active {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
        }

        .promo-card {
            background: white;
            border-radius: 20px;
            border: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            height: 100%;
            display: flex;
            flex-direction: column;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .promo-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

        .promo-img-wrapper {
            position: relative;
            overflow: hidden;
        }

        .promo-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .category-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(4px);
            color: var(--dark);
            padding: 4px 12px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .card-content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .deal-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .shop-name {
            font-size: 0.9rem;
            color: var(--secondary);
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 15px;
        }

        .location-info {
            margin-top: auto;
            padding-top: 15px;
            border-top: 1px dashed #e2e8f0;
            font-size: 0.9rem;
            color: var(--secondary);
            display: flex;
            justify-content: space-between;
        }

        #map {
            height: 400px;
            border-radius: 20px;
            border: 4px solid white;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        .result-stats {
            font-size: 0.9rem;
            color: var(--secondary);
            margin-bottom: 20px;
        }

        .result-stats span {
            color: var(--primary);
            font-weight: 700;
        }

        .leaflet-popup-content-wrapper {
            border-radius: 15px;
            padding: 0;
            overflow: hidden;
        }

        .leaflet-popup-content {
            margin: 0;
            width: 200px !important;
        }

        .popup-card img {
            width: 100%;
            object-fit: cover;
            display: block;
        }

        .popup-body {
            padding: 12px;
        }

        .popup-title {
            font-weight: 700;
            font-size: 14px;
            margin-bottom: 4px;
            display: block;
            color: var(--dark);
        }

        .popup-shop {
            font-size: 12px;
            color: var(--secondary);
            display: block;
            margin-bottom: 8px;
        }

        .popup-btn {
            display: block;
            background: var(--primary);
            color: white !important;
            text-align: center;
            padding: 5px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 12px;
            font-weight: 500;
        }

        .floating-chat-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: var(--primary);
            color: white;
            height: 54px;
            padding: 0 24px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
            cursor: pointer;
            z-index: 9999;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
        }

        .floating-chat-btn:hover {
            transform: translateY(-5px) scale(1.05);
            color: white;
            box-shadow: 0 8px 25px rgba(244, 63, 94, 0.5);
        }

        .floating-chat-btn svg {
            width: 22px;
            height: 22px;
            fill: currentColor;
        }

        /* Loading spinner */
        .loading-overlay {
            text-align: center;
            padding: 60px 20px;
            color: var(--secondary);
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #e2e8f0;
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 16px;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }


        /* โหมดมือถือและแท็บเล็ต: เปลี่ยนพื้นหลังโซนดีลเป็น Dark tone */
        /* โหมดมือถือและแท็บเล็ต: เปลี่ยนพื้นหลังโซนดีลเป็น Dark tone */
        @media (max-width: 991.98px) {
            .mobile-dark-deals {
                background-color: var(--dark);
                /* ปรับ padding ซ้ายขวาให้เนื้อหาด้านในไม่ชิดจอเกินไป */
                padding: 24px 16px;
                /* เปลี่ยนจาก 20px เป็น 0 เพื่อให้ขอบตั้งฉากพอดีกับจอ */
                border-radius: 0;
                margin-top: 10px;
                box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);

                /* ดึงกล่องให้ทะลุ padding ของ Bootstrap container ออกไปชิดขอบจอ */
                margin-left: calc(var(--bs-gutter-x) * -0.5);
                margin-right: calc(var(--bs-gutter-x) * -0.5);
            }

            .mobile-dark-deals .result-stats,
            .mobile-dark-deals .result-stats span {
                color: #94a3b8 !important;
            }

            .mobile-dark-deals #noResult h5 {
                color: #f1f5f9 !important;
            }

            .mobile-dark-deals #noResult p {
                color: #94a3b8 !important;
            }

            .mobile-dark-deals .loading-overlay {
                color: #cbd5e1 !important;
            }

            .mobile-dark-deals .promo-card {
                border: 1px solid #334155;
            }
        }


        /* -------------------------------------
           ส่วนปุ่มลอยแถวเดียวกันด้านล่าง (สำหรับมือถือ)
           ------------------------------------- */
        .mobile-action-bar {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            gap: 12px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 10px 16px;
            border-radius: 50px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(226, 232, 240, 0.8);
            width: max-content;
        }

        .action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 24px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.95rem;
            border: none;
            text-decoration: none;
            transition: all 0.2s;
        }

        .btn-search {
            background: var(--dark);
            color: white;
        }

        .btn-chat {
            background: var(--primary);
            color: white;
        }

        @media (max-width: 991.98px) {

            /* ปรับความสูง Modal ให้ดึงขึ้นมา 85% ของหน้าจอ */
            .offcanvas-bottom {
                height: 85vh !important;
                border-top-left-radius: 24px;
                border-top-right-radius: 24px;
            }

            .filter-card {
                border: none;
                box-shadow: none;
                padding: 16px 24px 40px;
                /* เพิ่มพื้นที่ว่างด้านล่างให้เลื่อนสุดได้สบายขึ้น */
            }

            /* ซ่อนปุ่มแชทลอยอันเดิมในมือถือ */
            .desktop-chat-btn {
                display: none !important;
            }
        }