{"id":15,"date":"2025-12-13T09:27:31","date_gmt":"2025-12-13T09:27:31","guid":{"rendered":"https:\/\/www.luren.in\/?page_id=15"},"modified":"2025-12-13T09:29:39","modified_gmt":"2025-12-13T09:29:39","slug":"15-2","status":"publish","type":"page","link":"https:\/\/www.luren.in\/?page_id=15","title":{"rendered":"Flight search"},"content":{"rendered":"\r\n<div class=\"amadex-flight-search-container amadex-theme-light\">\r\n    <div class=\"amadex-flight-search-header\">\r\n        <h3 class=\"amadex-flight-search-title\">Flight Search<\/h3>\r\n    <\/div>\r\n    \r\n    <div class=\"amadex-flight-search-form-container\">\r\n        <form id=\"amadex-flight-search-form\" class=\"amadex-flight-search-form\">\r\n            <input type=\"hidden\" id=\"amadex_nonce\" name=\"amadex_nonce\" value=\"e7ade4c375\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F15\" \/>            \r\n            <div class=\"amadex-form-row\">\r\n                <div class=\"amadex-form-group\">\r\n                    <label for=\"amadex-origin-search\">Origin<\/label>\r\n                    <div class=\"amadex-autocomplete-wrapper\">\r\n                        <input type=\"text\" id=\"amadex-origin-search\" class=\"amadex-airport-search\" placeholder=\"Search city or airport\">\r\n                        <input type=\"hidden\" id=\"amadex-origin\" name=\"origin\" required>\r\n                        <div class=\"amadex-autocomplete-results\"><\/div>\r\n                    <\/div>\r\n                    <small class=\"amadex-form-help\">Search by city, airport name, or code<\/small>\r\n                <\/div>\r\n                \r\n                <div class=\"amadex-form-group\">\r\n                    <label for=\"amadex-destination-search\">Destination<\/label>\r\n                    <div class=\"amadex-autocomplete-wrapper\">\r\n                        <input type=\"text\" id=\"amadex-destination-search\" class=\"amadex-airport-search\" placeholder=\"Search city or airport\">\r\n                        <input type=\"hidden\" id=\"amadex-destination\" name=\"destination\" required>\r\n                        <div class=\"amadex-autocomplete-results\"><\/div>\r\n                    <\/div>\r\n                    <small class=\"amadex-form-help\">Search by city, airport name, or code<\/small>\r\n                <\/div>\r\n            <\/div>\r\n            \r\n            <div class=\"amadex-form-row\">\r\n                <div class=\"amadex-form-group\">\r\n                    <label for=\"amadex-departure-date\">Departure Date<\/label>\r\n                    <input type=\"text\" id=\"amadex-departure-date\" name=\"departure_date\" class=\"amadex-datepicker\" placeholder=\"YYYY-MM-DD\" required>\r\n                <\/div>\r\n                \r\n                <div class=\"amadex-form-group\">\r\n                    <label for=\"amadex-return-date\">Return Date<\/label>\r\n                    <input type=\"text\" id=\"amadex-return-date\" name=\"return_date\" class=\"amadex-datepicker\" placeholder=\"YYYY-MM-DD (Optional)\">\r\n                    <small class=\"amadex-form-help\">Leave empty for one-way flights<\/small>\r\n                <\/div>\r\n            <\/div>\r\n            \r\n            <div class=\"amadex-form-row\">\r\n                <div class=\"amadex-form-group\">\r\n                    <label for=\"amadex-adults\">Passengers<\/label>\r\n                    <input type=\"number\" id=\"amadex-adults\" name=\"adults\" min=\"1\" max=\"9\" value=\"1\">\r\n                <\/div>\r\n                \r\n                <div class=\"amadex-form-group amadex-form-submit\">\r\n                    <button type=\"submit\" class=\"amadex-search-button\">Search Flights<\/button>\r\n                <\/div>\r\n            <\/div>\r\n        <\/form>\r\n    <\/div>\r\n    \r\n    <div id=\"amadex-loading\" class=\"amadex-loading\" style=\"display: none;\">\r\n        <div class=\"amadex-spinner\"><\/div>\r\n        <p>Searching for flights...<\/p>\r\n    <\/div>\r\n    \r\n    <div id=\"amadex-flight-results\" class=\"amadex-flight-results\"><\/div>\r\n<\/div><script type=\"text\/javascript\">\r\n            jQuery(document).ready(function($) {\r\n                \/\/ Add a small delay to ensure all elements are loaded\r\n                setTimeout(function() {\r\n                    \/\/ Initialize datepickers\r\n                    $(\".amadex-datepicker\").datepicker({\r\n                        dateFormat: \"yy-mm-dd\",\r\n                        minDate: new Date(),\r\n                        changeMonth: true,\r\n                        changeYear: true\r\n                    });\r\n                    \r\n                    \/\/ Manual initialization for airport search\r\n                    $(\".amadex-airport-search\").each(function() {\r\n                        $(this).on(\"input\", function() {\r\n                            var $input = $(this);\r\n                            var $wrapper = $input.closest(\".amadex-autocomplete-wrapper\");\r\n                            var $results = $wrapper.find(\".amadex-autocomplete-results\");\r\n                            var searchTerm = $input.val().trim();\r\n                            \r\n                            if (searchTerm.length >= 2) {\r\n                                \/\/ Show search results\r\n                                $results.html(\"<div class='amadex-loading-results'>Searching...<\/div>\").show();\r\n                                \r\n                                \/\/ Make AJAX request\r\n                                $.ajax({\r\n                                    url: amadex_params.ajax_url,\r\n                                    type: \"POST\",\r\n                                    data: {\r\n                                        action: \"amadex_search_airports\",\r\n                                        term: searchTerm,\r\n                                        nonce: amadex_params.nonce\r\n                                    },\r\n                                    success: function(response) {\r\n                                        if (response.success && response.data) {\r\n                                            var airports = response.data;\r\n                                            var html = \"\";\r\n                                            \r\n                                            if (airports.length === 0) {\r\n                                                html = \"<div class='amadex-no-results'>No airports found<\/div>\";\r\n                                            } else {\r\n                                                for (var i = 0; i < airports.length; i++) {\r\n                                                    html += \"<div class='amadex-autocomplete-item' data-code='\" + airports[i].code + \"'>\";\r\n                                                    html += \"<strong>\" + airports[i].code + \"<\/strong> - \";\r\n                                                    html += airports[i].city + \", \" + airports[i].name + \" (\" + airports[i].country + \")\";\r\n                                                    html += \"<\/div>\";\r\n                                                }\r\n                                            }\r\n                                            \r\n                                            $results.html(html).show();\r\n                                            \r\n                                            \/\/ Add click handlers to results\r\n                                            $results.find(\".amadex-autocomplete-item\").on(\"click\", function() {\r\n                                                var code = $(this).data(\"code\");\r\n                                                var text = $(this).text();\r\n                                                $input.val(text);\r\n                                                $wrapper.find(\"input[type='hidden']\").val(code);\r\n                                                $results.hide();\r\n                                            });\r\n                                        } else {\r\n                                            $results.html(\"<div class='amadex-error-results'>Error searching airports<\/div>\");\r\n                                        }\r\n                                    },\r\n                                    error: function() {\r\n                                        $results.html(\"<div class='amadex-error-results'>Error searching airports<\/div>\");\r\n                                    }\r\n                                });\r\n                            } else {\r\n                                $results.hide();\r\n                            }\r\n                        });\r\n                        \r\n                        \/\/ Handle double-click for testing\r\n                        $(this).on(\"dblclick\", function() {\r\n                            var $input = $(this);\r\n                            var $wrapper = $input.closest(\".amadex-autocomplete-wrapper\");\r\n                            var $results = $wrapper.find(\".amadex-autocomplete-results\");\r\n                            \r\n                            \/\/ Show sample results\r\n                            var html = \"\";\r\n                            html += \"<div class='amadex-autocomplete-item' data-code='JFK'><strong>JFK<\/strong> - New York, John F. Kennedy International Airport (United States)<\/div>\";\r\n                            html += \"<div class='amadex-autocomplete-item' data-code='LAX'><strong>LAX<\/strong> - Los Angeles, Los Angeles International Airport (United States)<\/div>\";\r\n                            html += \"<div class='amadex-autocomplete-item' data-code='LHR'><strong>LHR<\/strong> - London, Heathrow Airport (United Kingdom)<\/div>\";\r\n                            \r\n                            $results.html(html).show();\r\n                            \r\n                            \/\/ Add click handlers to results\r\n                            $results.find(\".amadex-autocomplete-item\").on(\"click\", function() {\r\n                                var code = $(this).data(\"code\");\r\n                                var text = $(this).text();\r\n                                $input.val(text);\r\n                                $wrapper.find(\"input[type='hidden']\").val(code);\r\n                                $results.hide();\r\n                            });\r\n                        });\r\n                    });\r\n                    \r\n                    \/\/ Hide results when clicking outside\r\n                    $(document).on(\"click\", function(e) {\r\n                        if (!$(e.target).closest(\".amadex-autocomplete-wrapper\").length) {\r\n                            $(\".amadex-autocomplete-results\").hide();\r\n                        }\r\n                    });\r\n                }, 500);\r\n            });\r\n        <\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-15","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Flight search - Luren Group<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.luren.in\/?page_id=15\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Flight search - Luren Group\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.luren.in\/?page_id=15\" \/>\n<meta property=\"og:site_name\" content=\"Luren Group\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-13T09:29:39+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.luren.in\/?page_id=15\",\"url\":\"https:\/\/www.luren.in\/?page_id=15\",\"name\":\"Flight search - Luren Group\",\"isPartOf\":{\"@id\":\"https:\/\/www.luren.in\/#website\"},\"datePublished\":\"2025-12-13T09:27:31+00:00\",\"dateModified\":\"2025-12-13T09:29:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.luren.in\/?page_id=15#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.luren.in\/?page_id=15\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.luren.in\/?page_id=15#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.luren.in\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Flight search\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.luren.in\/#website\",\"url\":\"https:\/\/www.luren.in\/\",\"name\":\"Luren Group\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.luren.in\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Flight search - Luren Group","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.luren.in\/?page_id=15","og_locale":"en_US","og_type":"article","og_title":"Flight search - Luren Group","og_url":"https:\/\/www.luren.in\/?page_id=15","og_site_name":"Luren Group","article_modified_time":"2025-12-13T09:29:39+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.luren.in\/?page_id=15","url":"https:\/\/www.luren.in\/?page_id=15","name":"Flight search - Luren Group","isPartOf":{"@id":"https:\/\/www.luren.in\/#website"},"datePublished":"2025-12-13T09:27:31+00:00","dateModified":"2025-12-13T09:29:39+00:00","breadcrumb":{"@id":"https:\/\/www.luren.in\/?page_id=15#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.luren.in\/?page_id=15"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.luren.in\/?page_id=15#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.luren.in\/"},{"@type":"ListItem","position":2,"name":"Flight search"}]},{"@type":"WebSite","@id":"https:\/\/www.luren.in\/#website","url":"https:\/\/www.luren.in\/","name":"Luren Group","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.luren.in\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.luren.in\/index.php?rest_route=\/wp\/v2\/pages\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.luren.in\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.luren.in\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.luren.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.luren.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":2,"href":"https:\/\/www.luren.in\/index.php?rest_route=\/wp\/v2\/pages\/15\/revisions"}],"predecessor-version":[{"id":17,"href":"https:\/\/www.luren.in\/index.php?rest_route=\/wp\/v2\/pages\/15\/revisions\/17"}],"wp:attachment":[{"href":"https:\/\/www.luren.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}