<div id="map" style="height: 600px; width: 100%; margin-bottom: 40px;"></div>
            <!-- Scripts -->
            <script>
                function initMap(){
                    const serviceCenters = [{"address":"Akropoli Avenue 9, 2013, Nicosia","phone":"22335577","fax":"22334455","email":"test@test.test","description":"(Main Building)","additional_info":[{"title":"Winter Working Hours (2\/9\/2024 - 1\/6\/2025)","values":["Mon - Fri: 7:45 - 13:45","Tue + Thu: 15:00 - 17:15"]},{"title":"Summer Working Hours (2\/6\/2025 - 31\/8\/2025)","values":["Mon - Fri: 7:45 - 13:45"]}],"lat":35.12996888457697,"lng":33.36724415489027}];
                    const labels = {"phone":"Phone","fax":"Fax","email":"Email","address":"Address","contact_us":"Contact Us"};
                    const channel = "";
                    const contactUsUrl = "\/en\/supply\/we-are-always-here-for-you\/";

                    const map = new google.maps.Map(document.getElementById("map"), {
                        zoom: 9,
                        center: { lat: 35.1856, lng: 33.3823 }, // Default center (Nicosia)
                    });

                    const infoWindow = new google.maps.InfoWindow();

                    serviceCenters.forEach(center => {
                        const location = { lat: parseFloat(center.lat), lng: parseFloat(center.lng) };

                        const marker = new google.maps.Marker({
                            map: map,
                            position: { lat: center.lat, lng: center.lng },
                            title: center.address,
                            icon: {
                                url: "https://pilot.eac.com.cy/app/themes/eac-child-theme/includes/images/eac-map-marker.png",
                                scaledSize: new google.maps.Size(28, 34)
                            }
                        });

                        marker.addListener("click", () => {
                            // Build additional info dynamically
                            let additionalHtml = "";
                            if (center.additional_info && center.additional_info.length > 0) {
                                center.additional_info.forEach(info => {
                                    additionalHtml += `
                                        <div class="info-block">
                                            <div class="info-title">${info.title}</div>
                                            <div>
                                                ${info.values.map(val => `${val}<br/>`).join("")}
                                            </div>
                                        </div><br/>
                                    `;
                                });
                            }

                            // Final content for info window
                            infoWindow.setContent(`
                                <div class="custom-infowindow">
                                    <div class="info-row"><span class="label">${labels.address}</span><br/>${center.address}</div><br/>
                                    ${center.phone ? `<div class="info-row"><span class="label">${labels.phone}: </span>${center.phone}</div>` : ""}
                                    ${center.fax ? `<div class="info-row"><span class="label">${labels.fax}: </span>${center.fax}</div>` : ""}
                                    ${channel === "supply-service" ? `<div class="info-row"><a target="_blank" href="${contactUsUrl}" class="email-value">${labels.contact_us}</a></div>` : (center.email ? `<div class="info-row"><span class="label">${labels.email}: </span><span class="email-value"><a href="mailto:${center.email}">${center.email}</a></span></div>` : "")}<br/>
                                    ${center.description ? `<div class="info-row">${center.description}</div><br/>` : ""}
                                    ${additionalHtml}
                                </div>
                            `);

                            infoWindow.open(map, marker);
                        });
                    });
                }
            </script>
            <!-- Load Google Maps JavaScript API -->
            <script async defer
                src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDFfj9VPS-BFSSnDyGOa1RMck50LjkMTjc&callback=initMap">
            </script>
            <style>
                .page-id-1309 #section-1-editor {
                    padding-bottom: 0px;
                }
                .custom-infowindow {
                    font-family: Arial, sans-serif;
                    font-size: 12px;
                    line-height: 1.4;
                    max-width: 250px;
                    padding: 5px;
                    margin: 0;
                }
                .custom-infowindow .location-title {
                    font-size: 14px;
                    font-weight: bold;
                    color: #333;
                    margin-bottom: 6px;
                }
                .custom-infowindow .label {
                    font-weight: bold;
                }
                .custom-infowindow .info-row {
                    margin-bottom: 4px;
                }
                .custom-infowindow .info-block .info-title {
                    font-weight: bold;
                }
                .custom-infowindow .email-value a {
                    color: #0099D8;
                    text-decoration: none;
                }
                .gm-ui-hover-effect>span {
                    width: 17px !important;
                    height: 17px !important;
                }
                .gm-ui-hover-effect {
                    width: 37px !important;
                    height: 22px !important;
                }
            </style>
        {"id":1344,"date":"2025-09-22T10:14:17","date_gmt":"2025-09-22T10:14:17","guid":{"rendered":"https:\/\/eac-web.dgmedialink.com\/?page_id=1344"},"modified":"2025-09-22T10:14:17","modified_gmt":"2025-09-22T10:14:17","slug":"eac-central-offices","status":"publish","type":"page","link":"https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/","title":{"rendered":"EAC Central Offices"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-custom-builder.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-1344","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>EAC Central Offices - EAC Platform<\/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:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"EAC Central Offices - EAC Platform\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/\" \/>\n<meta property=\"og:site_name\" content=\"EAC Platform\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/\",\"url\":\"https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/\",\"name\":\"EAC Central Offices - EAC Platform\",\"isPartOf\":{\"@id\":\"https:\/\/pilot.eac.com.cy\/#website\"},\"datePublished\":\"2025-09-22T10:14:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/pilot.eac.com.cy\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"EAC Central Offices\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/pilot.eac.com.cy\/#website\",\"url\":\"https:\/\/pilot.eac.com.cy\/\",\"name\":\"EAC Platform\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/pilot.eac.com.cy\/?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":"EAC Central Offices - EAC Platform","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:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/","og_locale":"en_US","og_type":"article","og_title":"EAC Central Offices - EAC Platform","og_url":"https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/","og_site_name":"EAC Platform","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/","url":"https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/","name":"EAC Central Offices - EAC Platform","isPartOf":{"@id":"https:\/\/pilot.eac.com.cy\/#website"},"datePublished":"2025-09-22T10:14:17+00:00","breadcrumb":{"@id":"https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pilot.eac.com.cy\/en\/eac-central-offices\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pilot.eac.com.cy\/en\/"},{"@type":"ListItem","position":2,"name":"EAC Central Offices"}]},{"@type":"WebSite","@id":"https:\/\/pilot.eac.com.cy\/#website","url":"https:\/\/pilot.eac.com.cy\/","name":"EAC Platform","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pilot.eac.com.cy\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"builder_sections":[{"choose_block":"editor","section_title":"","show_section_title":false,"icon_links_grid":{"columns_desktop":false,"column_bg_color":"","links":false},"simple_editor":{"editor_content":"\n"},"text_image_links":{"columns_desktop":2,"cards":false},"image_links_overlay":{"columns_desktop":false,"items":false},"announcements":{"columns_desktop":false,"column_bg_color":"","column_border_color":"","all_link":"","all_link_text":"","items":false},"latest_news":{"columns_desktop":false,"column_bg_color":"","number_of_posts":3,"all_link":"","all_link_text":"","categories":false},"banner_link":{"banner_background_image":false,"banner_main_text":"","banner_overlay_color":"","banner_overlay_opacity":"","banner_small_text":"","use_multiple_buttons":false,"banner_button_label":"","banner_button_url":"","multiple_buttons":false},"quick_links":{"columns_desktop":false,"links":false},"image_gallery":{"columns_desktop":false,"images":false},"image_albums":{"columns_desktop":false,"galleries":false},"table_block":{"highlight_first_row":false,"columns":false,"rows":false},"file_links_list":{"file_links":false},"faq_settings":{"faq_channel":false,"faq_link_text":"","faq_link":""},"accordion":{"accordion_items":false},"youtube_channel":{"channel_id":"","max_items":9},"image_text":{"columns_desktop":1,"image_position":false,"width_ratio":false,"image_height":"","cards":false},"home_slider":{"slides":false},"mobile_app":{"app_title":"","app_description":"","app_screenshot":false,"store_links":false},"contact_flexible_block":{"layout_columns":"8-4","sidebar_1":{"sidebar_1_items":false},"sidebar_2":{"blocks_per_row":1,"block_bg_color":"","square_blocks":false}},"bill_legend":{"main_image":false,"bill_template":false,"items":false},"service_cards_grid":{"columns_desktop":2,"cards":false},"buttons_group":{"allignment":false,"layout":false,"buttons":false},"energy_tips":{"hero_title":"","hero_sub_title":"","show_as_columns":false,"hero_image":false,"hero_text":"","cards":false},"section_settings":{"hide_section":false,"margin_top":"","margin_bottom":"","padding_bottom":"","padding_top":"","section_id":"","custom_class":"","background_type":"none","background_color":"","background_image":false}}],"_links":{"self":[{"href":"https:\/\/pilot.eac.com.cy\/en\/wp-json\/wp\/v2\/pages\/1344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pilot.eac.com.cy\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pilot.eac.com.cy\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pilot.eac.com.cy\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pilot.eac.com.cy\/en\/wp-json\/wp\/v2\/comments?post=1344"}],"version-history":[{"count":0,"href":"https:\/\/pilot.eac.com.cy\/en\/wp-json\/wp\/v2\/pages\/1344\/revisions"}],"wp:attachment":[{"href":"https:\/\/pilot.eac.com.cy\/en\/wp-json\/wp\/v2\/media?parent=1344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}