{"id":1759,"date":"2026-11-26T13:36:55","date_gmt":"2026-11-26T10:36:55","guid":{"rendered":"https:\/\/www.petroshotel.com\/?page_id=1759"},"modified":"2026-11-26T13:48:55","modified_gmt":"2026-11-26T10:48:55","slug":"rezervasyon","status":"publish","type":"page","link":"https:\/\/www.petroshotel.com\/tr\/rezervasyon\/","title":{"rendered":"Rezervasyon"},"content":{"rendered":"\r\n<style>\r\n.booking-container{width:100%;max-width:1280px;margin:30px auto;border-radius:12px;overflow:hidden;box-shadow:0 10px 35px rgba(0,0,0,.12);background:#fff}\r\n.booking-container iframe{width:100%;height:1200px;border:0;display:block}\r\n@media (max-width:991px){.booking-container iframe{height:1400px}}\r\n@media (max-width:768px){.booking-container{margin:15px auto;border-radius:0}.booking-container iframe{height:1700px}}\r\n<\/style>\r\n\r\n<div class=\"booking-container\">\r\n  <iframe id=\"istframe\" name=\"istframe\" title=\"Online Rezervasyon\" allowfullscreen frameborder=\"0\"><\/iframe>\r\n<\/div>\r\n\r\n<form id=\"istform\" method=\"post\" action=\"https:\/\/petroshotel.istbooking.com\/tr-TR\" target=\"istframe\" style=\"display:none\">\r\n  <input type=\"hidden\" name=\"hidSorgu\" id=\"hidSorgu\">\r\n<\/form>\r\n\r\n<script>\r\n(function () {\r\n  var SIRKET   = 1782;\r\n  var DOVIZ_ID = '3';\r\n  var LOCALE   = 'tr-TR';\r\n\r\n  var frame = document.getElementById('istframe');\r\n  var form  = document.getElementById('istform');\r\n  var q     = new URLSearchParams(window.location.search);\r\n\r\n  var qLoc = (q.get('locale') || '').trim();\r\n  if (qLoc === 'tr-TR' || qLoc === 'ru-RU' || qLoc === 'en-US') { LOCALE = qLoc; }\r\n  form.action = 'https:\/\/petroshotel.istbooking.com\/' + LOCALE;\r\n\r\n  function num(v, def) { v = parseInt(v, 10); return isNaN(v) || v < 0 ? def : v; }\r\n  function toDate(s) {\r\n    var m = \/^(\\d{4})-(\\d{1,2})-(\\d{1,2})$\/.exec((s || '').trim());\r\n    return m ? new Date(+m[1], +m[2] - 1, +m[3]) : null;\r\n  }\r\n\r\n  var giris = toDate(q.get('checkin_date'));\r\n  var cikis = toDate(q.get('checkout_date'));\r\n\r\n  if (!giris) { frame.src = 'https:\/\/petroshotel.istbooking.com\/' + LOCALE; return; }\r\n\r\n  var gece = cikis ? Math.round((cikis - giris) \/ 86400000) : 1;\r\n  if (!(gece > 0)) { gece = 1; }\r\n\r\n  var sorgu = {\r\n    girisTarih: giris.getDate() + '.' + (giris.getMonth() + 1) + '.' + giris.getFullYear(),\r\n    geceSayisi: String(gece),\r\n    odaSayisi: String(num(q.get('rooms[count]'), 1) || 1),\r\n    yetiskinSayisi: String(num(q.get('guest_rooms[1][adult_count]'), 2) || 2),\r\n    cocukKategori1Sayisi: String(num(q.get('guest_rooms[1][child_count]'), 0)),\r\n    cocukKategori2Sayisi: '0',\r\n    dilKod: LOCALE,\r\n    kuponKod: '',\r\n    sirketId: SIRKET,\r\n    aramaDovizId: DOVIZ_ID,\r\n    sirketDovizId: DOVIZ_ID,\r\n    aramaCalissinMi: 1\r\n  };\r\n\r\n  document.getElementById('hidSorgu').value = JSON.stringify(sorgu);\r\n  form.submit();\r\n})();\r\n<\/script>\r\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-1759","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.petroshotel.com\/tr\/wp-json\/wp\/v2\/pages\/1759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.petroshotel.com\/tr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.petroshotel.com\/tr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.petroshotel.com\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.petroshotel.com\/tr\/wp-json\/wp\/v2\/comments?post=1759"}],"version-history":[{"count":1,"href":"https:\/\/www.petroshotel.com\/tr\/wp-json\/wp\/v2\/pages\/1759\/revisions"}],"predecessor-version":[{"id":1760,"href":"https:\/\/www.petroshotel.com\/tr\/wp-json\/wp\/v2\/pages\/1759\/revisions\/1760"}],"wp:attachment":[{"href":"https:\/\/www.petroshotel.com\/tr\/wp-json\/wp\/v2\/media?parent=1759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}