{"id":7743,"date":"2026-06-11T13:05:03","date_gmt":"2026-06-11T13:05:03","guid":{"rendered":"https:\/\/transferbarcelonalux.com\/?page_id=7743"},"modified":"2026-08-26T18:45:04","modified_gmt":"2026-08-26T18:45:04","slug":"interactive-barcelona","status":"publish","type":"page","link":"https:\/\/transferbarcelonalux.com\/es\/interactive-barcelona\/","title":{"rendered":"Interactive Barcelona Attractions Map with Google Maps Route"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"7743\" class=\"elementor elementor-7743\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ace3f60 e-flex e-con-boxed e-con e-parent\" data-id=\"ace3f60\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ca25ddb elementor-widget elementor-widget-html\" data-id=\"ca25ddb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!--\n  Transfer Barcelona Lux \u2014 Google Maps destination map.\n  Google Maps is loaded by Transfer BarcelonaLux Calculator v2.5.79 or newer.\n  Credentials and the Google Maps loader remain inside the plugin.\n-->\n<style>\n  #tblGoogleDestinationMap{\n    --tbl-ink:#231d16;--tbl-muted:#746858;--tbl-paper:#fbf7ee;--tbl-card:#fffdf8;\n    --tbl-gold:#c9a24a;--tbl-red:#a93428;--tbl-red-dark:#7d231d;--tbl-line:rgba(88,67,31,.18);\n    --tbl-shadow:0 24px 70px rgba(42,29,12,.16);font-family:Arial,Helvetica,sans-serif;\n    color:var(--tbl-ink);background:linear-gradient(180deg,#fbf7ee,#f4ead8);padding:42px 20px 50px;overflow-x:clip;\n  }\n  #tblGoogleDestinationMap *{box-sizing:border-box}\n  #tblGoogleDestinationMap button,#tblGoogleDestinationMap select{max-width:100%;font-family:inherit}\n  #tblGoogleDestinationMap .tbl-gm-inner{max-width:1460px;margin:auto}\n  #tblGoogleDestinationMap .tbl-gm-head{max-width:900px;margin:0 auto 22px;text-align:center}\n  #tblGoogleDestinationMap .tbl-gm-kicker{display:inline-flex;align-items:center;gap:8px;margin:0 0 12px;padding:7px 12px;border:1px solid var(--tbl-line);border-radius:999px;background:rgba(255,255,255,.72);color:#765b1f;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}\n  #tblGoogleDestinationMap .tbl-gm-kicker:before{content:\"\";width:8px;height:8px;border-radius:50%;background:var(--tbl-gold);box-shadow:0 0 0 5px rgba(201,162,74,.15)}\n  #tblGoogleDestinationMap h2{margin:0 0 10px;font-family:Georgia,'Times New Roman',serif;font-size:clamp(32px,4.8vw,58px);line-height:1;letter-spacing:-.04em}\n  #tblGoogleDestinationMap .tbl-gm-intro{max-width:780px;margin:0 auto;color:#574d40;font-size:16px;line-height:1.65}\n  #tblGoogleDestinationMap .tbl-gm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 12px}\n  #tblGoogleDestinationMap .tbl-gm-toolbar>*{min-width:0}\n  #tblGoogleDestinationMap .tbl-gm-tabs{display:flex;min-width:0;gap:8px;flex-wrap:wrap}\n  #tblGoogleDestinationMap .tbl-gm-tab,#tblGoogleDestinationMap .tbl-gm-control{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;height:auto;border:1px solid var(--tbl-line);border-radius:999px;background:#fff;color:var(--tbl-ink);padding:10px 16px;font-size:14px;line-height:1.2;white-space:normal;overflow-wrap:anywhere;text-align:center;font-weight:900;cursor:pointer}\n  #tblGoogleDestinationMap .tbl-gm-tab.is-active{background:var(--tbl-ink);border-color:var(--tbl-ink);color:#fff}\n  #tblGoogleDestinationMap .tbl-gm-chooser{display:flex;align-items:center;gap:8px;min-width:min(100%,360px)}\n  #tblGoogleDestinationMap .tbl-gm-chooser label{font-size:12px;font-weight:900;color:var(--tbl-muted);white-space:nowrap}\n  #tblGoogleDestinationMap .tbl-gm-chooser select{width:100%;min-width:0;min-height:44px;border:1px solid var(--tbl-line);border-radius:999px;background:#fff;color:var(--tbl-ink);padding:10px 38px 10px 14px;font-size:14px;line-height:1.2;font-weight:800;cursor:pointer}\n  #tblGoogleDestinationMap .tbl-gm-shell{position:relative;height:clamp(560px,68vw,760px);max-height:760px;overflow:hidden;border:1px solid var(--tbl-line);border-radius:30px;background:#e8e1d3;box-shadow:var(--tbl-shadow)}\n  #tblGoogleDestinationMap .tbl-gm-map{position:absolute;inset:0}\n  #tblGoogleDestinationMap .tbl-gm-map button{min-width:0}\n  #tblGoogleDestinationMap .tbl-gm-floating{position:absolute;z-index:4;top:14px;left:14px;display:flex;gap:8px;pointer-events:none}\n  #tblGoogleDestinationMap .tbl-gm-floating button{pointer-events:auto;display:inline-flex;align-items:center;gap:7px;min-width:0;min-height:42px;height:auto;padding:9px 13px;border:1px solid rgba(0,0,0,.12);border-radius:999px;background:rgba(255,253,248,.94);box-shadow:0 8px 24px rgba(0,0,0,.16);font-size:13px;line-height:1.2;white-space:normal;font-weight:900;cursor:pointer}\n  #tblGoogleDestinationMap .tbl-gm-floating button:disabled{opacity:.65;cursor:wait}\n  #tblGoogleDestinationMap .tbl-gm-drawer{position:absolute;z-index:6;top:12px;right:12px;bottom:12px;width:min(410px,calc(100% - 24px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(70,51,22,.18);border-radius:24px;background:rgba(255,253,248,.98);box-shadow:0 22px 65px rgba(0,0,0,.24);transform:translateX(calc(100% + 30px));opacity:0;visibility:hidden;transition:transform .28s ease,opacity .22s ease,visibility 0s linear .28s}\n  #tblGoogleDestinationMap .tbl-gm-drawer.is-open{transform:none;opacity:1;visibility:visible;transition-delay:0s}\n  #tblGoogleDestinationMap .tbl-gm-drawer-head{display:flex;align-items:flex-start;gap:12px;padding:18px 18px 13px;border-bottom:1px solid var(--tbl-line)}\n  #tblGoogleDestinationMap .tbl-gm-drawer-title{min-width:0;flex:1}\n  #tblGoogleDestinationMap .tbl-gm-mode{display:block;margin-bottom:4px;color:#85681f;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}\n  #tblGoogleDestinationMap .tbl-gm-drawer h3{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:27px;line-height:1.06}\n  #tblGoogleDestinationMap .tbl-gm-close{display:grid;place-items:center;flex:0 0 42px;width:42px;min-width:42px;max-width:42px;height:42px;padding:0;border:1px solid var(--tbl-line);border-radius:50%;background:#fff;color:var(--tbl-ink);font-size:24px;line-height:1;cursor:pointer}\n  #tblGoogleDestinationMap .tbl-gm-drawer-scroll{min-height:0;overflow:auto;overscroll-behavior:contain}\n  #tblGoogleDestinationMap .tbl-gm-photo{display:block;width:100%;aspect-ratio:16\/9;object-fit:cover;background:#e8dfcd}\n  #tblGoogleDestinationMap .tbl-gm-card-copy{padding:17px 18px 21px}\n  #tblGoogleDestinationMap .tbl-gm-card-copy p{margin:0 0 13px;color:#554a3d;font-size:14px;line-height:1.58}\n  #tblGoogleDestinationMap .tbl-gm-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:15px}\n  #tblGoogleDestinationMap .tbl-gm-tag{display:inline-flex;padding:6px 9px;border:1px solid rgba(201,162,74,.36);border-radius:999px;background:#fff4d2;color:#6c5318;font-size:11px;font-weight:900}\n  #tblGoogleDestinationMap .tbl-gm-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}\n  #tblGoogleDestinationMap .tbl-gm-actions>*{min-width:0}\n  #tblGoogleDestinationMap .tbl-gm-btn{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;height:auto;border:1px solid var(--tbl-line);border-radius:14px;background:#fff;color:var(--tbl-ink)!important;padding:10px 12px;font-size:14px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;text-decoration:none!important;text-align:center;font-weight:900;cursor:pointer}\n  #tblGoogleDestinationMap .tbl-gm-btn.is-primary{grid-column:1\/-1;background:var(--tbl-gold);border-color:var(--tbl-gold);color:#15110b!important}\n  #tblGoogleDestinationMap .tbl-gm-btn.is-dark{background:var(--tbl-ink);border-color:var(--tbl-ink);color:#fff!important}\n  #tblGoogleDestinationMap .tbl-gm-route-toggle{grid-column:1\/-1;justify-content:flex-start;text-align:left;background:#fffaf0}\n  #tblGoogleDestinationMap .tbl-gm-route-toggle.is-selected{border-color:#76945e;background:#eff7e9;color:#38532b!important}\n  #tblGoogleDestinationMap .tbl-gm-status{position:absolute;z-index:8;inset:0;display:grid;place-items:center;padding:24px;background:#eee7da;text-align:center}\n  #tblGoogleDestinationMap .tbl-gm-status[hidden]{display:none}\n  #tblGoogleDestinationMap .tbl-gm-status div{max-width:520px;padding:22px;border:1px solid var(--tbl-line);border-radius:20px;background:#fffdf8;box-shadow:0 16px 45px rgba(0,0,0,.12)}\n  #tblGoogleDestinationMap .tbl-gm-status strong{display:block;margin-bottom:7px;font-family:Georgia,'Times New Roman',serif;font-size:23px}\n  #tblGoogleDestinationMap .tbl-gm-status p{margin:0;color:var(--tbl-muted);line-height:1.5}\n  #tblGoogleDestinationMap .tbl-gm-route{margin-top:14px;border:1px solid var(--tbl-line);border-radius:22px;background:rgba(255,253,248,.94);box-shadow:0 12px 34px rgba(42,29,12,.08)}\n  #tblGoogleDestinationMap .tbl-gm-route[hidden]{display:none}\n  #tblGoogleDestinationMap .tbl-gm-route summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:13px 17px;line-height:1.3;list-style:none;font-weight:900;cursor:pointer}\n  #tblGoogleDestinationMap .tbl-gm-route summary::-webkit-details-marker{display:none}\n  #tblGoogleDestinationMap .tbl-gm-route summary:after{content:'+';font-size:23px}\n  #tblGoogleDestinationMap .tbl-gm-route[open] summary:after{content:'\u2212'}\n  #tblGoogleDestinationMap .tbl-gm-route-body{padding:0 17px 17px}\n  #tblGoogleDestinationMap .tbl-gm-presets{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:11px}\n  #tblGoogleDestinationMap .tbl-gm-presets button{min-width:0;min-height:40px;height:auto;border:1px solid var(--tbl-line);border-radius:999px;background:#fff;padding:8px 12px;font-size:12px;line-height:1.2;white-space:normal;overflow-wrap:anywhere;font-weight:900;cursor:pointer}\n  #tblGoogleDestinationMap .tbl-gm-stops{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}\n  #tblGoogleDestinationMap .tbl-gm-stop{display:inline-flex;align-items:center;gap:6px;padding:7px 8px 7px 11px;border:1px solid var(--tbl-line);border-radius:999px;background:#fff;font-size:12px;font-weight:800}\n  #tblGoogleDestinationMap .tbl-gm-stop button{display:grid;place-items:center;width:24px;min-width:24px;max-width:24px;height:24px;min-height:24px;padding:0;border:0;border-radius:50%;background:#f4e2da;color:#862b22;font-weight:900;line-height:1;cursor:pointer}\n  #tblGoogleDestinationMap .tbl-gm-route-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}\n  #tblGoogleDestinationMap .tbl-gm-route-text{color:var(--tbl-muted);font-size:13px}\n  #tblGoogleDestinationMap .tbl-gm-route-link{min-width:220px}\n  #tblGoogleDestinationMap .tbl-gm-route-link.is-disabled{opacity:.45;pointer-events:none}\n  @media(max-width:760px){\n    #tblGoogleDestinationMap{padding:30px 10px 36px}\n    #tblGoogleDestinationMap .tbl-gm-head{text-align:left;padding:0 5px}\n    #tblGoogleDestinationMap .tbl-gm-intro{font-size:14px}\n    #tblGoogleDestinationMap .tbl-gm-toolbar{align-items:stretch;flex-direction:column;margin-top:14px}\n    #tblGoogleDestinationMap .tbl-gm-tabs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}\n    #tblGoogleDestinationMap .tbl-gm-tab{width:100%;padding:9px 8px;font-size:12px;line-height:1.15}\n    #tblGoogleDestinationMap .tbl-gm-chooser{width:100%;min-width:0;max-width:none}\n    #tblGoogleDestinationMap .tbl-gm-chooser label{display:none}\n    #tblGoogleDestinationMap .tbl-gm-chooser select{font-size:14px}\n    #tblGoogleDestinationMap .tbl-gm-shell{height:clamp(520px,75dvh,680px);max-height:none;border-radius:22px}\n    #tblGoogleDestinationMap .tbl-gm-floating{top:10px;left:10px}\n    #tblGoogleDestinationMap .tbl-gm-floating button{min-height:40px;padding:8px 11px;font-size:12px}\n    #tblGoogleDestinationMap .tbl-gm-drawer{top:auto;left:0;right:0;bottom:0;width:100%;max-height:78%;border-radius:22px 22px 0 0;transform:translateY(calc(100% + 25px))}\n    #tblGoogleDestinationMap .tbl-gm-drawer.is-open{transform:none}\n    #tblGoogleDestinationMap .tbl-gm-drawer-head{padding:14px 15px 11px}\n    #tblGoogleDestinationMap .tbl-gm-drawer h3{font-size:24px}\n    #tblGoogleDestinationMap .tbl-gm-close{flex-basis:40px;width:40px;min-width:40px;max-width:40px;height:40px}\n    #tblGoogleDestinationMap .tbl-gm-photo{max-height:165px}\n    #tblGoogleDestinationMap .tbl-gm-card-copy{padding:14px 15px calc(18px + env(safe-area-inset-bottom,0px))}\n    #tblGoogleDestinationMap .tbl-gm-card-copy p{font-size:13px}\n    #tblGoogleDestinationMap .tbl-gm-actions{grid-template-columns:minmax(0,1fr)}\n    #tblGoogleDestinationMap .tbl-gm-btn{font-size:14px;line-height:1.2}\n    #tblGoogleDestinationMap .tbl-gm-btn,#tblGoogleDestinationMap .tbl-gm-btn.is-primary,#tblGoogleDestinationMap .tbl-gm-route-toggle{grid-column:auto}\n    #tblGoogleDestinationMap .tbl-gm-route-bottom{align-items:stretch;flex-direction:column}\n    #tblGoogleDestinationMap .tbl-gm-route-link{width:100%;min-width:0}\n  }\n  @media(prefers-reduced-motion:reduce){#tblGoogleDestinationMap .tbl-gm-drawer{transition:none}}\n<\/style>\n\n<section id=\"tblGoogleDestinationMap\" aria-labelledby=\"tblGmTitle\">\n  <div class=\"tbl-gm-inner\">\n    <header class=\"tbl-gm-head\">\n      <p class=\"tbl-gm-kicker\">Private sightseeing transfers<\/p>\n      <h2 id=\"tblGmTitle\">Explore Barcelona &amp; Catalonia<\/h2>\n      <p class=\"tbl-gm-intro\">Choose a real location on the map, open its travel guide, get directions or build a simple Barcelona itinerary.<\/p>\n    <\/header>\n\n    <div class=\"tbl-gm-toolbar\">\n      <div class=\"tbl-gm-tabs\" role=\"tablist\" aria-label=\"Map area\">\n        <button class=\"tbl-gm-tab is-active\" type=\"button\" role=\"tab\" aria-selected=\"true\" data-mode=\"catalonia\">Catalonia day trips<\/button>\n        <button class=\"tbl-gm-tab\" type=\"button\" role=\"tab\" aria-selected=\"false\" data-mode=\"barcelona\">Barcelona attractions<\/button>\n      <\/div>\n      <div class=\"tbl-gm-chooser\">\n        <label for=\"tblGmPlaceSelect\">Choose a place<\/label>\n        <select id=\"tblGmPlaceSelect\" aria-label=\"Choose a place\"><\/select>\n      <\/div>\n    <\/div>\n\n    <div class=\"tbl-gm-shell\">\n      <div class=\"tbl-gm-map\" id=\"tblGmMap\" aria-label=\"Interactive Google map\"><\/div>\n      <div class=\"tbl-gm-floating\">\n        <button type=\"button\" id=\"tblGmLocate\" aria-label=\"Show my location\"><span aria-hidden=\"true\">\u25ce<\/span><span>Near me<\/span><\/button>\n      <\/div>\n      <div class=\"tbl-gm-status\" id=\"tblGmStatus\">\n        <div><strong>Loading the map\u2026<\/strong><p>The interactive map will appear here.<\/p><\/div>\n      <\/div>\n      <aside class=\"tbl-gm-drawer\" id=\"tblGmDrawer\" aria-live=\"polite\" aria-label=\"Selected place\" aria-hidden=\"true\">\n        <div class=\"tbl-gm-drawer-head\">\n          <div class=\"tbl-gm-drawer-title\"><span class=\"tbl-gm-mode\" id=\"tblGmCardMode\"><\/span><h3 id=\"tblGmCardTitle\"><\/h3><\/div>\n          <button class=\"tbl-gm-close\" id=\"tblGmClose\" type=\"button\" aria-label=\"Close place details\">\u00d7<\/button>\n        <\/div>\n        <div class=\"tbl-gm-drawer-scroll\">\n          <img class=\"tbl-gm-photo\" id=\"tblGmCardPhoto\" alt=\"\" loading=\"lazy\" decoding=\"async\">\n          <div class=\"tbl-gm-card-copy\">\n            <p id=\"tblGmCardText\"><\/p>\n            <div class=\"tbl-gm-tags\" id=\"tblGmCardTags\"><\/div>\n            <div class=\"tbl-gm-actions\" id=\"tblGmCardActions\"><\/div>\n          <\/div>\n        <\/div>\n      <\/aside>\n    <\/div>\n\n    <details class=\"tbl-gm-route\" id=\"tblGmRoute\" hidden>\n      <summary><span id=\"tblGmRouteHeading\">Plan a Barcelona route<\/span><\/summary>\n      <div class=\"tbl-gm-route-body\">\n        <div class=\"tbl-gm-presets\">\n          <button type=\"button\" data-preset=\"gaudi\">Use Gaud\u00ed route<\/button>\n          <button type=\"button\" data-preset=\"central\">Use old city route<\/button>\n          <button type=\"button\" data-preset=\"clear\">Clear route<\/button>\n        <\/div>\n        <div class=\"tbl-gm-stops\" id=\"tblGmStops\"><\/div>\n        <div class=\"tbl-gm-route-bottom\">\n          <span class=\"tbl-gm-route-text\" id=\"tblGmRouteText\">No attractions added yet.<\/span>\n          <a class=\"tbl-gm-btn tbl-gm-btn is-dark tbl-gm-route-link is-disabled\" id=\"tblGmRouteLink\" href=\"#\" target=\"_blank\" rel=\"noopener\">Open route in Google Maps<\/a>\n        <\/div>\n      <\/div>\n    <\/details>\n  <\/div>\n<\/section>\n\n<script>\n(function(){\n  'use strict';\n  const root=document.getElementById('tblGoogleDestinationMap');\n  if(!root||root.dataset.ready==='1')return;\n  root.dataset.ready='1';\n  const ASSET_BASE='https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/tbl-destination-map\/';\n  const BOOKING='https:\/\/transferbarcelonalux.com\/booking-2\/';\n\n  const catalonia=[\n    {id:'barcelona',num:'BCN',title:'Barcelona',lat:41.3874,lng:2.1686,mode:'Catalonia hub',time:'City attractions',type:'City guide',photo:ASSET_BASE+'barcelona-map-bg.png',guide:'#',tags:['Barcelona','Gaud\u00ed','City sights'],text:'Barcelona is the starting point for exploring Catalonia and a destination in itself, with Gaud\u00ed landmarks, the Gothic Quarter, beaches and premium private transfer options.',special:true},\n    {id:'girona',num:1,title:'Girona',lat:41.9794,lng:2.8214,mode:'Day trip from Barcelona',time:'Approx. 1h 20m',type:'Medieval city',photo:'https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/2025\/08\/girona-300x181.jpg',guide:'https:\/\/transferbarcelonalux.com\/transfer-barcelona-to-girona-private-ride-travel-guide\/',tags:['Medieval city','Game of Thrones','Old town'],text:'A historic city with colourful riverside houses, winding streets, the Cathedral of Saint Mary, the Jewish Quarter and the Eiffel Bridge.'},\n    {id:'tarragona',num:2,title:'Tarragona',lat:41.1189,lng:1.2445,mode:'Day trip from Barcelona',time:'Approx. 1h 20m',type:'Roman heritage',photo:'https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/2025\/08\/Tarragona-Anfiteatro-romano-1024x683.webp',guide:'https:\/\/transferbarcelonalux.com\/tarragona-travel-guide-roman-heritage-mediterranean-views\/',tags:['Roman ruins','Sea views','Old town'],text:'A Mediterranean city known for Roman heritage, the seaside amphitheatre, old town streets, Gothic cathedral and panoramic viewpoints.'},\n    {id:'montserrat',num:3,title:'Montserrat',lat:41.5931,lng:1.8373,mode:'Day trip from Barcelona',time:'Approx. 1h',type:'Mountain monastery',photo:'https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/2025\/08\/Abbey_of_Montserrat_02-1024x707.jpg',guide:'https:\/\/transferbarcelonalux.com\/montserrat-travel-guide-monastery-mountain-scenic-views\/',tags:['Monastery','Black Madonna','Views'],text:'A scenic mountain destination with the Santa Maria de Montserrat Monastery, dramatic peaks, hiking routes and panoramic Catalonia views.'},\n    {id:'sitges',num:4,title:'Sitges',lat:41.2370,lng:1.8059,mode:'Day trip from Barcelona',time:'Approx. 45m',type:'Beach town',photo:'https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/2025\/08\/paseo-sitges.jpg',guide:'https:\/\/transferbarcelonalux.com\/sitges-travel-guide-beaches-culture-coastal-charm\/',tags:['Beach','Promenade','Festivals'],text:'A vibrant coastal town with sandy beaches, a palm-lined promenade, whitewashed old town and famous cultural events.'},\n    {id:'tossa',num:5,title:'Tossa de Mar',lat:41.7179,lng:2.9309,mode:'Day trip from Barcelona',time:'Approx. 1h 30m',type:'Costa Brava',photo:'https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/2025\/08\/tossa-de-mar-1024x682.jpg',guide:'https:\/\/transferbarcelonalux.com\/tossa-de-mar-travel-guide-medieval-walls-coastal-beauty\/',tags:['Costa Brava','Fortress','Sea views'],text:'A picturesque Costa Brava town with the medieval Vila Vella, fortress walls, Platja Gran and scenic Cam\u00ed de Ronda trails.'},\n    {id:'besalu',num:6,title:'Besal\u00fa',lat:42.1985,lng:2.6990,mode:'Day trip from Barcelona',time:'Approx. 1h 35m',type:'Medieval village',photo:'https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/2025\/08\/barrio-judio-besalu.avif',guide:'https:\/\/transferbarcelonalux.com\/besalu-travel-guide-medieval-bridge-historic-charm\/',tags:['Medieval bridge','Jewish Quarter','Old streets'],text:'A medieval jewel known for its 12th-century bridge, cobblestone lanes, Jewish Quarter, mikveh and historic churches.'},\n    {id:'cardona',num:7,title:'Cardona',lat:41.9139,lng:1.6819,mode:'Day trip from Barcelona',time:'Approx. 1h 20m',type:'Castle & salt mountain',photo:'https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/2025\/08\/Parador-Cardona-1024x819.jpg',guide:'https:\/\/transferbarcelonalux.com\/cardona-travel-guide-salt-mountain-medieval-castle\/',tags:['Castle','Salt Mountain','History'],text:'A historic town with Cardona Castle, medieval halls, the Church of Sant Vicen\u00e7 and the Salt Mountain Cultural Park.'},\n    {id:'cadaques',num:8,title:'Cadaqu\u00e9s',lat:42.2888,lng:3.2771,mode:'Day trip from Barcelona',time:'Approx. 2h 15m+',type:'Coastal village',photo:'https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/2025\/08\/Casa-dali-cadaques-1024x768.png',guide:'https:\/\/transferbarcelonalux.com\/cadaques-travel-guide-coastal-beauty-dalis-legacy\/',tags:['Dal\u00ed','Portlligat','Cap de Creus'],text:'A whitewashed coastal village with bay views, narrow streets, Dal\u00ed heritage in Portlligat and access to Cap de Creus.'},\n    {id:'montrebei',num:9,title:'Mont-Rebei Gorge',lat:42.0976,lng:0.6966,mode:'Day trip from Barcelona',time:'Approx. 2h 30m\u20133h',type:'Gorge & adventure',photo:'https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/2025\/10\/day-trip-Mont-Rebei-from-Barcelona-2000x1334.webp',guide:'https:\/\/transferbarcelonalux.com\/mont-rebei-ultimate-transfers-barcelona\/',tags:['Hiking','Kayaking','Nature'],text:'A dramatic gorge in western Catalonia with cliffside paths, turquoise water, hiking routes and kayaking options.'},\n    {id:'valldenuria',num:10,title:'Vall de N\u00faria',lat:42.3971,lng:2.1536,mode:'Day trip from Barcelona',time:'Approx. 1h 30m\u20132h + rail',type:'Alpine valley',photo:'https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/2025\/10\/headm-vall-de-nuria-estiu-2023-vistasantuarivallnuriacataluna.jpg',guide:'https:\/\/transferbarcelonalux.com\/vall-de-nuria-day-trip-private-transfer\/',tags:['Rack railway','Mountains','Lake'],text:'An alpine valley reached via the historic rack railway, with a mountain lake, sanctuary and walking routes for different abilities.'},\n    {id:'santllorenc',num:11,title:'Sant Lloren\u00e7 del Munt',lat:41.6413,lng:2.0177,mode:'Day trip from Barcelona',time:'Approx. 45\u201360m',type:'Natural park',photo:'https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/2025\/10\/51721852604_a16cdd70eb_b.jpg',guide:'https:\/\/transferbarcelonalux.com\/sant-llorenc-del-munt-natural-park-private-transfers\/',tags:['La Mola','Hiking','Panoramas'],text:'A close mountain escape with sandstone peaks, panoramic trails, the La Mola summit and its historic monastery.'},\n    {id:'aiguestortes',num:12,title:'Aig\u00fcestortes National Park',lat:42.5750,lng:0.9650,mode:'Day trip from Barcelona',time:'Approx. 3h 30m\u20134h 30m',type:'Pyrenees national park',photo:'https:\/\/transferbarcelonalux.com\/wp-content\/uploads\/2025\/10\/dd6819c9730a67f06fe6f2d52b8653af.jpg',guide:'https:\/\/transferbarcelonalux.com\/aiguestortes-i-estany-de-sant-maurici-national-park-private-transfer-from-barcelona\/',tags:['Alpine lakes','Hiking','Pyrenees'],text:'A high-Pyrenees landscape of mountain lakes, waterfalls, pine forests and granite peaks, ideal for a long day trip or overnight stay.'}\n  ];\n  const barcelona=[\n    {id:'sagrada',num:1,title:'Sagrada Fam\u00edlia',lat:41.4036,lng:2.1744,img:ASSET_BASE+'01-sagrada-familia.png',url:'\/sagrada-familia-transfer\/',tags:['Gaud\u00ed','Architecture','Top sight'],text:'Barcelona\u2019s most iconic basilica and one of the essential stops for first-time visitors.'},\n    {id:'guell',num:2,title:'Park G\u00fcell',lat:41.4145,lng:2.1527,img:ASSET_BASE+'02-park-guell.png',url:'\/park-guell-transfer\/',tags:['Gaud\u00ed','Views','Families'],text:'A colourful hilltop park with mosaic details, gardens and panoramic city views.'},\n    {id:'batllo',num:3,title:'Casa Batll\u00f3',lat:41.3917,lng:2.1649,img:ASSET_BASE+'03-casa-batllo.png',url:'\/casa-batllo-transfer\/',tags:['Modernism','Central','Premium'],text:'A modernist masterpiece on Passeig de Gr\u00e0cia and one of Barcelona\u2019s most photographed fa\u00e7ades.'},\n    {id:'pedrera',num:4,title:'La Pedrera',lat:41.3953,lng:2.1619,img:ASSET_BASE+'04-la-pedrera.png',url:'\/la-pedrera-transfer\/',tags:['Gaud\u00ed','Rooftop','Architecture'],text:'A sculptural Gaud\u00ed building with a famous rooftop and strong architectural character.'},\n    {id:'gothic',num:5,title:'Gothic Quarter',lat:41.3839,lng:2.1763,img:ASSET_BASE+'05-gothic-quarter.png',url:'\/gothic-quarter-transfer\/',tags:['Old Town','History','Walking'],text:'Historic streets, atmospheric squares and one of the best walking areas in the old city.'},\n    {id:'cathedral',num:6,title:'Barcelona Cathedral',lat:41.3839,lng:2.1764,img:ASSET_BASE+'06-barcelona-cathedral.png',url:'\/barcelona-cathedral-transfer\/',tags:['Cathedral','History','Central'],text:'A major Gothic landmark in the historic centre, close to many walking routes.'},\n    {id:'boqueria',num:7,title:'La Boqueria',lat:41.3822,lng:2.1724,img:ASSET_BASE+'07-la-boqueria.png',url:'\/la-boqueria-transfer\/',tags:['Food','Market','Las Ramblas'],text:'Barcelona\u2019s famous food market, ideal for visitors exploring Las Ramblas and the old city.'},\n    {id:'picasso',num:8,title:'Picasso Museum',lat:41.3853,lng:2.1800,img:ASSET_BASE+'08-picasso-museum.png',url:'\/picasso-museum-transfer\/',tags:['Museum','Art','Culture'],text:'An essential cultural stop in El Born for art lovers and museum routes.'},\n    {id:'arc',num:9,title:'Arc de Triomf',lat:41.3911,lng:2.1802,img:ASSET_BASE+'09-arc-de-triomf.png',url:'\/arc-de-triomf-transfer\/',tags:['Landmark','Photos','Central'],text:'A beautiful red-brick monument and popular photo stop near Ciutadella Park.'},\n    {id:'ciutadella',num:10,title:'Parc de la Ciutadella',lat:41.3888,lng:2.1870,img:ASSET_BASE+'10-parc-ciutadella.png',url:'\/parc-de-la-ciutadella-transfer\/',tags:['Park','Nature','Families'],text:'A relaxed green space near El Born, perfect for families and slower city routes.'},\n    {id:'barceloneta',num:11,title:'Barceloneta Beach',lat:41.3789,lng:2.1925,img:ASSET_BASE+'11-barceloneta-beach.png',url:'\/barceloneta-transfer\/',tags:['Beach','Seafront','Restaurants'],text:'Barcelona\u2019s classic seaside area with beach walks, restaurants and Mediterranean views.'},\n    {id:'portvell',num:12,title:'Port Vell',lat:41.3768,lng:2.1841,img:ASSET_BASE+'12-port-vell.png',url:'\/port-vell-transfer\/',tags:['Port','Cruise','Waterfront'],text:'A convenient waterfront stop for cruise passengers, marina views and central sightseeing.'},\n    {id:'montjuic',num:13,title:'Montju\u00efc',lat:41.3636,lng:2.1654,img:ASSET_BASE+'13-montjuic.png',url:'\/montjuic-transfer\/',tags:['Views','Museums','Half-day'],text:'A scenic hill with viewpoints, gardens, museums and excellent half-day route options.'},\n    {id:'mnac',num:14,title:'MNAC',lat:41.3686,lng:2.1536,img:ASSET_BASE+'14-mnac.png',url:'\/mnac-transfer\/',tags:['Museum','Art','Montju\u00efc'],text:'The National Art Museum of Catalonia, known for its collection, fountains and city views.'},\n    {id:'campnou',num:15,title:'Camp Nou',lat:41.3809,lng:2.1228,img:ASSET_BASE+'15-camp-nou.png',url:'\/camp-nou-transfer\/',tags:['Football','Fans','West Barcelona'],text:'A key stop for football fans visiting the FC Barcelona stadium area.'}\n  ];\n\n  const nodes={shell:root.querySelector('.tbl-gm-shell'),map:root.querySelector('#tblGmMap'),status:root.querySelector('#tblGmStatus'),drawer:root.querySelector('#tblGmDrawer'),close:root.querySelector('#tblGmClose'),select:root.querySelector('#tblGmPlaceSelect'),locate:root.querySelector('#tblGmLocate'),cardMode:root.querySelector('#tblGmCardMode'),cardTitle:root.querySelector('#tblGmCardTitle'),cardPhoto:root.querySelector('#tblGmCardPhoto'),cardText:root.querySelector('#tblGmCardText'),cardTags:root.querySelector('#tblGmCardTags'),cardActions:root.querySelector('#tblGmCardActions'),route:root.querySelector('#tblGmRoute'),routeHeading:root.querySelector('#tblGmRouteHeading'),stops:root.querySelector('#tblGmStops'),routeText:root.querySelector('#tblGmRouteText'),routeLink:root.querySelector('#tblGmRouteLink')};\n  const state={mode:'catalonia',active:null,route:[],map:null,markers:[],userMarker:null,ready:false};\n  const styles=[\n    {elementType:'geometry',stylers:[{color:'#eee8dc'}]},{elementType:'labels.text.fill',stylers:[{color:'#645a4b'}]},{elementType:'labels.text.stroke',stylers:[{color:'#fbf8f1'}]},\n    {featureType:'administrative',elementType:'geometry.stroke',stylers:[{color:'#c7baa6'}]},{featureType:'poi.business',stylers:[{visibility:'off'}]},\n    {featureType:'poi.park',elementType:'geometry',stylers:[{color:'#d9e5d1'}]},{featureType:'road',elementType:'geometry',stylers:[{color:'#ffffff'}]},\n    {featureType:'road.highway',elementType:'geometry',stylers:[{color:'#e7d6b9'}]},{featureType:'transit',elementType:'geometry',stylers:[{color:'#e3dbce'}]},\n    {featureType:'water',elementType:'geometry',stylers:[{color:'#bcd8dc'}]},{featureType:'water',elementType:'labels.text.fill',stylers:[{color:'#557c83'}]}\n  ];\n  function items(){return state.mode==='catalonia'?catalonia:barcelona}\n  function absolute(url){return new URL(url,location.origin).href}\n  function booking(item){\n    const url=new URL(BOOKING,location.origin);\n    url.searchParams.set('to',`${item.lat},${item.lng}`);\n    return url.href\n  }\n  function directions(item){return `https:\/\/www.google.com\/maps\/dir\/?api=1&destination=${item.lat},${item.lng}&travelmode=driving`}\n  function markerIcon(item,index,selected,dimmed){\n    const routeIndex=state.mode==='barcelona'?state.route.indexOf(item.id):-1;\n    const text=routeIndex>=0?String(routeIndex+1):String(item.num);\n    const fill=routeIndex>=0?'#231d16':'#a93428',stroke=selected?'#c9a24a':'#ffffff',opacity=dimmed?.42:1;\n    const w=item.id==='barcelona'?58:48,h=item.id==='barcelona'?68:58,size=item.id==='barcelona'?11:13;\n    const svg=`<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"${w}\" height=\"${h}\" viewBox=\"0 0 58 68\"><g opacity=\"${opacity}\"><path d=\"M29 2C14.1 2 2 14.1 2 29c0 19.3 27 37 27 37s27-17.7 27-37C56 14.1 43.9 2 29 2Z\" fill=\"${fill}\" stroke=\"${stroke}\" stroke-width=\"4\"\/><circle cx=\"29\" cy=\"29\" r=\"17\" fill=\"#000\" fill-opacity=\".1\"\/><text x=\"29\" y=\"34\" text-anchor=\"middle\" font-family=\"Arial,sans-serif\" font-size=\"${size}\" font-weight=\"900\" fill=\"#fff\">${text}<\/text><\/g><\/svg>`;\n    return{url:`data:image\/svg+xml;charset=UTF-8,${encodeURIComponent(svg)}`,scaledSize:new google.maps.Size(w,h),anchor:new google.maps.Point(w\/2,h-2)};\n  }\n  function setStatus(title,text){nodes.status.hidden=false;nodes.status.innerHTML=`<div><strong>${title}<\/strong><p>${text}<\/p><\/div>`}\n  function hideStatus(){nodes.status.hidden=true}\n  function buildSelect(){\n    nodes.select.replaceChildren(new Option(state.mode==='catalonia'?'Choose a Catalonia destination':'Choose a Barcelona attraction',''));\n    items().forEach(item=>nodes.select.add(new Option(`${item.num}. ${item.title}`,item.id)));\n    nodes.select.value=state.active||'';\n  }\n  function refreshMarkers(){\n    state.markers.forEach((entry,index)=>{const selected=entry.item.id===state.active;entry.marker.setIcon(markerIcon(entry.item,index,selected,!selected&&state.active!==null));entry.marker.setZIndex(selected?100:(state.route.includes(entry.item.id)?60:10))});\n  }\n  function closeDrawer(){state.active=null;nodes.drawer.classList.remove('is-open');nodes.drawer.setAttribute('aria-hidden','true');nodes.select.value='';refreshMarkers();updateUrl()}\n  function updateUrl(){\n    const url=new URL(location.href);url.searchParams.set('map',state.mode);if(state.active)url.searchParams.set('place',state.active);else url.searchParams.delete('place');history.replaceState(history.state,'',url);\n  }\n  function focusSelectedPlace(item){\n    if(!state.map)return;\n    const mobile=window.matchMedia('(max-width:760px)').matches;\n    state.map.panTo({lat:item.lat,lng:item.lng});\n    const target=state.mode==='barcelona'?15:10;\n    if((state.map.getZoom()||0)<target)state.map.setZoom(target);\n    setTimeout(()=>{\n      if(mobile){\n        const siteHeader=document.querySelector('#masthead');\n        const headerStyle=siteHeader?getComputedStyle(siteHeader):null;\n        const headerHeight=siteHeader&&['fixed','sticky'].includes(headerStyle.position)?Math.min(siteHeader.getBoundingClientRect().height,120):0;\n        const shellTop=window.scrollY+nodes.shell.getBoundingClientRect().top-headerHeight-8;\n        window.scrollTo({top:Math.max(0,shellTop),behavior:'smooth'});\n        state.map.panBy(0,Math.round(Math.min(nodes.shell.clientHeight*.32,170)));\n      }else{\n        state.map.panBy(190,0);\n      }\n    },120);\n  }\n  function openItem(item,move=true){\n    state.active=item.id;nodes.select.value=item.id;nodes.cardMode.textContent=state.mode==='catalonia'?`${item.mode} \u00b7 ${item.time}`:'Barcelona attraction';nodes.cardTitle.textContent=item.title;nodes.cardPhoto.src=item.photo||item.img;nodes.cardPhoto.alt=item.title;nodes.cardText.textContent=item.text;nodes.cardTags.innerHTML=(state.mode==='catalonia'?[item.type,...item.tags]:item.tags).map(tag=>`<span class=\"tbl-gm-tag\">${tag}<\/span>`).join('');\n    const guide=item.special?'<button class=\"tbl-gm-btn is-dark\" type=\"button\" data-explore>Explore Barcelona<\/button>':`<a class=\"tbl-gm-btn is-dark\" href=\"${absolute(item.guide||item.url)}\">View full guide<\/a>`;\n    const route=state.mode==='barcelona'?`<button class=\"tbl-gm-btn tbl-gm-route-toggle ${state.route.includes(item.id)?'is-selected':''}\" type=\"button\" data-route>${state.route.includes(item.id)?'\u2713 Added to your route \u2014 tap to remove':'+ Add this attraction to your route'}<\/button>`:'';\n    nodes.cardActions.innerHTML=`<a class=\"tbl-gm-btn is-primary\" href=\"${booking(item)}\">Transfer me to ${item.title}<\/a>${guide}<a class=\"tbl-gm-btn\" href=\"${directions(item)}\" target=\"_blank\" rel=\"noopener\">Directions \u2197<\/a>${route}`;\n    nodes.cardActions.querySelector('[data-explore]')?.addEventListener('click',()=>switchMode('barcelona'));\n    nodes.cardActions.querySelector('[data-route]')?.addEventListener('click',()=>toggleRoute(item.id));\n    nodes.drawer.classList.add('is-open');nodes.drawer.setAttribute('aria-hidden','false');refreshMarkers();updateUrl();\n    if(move)focusSelectedPlace(item)\n  }\n  function fitMode(){\n    if(!state.map||!state.markers.length)return;const bounds=new google.maps.LatLngBounds();state.markers.forEach(entry=>bounds.extend(entry.marker.getPosition()));state.map.fitBounds(bounds,window.innerWidth<=760?45:70);google.maps.event.addListenerOnce(state.map,'idle',()=>{if(state.mode==='catalonia'&&state.map.getZoom()>9)state.map.setZoom(9);if(state.mode==='barcelona'&&state.map.getZoom()>14)state.map.setZoom(14)})\n  }\n  function rebuildMarkers(){\n    state.markers.forEach(entry=>entry.marker.setMap(null));state.markers=items().map((item,index)=>{const marker=new google.maps.Marker({map:state.map,position:{lat:item.lat,lng:item.lng},title:item.title,icon:markerIcon(item,index,false,false),zIndex:10});marker.addListener('click',()=>openItem(item,true));return{item,marker}});fitMode();\n  }\n  function switchMode(mode,place){\n    state.mode=mode==='barcelona'?'barcelona':'catalonia';state.active=null;nodes.drawer.classList.remove('is-open');nodes.drawer.setAttribute('aria-hidden','true');nodes.route.hidden=state.mode!=='barcelona';root.querySelectorAll('[data-mode]').forEach(button=>{const active=button.dataset.mode===state.mode;button.classList.toggle('is-active',active);button.setAttribute('aria-selected',String(active))});buildSelect();if(state.ready)rebuildMarkers();const chosen=items().find(item=>item.id===place);if(chosen)setTimeout(()=>openItem(chosen,true),80);updateUrl()\n  }\n  function toggleRoute(id){const index=state.route.indexOf(id);if(index<0)state.route.push(id);else state.route.splice(index,1);renderRoute();refreshMarkers();const item=barcelona.find(point=>point.id===id);if(item&&state.active===id)openItem(item,false)}\n  function routeUrl(){\n    if(state.route.length<2)return'#';const chosen=state.route.map(id=>barcelona.find(item=>item.id===id)).filter(Boolean),first=chosen[0],last=chosen[chosen.length-1],middle=chosen.slice(1,-1).map(item=>`${item.lat},${item.lng}`).join('|');let url=`https:\/\/www.google.com\/maps\/dir\/?api=1&travelmode=walking&origin=${first.lat},${first.lng}&destination=${last.lat},${last.lng}`;if(middle)url+=`&waypoints=${encodeURIComponent(middle)}`;return url\n  }\n  function renderRoute(){\n    nodes.routeHeading.textContent=state.route.length?`${state.route.length} stop${state.route.length===1?'':'s'} in your Barcelona route`:'Plan a Barcelona route';nodes.stops.replaceChildren();state.route.forEach((id,index)=>{const item=barcelona.find(point=>point.id===id),chip=document.createElement('span');chip.className='tbl-gm-stop';chip.innerHTML=`${index+1}. ${item.title}<button type=\"button\" aria-label=\"Remove ${item.title}\">\u00d7<\/button>`;chip.querySelector('button').addEventListener('click',()=>toggleRoute(id));nodes.stops.append(chip)});nodes.routeText.textContent=state.route.length<2?'Add at least two attractions to open a route.':state.route.map(id=>barcelona.find(item=>item.id===id).title).join(' \u2192 ');if(state.route.length>=2){nodes.routeLink.href=routeUrl();nodes.routeLink.classList.remove('is-disabled')}else{nodes.routeLink.href='#';nodes.routeLink.classList.add('is-disabled')}\n  }\n  function locate(){\n    if(!navigator.geolocation||!state.map)return;nodes.locate.disabled=true;nodes.locate.lastElementChild.textContent='Locating\u2026';navigator.geolocation.getCurrentPosition(position=>{const location={lat:position.coords.latitude,lng:position.coords.longitude};state.userMarker?.setMap(null);state.userMarker=new google.maps.Marker({map:state.map,position:location,title:'You are here',zIndex:200,icon:{path:google.maps.SymbolPath.CIRCLE,fillColor:'#1a73e8',fillOpacity:1,strokeColor:'#fff',strokeWeight:4,scale:9}});const nearest=items().reduce((best,item)=>{const d=(item.lat-location.lat)**2+(item.lng-location.lng)**2;return d<best.d?{item,d}:best},{item:null,d:Infinity});if(nearest.item)openItem(nearest.item,true);nodes.locate.disabled=false;nodes.locate.lastElementChild.textContent='Nearest place'},()=>{nodes.locate.disabled=false;nodes.locate.lastElementChild.textContent='Location off'},{enableHighAccuracy:true,timeout:8000,maximumAge:30000})\n  }\n  function initMap(){\n    if(state.ready||!window.google?.maps)return;state.ready=true;state.map=new google.maps.Map(nodes.map,{center:{lat:41.65,lng:1.95},zoom:8,disableDefaultUI:true,zoomControl:true,fullscreenControl:true,gestureHandling:'cooperative',clickableIcons:false,backgroundColor:'#eee8dc',styles});state.map.addListener('click',closeDrawer);hideStatus();const params=new URLSearchParams(location.search),mode=params.get('map')==='barcelona'?'barcelona':'catalonia',place=params.get('place');switchMode(mode,place)\n  }\n  window.tblGoogleMapsInitV1=initMap;\n  const previousAuthFailure=window.gm_authFailure;\n  window.gm_authFailure=function(){if(typeof previousAuthFailure==='function')previousAuthFailure();setStatus('Google Maps could not start','Check that the destination map loader is enabled in Transfer Calculator settings.')};\n  root.querySelectorAll('[data-mode]').forEach(button=>button.addEventListener('click',()=>switchMode(button.dataset.mode)));\n  nodes.select.addEventListener('change',()=>{const item=items().find(point=>point.id===nodes.select.value);if(item)openItem(item,true);else closeDrawer()});nodes.close.addEventListener('click',closeDrawer);nodes.locate.addEventListener('click',locate);document.addEventListener('keydown',event=>{if(event.key==='Escape'&&nodes.drawer.classList.contains('is-open'))closeDrawer()});\n  root.querySelectorAll('[data-preset]').forEach(button=>button.addEventListener('click',()=>{const presets={gaudi:['guell','sagrada','pedrera','batllo'],central:['cathedral','gothic','boqueria','picasso','arc','ciutadella']};state.route=button.dataset.preset==='clear'?[]:(presets[button.dataset.preset]||[]);renderRoute();refreshMarkers()}));\n  renderRoute();buildSelect();\n  if(window.google?.maps){initMap();return}\n  setStatus('Connecting to Google Maps\u2026','The map is waiting for the Transfer Calculator plugin loader.');\n  let attempts=0;\n  const waitForPluginMap=window.setInterval(()=>{\n    attempts+=1;\n    if(window.google?.maps){window.clearInterval(waitForPluginMap);initMap();return}\n    if(attempts>=100){\n      window.clearInterval(waitForPluginMap);\n      setStatus('Google Maps was not loaded','Enable the destination map loader for this page in Transfer Calculator settings.');\n    }\n  },200);\n})();\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Private sightseeing transfers Explore Barcelona &amp; Catalonia Choose a real location on the map, open its travel guide, get directions or build a simple Barcelona itinerary. Catalonia day trips Barcelona attractions Choose a place \u25ceNear me Loading the map\u2026 The interactive map will appear here. \u00d7 Plan a Barcelona route Use Gaud\u00ed route Use old &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/transferbarcelonalux.com\/es\/interactive-barcelona\/\" class=\"more-link\">Leer m\u00e1s<span class=\"screen-reader-text\"> \u00abInteractive Barcelona Attractions Map with Google Maps Route\u00bb<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-7743","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Interactive Barcelona Attractions Map with Google Maps Route - Transfer Barcelona lux car<\/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:\/\/transferbarcelonalux.com\/es\/interactive-barcelona\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Interactive Barcelona Attractions Map with Google Maps Route - Transfer Barcelona lux car\" \/>\n<meta property=\"og:description\" content=\"Private sightseeing transfers Explore Barcelona &amp; Catalonia Choose a real location on the map, open its travel guide, get directions or build a simple Barcelona itinerary. Catalonia day trips Barcelona attractions Choose a place \u25ceNear me Loading the map\u2026 The interactive map will appear here. \u00d7 Plan a Barcelona route Use Gaud\u00ed route Use old &hellip; Leer m\u00e1s \u00abInteractive Barcelona Attractions Map with Google Maps Route\u00bb\" \/>\n<meta property=\"og:url\" content=\"https:\/\/transferbarcelonalux.com\/es\/interactive-barcelona\/\" \/>\n<meta property=\"og:site_name\" content=\"Transfer Barcelona lux car\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-26T18:45:04+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/transferbarcelonalux.com\\\/interactive-barcelona\\\/\",\"url\":\"https:\\\/\\\/transferbarcelonalux.com\\\/interactive-barcelona\\\/\",\"name\":\"Interactive Barcelona Attractions Map with Google Maps Route - Transfer Barcelona lux car\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/transferbarcelonalux.com\\\/es\\\/#website\"},\"datePublished\":\"2026-06-11T13:05:03+00:00\",\"dateModified\":\"2026-08-26T18:45:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/transferbarcelonalux.com\\\/interactive-barcelona\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/transferbarcelonalux.com\\\/interactive-barcelona\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/transferbarcelonalux.com\\\/interactive-barcelona\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/transferbarcelonalux.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Interactive Barcelona Attractions Map with Google Maps Route\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/transferbarcelonalux.com\\\/es\\\/#website\",\"url\":\"https:\\\/\\\/transferbarcelonalux.com\\\/es\\\/\",\"name\":\"Transfer Barcelona lux\",\"description\":\"Your transfer across Barcelona\",\"alternateName\":\"Your lux transfer in Barcelona\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/transferbarcelonalux.com\\\/es\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Interactive Barcelona Attractions Map with Google Maps Route - Transfer Barcelona lux car","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:\/\/transferbarcelonalux.com\/es\/interactive-barcelona\/","og_locale":"es_ES","og_type":"article","og_title":"Interactive Barcelona Attractions Map with Google Maps Route - Transfer Barcelona lux car","og_description":"Private sightseeing transfers Explore Barcelona &amp; Catalonia Choose a real location on the map, open its travel guide, get directions or build a simple Barcelona itinerary. Catalonia day trips Barcelona attractions Choose a place \u25ceNear me Loading the map\u2026 The interactive map will appear here. \u00d7 Plan a Barcelona route Use Gaud\u00ed route Use old &hellip; Leer m\u00e1s \u00abInteractive Barcelona Attractions Map with Google Maps Route\u00bb","og_url":"https:\/\/transferbarcelonalux.com\/es\/interactive-barcelona\/","og_site_name":"Transfer Barcelona lux car","article_modified_time":"2026-08-26T18:45:04+00:00","twitter_card":"summary_large_image","twitter_misc":{"Tiempo de lectura":"7 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/transferbarcelonalux.com\/interactive-barcelona\/","url":"https:\/\/transferbarcelonalux.com\/interactive-barcelona\/","name":"Interactive Barcelona Attractions Map with Google Maps Route - Transfer Barcelona lux car","isPartOf":{"@id":"https:\/\/transferbarcelonalux.com\/es\/#website"},"datePublished":"2026-06-11T13:05:03+00:00","dateModified":"2026-08-26T18:45:04+00:00","breadcrumb":{"@id":"https:\/\/transferbarcelonalux.com\/interactive-barcelona\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/transferbarcelonalux.com\/interactive-barcelona\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/transferbarcelonalux.com\/interactive-barcelona\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/transferbarcelonalux.com\/"},{"@type":"ListItem","position":2,"name":"Interactive Barcelona Attractions Map with Google Maps Route"}]},{"@type":"WebSite","@id":"https:\/\/transferbarcelonalux.com\/es\/#website","url":"https:\/\/transferbarcelonalux.com\/es\/","name":"Transfer Barcelona lux","description":"Your transfer across Barcelona","alternateName":"Your lux transfer in Barcelona","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/transferbarcelonalux.com\/es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"}]}},"_links":{"self":[{"href":"https:\/\/transferbarcelonalux.com\/es\/wp-json\/wp\/v2\/pages\/7743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/transferbarcelonalux.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/transferbarcelonalux.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/transferbarcelonalux.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/transferbarcelonalux.com\/es\/wp-json\/wp\/v2\/comments?post=7743"}],"version-history":[{"count":32,"href":"https:\/\/transferbarcelonalux.com\/es\/wp-json\/wp\/v2\/pages\/7743\/revisions"}],"predecessor-version":[{"id":7816,"href":"https:\/\/transferbarcelonalux.com\/es\/wp-json\/wp\/v2\/pages\/7743\/revisions\/7816"}],"wp:attachment":[{"href":"https:\/\/transferbarcelonalux.com\/es\/wp-json\/wp\/v2\/media?parent=7743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}