{"id":725,"date":"2026-08-25T22:11:09","date_gmt":"2026-08-25T20:11:09","guid":{"rendered":"http:\/\/restino.local\/?page_id=725"},"modified":"2026-08-25T22:14:31","modified_gmt":"2026-08-25T20:14:31","slug":"kam-dnes","status":"publish","type":"page","link":"https:\/\/restino.sk\/en\/kam-dnes\/","title":{"rendered":"Where to go?"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"725\" class=\"elementor elementor-725\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b39b0c8 e-con e-atomic-element e-flexbox-base e-default-div e-b39b0c8-9db5a23\" data-id=\"b39b0c8\" data-element_type=\"e-flexbox\" data-e-type=\"e-flexbox\" data-interaction-id=\"b39b0c8\">\n    \t\t\t<h1 data-interaction-id=\"344221d\" class=\"e-344221d-05f0354 e-heading-base e-default-h1\" data-e-type=\"widget\" data-id=\"344221d\">KAM DNES? <\/h1>\n\t\t\t\t\t<h2 data-interaction-id=\"c218456\" class=\"e-c218456-2dbd4c8 e-heading-base e-default-h2\" data-e-type=\"widget\" data-id=\"c218456\">Nevie\u0161, kam \u00eds\u0165? Nechaj v\u00fdber na Restino.<\/h2>\n\t\t\t\t<div class=\"elementor-element elementor-element-a241e11 elementor-widget elementor-widget-shortcode\" data-id=\"a241e11\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n\t\t<div class=\"chutio-random-restaurant\">\n\n\t\t\t<div class=\"chutio-random-hero\">\n\n\t\t\t\t<div class=\"chutio-random-icon\">\ud83c\udfb2<\/div>\n\n\t\t\t\t<h2>Where to go?<\/h2>\n\n\t\t\t\t<p>\n\t\t\t\t\tNevie\u0161, kam \u00eds\u0165? Nechaj v\u00fdber na Restino.\n\t\t\t\t<\/p>\n\n\t\t\t<\/div>\n\n\t\t\t<div class=\"chutio-random-location-section\">\n\n\t\t\t\t<label for=\"chutio-random-location\">\n\t\t\t\t\t\ud83d\udccd Kde sa nach\u00e1dza\u0161?\n\t\t\t\t<\/label>\n\n\t\t\t\t<div class=\"chutio-random-location-control\">\n\n\t\t\t\t\t<input\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tid=\"chutio-random-location\"\n\t\t\t\t\t\tplaceholder=\"City or place\"\n\t\t\t\t\t\tautocomplete=\"off\"\n\t\t\t\t\t>\n\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tid=\"chutio-random-find-location\"\n\t\t\t\t\t>\n\t\t\t\t\t\tSearch\n\t\t\t\t\t<\/button>\n\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"chutio-random-location-actions\">\n\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tid=\"chutio-random-use-location\"\n\t\t\t\t\t>\n\t\t\t\t\t\tUse my location\n\t\t\t\t\t<\/button>\n\n\t\t\t\t\t<span id=\"chutio-random-location-status\">\n\t\t\t\t\t\tLocation is not set\n\t\t\t\t\t<\/span>\n\n\t\t\t\t<\/div>\n\n\t\t\t\t<div\n\t\t\t\t\tid=\"chutio-random-location-suggestions\"\n\t\t\t\t\tclass=\"chutio-random-location-suggestions\"\n\t\t\t\t><\/div>\n\n\t\t\t<\/div>\n\n\t\t\t<div class=\"chutio-random-distance-section\">\n\n\t\t\t\t<label for=\"chutio-random-distance\">\n\t\t\t\t\tDistance\n\t\t\t\t<\/label>\n\n\t\t\t\t<select id=\"chutio-random-distance\">\n\t\t\t\t\t<option value=\"5\" selected>Less than 5km<\/option>\n\t\t\t\t\t<option value=\"10\">Less than 10km<\/option>\n\t\t\t\t\t<option value=\"25\">Less then 25km<\/option>\n\t\t\t\t\t<option value=\"50\">Less than 50km<\/option>\n\t\t\t\t\t<option value=\"100\">Less than 100km<\/option>\n\t\t\t\t\t<option value=\"0\">No limits<\/option>\n\t\t\t\t<\/select>\n\n\t\t\t<\/div>\n\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tid=\"chutio-random-pick\"\n\t\t\t\tclass=\"chutio-random-pick-button\"\n\t\t\t>\n\t\t\t\t\ud83c\udfb2 Vyber mi podnik\n\t\t\t<\/button>\n\n\t\t\t<div\n\t\t\t\tid=\"chutio-random-result\"\n\t\t\t\tclass=\"chutio-random-result\"\n\t\t\t\taria-live=\"polite\"\n\t\t\t><\/div>\n\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tid=\"chutio-random-again\"\n\t\t\t\tclass=\"chutio-random-again chutio-random-again-global\"\n\t\t\t\tstyle=\"display:none;\"\n\t\t\t>\n\t\t\t\t\ud83c\udfb2 Vybra\u0165 znova\n\t\t\t<\/button>\n\n\t\t<\/div>\n\n\t\t<style>\n\n\t\t\t.chutio-random-restaurant {\n\t\t\t\tmax-width: 720px;\n\t\t\t\tmargin: 0 auto;\n\t\t\t\tcolor: #263238;\n\t\t\t}\n\n\t\t\t.chutio-random-hero {\n\t\t\t\ttext-align: center;\n\t\t\t\tmargin-bottom: 28px;\n\t\t\t}\n\n\t\t\t.chutio-random-icon {\n\t\t\t\tfont-size: 42px;\n\t\t\t\tline-height: 1;\n\t\t\t\tmargin-bottom: 12px;\n\t\t\t}\n\n\t\t\t.chutio-random-hero h2 {\n\t\t\t\tmargin: 0;\n\t\t\t\tcolor: #24313A;\n\t\t\t\tfont-size: 34px;\n\t\t\t\tfont-weight: 700;\n\t\t\t\tline-height: 1.15;\n\t\t\t}\n\n\t\t\t.chutio-random-hero p {\n\t\t\t\tmargin: 9px 0 0;\n\t\t\t\tcolor: #7B858A;\n\t\t\t\tfont-size: 15px;\n\t\t\t\tline-height: 1.5;\n\t\t\t}\n\n\t\t\t.chutio-random-location-section,\n\t\t\t.chutio-random-distance-section {\n\t\t\t\tmargin-bottom: 16px;\n\t\t\t\tpadding: 20px;\n\t\t\t\tborder: 1px solid #E4E4E4;\n\t\t\t\tborder-radius: 16px;\n\t\t\t\tbackground: #FFFFFF;\n\t\t\t\tbox-shadow: 0 6px 24px rgba(0,0,0,.05);\n\t\t\t}\n\n\t\t\t.chutio-random-location-section > label,\n\t\t\t.chutio-random-distance-section > label {\n\t\t\t\tdisplay: block;\n\t\t\t\tmargin-bottom: 8px;\n\t\t\t\tcolor: #34424A;\n\t\t\t\tfont-size: 14px;\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\n\t\t\t.chutio-random-location-control {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmin-height: 50px;\n\t\t\t\tborder: 1px solid #D9D9D9;\n\t\t\t\tborder-radius: 10px;\n\t\t\t\tbackground: #FFFFFF;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\n\t\t\t.chutio-random-location-control input {\n\t\t\t\tflex: 1 1 auto;\n\t\t\t\tmin-width: 0;\n\t\t\t\theight: 50px;\n\t\t\t\tpadding: 0 14px;\n\t\t\t\tborder: 0 !important;\n\t\t\t\toutline: 0 !important;\n\t\t\t\tbox-shadow: none !important;\n\t\t\t\tbackground: transparent;\n\t\t\t\tcolor: #34424A;\n\t\t\t\tfont-size: 15px;\n\t\t\t}\n\n\t\t\t#chutio-random-find-location {\n\t\t\t\theight: 38px;\n\t\t\t\tmargin-right: 6px;\n\t\t\t\tpadding: 0 15px;\n\t\t\t\tborder: 1px solid #E77B61 !important;\n\t\t\t\tborder-radius: 8px !important;\n\t\t\t\tbackground: #E77B61 !important;\n\t\t\t\tcolor: #FFFFFF !important;\n\t\t\t\tfont-size: 13px;\n\t\t\t\tfont-weight: 700;\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\t\t\t.chutio-random-location-actions {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tgap: 10px;\n\t\t\t\tflex-wrap: wrap;\n\t\t\t\tmargin-top: 9px;\n\t\t\t}\n\n\t\t\t#chutio-random-use-location {\n\t\t\t\tmin-height: 38px;\n\t\t\t\tpadding: 0 13px;\n\t\t\t\tborder: 1px solid #D9D9D9 !important;\n\t\t\t\tborder-radius: 8px !important;\n\t\t\t\tbackground: #FFFFFF !important;\n\t\t\t\tcolor: #34424A !important;\n\t\t\t\tfont-size: 13px;\n\t\t\t\tfont-weight: 600;\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\t\t\t#chutio-random-location-status {\n\t\t\t\tcolor: #7B858A;\n\t\t\t\tfont-size: 13px;\n\t\t\t}\n\n\t\t\t.chutio-random-distance-section select {\n\t\t\t\twidth: 100%;\n\t\t\t\tmin-height: 48px;\n\t\t\t\tpadding: 0 12px;\n\t\t\t\tborder: 1px solid #D9D9D9;\n\t\t\t\tborder-radius: 10px;\n\t\t\t\tbackground: #FFFFFF;\n\t\t\t\tcolor: #34424A;\n\t\t\t\tfont-size: 14px;\n\t\t\t}\n\n\t\t\t.chutio-random-pick-button {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\twidth: 100%;\n\t\t\t\tmin-height: 56px;\n\t\t\t\tpadding: 0 22px;\n\t\t\t\tborder: 0 !important;\n\t\t\t\tborder-radius: 12px !important;\n\t\t\t\tbackground: #E77B61 !important;\n\t\t\t\tcolor: #FFFFFF !important;\n\t\t\t\tfont-size: 16px;\n\t\t\t\tfont-weight: 700;\n\t\t\t\tcursor: pointer;\n\t\t\t\tbox-shadow: none !important;\n\t\t\t}\n\n\t\t\t.chutio-random-pick-button:hover,\n\t\t\t.chutio-random-pick-button:focus,\n\t\t\t.chutio-random-pick-button:active {\n\t\t\t\tbackground: #D96F56 !important;\n\t\t\t\tcolor: #FFFFFF !important;\n\t\t\t}\n\n\t\t\t.chutio-random-location-suggestions {\n\t\t\t\tmargin-top: 7px;\n\t\t\t}\n\n\t\t\t.chutio-random-location-suggestion {\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 100%;\n\t\t\t\tmargin-bottom: 5px;\n\t\t\t\tpadding: 10px 12px;\n\t\t\t\tborder: 1px solid #D9D9D9;\n\t\t\t\tborder-radius: 8px;\n\t\t\t\tbackground: #FFFFFF;\n\t\t\t\tcolor: #34424A;\n\t\t\t\ttext-align: left;\n\t\t\t\tfont-size: 13px;\n\t\t\t\tline-height: 1.4;\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\t\t\t.chutio-random-result {\n\t\t\t\tmargin-top: 24px;\n\t\t\t}\n\n\t\t\t.chutio-random-result-card {\n\t\t\t\toverflow: hidden;\n\t\t\t\tborder: 1px solid #E4E4E4;\n\t\t\t\tborder-radius: 18px;\n\t\t\t\tbackground: #FFFFFF;\n\t\t\t\tbox-shadow: 0 8px 30px rgba(0,0,0,.08);\n\t\t\t}\n\n\t\t\t.chutio-random-result-image {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 280px;\n\t\t\t\tobject-fit: cover;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t.chutio-random-result-content {\n\t\t\t\tpadding: 24px;\n\t\t\t}\n\n\t\t\t.chutio-random-result-label {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmargin-bottom: 9px;\n\t\t\t\tpadding: 6px 10px;\n\t\t\t\tborder-radius: 999px;\n\t\t\t\tbackground: #EEF4F0;\n\t\t\t\tcolor: #5D6F63;\n\t\t\t\tfont-size: 12px;\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\n\t\t\t.chutio-random-result-name {\n\t\t\t\tmargin: 0;\n\t\t\t\tcolor: #24313A;\n\t\t\t\tfont-size: 28px;\n\t\t\t\tline-height: 1.2;\n\t\t\t}\n\n\t\t\t.chutio-random-result-name a {\n\t\t\t\tcolor: inherit;\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\n\t\t\t.chutio-random-result-meta {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-wrap: wrap;\n\t\t\t\tgap: 7px;\n\t\t\t\tmargin-top: 13px;\n\t\t\t}\n\n\t\t\t.chutio-random-result-tag,\n\t\t\t.chutio-random-result-distance {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tpadding: 5px 9px;\n\t\t\t\tborder-radius: 999px;\n\t\t\t\tbackground: #F4F5F5;\n\t\t\t\tcolor: #59666D;\n\t\t\t\tfont-size: 12px;\n\t\t\t\tfont-weight: 600;\n\t\t\t}\n\n\t\t\t.chutio-random-result-address {\n\t\t\t\tmargin-top: 15px;\n\t\t\t\tcolor: #59666D;\n\t\t\t\tfont-size: 14px;\n\t\t\t\tline-height: 1.5;\n\t\t\t}\n\n\t\t\t.chutio-random-again-global {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\twidth: 100%;\n\t\t\t\tmin-height: 46px;\n\t\t\t\tmargin-top: 12px;\n\t\t\t\tpadding: 0 17px;\n\t\t\t\tborder: 1px solid #D9D9D9 !important;\n\t\t\t\tborder-radius: 10px !important;\n\t\t\t\tbackground: #FFFFFF !important;\n\t\t\t\tcolor: #34424A !important;\n\t\t\t\tfont-size: 13px;\n\t\t\t\tfont-weight: 700;\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\t\t\t.chutio-random-again-global:hover,\n\t\t\t.chutio-random-again-global:focus,\n\t\t\t.chutio-random-again-global:active {\n\t\t\t\tbackground: #F4F5F5 !important;\n\t\t\t\tcolor: #34424A !important;\n\t\t\t}\n\n\t\t\t.chutio-random-result-actions {\n\t\t\t\tdisplay: flex;\n\t\t\t\tgap: 10px;\n\t\t\t\tmargin-top: 22px;\n\t\t\t}\n\n\t\t\t.chutio-random-result-link,\n\t\t\t.chutio-random-again {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\tmin-height: 44px;\n\t\t\t\tpadding: 0 17px;\n\t\t\t\tborder-radius: 10px;\n\t\t\t\tfont-size: 13px;\n\t\t\t\tfont-weight: 700;\n\t\t\t\ttext-decoration: none !important;\n\t\t\t}\n\n\t\t\t.chutio-random-result-link {\n\t\t\t\tbackground: #E77B61;\n\t\t\t\tcolor: #FFFFFF !important;\n\t\t\t}\n\n\t\t\t.chutio-random-again {\n\t\t\t\tborder: 1px solid #D9D9D9;\n\t\t\t\tbackground: #FFFFFF;\n\t\t\t\tcolor: #34424A;\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\t\t\t.chutio-random-message {\n\t\t\t\tpadding: 16px;\n\t\t\t\tborder: 1px solid #E4E4E4;\n\t\t\t\tborder-radius: 12px;\n\t\t\t\tbackground: #FFFFFF;\n\t\t\t\tcolor: #59666D;\n\t\t\t\tfont-size: 14px;\n\t\t\t\tline-height: 1.5;\n\t\t\t\twhite-space: pre-wrap;\n\t\t\t\toverflow-wrap: anywhere;\n\t\t\t}\n\n\t\t\t@media (max-width: 600px) {\n\n\t\t\t\t.chutio-random-hero h2 {\n\t\t\t\t\tfont-size: 28px;\n\t\t\t\t}\n\n\t\t\t\t.chutio-random-location-section,\n\t\t\t\t.chutio-random-distance-section {\n\t\t\t\t\tpadding: 16px;\n\t\t\t\t}\n\n\t\t\t\t.chutio-random-location-control {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\tpadding: 6px;\n\t\t\t\t}\n\n\t\t\t\t.chutio-random-location-control input {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\n\t\t\t\t#chutio-random-find-location {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\tmargin: 5px 0 0;\n\t\t\t\t}\n\n\t\t\t\t.chutio-random-result-image {\n\t\t\t\t\theight: 220px;\n\t\t\t\t}\n\n\t\t\t\t.chutio-random-result-content {\n\t\t\t\t\tpadding: 20px;\n\t\t\t\t}\n\n\t\t\t\t.chutio-random-result-name {\n\t\t\t\t\tfont-size: 24px;\n\t\t\t\t}\n\n\t\t\t\t.chutio-random-result-actions {\n\t\t\t\t\tflex-direction: column;\n\t\t\t\t}\n\n\t\t\t\t.chutio-random-result-link,\n\t\t\t\t.chutio-random-again {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t}\n\n\t\t<\/style>\n\n\t\t<script>\n\t\tdocument.addEventListener('DOMContentLoaded', function () {\n\n\t\t\tconst locationInput = document.getElementById('chutio-random-location');\n\t\t\tconst findLocationButton = document.getElementById('chutio-random-find-location');\n\t\t\tconst useLocationButton = document.getElementById('chutio-random-use-location');\n\t\t\tconst locationStatus = document.getElementById('chutio-random-location-status');\n\t\t\tconst suggestions = document.getElementById('chutio-random-location-suggestions');\n\t\t\tconst distanceSelect = document.getElementById('chutio-random-distance');\n\t\t\tconst pickButton = document.getElementById('chutio-random-pick');\n\t\t\tconst result = document.getElementById('chutio-random-result');\n\t\t\tconst againButton = document.getElementById('chutio-random-again');\n\n\t\t\tconst randomEndpoint = \"https:\\\/\\\/restino.sk\\\/en\\\/wp-json\\\/chutio\\\/v1\\\/restaurants\\\/random\";\n\t\t\tconst geocodeEndpoint = \"https:\\\/\\\/restino.sk\\\/en\\\/wp-json\\\/chutio\\\/v1\\\/location\\\/geocode\";\n\n\t\t\tif (\n\t\t\t\t!locationInput ||\n\t\t\t\t!findLocationButton ||\n\t\t\t\t!useLocationButton ||\n\t\t\t\t!locationStatus ||\n\t\t\t\t!suggestions ||\n\t\t\t\t!distanceSelect ||\n\t\t\t\t!pickButton ||\n\t\t\t\t!result ||\n\t\t\t\t!againButton\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tlet latitude = null;\n\t\t\tlet longitude = null;\n\n\t\t\tfunction escapeHtml(value) {\n\t\t\t\treturn String(value)\n\t\t\t\t\t.replace(\/&\/g, '&amp;')\n\t\t\t\t\t.replace(\/<\/g, '&lt;')\n\t\t\t\t\t.replace(\/>\/g, '&gt;')\n\t\t\t\t\t.replace(\/\"\/g, '&quot;')\n\t\t\t\t\t.replace(\/'\/g, '&#039;');\n\t\t\t}\n\n\t\t\tfunction setLocation(lat, lon, label) {\n\n\t\t\t\tlatitude = Number(lat);\n\t\t\t\tlongitude = Number(lon);\n\n\t\t\t\tlocationInput.value = label || '';\n\n\t\t\t\tlocationStatus.textContent = label\n\t\t\t\t\t? 'Poloha nastaven\u00e1: ' + label\n\t\t\t\t\t: 'Poloha nastaven\u00e1.';\n\n\t\t\t\tsuggestions.innerHTML = '';\n\t\t\t}\n\n\t\t\tuseLocationButton.addEventListener('click', function () {\n\n\t\t\t\tif (!navigator.geolocation) {\n\n\t\t\t\t\tlocationStatus.textContent =\n\t\t\t\t\t\t'Tento prehliada\u010d nepodporuje GPS.';\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tuseLocationButton.disabled = true;\n\t\t\t\tuseLocationButton.textContent = 'Z\u00edskavam polohu\u2026';\n\n\t\t\t\tnavigator.geolocation.getCurrentPosition(\n\t\t\t\t\tfunction (position) {\n\n\t\t\t\t\t\tsetLocation(\n\t\t\t\t\t\t\tposition.coords.latitude,\n\t\t\t\t\t\t\tposition.coords.longitude,\n\t\t\t\t\t\t\t'Moja aktu\u00e1lna poloha'\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tuseLocationButton.disabled = false;\n\t\t\t\t\t\tuseLocationButton.textContent =\n\t\t\t\t\t\t\t'Pou\u017ei\u0165 moju polohu znova';\n\t\t\t\t\t},\n\t\t\t\t\tfunction (error) {\n\n\t\t\t\t\t\tif (error.code === 1) {\n\n\t\t\t\t\t\t\tlocationStatus.textContent =\n\t\t\t\t\t\t\t\t'Pr\u00edstup k polohe bol zamietnut\u00fd.';\n\n\t\t\t\t\t\t} else if (error.code === 2) {\n\n\t\t\t\t\t\t\tlocationStatus.textContent =\n\t\t\t\t\t\t\t\t'Poloha moment\u00e1lne nie je dostupn\u00e1.';\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tlocationStatus.textContent =\n\t\t\t\t\t\t\t\t'Z\u00edskanie polohy trvalo pr\u00edli\u0161 dlho.';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tuseLocationButton.disabled = false;\n\t\t\t\t\t\tuseLocationButton.textContent = 'Sk\u00fasi\u0165 znova';\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tenableHighAccuracy: true,\n\t\t\t\t\t\ttimeout: 10000,\n\t\t\t\t\t\tmaximumAge: 60000\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t});\n\n\t\t\tasync function findLocation() {\n\n\t\t\t\tconst query = locationInput.value.trim();\n\n\t\t\t\tif (!query) {\n\n\t\t\t\t\tlocationStatus.textContent =\n\t\t\t\t\t\t'Zadaj mesto alebo miesto.';\n\n\t\t\t\t\tsuggestions.innerHTML = '';\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfindLocationButton.disabled = true;\n\t\t\t\tfindLocationButton.textContent = 'H\u013ead\u00e1m\u2026';\n\t\t\t\tsuggestions.innerHTML = '';\n\n\t\t\t\ttry {\n\n\t\t\t\t\tconst response = await fetch(\n\t\t\t\t\t\tgeocodeEndpoint +\n\t\t\t\t\t\t'?q=' +\n\t\t\t\t\t\tencodeURIComponent(query)\n\t\t\t\t\t);\n\n\t\t\t\t\tconst raw = await response.text();\n\n\t\t\t\t\tlet data;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdata = JSON.parse(raw);\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t'Geocoding server nevr\u00e1til JSON. HTTP ' +\n\t\t\t\t\t\t\tresponse.status\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (\n\t\t\t\t\t\t!response.ok ||\n\t\t\t\t\t\t!data.success ||\n\t\t\t\t\t\t!data.results ||\n\t\t\t\t\t\t!data.results.length\n\t\t\t\t\t) {\n\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\tdata.message ||\n\t\t\t\t\t\t\t'Miesto sa nena\u0161lo.'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst heading = document.createElement('div');\n\n\t\t\t\t\theading.textContent = 'Vyber miesto:';\n\t\t\t\t\theading.style.fontWeight = '600';\n\t\t\t\t\theading.style.marginBottom = '6px';\n\n\t\t\t\t\tsuggestions.appendChild(heading);\n\n\t\t\t\t\tdata.results.forEach(function (place) {\n\n\t\t\t\t\t\tconst button =\n\t\t\t\t\t\t\tdocument.createElement('button');\n\n\t\t\t\t\t\tbutton.type = 'button';\n\t\t\t\t\t\tbutton.className =\n\t\t\t\t\t\t\t'chutio-random-location-suggestion';\n\n\t\t\t\t\t\tbutton.textContent = place.name;\n\n\t\t\t\t\t\tbutton.addEventListener(\n\t\t\t\t\t\t\t'click',\n\t\t\t\t\t\t\tfunction () {\n\n\t\t\t\t\t\t\t\tsetLocation(\n\t\t\t\t\t\t\t\t\tplace.latitude,\n\t\t\t\t\t\t\t\t\tplace.longitude,\n\t\t\t\t\t\t\t\t\tplace.name\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tsuggestions.appendChild(button);\n\t\t\t\t\t});\n\n\t\t\t\t} catch (error) {\n\n\t\t\t\t\tlocationStatus.textContent =\n\t\t\t\t\t\tString(error.message || error);\n\n\t\t\t\t} finally {\n\n\t\t\t\t\tfindLocationButton.disabled = false;\n\t\t\t\t\tfindLocationButton.textContent = 'N\u00e1js\u0165';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfindLocationButton.addEventListener(\n\t\t\t\t'click',\n\t\t\t\tfindLocation\n\t\t\t);\n\n\t\t\tlocationInput.addEventListener(\n\t\t\t\t'keydown',\n\t\t\t\tfunction (event) {\n\n\t\t\t\t\tif ('Enter' === event.key) {\n\n\t\t\t\t\t\tevent.preventDefault();\n\n\t\t\t\t\t\tfindLocation();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\n\t\t\tasync function pickRestaurant() {\n\n\t\t\t\tif (\n\t\t\t\t\tlatitude === null ||\n\t\t\t\t\tlongitude === null\n\t\t\t\t) {\n\n\t\t\t\t\tlocationStatus.textContent =\n\t\t\t\t\t\t'Najprv vyber svoju polohu alebo mesto.';\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tpickButton.disabled = true;\n\t\t\t\tpickButton.textContent = '\ud83c\udfb2 Vyber\u00e1m\u2026';\n\n\t\t\t\tresult.innerHTML =\n\t\t\t\t\t'<div class=\"chutio-random-message\">' +\n\t\t\t\t\t'H\u013ead\u00e1m podnik pre teba\u2026' +\n\t\t\t\t\t'<\/div>';\n\n\t\t\t\tconst maxDistance =\n\t\t\t\t\tdistanceSelect.value || '5';\n\n\t\t\t\ttry {\n\n\t\t\t\t\tconst params = new URLSearchParams();\n\n\t\t\t\t\tparams.set('latitude', latitude);\n\t\t\t\t\tparams.set('longitude', longitude);\n\t\t\t\t\tparams.set('max_distance', maxDistance);\n\n\t\t\t\t\tconst response = await fetch(\n\t\t\t\t\t\trandomEndpoint +\n\t\t\t\t\t\t'?' +\n\t\t\t\t\t\tparams.toString(),\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmethod: 'GET',\n\t\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t\t'Accept': 'application\/json'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tcache: 'no-store'\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\t\t\t\tconst responseText =\n\t\t\t\t\t\tawait response.text();\n\n\t\t\t\t\tlet data = null;\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tdata = JSON.parse(responseText);\n\n\t\t\t\t\t} catch (parseError) {\n\n\t\t\t\t\t\tconsole.error(\n\t\t\t\t\t\t\t'Chutio Random HTTP status:',\n\t\t\t\t\t\t\tresponse.status\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tconsole.error(\n\t\t\t\t\t\t\t'Chutio Random raw response:',\n\t\t\t\t\t\t\tresponseText\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t'Server nevr\u00e1til platn\u00fd JSON. HTTP ' +\n\t\t\t\t\t\t\tresponse.status +\n\t\t\t\t\t\t\t'\\n\\n' +\n\t\t\t\t\t\t\tresponseText.substring(0, 1200)\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (\n\t\t\t\t\t\t!response.ok ||\n\t\t\t\t\t\t!data.success ||\n\t\t\t\t\t\t!data.restaurant\n\t\t\t\t\t) {\n\n\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\tdata.message ||\n\t\t\t\t\t\t\tdata.error ||\n\t\t\t\t\t\t\t'Nepodarilo sa vybra\u0165 re\u0161taur\u00e1ciu.'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst restaurant =\n\t\t\t\t\t\tdata.restaurant;\n\n\t\t\t\t\tlet html =\n\t\t\t\t\t\t'<article class=\"chutio-random-result-card\">';\n\n\t\t\t\t\tif (restaurant.image) {\n\n\t\t\t\t\t\thtml +=\n\t\t\t\t\t\t\t'<img decoding=\"async\" class=\"chutio-random-result-image\" src=\"' +\n\t\t\t\t\t\t\tescapeHtml(restaurant.image) +\n\t\t\t\t\t\t\t'\" alt=\"' +\n\t\t\t\t\t\t\tescapeHtml(restaurant.name) +\n\t\t\t\t\t\t\t'\">';\n\t\t\t\t\t}\n\n\t\t\t\t\thtml +=\n\t\t\t\t\t\t'<div class=\"chutio-random-result-content\">' +\n\n\t\t\t\t\t\t'<div class=\"chutio-random-result-label\">' +\n\t\t\t\t\t\t\t'\ud83c\udfb2 Restino vybralo' +\n\t\t\t\t\t\t'<\/div>' +\n\n\t\t\t\t\t\t'<h3 class=\"chutio-random-result-name\">' +\n\n\t\t\t\t\t\t\t'<a href=\"' +\n\t\t\t\t\t\t\t\tescapeHtml(restaurant.url) +\n\t\t\t\t\t\t\t'\">' +\n\n\t\t\t\t\t\t\t\tescapeHtml(restaurant.name) +\n\n\t\t\t\t\t\t\t'<\/a>' +\n\n\t\t\t\t\t\t'<\/h3>';\n\n\t\t\t\t\tif (\n\t\t\t\t\t\trestaurant.restaurant_type ||\n\t\t\t\t\t\trestaurant.kitchen\n\t\t\t\t\t) {\n\n\t\t\t\t\t\thtml +=\n\t\t\t\t\t\t\t'<div class=\"chutio-random-result-meta\">';\n\n\t\t\t\t\t\tif (restaurant.restaurant_type) {\n\n\t\t\t\t\t\t\thtml +=\n\t\t\t\t\t\t\t\t'<span class=\"chutio-random-result-tag\">' +\n\t\t\t\t\t\t\t\tescapeHtml(\n\t\t\t\t\t\t\t\t\trestaurant.restaurant_type\n\t\t\t\t\t\t\t\t) +\n\t\t\t\t\t\t\t\t'<\/span>';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (restaurant.kitchen) {\n\n\t\t\t\t\t\t\thtml +=\n\t\t\t\t\t\t\t\t'<span class=\"chutio-random-result-tag\">' +\n\t\t\t\t\t\t\t\tescapeHtml(\n\t\t\t\t\t\t\t\t\trestaurant.kitchen\n\t\t\t\t\t\t\t\t) +\n\t\t\t\t\t\t\t\t'<\/span>';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\thtml += '<\/div>';\n\t\t\t\t\t}\n\n\t\t\t\t\tif (\n\t\t\t\t\t\ttypeof restaurant.distance_km !==\n\t\t\t\t\t\t'undefined'\n\t\t\t\t\t) {\n\n\t\t\t\t\t\thtml +=\n\t\t\t\t\t\t\t'<div class=\"chutio-random-result-meta\">' +\n\n\t\t\t\t\t\t\t\t'<span class=\"chutio-random-result-distance\">' +\n\n\t\t\t\t\t\t\t\t\t'\ud83d\udccd ' +\n\n\t\t\t\t\t\t\t\t\tNumber(\n\t\t\t\t\t\t\t\t\t\trestaurant.distance_km\n\t\t\t\t\t\t\t\t\t).toFixed(1) +\n\n\t\t\t\t\t\t\t\t\t' km od teba' +\n\n\t\t\t\t\t\t\t\t'<\/span>' +\n\n\t\t\t\t\t\t\t'<\/div>';\n\t\t\t\t\t}\n\n\t\t\t\t\tif (restaurant.address) {\n\n\t\t\t\t\t\thtml +=\n\t\t\t\t\t\t\t'<div class=\"chutio-random-result-address\">' +\n\n\t\t\t\t\t\t\t\t'\ud83d\udccd ' +\n\n\t\t\t\t\t\t\t\tescapeHtml(\n\t\t\t\t\t\t\t\t\trestaurant.address\n\t\t\t\t\t\t\t\t) +\n\n\t\t\t\t\t\t\t'<\/div>';\n\t\t\t\t\t}\n\n\t\t\t\t\thtml +=\n\n\t\t\t\t\t\t'<div class=\"chutio-random-result-actions\">' +\n\n\t\t\t\t\t\t\t'<a class=\"chutio-random-result-link\" href=\"' +\n\n\t\t\t\t\t\t\t\tescapeHtml(\n\t\t\t\t\t\t\t\t\trestaurant.url\n\t\t\t\t\t\t\t\t) +\n\n\t\t\t\t\t\t\t'>' +\n\n\t\t\t\t\t\t\t\t'Zobrazi\u0165 re\u0161taur\u00e1ciu \u2192' +\n\n\t\t\t\t\t\t\t'<\/a>' +\n\n\n\t\t\t\t\t\t'<\/div>' +\n\n\t\t\t\t\t\t'<\/div>' +\n\n\t\t\t\t\t\t'<\/article>';\n\n\t\t\t\t\tresult.innerHTML = html;\n\n\t\t\t\t\tagainButton.style.display = 'flex';\n\n\t\t\t\t\tresult.scrollIntoView({\n\t\t\t\t\t\tbehavior: 'smooth',\n\t\t\t\t\t\tblock: 'nearest'\n\t\t\t\t\t});\n\n\t\t\t\t} catch (error) {\n\n\t\t\t\t\tresult.innerHTML =\n\t\t\t\t\t\t'<div class=\"chutio-random-message\">' +\n\t\t\t\t\t\t\tescapeHtml(\n\t\t\t\t\t\t\t\tString(\n\t\t\t\t\t\t\t\t\terror.message ||\n\t\t\t\t\t\t\t\t\terror\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t) +\n\t\t\t\t\t\t'<\/div>';\n\n\t\t\t\t} finally {\n\n\t\t\t\t\tpickButton.disabled = false;\n\n\t\t\t\t\tpickButton.textContent =\n\t\t\t\t\t\t'\ud83c\udfb2 Vyber mi podnik';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpickButton.addEventListener(\n\t\t\t\t'click',\n\t\t\t\tpickRestaurant\n\t\t\t);\n\n\t\t\tagainButton.addEventListener('click', function (event) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t\tpickRestaurant();\n\t\t\t});\n\n\t\t});\n\t\t<\/script>\n\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\n<\/div>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>KAM DNES? Nevie\u0161, kam \u00eds\u0165? Nechaj v\u00fdber na Restino.<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-725","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/restino.sk\/en\/wp-json\/wp\/v2\/pages\/725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/restino.sk\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/restino.sk\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/restino.sk\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/restino.sk\/en\/wp-json\/wp\/v2\/comments?post=725"}],"version-history":[{"count":10,"href":"https:\/\/restino.sk\/en\/wp-json\/wp\/v2\/pages\/725\/revisions"}],"predecessor-version":[{"id":735,"href":"https:\/\/restino.sk\/en\/wp-json\/wp\/v2\/pages\/725\/revisions\/735"}],"wp:attachment":[{"href":"https:\/\/restino.sk\/en\/wp-json\/wp\/v2\/media?parent=725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}