// Wander — data layer: loads from API, falls back to static seed

const STATIC_TOURS = [
  { id:'merlion-marina', title:'Marina Bay & the Merlion', subtitle:"Singapore's shimmering icon walk", duration:'45 min', distance:'1.8 km', stops:7, rating:4.8, reviews:1284, tier:'free', price:0, formats:['audio','text','ar'], hero:['#FFC93C','#FF8A4C'], emoji:'🦁', blurb:'Half-lion, half-fish, fully Instagrammed. Trace the bay from the spitting Merlion to the lotus dome.' },
  { id:'kampong-glam', title:'Kampong Glam Stories', subtitle:'Sultans, spices and street art', duration:'70 min', distance:'2.4 km', stops:9, rating:4.9, reviews:642, tier:'pro', price:6, formats:['audio','text','video','quiz'], hero:['#9B7EDC','#FF6B5A'], emoji:'🕌', blurb:"From the golden dome of Sultan Mosque to Haji Lane's neon murals — a quarter that refuses to sit still." },
  { id:'chinatown-bites', title:'Chinatown After Dark', subtitle:'Lanterns, hawker bites, hidden temples', duration:'90 min', distance:'2.1 km', stops:11, rating:4.7, reviews:933, tier:'pro', price:8, formats:['audio','video','quiz'], hero:['#FF6B5A','#FFC93C'], emoji:'🏮', blurb:"Eat your way past 200-year-old shophouses, ducking into the temple where time stops at 5pm." },
  { id:'gardens-bay', title:'Gardens by the Bay', subtitle:'Sci-fi forest in the tropics', duration:'60 min', distance:'1.5 km', stops:6, rating:4.9, reviews:2104, tier:'free', price:0, formats:['audio','ar','text'], hero:['#2DD4A7','#4FB7E8'], emoji:'🌳', blurb:"The Supertrees throw a light show every night at 7:45. Here's where to stand and what they actually are." },
  { id:'tiong-bahru', title:'Tiong Bahru Slow Loop', subtitle:'Art deco, indie cafes, old soul', duration:'55 min', distance:'1.6 km', stops:8, rating:4.6, reviews:387, tier:'free', price:0, formats:['text','audio'], hero:['#E89B6C','#FFC93C'], emoji:'☕', blurb:"Singapore's first public housing — now its hippest. Read the murals; smell the kaya." },
  { id:'little-india', title:'Little India Colour Riot', subtitle:'Garlands, gold, and green chutney', duration:'65 min', distance:'1.9 km', stops:9, rating:4.8, reviews:521, tier:'pro', price:6, formats:['audio','video','ar'], hero:['#FF6B5A','#9B7EDC'], emoji:'🪔', blurb:"A six-block sensory ambush. We'll teach you to read a flower garland like a love letter." },
];

// ── Per-stop content: curated facts + spoken narration ─────────────────────────
// Each stop: { id, name, dist, kind, blurb, duration, facts:[…], narration:"…" }
// `narration` is written to be read aloud by the tour's narrator.

const STOPS_BY_TOUR = {
  'merlion-marina': [
    {
      id:1, name:'Merlion Park', dist:'0 m', kind:'icon', duration:'6 min',
      blurb:'The 8.6m statue that became a city.',
      facts:[
        'Unveiled by PM Lee Kuan Yew on 15 September 1972.',
        'Stands 8.6 m tall and weighs about 70 tonnes.',
        'Designed in 1964 by Fraser Brunner as a tourism-board logo.',
      ],
      narration:"Start here, with your back to the water, and look up at the creature spitting an endless arc into Marina Bay. This is the Merlion — head of a lion, body of a fish — and it's only as old as your parents. It was unveiled in 1972 by Singapore's first prime minister, Lee Kuan Yew, and sculpted by a local craftsman, Lim Nang Seng, with help from his eight children. The two halves tell a two-part story: the fish-body honours Singapore's beginnings as a humble fishing village called Temasek, 'sea town' — while the lion's head nods to the legend of a Sumatran prince, Sang Nila Utama, who landed here, saw a beast he took for a lion, and renamed the island Singapura, 'Lion City.' Here's the twist — there were never any lions on this island. The icon is a beautiful invention, designed in 1964 as a logo. Fun fact: the whole statue was floated 120 metres to this spot in 2002, because a new bridge had blocked its view.",
    },
    {
      id:2, name:'Esplanade — Theatres on the Bay', dist:'320 m', kind:'arts', duration:'5 min',
      blurb:"Locals call them \"the durians.\" You'll see why.",
      facts:[
        'Opened 12 October 2002; cost around S$600 million.',
        'Twin domes wear over 7,000 aluminium sunshades.',
        'Architects intended a "veil of leaves" — locals saw durian.',
      ],
      narration:"Look across at those two spiky golden domes. The architects swear they were going for a delicate veil of leaves, a lantern glowing in the park. Singaporeans took one glance and called it 'the durian' — after the spiky, pungent fruit locals adore and most visitors flee from. The nickname stuck so hard it's basically official now. Each dome wears more than seven thousand aluminium sunshades, angled like scales to keep the tropical glare off the glass while still letting light pour in. Inside is one of Asia's busiest arts centres — a two-thousand-seat theatre and a concert hall tuned for orchestras — which opened in 2002 with a festival of thirteen hundred artists. If you're here in the evening, wander the waterfront roof terrace; the views back across the bay are some of the best in the city, and they're free.",
    },
    {
      id:3, name:'Helix Bridge', dist:'550 m', kind:'arch', duration:'7 min', current:true,
      blurb:'A double helix in steel. Cross slowly.',
      facts:[
        "Opened 24 April 2010; Singapore's longest pedestrian bridge.",
        'Modelled on the double-helix structure of human DNA.',
        'Built from ~650 tonnes of duplex stainless steel.',
      ],
      narration:"Step onto the bridge and look at the steelwork curling around you. This is the Helix — and it's no random flourish. The two spiralling steel tubes are modelled on the double helix of DNA, the molecule that carries the code of life. The designers chose it deliberately: DNA stands for continuity, renewal, and endless abundance — everything Singapore wanted this brand-new district to promise. Opened in 2010, it's the longest pedestrian bridge in the country, woven from some six hundred and fifty tonnes of a tough stainless steel that shrugs off the sea air. Look closely at the canopy and you'll spot little coloured letter-pairs — c and g, a and t — the four chemical 'bases' that spell out every living thing. At night the whole structure glows. It's also, quietly, the best free seat in the house for National Day fireworks.",
    },
    {
      id:4, name:'Marina Bay Sands SkyPark', dist:'780 m', kind:'view', duration:'8 min',
      blurb:'Three towers, one ship balanced on top.',
      facts:[
        'Opened 2010; designed by architect Moshe Safdie.',
        'A 2.5-acre SkyPark bridges three 57-storey towers.',
        'The cantilever overhangs the north tower by ~67 m.',
      ],
      narration:"Now raise your eyes to the three towers with what looks like a surfboard — or a ship — balanced across their tops, two hundred metres up. That's Marina Bay Sands, designed by the architect Moshe Safdie, who said he was inspired by a deck of cards. The platform on top is the SkyPark: two and a half acres of garden, restaurants and that famous infinity pool, where the water seems to spill straight off the edge into the skyline. One end juts out past the tower beneath it by about sixty-seven metres — one of the longest public cantilevers in the world, longer than the tower is wide. The pool itself is reserved for hotel guests, but the observation deck up there is open to everyone, and so is the light-and-water show, Spectra, that dances across the bay each night. When it opened in 2010, this whole resort helped flip Singapore's image from buttoned-up to bucket-list.",
    },
    {
      id:5, name:'ArtScience Museum', dist:'1.1 km', kind:'arts', duration:'6 min',
      blurb:'A ten-petalled lotus that catches rainwater.',
      facts:[
        'Opened 17 February 2011; also a Moshe Safdie design.',
        'Shaped like a lotus with ten "finger" petals.',
        'Petals funnel rainwater to a 35 m indoor waterfall.',
      ],
      narration:"That white structure reaching ten fingers toward the sky? Moshe Safdie — the same architect behind Sands — calls it 'the welcoming hand of Singapore.' Most people see what he intended next: a lotus flower, the nation's beloved bloom, opening its petals over the water. This is the ArtScience Museum, and the design isn't just for show. Each of the ten petals is curved to catch tropical downpours and channel the rainwater inward, where it cascades twenty-something metres down through the building's core in a recycling waterfall — architecture that drinks the rain. Inside, the lotus does exactly what its name promises: it marries art and science, hosting everything from da Vinci's notebooks to a permanent gallery of glowing, interactive digital nature you can walk straight into. It opened in 2011, and on a clear day its petals throw a near-perfect reflection across the pond at its feet — so have your camera ready.",
    },
    {
      id:6, name:'Gardens by the Bay (East)', dist:'1.5 km', kind:'garden', duration:'7 min',
      blurb:'Sneak preview of the Supertrees.',
      facts:[
        'Part of a 101-hectare reclaimed-land garden, opened 2012.',
        'The Supertrees rise 25 to 50 metres tall.',
        'Some Supertrees harvest solar power and vent the cooled domes.',
      ],
      narration:"Ahead of you, those towering metal trees draped in greenery are your first glimpse of Gardens by the Bay — a hundred-and-one-hectare park grown from scratch on reclaimed land and opened in 2012. The giants are the Supertrees, ranging from twenty-five up to fifty metres tall, their trunks wrapped in living gardens of ferns, orchids and climbers — more than a hundred and sixty thousand plants in all. But they're working trees, not just pretty ones. Some wear solar panels in their canopies to generate power; others act as giant chimneys, venting heat from the cooled conservatories nearby. Think of this stop as the trailer; the full feature — the Cloud Forest, the Flower Dome, and the nightly light show beneath these very trees — has its own Wander tour. For now, just take in the strange, hopeful sight of a forest engineered to make a hot city greener.",
    },
    {
      id:7, name:'Marina Barrage', dist:'1.8 km', kind:'view', duration:'6 min',
      blurb:"A dam, a park, a kite-flyer's paradise.",
      facts:[
        'Opened 31 October 2008 across the Marina Channel.',
        'Turned a saltwater bay into a freshwater reservoir.',
        'Does triple duty: water supply, flood control and recreation.',
      ],
      narration:"You finish at a low dam stretched across the mouth of the bay — and it may be the most quietly brilliant thing on this whole walk. This is the Marina Barrage, opened in 2008, and it solved three problems at once for a city with almost no natural water of its own. First, it seals off the channel from the sea, so all the rainwater draining through downtown is trapped and turned fresh — the entire bay you've been walking around is now a reservoir, drinking water for the city. Second, those nine great gates control floods: when storms hit at low tide, they swing open to dump excess water into the sea; at high tide, giant pumps do the heavy lifting. And third — look up at that grassy rooftop — it's one of Singapore's favourite spots to fly a kite and watch the skyline glow. A dam that gives you a drink, keeps your feet dry, and hands you a sunset. Not a bad place to end.",
    },
  ],

  'kampong-glam': [
    {
      id:1, name:'Sultan Mosque', dist:'0 m', kind:'mosque', duration:'8 min',
      blurb:'The golden dome that anchors the whole quarter.',
      facts:[
        'First built in 1824; rebuilt in its current form by 1932.',
        'Its dome bases are ringed with glass bottle-ends donated by the poor.',
        'Gazetted a national monument in 1975.',
      ],
      narration:"We begin beneath the great golden dome of Masjid Sultan — the Sultan Mosque — the beating heart of Kampong Gelam. The first mosque on this spot went up in 1824, paid for partly by the East India Company as part of a deal that handed this land to the Malay sultan, Hussein Shah. What you see now is the grander 1932 rebuild. Look closely at the base of each dome and you'll spot a dark band that glitters — those are the ends of glass bottles, donated by the poorest members of the community so that everyone, rich or humble, could leave their mark on a house of God. It's still a living mosque for thousands of worshippers, so if you step in, dress modestly and mind the prayer times. This dome has been the compass point of the neighbourhood for two centuries — get your bearings here, because everything else radiates out from it.",
    },
    {
      id:2, name:'Istana Kampong Glam', dist:'180 m', kind:'history', duration:'8 min',
      blurb:'A sultan\'s palace, now the Malay Heritage Centre.',
      facts:[
        'Built around 1840 for Sultan Ali, son of Sultan Hussein.',
        'Likely designed by colonial architect G.D. Coleman.',
        'Reopened as the Malay Heritage Centre in 2005.',
      ],
      narration:"Just behind the mosque sits a pale, columned mansion with a quiet garden — the Istana Kampong Gelam, the old royal palace. The land here was granted to Sultan Hussein Shah in 1819, the same Malay ruler whose signature helped Stamford Raffles plant a British trading post in Singapore. This building dates to about 1840, raised by Hussein's son, and it blends a grand European Palladian style with Malay touches — most likely the work of Raffles's own architect, Coleman. For generations the sultan's descendants lived here, even as the city grew up around them and the royal income dwindled. Today it's the Malay Heritage Centre, telling the story of the community that gave this whole district its name and rhythm. Pause at the gate — 'Sultan Gate,' the road's literally called — and picture a royal court where there's now a museum garden.",
    },
    {
      id:3, name:'The Gelam Tree', dist:'260 m', kind:'history', duration:'6 min',
      blurb:'The tree that named a neighbourhood — and nearly vanished.',
      facts:[
        "'Kampong Gelam' means 'village of the gelam tree.'",
        'Gelam bark was used for caulking boats and folk medicine.',
        'Wild gelam is extinct in Singapore, but specimens are replanted here.',
      ],
      narration:"Here's a riddle locals love: this district is named after something almost no visitor ever notices — a tree. 'Kampong Gelam' means 'village of the gelam,' a white-barked paperbark tree that once grew thick along this shoreline. Its bark was peeled to caulk and waterproof wooden boats, its leaves pressed into a medicinal oil, cajuput, still sold in pharmacies today. The Malay and Bugis seafarers who settled here lived and worked among these trees. The wild gelam has since vanished entirely from Singapore's forests — but you'll find some deliberately replanted around the precinct, a small act of memory. So when you say the neighbourhood's name, you're naming a tree that built the boats that brought the people who made this place. Keep an eye out for its pale, peeling trunk as we walk.",
    },
    {
      id:4, name:'Bussorah Street', dist:'340 m', kind:'street', duration:'7 min',
      blurb:'Palm-lined pedestrian mall framing the dome.',
      facts:[
        'Once the staging ground for the annual Hajj pilgrimage.',
        'Lined with restored two-storey shophouses and date palms.',
        'Offers the postcard view straight up to the Sultan Mosque dome.',
      ],
      narration:"Turn down Bussorah Street and stop for the view — the golden dome framed perfectly at the end of a palm-lined promenade. This is the picture everyone takes, and for good reason. But a century ago this street had a very different energy: it was the launch pad for the Hajj. Pilgrims bound for Mecca would gather here, lodging in the shophouses, buying provisions and prayer garments, waiting for the steamships that would carry them across the Indian Ocean. The pretty pastel shophouses lining the street are classic Singapore: shop below, home above, with five-foot covered walkways to keep you out of sun and rain. Today they're packed with cafes, perfume-makers and souvenir shops — but the bones are the same ones that watched the faithful set off on the journey of a lifetime.",
    },
    {
      id:5, name:'Arab Street', dist:'520 m', kind:'street', duration:'7 min',
      blurb:'Bolts of silk, lace and batik, floor to ceiling.',
      facts:[
        "The precinct's main trading street since the 19th century.",
        'Famous for textiles, carpets and traditional rattan goods.',
        'Named for the Arab traders who settled and did business here.',
      ],
      narration:"Now we hit Arab Street — and your eyes won't know where to land. For more than a century this has been the textile street, shopfronts stacked floor to ceiling with bolts of silk, lace, batik and brocade in every colour the dye-maker could invent. The name comes from the Arab traders, many of them from Yemen's Hadhramaut region, who became some of the wealthiest merchants and landlords in early Singapore. Around them gathered Bugis sailors, Javanese craftsmen and Indian traders, all doing business cheek by jowl. Step into one of the old textile houses and you might still find a tailor who'll run up a custom outfit, or a shopkeeper who can fold a length of batik into a story about where the pattern comes from. This is the street that clothed a neighbourhood — and dressed its brides.",
    },
    {
      id:6, name:'Haji Lane', dist:'600 m', kind:'street', duration:'8 min',
      blurb:'Singapore\'s narrowest street, loudest murals.',
      facts:[
        'Named for the Hajj pilgrim-brokers once based here.',
        'Now a strip of indie boutiques, bars and giant murals.',
        'Repeatedly ranked among the world\'s coolest streets.',
      ],
      narration:"Squeeze into Haji Lane — barely wide enough for two people to pass — and the mood flips from heritage to hipster. The name is a clue to its past: 'Haji' means one who has made the pilgrimage to Mecca, and this lane was home to the brokers who arranged those Hajj journeys, the shophouses doubling as pilgrim lodges. Travellers would stay here, working as hawkers nearby to save up for the next leg of their trip. Fast forward to today and it's reinvented itself completely — independent boutiques, tiny bars, and walls drenched in mural art so bold the whole lane has been named one of the coolest streets on the planet. It's the perfect snapshot of Kampong Gelam's whole trick: a sacred history wearing a streetwear jacket. Look up between the murals and you'll still see the old shutters and tiled facades underneath.",
    },
    {
      id:7, name:'Gelam Gallery', dist:'680 m', kind:'arts', duration:'6 min',
      blurb:'A back lane turned open-air art gallery.',
      facts:[
        "Singapore's first outdoor art gallery, opened 2019.",
        'Dozens of works splashed across back-lane walls and shutters.',
        'A community project to revive a once-grimy service alley.',
      ],
      narration:"Duck into the back lane behind Muscat Street and you'll find the Gelam Gallery — what used to be a forgettable service alley of bins and pipes, now Singapore's first outdoor art gallery, opened in 2019. Local and visiting artists were invited to treat the walls, doors and electrical boxes as canvases, and the result is a constantly changing run of murals and paintings you stroll right through. It's a small but telling example of how this neighbourhood keeps reinventing its leftover spaces — the same instinct that turned pilgrim lodges into boutiques. Take your time; the best pieces are tucked in the corners you'd normally hurry past, and because the art rotates, no two visits look quite the same.",
    },
    {
      id:8, name:'Hajjah Fatimah Mosque', dist:'1.4 km', kind:'mosque', duration:'7 min',
      blurb:'Singapore\'s gently leaning tower.',
      facts:[
        'Completed in 1846, funded by a Malay-Bugis businesswoman.',
        'Its minaret leans about six degrees off vertical.',
        'Named after its founder — rare for a Singapore mosque.',
      ],
      narration:"A short walk brings us to a mosque with a quiet claim to fame — and a name that breaks the mould. Most mosques are named for places or kings; this one, completed in 1846, is named for the woman who paid for it: Hajjah Fatimah, a wealthy Malay-Bugis businesswoman whose own home once stood on this site after surviving break-ins and a fire. Grateful and devout, she built a mosque here instead. Now look up at the minaret — notice anything? It leans, by around six degrees, earning it the affectionate title of Singapore's own leaning tower. Whether the tilt was a settling foundation or an accident of construction, it's been gently off-kilter for well over a century. The mosque blends European, Malay and Chinese touches, a reminder of just how many hands built this port city. A national monument — and proof that one determined woman could leave a skyline her own shape.",
    },
    {
      id:9, name:'Malabar Mosque', dist:'1.7 km', kind:'mosque', duration:'8 min',
      blurb:'The blue-tiled \"jewel\" of Kampong Gelam.',
      facts:[
        'The only mosque in Singapore for the Malabar Muslim community.',
        'Clad in striking blue and white geometric tiles.',
        'Begun in 1956 and completed in 1963.',
      ],
      narration:"We end at the most photogenic surprise in the district — the Malabar Muslim Jama-Ath Mosque, better known simply as the Blue Mosque. Its entire exterior is sheathed in lapis-blue and white tiles laid in dazzling geometric patterns, glowing like a jewel when the light hits it. It's the only mosque in Singapore built for the Malabar Muslim community — Muslims whose roots trace to the Malabar Coast of Kerala in southern India — another thread in this neighbourhood's astonishing weave of peoples. The community began building in 1956 but, short on funds, only finished the tilework and completed the mosque in 1963. Stand back across the road for the full effect. From the golden dome where we started to this blue jewel where we finish, Kampong Gelam has shown you sultans, seafarers, pilgrims, traders and artists — all within a few hundred metres. That's the magic of this quarter: it never stops layering.",
    },
  ],

  'chinatown-bites': [
    {
      id:1, name:'Pagoda Street', dist:'0 m', kind:'street', duration:'7 min',
      blurb:'Lantern-strung shophouses and a dark coolie past.',
      facts:[
        'Once lined with coolie quarters and opium dens.',
        'Now a restored, lantern-lit pedestrian shopping street.',
        'Home to the Chinatown Heritage Centre.',
      ],
      narration:"We start under the red lanterns of Pagoda Street, and it's worth knowing the pretty shophouses here hide a hard history. In the nineteenth century this street was crowded with 'coolie' quarters — cramped lodging houses packed with newly arrived Chinese labourers who'd crossed the sea with nothing, plus the opium dens and gambling shops that preyed on them. The Chinatown Heritage Centre, midway down the street, has rebuilt those tiny rooms so you can stand inside a life that a whole family once squeezed into. Today the street is restored, lantern-lit and lined with souvenir stalls — but look above the shopfronts at the carved windows and shutters, and you're looking at the real thing. This is where Singapore's Chinese story began, and as dusk falls and the lanterns warm up, it's the perfect place to begin ours.",
    },
    {
      id:2, name:'Sri Mariamman Temple', dist:'240 m', kind:'temple', duration:'8 min',
      blurb:"Singapore's oldest Hindu temple — in Chinatown.",
      facts:[
        'Founded in 1827 by Naraina Pillai; rebuilt in 1862.',
        "Singapore's oldest Hindu temple.",
        'Its tower teems with brightly painted deities and beasts.',
      ],
      narration:"Here's Chinatown's first lovely contradiction: its oldest temple is Hindu. Look up at the gopuram, that pyramid tower over the entrance swarming with hundreds of brightly painted gods, cows and warriors stacked toward the sky. This is the Sri Mariamman Temple, founded in 1827 by Naraina Pillai, a trader who arrived with Raffles himself, and rebuilt in stone in 1862. For decades it was the only place Hindu marriages could be legally registered in Singapore, making it the spiritual anchor for the whole South Indian community. Why is it here, in the heart of Chinatown? Because early Singapore was never neatly divided — communities overlapped, and a temple grew where its people gathered. Each October, devotees walk barefoot across a bed of burning coals here in a fire-walking festival. Slip off your shoes to step inside, and notice how the incense and the colour completely change the air.",
    },
    {
      id:3, name:'Buddha Tooth Relic Temple', dist:'420 m', kind:'temple', duration:'8 min',
      blurb:'A Tang-style temple guarding a sacred tooth.',
      facts:[
        'Completed in 2007 in the style of the Tang dynasty.',
        'Houses a relic said to be a tooth of the Buddha.',
        'The relic sits in a stupa made with 320 kg of gold.',
      ],
      narration:"A few steps on, the mood deepens at the Buddha Tooth Relic Temple — a towering red-and-gold hall built in 2007 in the grand style of China's Tang dynasty, a thousand years older than the building itself. Its name is literal: on the top floor, inside a stupa made with three hundred and twenty kilograms of gold — much of it donated by ordinary worshippers — rests what Buddhists revere as a tooth of the Buddha, recovered from his funeral pyre. The main hall glows with a hundred Buddha statues; head up to the rooftop and you'll find a peaceful garden and an enormous prayer wheel. It's a working temple and a museum at once. Dress modestly, keep your voice low, and if you can, time your visit for the chanting — the sound fills the hall in a way no photo can hold.",
    },
    {
      id:4, name:'Maxwell Food Centre', dist:'560 m', kind:'food', duration:'10 min',
      blurb:'The hawker hall that turned street food into legend.',
      facts:[
        'Opened as Maxwell Market in 1928; a hawker centre since 1987.',
        'Home of the famous Tian Tian Hainanese chicken rice.',
        'Singapore hawker culture is on the UNESCO heritage list.',
      ],
      narration:"Now for the part your stomach's been waiting for. Maxwell Food Centre began life as a wet market in 1928 and became a full hawker centre in 1987, when the government moved street hawkers indoors to clean, licensed stalls. Today it's one of the most beloved hawker halls in the city — a hundred stalls of Hainanese chicken rice, char kway teow, fish-ball noodles and silky almond beancurd, most of it costing just a few dollars. The queue snaking from one corner is almost always for Tian Tian chicken rice, a dish so good it's effectively Singapore's national plate. This whole way of eating — cheap, communal, wildly diverse — was added to UNESCO's list of the world's cultural heritage in 2020. The etiquette: grab any seat, 'chope' it by leaving a packet of tissues, and order from whichever stall calls to you. Pace yourself; the night's not over.",
    },
    {
      id:5, name:'Thian Hock Keng Temple', dist:'780 m', kind:'temple', duration:'8 min',
      blurb:'Sailors built it to thank the sea goddess.',
      facts:[
        "Singapore's oldest Hokkien temple, rebuilt 1839–1842.",
        'Dedicated to Mazu, goddess and protector of seafarers.',
        'Built without a single nail, using interlocking joinery.',
      ],
      narration:"Telok Ayer Street, where we're standing, once ran right along the seafront — 'telok ayer' means 'water bay' in Malay. So when Chinese immigrants survived the terrifying voyage across the South China Sea, this was the first dry ground they touched, and right here they built Thian Hock Keng, the Temple of Heavenly Happiness, to give thanks. Rebuilt between 1839 and 1842 with the help of the philanthropist Tan Tock Seng, it's the oldest Hokkien temple in Singapore and a masterpiece of southern Chinese craftsmanship — its beams locked together with interlocking joints and not a single nail, the timber and granite shipped in from China as ballast. It's dedicated to Mazu, the goddess who protects sailors. Land has since been reclaimed all around it, so the sea the sailors thanked is now streets away — but stand at the door and imagine the waves once lapping at your feet.",
    },
    {
      id:6, name:'Telok Ayer Street', dist:'900 m', kind:'street', duration:'6 min',
      blurb:'One street, three faiths, side by side.',
      facts:[
        'Holds a Chinese temple, a mosque and a former shrine within metres.',
        'Nagore Dargah was built by South Indian Muslims, 1828–1830.',
        'Reflects the old shoreline where immigrants first landed.',
      ],
      narration:"Stay on Telok Ayer a moment longer and look up and down the street, because it tells Singapore's whole story in a single block. Within a few metres of the Hokkien temple we just left stands the Nagore Dargah, a shrine built by South Indian Muslims around 1830, and a little further along, the Al-Abrar Mosque. Chinese, Indian, Muslim, Buddhist — all worshipping shoulder to shoulder on the same strip of old waterfront, because this is where everyone first came ashore. There was no master plan for harmony here; it grew out of necessity, immigrants of every faith landing on the same beach and putting down roots where they stood. Few streets anywhere pack so many beliefs so close together. It's a quiet stop, but maybe the most Singaporean one on the walk.",
    },
    {
      id:7, name:'Ann Siang Hill', dist:'1.1 km', kind:'street', duration:'7 min',
      blurb:'Restored shophouses on a clan-society hill.',
      facts:[
        'Named after merchant Chia Ann Siang, who owned the hill.',
        'Once full of clan associations and remittance houses.',
        'Now a leafy lane of boutiques, bars and design studios.',
      ],
      narration:"Climb gently up Ann Siang Hill and the city seems to exhale — the traffic falls away, the shophouses turn pastel and elegant, and tropical trees lean over the lane. The hill is named after Chia Ann Siang, a self-made Hokkien merchant who once owned it. A century ago this was the address of clan associations and 'remittance houses' — the offices where labourers sent their hard-earned dollars home to families in China, often with a letter written by a scribe because they couldn't write themselves. Those money-and-letter shops were a lifeline strung across the ocean. Today the same beautifully restored buildings hold cocktail bars, boutiques and design studios, and the little park at the top is a favourite sunset spot. It's Chinatown at its most genteel — a reminder that this district has always been about people working far from home to build something for the next generation.",
    },
    {
      id:8, name:'Club Street', dist:'1.3 km', kind:'street', duration:'6 min',
      blurb:'From Chinese gentlemen\'s clubs to nightlife strip.',
      facts:[
        'Named for the Chinese social clubs once based here.',
        'Steep lane of richly detailed heritage shophouses.',
        'Closed to traffic on weekend evenings for diners.',
      ],
      narration:"Just over the rise is Club Street, and the name is no accident — this steep lane was once lined with the social and recreational clubs of Chinatown's Chinese community, where merchants and clansmen gathered to talk business, play music and gamble away an evening. The shophouses here are some of the most ornately decorated in the whole district; look up at the plasterwork flowers, phoenixes and tiled friezes above the shopfronts, each one a small flex of a former owner's wealth and taste. The clubs are mostly gone, but the social spirit isn't — on weekend nights the street closes to cars and fills with diners spilling out of restaurants and wine bars. It's a neat little loop of history: a street built for gathering after dark, still doing exactly that two centuries on.",
    },
    {
      id:9, name:'Chinatown Complex', dist:'1.6 km', kind:'food', duration:'9 min',
      blurb:'The biggest hawker centre — and a Michelin star.',
      facts:[
        "Singapore's largest hawker centre, with 260-odd food stalls.",
        'Home to the world\'s cheapest Michelin-starred meal.',
        'Sits above a sprawling wet market and dry-goods bazaar.',
      ],
      narration:"If Maxwell was the appetiser, Chinatown Complex is the feast. This is the largest hawker centre in Singapore — well over two hundred and sixty food stalls stacked above a labyrinthine market selling everything from live crabs to dried scallops to Chinese herbs. Somewhere in this maze is a soya-sauce chicken rice stall that earned a Michelin star, briefly making it the cheapest Michelin-starred meal on earth, with plates that cost barely the price of a coffee. Expect a queue. The energy here is rawer and more local than the polished tourist streets outside — uncles playing chess, aunties haggling over greens, the clatter of woks in every direction. Wander the upper deck, follow the longest line, and order whatever's at the end of it. This is the engine room of Chinatown's food culture, and it doesn't perform for anyone.",
    },
    {
      id:10, name:'Smith Street (Food Street)', dist:'1.8 km', kind:'food', duration:'7 min',
      blurb:'A covered street of woks and old-school favourites.',
      facts:[
        'Historically known as a hawker and street-opera street.',
        'Once nicknamed for its theatres and night-time food trade.',
        'Now a sheltered open-air dining lane.',
      ],
      narration:"Roll on to Smith Street, long known as Chinatown's Food Street. A century ago this was a street of Cantonese opera theatres, and the crowds spilling out after the shows were fed by hawkers who set up right on the road — so the street has been about food and performance for a very long time. Locals nicknamed the area for that theatrical past. These days a high canopy shelters the whole lane so you can graze in any weather: satay smoking over charcoal, carrot cake frying on flat-top griddles, sugarcane juice pressed to order. It's touristy, yes, but it's also a easy, atmospheric place to keep nibbling as the night settles in. Find a stool, order a skewer or three, and watch the lanterns sway overhead. We've got one last stop, and it's the one that explains everything we've eaten.",
    },
    {
      id:11, name:'Chinatown Heritage Centre', dist:'2.1 km', kind:'history', duration:'8 min',
      blurb:'Step inside the rooms migrants actually lived in.',
      facts:[
        'Set inside three restored 1920s Pagoda Street shophouses.',
        'Recreates the cramped cubicles of early Chinese migrants.',
        'Tells the coolie, samsui-woman and immigrant story firsthand.',
      ],
      narration:"We finish back where we began, on Pagoda Street, inside the Chinatown Heritage Centre — and after a night of feasting, this is the stop that gives the food its meaning. Set inside three original 1920s shophouses, it recreates, room by tiny room, how migrants actually lived: whole families partitioned into cubicles barely bigger than a bed, sharing a single kitchen and a single tap with dozens of others. You'll meet the coolies who hauled cargo by hand, and the samsui women — migrant labourers in their distinctive red headscarves who built much of early Singapore with their bare hands and sent every spare cent home. Every glittering temple and bustling hawker stall we've seen tonight was built on lives like these. So as you step back out under the lanterns, look once more at those shophouses — and remember they were never just pretty. They were home, and hope, for the people who made this city.",
    },
  ],

  'gardens-bay': [
    {
      id:1, name:'Supertree Grove', dist:'0 m', kind:'garden', duration:'10 min',
      blurb:'A man-made forest of vertical gardens.',
      facts:[
        'Twelve of the 18 Supertrees cluster here in the Grove.',
        'Each is clad in over 162,900 living plants.',
        'They double as solar collectors and conservatory air vents.',
      ],
      narration:"Welcome to the Supertree Grove — and the simplest way to understand it is this: it's a forest that engineers grew on purpose, in a country that ran out of room for the real thing. Twelve of these steel giants cluster here, ranging from twenty-five to fifty metres tall, their trunks sheathed in more than a hundred and sixty thousand living plants — ferns, orchids, bromeliads and climbers that turn cold concrete and steel into vertical gardens. But they're not just decoration. Several have solar panels in their canopies that harvest sunlight to power their own lights; others are disguised chimneys, venting heat away from the cooled conservatories you'll visit shortly. They are, in other words, working trees — beauty and infrastructure fused together. Stand right at the base of the tallest one and look straight up; the scale only really lands when the canopy is swallowing the sky above you.",
    },
    {
      id:2, name:'OCBC Skyway', dist:'150 m', kind:'view', duration:'8 min',
      blurb:'A walkway strung between the treetops.',
      facts:[
        'A 128 m aerial walkway, 22 m above the ground.',
        'Suspended between the tallest Supertrees in the Grove.',
        'Offers a canopy-level view across the bay.',
      ],
      narration:"Now let's get off the ground. The OCBC Skyway is a slender walkway, a hundred and twenty-eight metres long, strung twenty-two metres up between the Supertrees — high enough to put you right at canopy level, eye to eye with the gardens growing on their trunks. From up here the whole layout of the park unfolds: the conservatory domes glinting to one side, Marina Bay Sands rising across the water, the green roofs and lakes below. It gently sways, which is part of the fun. There's a small ticket fee for the climb, and it's worth timing it for late afternoon, when the light goes gold and the heat eases off. Take your time crossing — this is the view that turns a garden into a landscape, and it's the best vantage point for sizing up just how big this place really is.",
    },
    {
      id:3, name:'Supertree Observatory', dist:'200 m', kind:'view', duration:'7 min',
      blurb:'The top of the tallest tree, 50 metres up.',
      facts:[
        'Sits atop the tallest Supertree, opened December 2019.',
        'Roughly 50 metres above the gardens.',
        'A 360° indoor-outdoor view over Marina Bay.',
      ],
      narration:"Crown the climb at the Supertree Observatory, perched right at the top of the tallest tree — about fifty metres up — and opened at the end of 2019. If the Skyway gave you the canopy, this gives you the kingdom: a near three-hundred-and-sixty-degree sweep across Marina Bay, the city skyline, the cargo ships waiting offshore, and the whole green sprawl of the Gardens directly beneath your feet. It's the single highest point in the park you can stand on. Come up near sunset if you can manage it — you'll watch the city lights flicker on one district at a time, and you'll be perfectly placed for what's coming after dark. From the very top of an artificial tree, looking out over a garden built on reclaimed land beside a reservoir made from the sea — this is Singapore's whole audacious idea in one view.",
    },
    {
      id:4, name:'Cloud Forest', dist:'450 m', kind:'garden', duration:'10 min',
      blurb:'A misty mountain and the world\'s tallest indoor waterfall.',
      facts:[
        'Centrepiece: a 35 m indoor waterfall, the world\'s tallest of its kind.',
        'Recreates the cool, damp climate of a tropical highland.',
        'A planted "mountain" you spiral down from the top.',
      ],
      narration:"Step inside the Cloud Forest and the temperature drops, the air turns damp, and you're hit by the roar of a thirty-five-metre waterfall crashing down a green mountain — the tallest indoor waterfall in the world. This dome recreates the climate of a tropical highland, the kind of misty, cloud-wrapped peak you'd normally have to climb two thousand metres to find. You take a lift to the very top of the planted mountain and spiral slowly down through walkways draped in orchids, ferns, pitcher plants and mosses that survive on cloud and mist alone. Along the way there's a quiet message tucked into the displays: these cool highland habitats are exactly the ones most threatened by a warming planet. So it's a fantasy mountain and a gentle warning, all at once. Bring a light layer — after the heat outside, the chill is a genuine shock.",
    },
    {
      id:5, name:'Flower Dome', dist:'600 m', kind:'garden', duration:'10 min',
      blurb:'The world\'s largest glasshouse, eternally spring.',
      facts:[
        'Listed by Guinness as the world\'s largest glass greenhouse.',
        'Covers 1.2 hectares with no internal supporting columns.',
        'Recreates a cool, dry Mediterranean climate.',
      ],
      narration:"Next door is the Flower Dome — and it holds a Guinness World Record as the largest glass greenhouse on the planet, spanning more than a hectare without a single internal column to hold up that vast curved roof. Where the Cloud Forest was misty and tropical, this one is cool and dry, recreating a Mediterranean spring: olive trees, towering desert succulents, bottle-shaped baobabs from Africa, and a central flower field that's replanted for every season and festival, so it never looks the same twice. It's a place to slow right down and wander. The engineering is quietly astonishing too — the glass is specially coated to let light in but keep heat out, so all this cool air doesn't cost the earth to maintain. After the drama of the waterfall, let this be your gentle, fragrant breather before the grand finale outside.",
    },
    {
      id:6, name:'Garden Rhapsody', dist:'750 m', kind:'view', duration:'8 min',
      blurb:'The free nightly light-and-sound show.',
      facts:[
        'Free shows nightly at 7:45 and 8:45 pm.',
        'Uses 68 independent speakers for surround sound.',
        'The Supertrees pulse in sync with the music.',
      ],
      narration:"And now, the moment the whole park has been building toward. Find a spot on the ground at the centre of the Supertree Grove, lie back if you can, and wait for the music. This is Garden Rhapsody, the free light-and-sound show that runs every night at quarter to eight and quarter to nine. The Supertrees, dark all day, erupt into colour, every plant-clad trunk pulsing and shifting in time to a soundtrack carried by sixty-eight separate speakers hidden through the grove, so the music seems to come from the trees themselves. It lasts about fifteen minutes and it's genuinely one of the best free things to do in the city. So this is where we leave you — flat on your back beneath a glowing, singing forest that didn't exist twenty years ago, built on land reclaimed from the sea. Singapore in one sentence: if there isn't room for a wonder, build one. Enjoy the show.",
    },
  ],

  'tiong-bahru': [
    {
      id:1, name:'Tiong Bahru Market', dist:'0 m', kind:'food', duration:'9 min',
      blurb:'Wet market below, legendary hawker hall above.',
      facts:[
        'A bustling wet market with a famous food centre upstairs.',
        'Known for chwee kueh, lor mee and Hokkien mee.',
        'The social heart of the estate since its early days.',
      ],
      narration:"We begin where the neighbourhood begins its day — Tiong Bahru Market. Downstairs is a classic 'wet market,' the floors hosed down and glistening, stalls heaped with fish, greens, herbs and flowers, aunties prodding produce and bargaining hard. Climb the stairs and you reach the real prize: one of Singapore's best-loved hawker centres. This is breakfast country. Hunt down a plate of chwee kueh — little steamed rice cakes topped with savoury preserved radish — or a bowl of lor mee in thick dark gravy, or the much-garlanded Hokkien mee. There's been a market on this site since the estate was built, because the planners understood something simple: give people good cheap food and a place to gather, and you've made a community. Grab a kopi — local coffee, thick and sweet — and let's walk it off. The whole neighbourhood unspools from this corner.",
    },
    {
      id:2, name:'Qi Tian Gong Temple', dist:'220 m', kind:'temple', duration:'7 min',
      blurb:'The Monkey God watches over Tiong Bahru.',
      facts:[
        'Founded 1920; moved to its present building in 1938.',
        'Dedicated to Sun Wukong, the Monkey King.',
        'Holds more than ten Monkey God statues, the oldest near a century old.',
      ],
      narration:"Tucked among the flats is a small, vivid temple with an unusual guardian — the Monkey God. Qi Tian Gong was founded in 1920, first in a humble attap hut in a taro garden, then moved here to Eng Hoon Street in 1938. It's dedicated to Sun Wukong, the Monkey King — the mischievous, shape-shifting, near-invincible hero of the classic Chinese novel Journey to the West, beloved across Asia for centuries. Inside you'll find more than ten statues of him, the oldest pushing a hundred years old. He's worshipped as a protector who drives off evil and brings good fortune, and on his birthday the temple bursts into celebration with offerings and, traditionally, mediums channelling the deity. It's a reminder that beneath Tiong Bahru's hip café veneer beats a deeply traditional heart. Step in quietly; this is a living temple, not a museum.",
    },
    {
      id:3, name:'The Art Deco Flats', dist:'350 m', kind:'history', duration:'9 min',
      blurb:'Singapore\'s first public housing, in streamlined deco.',
      facts:[
        'Built by the SIT between 1936 and 1941.',
        "Singapore's first public housing estate.",
        'Curved "streamline moderne" balconies nicknamed "aeroplane" blocks.',
      ],
      narration:"Now look up at the buildings themselves, because they're the real heritage here. These low, curving white blocks were Singapore's very first public housing, built between 1936 and 1941 by the colonial-era Singapore Improvement Trust — the grandparent of today's HDB, which now houses around eight in ten Singaporeans. The architects worked in a streamlined Art Deco style fashionable in Europe at the time: smooth horizontal lines, rounded corners, porthole windows and sweeping balconies that curve like the wing of a plane — which is why locals nicknamed some 'aeroplane houses.' For their era these were aspirational, modern homes, a clean break from the overcrowded shophouses of Chinatown nearby. Wander the side streets and notice the spiral staircases at the back, the geometric railings, the flat roofs. Conservation rules now protect these blocks, which is exactly why this corner of the city still feels like a film set from the 1930s.",
    },
    {
      id:4, name:'Bird Corner Mural', dist:'480 m', kind:'arts', duration:'6 min',
      blurb:'A painted memory of the old bird-singing gallery.',
      facts:[
        'Painted by self-taught artist Yip Yew Chong.',
        'Recalls the famous bird-singing corner once at Block 53.',
        'Songbird-keeping was a beloved old-Singapore pastime.',
      ],
      narration:"On a wall at Block 71 you'll find a mural of dozens of bamboo birdcages hung in rows, men gathered beneath them — and it's painting a true and tender memory. For decades Tiong Bahru had a famous 'bird corner,' where songbird owners would bring their prized birds in ornate cages, hoist them on poles, and let them sing together while the men drank coffee and traded gossip. It was a whole gentle subculture, now mostly faded away. The artist, Yip Yew Chong, grew up around here and paints from memory, recreating the old scenes of a Singapore that's vanishing — his murals scattered through the estate like a graphic novel of the neighbourhood's past. This one brings the birdsong back to a quiet wall. Stand where the men once stood, and you can almost hear it.",
    },
    {
      id:5, name:'Pasar & Fortune Teller Mural', dist:'600 m', kind:'arts', duration:'6 min',
      blurb:'Market life and a street fortune-teller, frozen in paint.',
      facts:[
        'Another Yip Yew Chong work, in a Block 73 back lane.',
        'Depicts an old wet-market scene and a street fortune-teller.',
        '"Pasar" is the Malay word for market.',
      ],
      narration:"Round the back of Block 73, two more murals by the same artist wait in a quiet lane. One, called 'Pasar' — Malay for market — recreates the bustle of an old-school wet market, every stallholder and shopper rendered in warm, nostalgic detail. The other shows a street fortune-teller at work, the kind of figure who once set up at the roadside reading palms and faces and telling futures for a few coins. Together they capture the texture of everyday life in the estate decades ago — the haggling, the superstition, the small daily rituals. What's lovely is how the art sits right in the lived-in back lanes, next to drying laundry and parked bikes, not behind glass. Yip Yew Chong's whole project is exactly this: to hand the younger generation a window into a Singapore their grandparents knew, painted onto the walls they walk past every day.",
    },
    {
      id:6, name:'Home Mural', dist:'720 m', kind:'arts', duration:'5 min',
      blurb:'The inside of an old Tiong Bahru flat, on a wall.',
      facts:[
        "Yip Yew Chong's mural on Block 74, Eng Watt Street.",
        'Depicts a 1980s living room with period details.',
        'A nostalgic portrait of growing up in the estate.',
      ],
      narration:"The last of the murals is perhaps the most personal — 'Home,' painted across a wall of Block 74. It opens up like a doll's house cross-section, showing the inside of a typical Tiong Bahru flat from the artist's own childhood: the old television, the calendar on the wall, the kitchen, the family within. Yip Yew Chong grew up in surroundings exactly like these, and this mural is essentially his memory of home turned inside out for everyone to see. It's a fitting centre to our walk, because it answers a question the grand architecture can't: not just what these buildings looked like, but what life inside them felt like. Take a moment with the small details — they're the whole point. Then let's swap nostalgia for the present, because the next street is where old Tiong Bahru meets its hippest new self.",
    },
    {
      id:7, name:'Yong Siak Street', dist:'850 m', kind:'street', duration:'7 min',
      blurb:'Indie cafes, bakeries and a famous bookshop street.',
      facts:[
        'The heart of Tiong Bahru\'s café and indie-shop revival.',
        'Anchored by beloved bakeries and design boutiques.',
        'Where the estate earned its "hipster enclave" reputation.',
      ],
      narration:"Yong Siak Street is where Tiong Bahru's two personalities meet on the same pavement. Over the last fifteen years this quiet lane became the epicentre of the neighbourhood's revival — artisan bakeries turning out flaky croissants and kouign-amann, third-wave coffee roasters, design boutiques and, for years, a much-loved independent bookshop that made the street a pilgrimage for readers. It's the reason Tiong Bahru tops every 'coolest neighbourhood' list, and the reason rents here have soared. There's a real tension worth noticing: the same charm that drew the cafés is the heritage built by the old residents, some of whom have been priced out. It's a very modern story playing out on a 1930s street. Pause for a coffee or a pastry here — you've earned it — and watch the mix of silver-haired residents and laptop creatives sharing the same five-foot way.",
    },
    {
      id:8, name:'Air-Raid Shelter', dist:'1.0 km', kind:'history', duration:'7 min',
      blurb:'A civilian WWII bomb shelter under a housing block.',
      facts:[
        'Built into Block 78 in the late 1930s.',
        "Singapore's only surviving civilian air-raid shelter from the era.",
        'Could shelter hundreds during Japanese air raids.',
      ],
      narration:"We end underground — or at least at the door to it. Built into the base of Block 78 in the late 1930s, as war clouds gathered over Asia, is the only purpose-built civilian air-raid shelter of its kind still surviving in Singapore. When Japanese bombs began falling in late 1941, residents of the estate could file down into this windowless concrete warren, designed to hold hundreds of people behind thick blast-proof walls. It's a sobering full stop to a walk that's otherwise been about coffee and murals — a reminder that this gentle Art Deco estate lived through the Fall of Singapore and the brutal occupation that followed. The shelter is occasionally opened for heritage tours; even from outside, knowing it's there changes how you see the elegant block above it. Tiong Bahru, it turns out, has always quietly carried its history — in its curves, its murals, and the dark rooms beneath its feet. Thanks for walking it with us.",
    },
  ],

  'little-india': [
    {
      id:1, name:'Tekka Centre', dist:'0 m', kind:'market', duration:'9 min',
      blurb:'The roaring wet market that feeds Little India.',
      facts:[
        'A wet market on this site since 1915.',
        'Singapore\'s top market for spices, flowers and fresh produce.',
        'Houses a hawker centre and a warren of sari and goods stalls.',
      ],
      narration:"We begin in the deep end — Tekka Centre, the thundering market that has fed this neighbourhood since 1915. Downstairs, the wet market is a full-contact sensory experience: mountains of fresh turmeric, chilli and curry leaves, fishmongers calling out prices, the floor slick and the air thick with spice. Upstairs is a hawker centre serving some of the best Indian-Muslim food in the city — biryani, fish-head curry, buttery prata — alongside a maze of stalls selling saris, bangles and bolts of bright fabric. 'Tekka' comes from the Hokkien for 'bamboo foot,' after a grove that once grew here, a little linguistic fingerprint of how mixed this area has always been. This is the working heart of Little India, where residents actually shop. Breathe it in, brace your senses, and let's step out onto the streets — because the colour only intensifies from here.",
    },
    {
      id:2, name:'Buffalo Road', dist:'150 m', kind:'street', duration:'6 min',
      blurb:'Where cattle once roamed — now garlands and spice.',
      facts:[
        'Named for the cattle trade that defined early Little India.',
        '19th-century cattle yards drew Indian workers to the area.',
        'That cattle trade is why Little India grew up here at all.',
      ],
      narration:"The name of this little street — Buffalo Road — is the key to why Little India exists at all. Back in the nineteenth century this area was the centre of Singapore's cattle trade, with sprawling yards where buffalo and cattle were raised, traded and slaughtered. That industry drew large numbers of Indian workers — cattlemen, herders and labourers — who settled nearby, and around them grew the shops, temples and eateries that became Little India. The neighbouring street, Kerbau Road, means 'buffalo' in Malay, doubling down on the theme. The cattle are long gone, replaced by stalls selling jasmine garlands and fragrant spices, but the street names quietly preserve the origin story. It's a reminder that neighbourhoods rarely spring from nowhere — follow the work, and you'll usually find why the people came.",
    },
    {
      id:3, name:'Sri Veeramakaliamman Temple', dist:'400 m', kind:'temple', duration:'9 min',
      blurb:'A fierce goddess in one of the oldest Hindu temples.',
      facts:[
        'One of Singapore\'s oldest Hindu temples.',
        'Dedicated to Kali, the fierce goddess and destroyer of evil.',
        'Built in the South Indian Tamil style with a towering gopuram.',
      ],
      narration:"Now to the spiritual anchor of Little India — the Sri Veeramakaliamman Temple, one of the oldest Hindu temples in Singapore, raised by Indian pioneers, many of them labourers, far from home. It's dedicated to Kali, the fierce mother goddess, destroyer of evil — depicted with fearsome power, often garlanded in skulls, yet worshipped as a fierce protector of her devotees. There's a story that during the Japanese bombing of World War Two, locals sheltered within these walls and the temple stood unscathed, deepening their faith in the goddess's protection. Look up at the gopuram, the entrance tower densely sculpted with deities in the South Indian Tamil style, then step inside to the riot of colour and the scent of incense, ghee lamps and jasmine. If you arrive during a puja, you'll hear bells and chanting fill the hall. Remove your shoes, lower your voice, and let the devotion wash over you.",
    },
    {
      id:4, name:'House of Tan Teng Niah', dist:'600 m', kind:'history', duration:'7 min',
      blurb:'The rainbow Chinese villa in the heart of Little India.',
      facts:[
        'Built in 1900 by Chinese businessman Tan Teng Niah.',
        'The last surviving Chinese villa in Little India.',
        'Now painted in vivid rainbow colours — the area\'s photo icon.',
      ],
      narration:"Here's Little India's most photographed building — and its biggest surprise. This eight-room villa, splashed in candy pinks, yellows, blues and greens, was built in 1900 not by an Indian merchant but by a Chinese businessman, Tan Teng Niah, who ran rubber-smoking and sweet-making factories nearby. He built it, the story goes, for his wife. It's the last surviving Chinese villa in Little India, a lovely bit of evidence that this district was always mixed — Chinese industrialists and Indian workers living and trading side by side. The rainbow paint job is actually modern; historians think the original was plain lime-white, and the vivid colours were added in restoration to echo the festive spirit of the neighbourhood. Either way, the blend of Southern Chinese and European architectural details makes it unique. Get your photo — everyone does — but notice the carved details above the doors while you're at it.",
    },
    {
      id:5, name:'Campbell Lane & Garlands', dist:'750 m', kind:'street', duration:'7 min',
      blurb:'Learn to read a flower garland like a love letter.',
      facts:[
        'Famous for stalls stringing fresh flower garlands by hand.',
        'Garlands are used in worship, weddings and welcomes.',
        'Jasmine, marigold and rose are the classic blooms.',
      ],
      narration:"Slow down on Campbell Lane, because there's an art being made right in front of you. At these stalls, workers sit threading fresh blossoms into garlands at astonishing speed — and every garland is a kind of message. Jasmine, white and intensely fragrant, is woven into women's hair and offered for purity; marigolds, in blazing orange and gold, are auspicious and used by the thousand at festivals and weddings; roses speak of love and devotion. Garlands are draped on temple deities, hung around the necks of honoured guests, exchanged by couples at weddings, and offered in prayer — a whole language spoken in petals. Watch the fingers fly: there are no machines here, just decades of practice. Buy a small string of jasmine to carry with you; its scent will follow you down the rest of the street, and you'll never look at a flower garland the same way again.",
    },
    {
      id:6, name:'Sri Srinivasa Perumal Temple', dist:'1.0 km', kind:'temple', duration:'8 min',
      blurb:'A soaring tower and the start of a sacred procession.',
      facts:[
        'Dedicated to Vishnu (Perumal); a national monument.',
        'Its 20 m gopuram is carved with avatars of Vishnu.',
        'Starting point of the Thaipusam procession each year.',
      ],
      narration:"Further up Serangoon Road stands the Sri Srinivasa Perumal Temple, crowned by a magnificent gopuram some twenty metres tall, its tiers carved with the many avatars of Vishnu, the great Hindu preserver god, to whom the temple is dedicated. A national monument, it's one of the most important temples in Singapore — and once a year it becomes the dramatic starting line for Thaipusam. On that day, thousands of devotees set off from here on a kilometres-long procession of penance and thanksgiving, many carrying elaborate frames called kavadi, some pierced through the skin with skewers and hooks, fulfilling vows to Lord Murugan. It's one of the most intense expressions of faith you'll see anywhere. Even on an ordinary day the temple is serene and grand. Step inside the towering entrance and take in the calm before you picture the surging crowds that pour out of these very gates each January.",
    },
    {
      id:7, name:'Abdul Gafoor Mosque', dist:'1.3 km', kind:'mosque', duration:'7 min',
      blurb:'A sundial of saints crowns its grand entrance.',
      facts:[
        'Completed in 1910; a national monument.',
        'Blends Indo-Saracenic and European architectural styles.',
        'Its entrance arch features a unique sundial-like emblem.',
      ],
      narration:"Little India isn't only Hindu, and the Abdul Gafoor Mosque proves it — a graceful green-and-white mosque completed in 1910 and now a national monument. It's a beautiful marriage of styles, blending Indo-Saracenic forms with European details, reflecting the South Indian Muslim community who built and worship here. Look closely at the elaborate arch over the main entrance: it carries a remarkable sunburst emblem, often described as a kind of sundial, with the names of twenty-five prophets inscribed in Arabic calligraphy radiating outward like rays. It's one of the most intricate mosque facades in the city and easy to miss if you don't look up. The mosque sits among the shophouses almost shyly, another faith woven quietly into a Hindu-majority district — the same easy coexistence we keep finding across Singapore. Take a moment with that arch; there's nothing else quite like it here.",
    },
    {
      id:8, name:'Mustafa Centre', dist:'1.6 km', kind:'market', duration:'7 min',
      blurb:'The 24-hour megastore that never, ever closes.',
      facts:[
        'A sprawling department store open 24 hours a day.',
        'Sells everything from gold and electronics to spices.',
        'A magnet for shoppers and travellers at all hours.',
      ],
      narration:"Brace yourself for Mustafa Centre — a sprawling, gloriously chaotic department store that is open twenty-four hours a day, every day, and sells, more or less, everything. Spread across multiple floors and connected buildings, it stocks gold jewellery and groceries, electronics and saris, suitcases, spices, perfumes and medicines, all jammed together under fluorescent light at prices keen enough to draw bargain-hunters from across the region. At three in the morning you'll still find it busy with shift workers, travellers and night owls. It started small, a humble shop, and grew into an institution that's almost a tourist attraction in its own right. Going in is a rite of passage; just memorise where you entered, because the layout is a glorious labyrinth. Whether you buy anything or not, the sheer round-the-clock energy of the place is pure Little India — relentless, generous and a little overwhelming.",
    },
    {
      id:9, name:'Indian Heritage Centre', dist:'1.9 km', kind:'history', duration:'8 min',
      blurb:'The story behind everything you\'ve just walked through.',
      facts:[
        'Opened in 2015; the first museum of its kind in the region.',
        'A striking glass facade that glows at night.',
        'Traces the South Asian community in Singapore and beyond.',
      ],
      narration:"We finish at the Indian Heritage Centre — and after a walk drunk on colour, scent and noise, this is where it all gets its meaning. Opened in 2015 in a striking modern building, its glass facade printed with a traditional 'baoli' stepwell pattern that glows beautifully after dark, it's the first museum of its kind in the region devoted to the Indian and South Asian communities of Singapore and Southeast Asia. Inside, five galleries trace the whole arc: the ancient links between India and this region, the waves of migration that brought labourers, traders and professionals across the sea, the hardships they endured, and the immense contribution they made to building Singapore. Every garland-maker, temple, mosque and spice stall you've passed today is a living chapter of this story. So end here, in the cool and the quiet, and let the museum connect the threads — the perfect last word on a neighbourhood that wears its heritage out loud.",
    },
  ],
};

// Legacy alias — existing screens read window.WANDER_DATA.STOPS
const STOPS = STOPS_BY_TOUR['merlion-marina'];

// x/y are kept as a fallback; lat/lng are the real positions used by WanderGeo
// (the map projects lat/lng onto the stylized art at render time).
const NEARBY = [
  { id:'a', name:'Merlion Park',  kind:'free',    x:42, y:55, emoji:'🦁', lat:1.2869, lng:103.8545 },
  { id:'b', name:'Esplanade',     kind:'free',    x:46, y:50, emoji:'🎭', lat:1.2897, lng:103.8557 },
  { id:'c', name:'Helix Bridge',  kind:'current', x:52, y:46, emoji:'🌉', lat:1.2873, lng:103.8607 },
  { id:'d', name:'MBS SkyPark',   kind:'pro',     x:58, y:42, emoji:'🏙️', lat:1.2834, lng:103.8607 },
  { id:'e', name:'ArtScience',    kind:'pro',     x:62, y:48, emoji:'🪷', lat:1.2863, lng:103.8593 },
  { id:'f', name:'Gardens',       kind:'free',    x:68, y:55, emoji:'🌳', lat:1.2816, lng:103.8636 },
  { id:'g', name:'Lau Pa Sat',    kind:'free',    x:32, y:62, emoji:'🍜', lat:1.2807, lng:103.8503 },
  { id:'h', name:'Raffles Place', kind:'pro',     x:28, y:48, emoji:'🏛️', lat:1.2843, lng:103.8514 },
];

// ── Real Singapore coordinates for every stop ──────────────────────────────────
// Kept separate from the narration content above for readability, then merged
// onto each stop as { lat, lng }. Sourced from public landmark coordinates;
// accurate to landmark level, which is what powers live distance + geofencing.
const STOP_COORDS = {
  'merlion-marina': {
    1:[1.2869,103.8545], 2:[1.2897,103.8557], 3:[1.2873,103.8607], 4:[1.2834,103.8607],
    5:[1.2863,103.8593], 6:[1.2816,103.8636], 7:[1.2807,103.8714],
  },
  'kampong-glam': {
    1:[1.3024,103.8590], 2:[1.3017,103.8600], 3:[1.3021,103.8596], 4:[1.3019,103.8588],
    5:[1.3013,103.8579], 6:[1.3008,103.8585], 7:[1.3025,103.8593], 8:[1.3045,103.8631],
    9:[1.3035,103.8624],
  },
  'chinatown-bites': {
    1:[1.2839,103.8443], 2:[1.2826,103.8453], 3:[1.2815,103.8444], 4:[1.2804,103.8447],
    5:[1.2810,103.8475], 6:[1.2817,103.8479], 7:[1.2806,103.8462], 8:[1.2812,103.8459],
    9:[1.2823,103.8436], 10:[1.2829,103.8440], 11:[1.2837,103.8446],
  },
  'gardens-bay': {
    1:[1.2816,103.8636], 2:[1.2820,103.8639], 3:[1.2823,103.8641], 4:[1.2845,103.8660],
    5:[1.2848,103.8656], 6:[1.2816,103.8636],
  },
  'tiong-bahru': {
    1:[1.2861,103.8270], 2:[1.2852,103.8283], 3:[1.2857,103.8288], 4:[1.2855,103.8292],
    5:[1.2858,103.8295], 6:[1.2860,103.8299], 7:[1.2851,103.8289], 8:[1.2848,103.8301],
  },
  'little-india': {
    1:[1.3062,103.8508], 2:[1.3066,103.8504], 3:[1.3110,103.8536], 4:[1.3079,103.8517],
    5:[1.3070,103.8511], 6:[1.3115,103.8543], 7:[1.3055,103.8550], 8:[1.3098,103.8556],
    9:[1.3066,103.8512],
  },
};
Object.keys(STOP_COORDS).forEach((tid) => {
  const byId = STOP_COORDS[tid];
  (STOPS_BY_TOUR[tid] || []).forEach((s) => {
    const c = byId[s.id];
    if (c) { s.lat = c[0]; s.lng = c[1]; }
  });
});

// Resolve the stop list for a given tour id (falls back to the Merlion walk)
function stopsForTour(tourId) {
  return STOPS_BY_TOUR[tourId] || STOPS;
}

// Load tours from API; fall back to static data
async function loadTours() {
  try {
    const res = await fetch('/api/tours');
    if (!res.ok) throw new Error('API error');
    return await res.json();
  } catch {
    return STATIC_TOURS;
  }
}

window.WANDER_DATA = { TOURS: STATIC_TOURS, STOPS, STOPS_BY_TOUR, NEARBY, stopsForTour };
window.loadTours = loadTours;
