document.addEventListener("DOMContentLoaded", function () {
    const parent = document.getElementsByClassName('parent_agent_list_container')[0];
    if (parent && parent.querySelector('#no_property_found')) {
        parent.style.display = 'none';
    }
	
// 	const form = document.getElementById('requestShowingForm');
//     if (form) {
//         form.addEventListener('submit', function(e) {
//             e.preventDefault();
//             const formData = new FormData(form);
//             fetch(ajax_object.ajax_url, {
//                 method: 'POST',
//                 body: formData
//             })
//             .then(res => res.json())
//             .then(data => {
//                 document.getElementById('requestShowingMsg').textContent = data.message;
//                 if (data.success) form.reset();
//             })
//             .catch(() => {
//                 document.getElementById('requestShowingMsg').textContent = 'Submission failed. Please try again.';
//             });
//         });
//     }

//     jQuery('.featured_listing_slider').slick({
//         infinite: true,
//         slidesToShow: 3,
//         slidesToScroll: 3,
//         arrows: true,
//         dots: true,
//         prevArrow: "<button class='custom_previous'> <svg width='18' height='16' viewBox='0 0 18 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M6.20835 7.33331H14.3283V8.66665H6.20835L9.79502 12.24L8.84835 13.1866L3.66168 7.99998L8.84835 2.81331L9.79502 3.75998L6.20835 7.33331Z' fill='#4B5563'/></svg></button>",
//         nextArrow: "<button class='custom_next'><svg width='18' height='16' viewBox='0 0 18 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M11.7817 7.33331L8.19508 3.75998L9.14174 2.81331L14.3284 7.99998L9.14174 13.1866L8.19508 12.24L11.7817 8.66665H3.66174V7.33331H11.7817Z' fill='#4B5563'/></svg></button>",
//         responsive: [   
//             {
//                 breakpoint: 991,
//                 settings: {
//                     slidesToShow: 2,
//                     slidesToScroll: 2
//                 }
//             },
//             {
//                 breakpoint: 576,
//                 settings: {
//                     slidesToShow: 1,
//                     slidesToScroll: 1
//                 }
//             }
//         ]
//     });
	

	
//     jQuery('.featured-properties-slider').not('.featured_listing_slider.featured-properties-slider').slick({
//         infinite: true,
//         slidesToShow: 3,
//         slidesToScroll: 3,
//         arrows: true,
//         dots: true,
//         prevArrow: "<button class='custom_previous'> <svg width='18' height='16' viewBox='0 0 18 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M6.20835 7.33331H14.3283V8.66665H6.20835L9.79502 12.24L8.84835 13.1866L3.66168 7.99998L8.84835 2.81331L9.79502 3.75998L6.20835 7.33331Z' fill='#4B5563'/></svg></button>",
//         nextArrow: "<button class='custom_next'><svg width='18' height='16' viewBox='0 0 18 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M11.7817 7.33331L8.19508 3.75998L9.14174 2.81331L14.3284 7.99998L9.14174 13.1866L8.19508 12.24L11.7817 8.66665H3.66174V7.33331H11.7817Z' fill='#4B5563'/></svg></button>",
//         responsive: [   
//             {
//                 breakpoint: 991,
//                 settings: {
//                     slidesToShow: 2,
//                     slidesToScroll: 2
//                 }
//             },
//             {
//                 breakpoint: 576,
//                 settings: {
//                     slidesToShow: 1,
//                     slidesToScroll: 1
//                 }
//             }
//         ]
//     });
    
});
