// data.jsx — Charter Day Trail (7 stops)
// Videos: Squarespace HLS streams. Playlist URLs are publicly accessible;
// signed segment URLs inside refresh on each fetch (~1 year expiry).

window.STOPS = [
  {
    id: "un-plaza", n: 1,
    name: "UN Plaza",
    subtitle: "The Public Memorial",
    address: "Fulton St & Hyde St, San Francisco",
    duration: "10 min",
    lede: "A civic plaza dedicated to the founding of the United Nations.",
    story: "Thirty years after delegates gathered in San Francisco to draft the UN Charter, the city dedicated UN Plaza on the anniversary — a public memorial anchoring the Civic Center to the birth of the United Nations. Architects Lawrence Halprin, Mario Ciampi and John Carl Warnecke designed the plaza and its fountain, whose granite slabs represent the continents of the Earth. In 1995, for the UN's 50th anniversary, the Walk of Great Ideas was added — carving the preamble of the UN Charter into white stones set underfoot.",
    landmarks: [
      { name: "UN Plaza Fountain", year: "1975", fact: "Halprin, Ciampi & Warnecke designed the fountain with granite slabs representing Earth's continents. Two brass-inlaid lines mark the original City Hall's location and San Francisco's exact geographic center." },
      { name: "Walk of Great Ideas", year: "1995", fact: "Added for the UN's 50th anniversary — the preamble of the UN Charter is carved into white stones set into the plaza." }
    ],
    keyFacts: [
      { year: "1975", text: "UN Plaza dedicated for the 30th anniversary of the UN" },
      { year: "1981", text: "Heart-of-the-City Farmers Market begins, Sun & Wed" },
      { year: "1995", text: "Walk of Great Ideas added for the 50th anniversary" }
    ],
    videos: [],
    keyMoment: null, promoCode: null
  },
  {
    id: "sf-library", n: 2,
    name: "SF Public Library",
    subtitle: "The Delegates' Reading Room",
    address: "100 Larkin St, San Francisco",
    duration: "12 min",
    lede: "The quiet nerve center of the 1945 Conference.",
    story: "During the summer of 1945, San Francisco's main public library played an extraordinary, largely invisible role in the United Nations Conference on International Organization. It carved out a private reading room for the 850 attending delegates, issued them special library cards, and installed a dedicated red telephone that connected directly to the War Memorial Opera House — an instant lifeline between the library's research collections and the conference floor where the Charter was being written.",
    landmarks: [
      { name: "Delegates' Reading Room", year: "1945", fact: "The library set aside a private room for the 850 UN Conference delegates and issued them special library cards for the duration of the conference." },
      { name: "The Red Telephone", year: "1945", fact: "A dedicated line connected the library directly to the War Memorial Opera House — an invisible link between the delegates' research and the conference floor." }
    ],
    keyFacts: [
      { year: "1945", text: "850 UN Conference delegates given a private reading room" },
      { year: "1945", text: "Direct red telephone line installed to the Opera House" }
    ],
    videos: [
      {
        src: "https://video.squarespace-cdn.com/content/v1/68bf4cfef07f4a4572c027f4/20c54f22-3a9a-4a26-8963-9dbe7f31e337/playlist.m3u8",
        poster: "https://images.squarespace-cdn.com/content/v1/68bf4cfef07f4a4572c027f4/e22d1589-3ba7-4148-a8fb-1a9856e1278f/Christina+web+image+still+of+video.png",
        title: "Christina Moretta, SF Library Photo Curator",
        channel: "UnCharter Trail",
        year: "2025"
      }
    ],
    keyMoment: null, promoCode: null
  },
  {
    id: "city-hall", n: 3,
    name: "San Francisco City Hall",
    subtitle: "The Civic Center Landmark",
    address: "1 Dr Carlton B. Goodlett Pl, San Francisco",
    duration: "12 min",
    lede: "The Beaux-Arts heart of the Civic Center.",
    story: "Completed in 1916 to designs by architect Arthur Brown Jr., San Francisco City Hall anchors the Civic Center where the United Nations was born. Its dome rises 307 feet 6 inches — some 42 feet taller than the dome of the United States Capitol — and ranks among the largest in the world. The building stood at the center of the city during the 1945 Conference, and its plaza has hosted the Heart-of-the-City Farmers Market every Sunday and Wednesday since 1981.",
    landmarks: [
      { name: "The Dome", year: "1916", fact: "Designed by Arthur Brown Jr., the dome stands 307 feet 6 inches tall — 42 feet taller than the US Capitol dome, and among the tallest in the world." }
    ],
    keyFacts: [
      { year: "1916", text: "City Hall completed by architect Arthur Brown Jr." },
      { year: "1981", text: "Heart-of-the-City Farmers Market begins on the plaza" }
    ],
    videos: [],
    keyMoment: null, promoCode: null
  },
  {
    id: "fairmont", n: 4,
    name: "The Fairmont Hotel",
    subtitle: "Where the Deals Were Made",
    address: "950 Mason St, San Francisco",
    duration: "15 min",
    lede: "The power rooms of the 1945 UN Conference.",
    story: "While the UN Conference's official sessions ran across the Civic Center, the Fairmont Hotel served as the delegates' residential and working hub. Julia Morgan — California's first licensed female architect — designed the hotel, which had been the first major San Francisco business to reopen after the 1906 earthquake. During the summer of 1945, the Penthouse Suite housed U.S. Secretary of State Edward Stettinius Jr., who reported directly to President Truman. The Garden Room hosted intimate Charter meetings beneath golden pineapple chandeliers, which symbolize hospitality and peace.",
    landmarks: [
      { name: "Garden Room", year: "1945", fact: "Small working Charter meetings were held here. The golden pineapple chandeliers above symbolize hospitality and peace — a fitting emblem for what was being negotiated inside. A commemorative plaque marks the room's role." },
      { name: "Penthouse Suite", year: "1945", fact: "Secretary of State Edward Stettinius Jr. stayed here, reporting directly to President Truman. Tom Wolfe, the Fairmont's Chef Concierge and Director of Heritage, shares the story of the dealmaking that happened in this suite." },
      { name: "Tonga Room", year: "1945", fact: "Created by a Hollywood set designer during the conference era. A reminder that even the most consequential diplomatic summits unfolded amid San Francisco's flair for spectacle." }
    ],
    keyFacts: [
      { year: "1906", text: "First major SF business to reopen after the earthquake" },
      { year: "1945", text: "International UN delegates headquartered here" }
    ],
    videos: [
      {
        src: "https://video.squarespace-cdn.com/content/v1/68bf4cfef07f4a4572c027f4/d021a60a-0aff-4c6a-873b-a7b7a32f0aab/playlist.m3u8",
        poster: "https://images.squarespace-cdn.com/content/v1/68bf4cfef07f4a4572c027f4/3c57a5ee-6908-4a29-b2b4-e85624cf2b09/Screenshot+2025-09-18+at+3.29.46+PM.png",
        title: "Tom Wolfe, Chef Concierge & Director of Heritage",
        channel: "UnCharter Trail",
        year: "2025"
      }
    ],
    keyMoment: null, promoCode: null
  },
  {
    id: "grace-cathedral", n: 5,
    name: "Grace Cathedral",
    subtitle: "Spirit of the Charter",
    address: "1100 California St, San Francisco",
    duration: "15 min",
    lede: "Spiritual home to the 1945 UN Conference attendees.",
    story: "Though not an official conference venue, Grace Cathedral welcomed thousands of UN Conference attendees seeking reflection during the historic negotiations. The cathedral's art permanently commemorates the founding: artist Antonio Sotomayor painted 'Founding of the United Nations, 1945' and quietly included himself in the scene. In 1995, for the UN's 50th anniversary, a courtyard fountain was filled with sacred waters gathered from 20 holy sites worldwide. UN Secretary General Boutros Boutros-Ghali attended the ceremony. On June 26, 2025 — the 80th anniversary — a special service was held here with Bishop Austin Rios officiating.",
    landmarks: [
      { name: "Founding Mural", year: "1945", fact: "'Founding of the United Nations, 1945' by Antonio Sotomayor depicts diverse cultures uniting toward peace. Sotomayor quietly painted himself into the scene — look carefully and you'll find him." },
      { name: "Brotherhood of Man Plaque", year: "1969", fact: "Oak and brass, approximately 8 feet tall. Symbolizes peace and spiritual unity — a permanent marker of the cathedral's connection to international ideals." },
      { name: "Grace Cathedral Fountain", year: "1995", fact: "Sacred waters from 20 holy sites worldwide were combined here for the UN's 50th anniversary. UN Secretary General Boutros Boutros-Ghali attended the dedication." },
      { name: "Outdoor Labyrinth", year: "1995", fact: "A replica of the Chartres Cathedral labyrinth. Used for meditation and reflection — a peaceful walk in the heart of the city." }
    ],
    keyFacts: [
      { year: "1945", text: "Thousands of UN Conference attendees gathered here" },
      { year: "1969", text: "Brotherhood of Man Plaque installed" },
      { year: "1995", text: "50th anniversary: Boutros-Ghali attended fountain dedication" },
      { year: "2025", text: "80th anniversary service, June 26, Bishop Rios officiating" }
    ],
    videos: [
      {
        src: "https://video.squarespace-cdn.com/content/v1/68bf4cfef07f4a4572c027f4/ec3b0c42-aa96-4cec-8e16-83a0c5d42a42/playlist.m3u8",
        title: "Dean Malcolm Clemens Young, Grace Cathedral",
        channel: "UnCharter Trail",
        year: "2025"
      }
    ],
    keyMoment: null, promoCode: "UN80"
  },
  {
    id: "opera-house", n: 6,
    name: "War Memorial Opera House",
    subtitle: "Where the Charter Was Finalized",
    address: "301 Van Ness Ave, San Francisco",
    duration: "15 min",
    lede: "The only venue in SF large enough to hold the entire 1945 UN Conference.",
    story: "When 850 delegates from 50 nations arrived in San Francisco in the spring of 1945, organizers needed a single hall large enough to seat them all. The War Memorial Opera House — opened in 1932 as home of the San Francisco Opera, designed by Arthur Brown Jr. alongside G. Albert Lansburgh — became the conference's primary venue. On June 25, 1945, the UN Charter was formally finalized in the closing session here, before being carried next door to Herbst Theatre for the formal signing. President Truman delivered the closing address. A decade later, in 1955, President Eisenhower returned for the 10th anniversary celebration.",
    landmarks: [
      { name: "Main Auditorium", year: "1945", fact: "June 25, 1945: the UN Charter was finalized during the closing session of the conference. President Truman delivered the closing address from this stage. One of the only places in the city where so many people could gather in the same room." }
    ],
    keyFacts: [
      { year: "1923", text: "San Francisco Opera Company established" },
      { year: "1932", text: "Opera House opened as permanent home of SF Opera" },
      { year: "1945", text: "UN Charter finalized in the closing session, June 25" },
      { year: "1955", text: "10th anniversary celebration: President Eisenhower spoke" }
    ],
    videos: [],
    keyMoment: {
      date: "June 25, 1945",
      headline: "The Charter Is Finalized",
      detail: "After two months of negotiations, delegates voted to adopt the UN Charter in the closing session held in this auditorium. The following day, they moved next door to sign it."
    },
    promoCode: null
  },
  {
    id: "veterans-building", n: 7,
    name: "Veterans Building · Herbst Theatre",
    subtitle: "Where the Charter Was Signed",
    address: "401 Van Ness Ave, San Francisco",
    duration: "15 min",
    lede: "Arguably the most important landmark on this trail.",
    story: "On June 26, 1945 — the day after the Charter was finalized at the Opera House next door — President Harry S. Truman and representatives of 50 founding nations gathered in Herbst Theatre to sign the United Nations Charter. The theatre's murals, painted by Welsh artist Frank Brangwyn for the 1915 Panama-Pacific International Exposition, bore witness to the most consequential diplomatic moment of the 20th century. Throughout the conference, the building's kitchen had quietly served every delegate every meal, accommodating every dietary and cultural preference of representatives from around the world. Today Herbst Theatre hosts more than 200 cultural performances annually.",
    landmarks: [
      { name: "Herbst Theatre", year: "1945", fact: "June 26, 1945: President Truman and representatives of all 50 founding nations signed the United Nations Charter here. The room was transformed overnight from a conference session hall into the birthplace of an institution that still shapes the world." },
      { name: "Brangwyn Murals", year: "1915", fact: "Welsh artist Frank Brangwyn painted these murals for the 1915 Panama-Pacific International Exposition. Thirty years later, they looked down on one of the most significant diplomatic signings in human history." }
    ],
    keyFacts: [
      { year: "1915", text: "Brangwyn murals commissioned for Panama-Pacific Exposition" },
      { year: "1945", text: "UN Charter signed by 50 nations, June 26 — the United Nations is born" },
      { year: "Today", text: "200+ cultural performances annually in Herbst Theatre" }
    ],
    videos: [],
    keyMoment: {
      date: "June 26, 1945",
      headline: "The UN Charter Is Signed",
      detail: "President Truman and representatives of 50 founding nations signed the United Nations Charter in Herbst Theatre, giving birth to the institution that bears this trail's name."
    },
    promoCode: null
  }
];

window.COORDS = {
  "un-plaza":         [37.77957, -122.41368],
  "sf-library":       [37.77912, -122.41573],
  "city-hall":        [37.77927, -122.41924],
  "fairmont":         [37.79243, -122.41015],
  "grace-cathedral":  [37.79189, -122.41281],
  "opera-house":      [37.77848, -122.42050],
  "veterans-building":[37.77926, -122.42055]
};

window.ROUTES = {
  "un-plaza": [
    { m: "straight", street: "Market St", dist: "120 m" },
    { m: "right",    street: "Hyde St",   dist: "40 m" },
    { m: "arrive",   street: "UN Plaza · Fulton St" }
  ],
  "sf-library": [
    { m: "straight",      street: "Fulton St", dist: "90 m" },
    { m: "slight-right",  street: "Larkin St", dist: "30 m" },
    { m: "arrive",        street: "Main Library · 100 Larkin" }
  ],
  "city-hall": [
    { m: "straight", street: "Grove St",                    dist: "160 m" },
    { m: "right",    street: "Dr Carlton B. Goodlett Pl",   dist: "60 m" },
    { m: "arrive",   street: "City Hall steps" }
  ],
  "fairmont": [
    { m: "straight", street: "Powell St",      dist: "550 m" },
    { m: "right",    street: "California St",  dist: "210 m" },
    { m: "left",     street: "Mason St",       dist: "40 m" },
    { m: "arrive",   street: "The Fairmont · 950 Mason" }
  ],
  "grace-cathedral": [
    { m: "straight", street: "California St", dist: "160 m" },
    { m: "arrive",   street: "Grace Cathedral · 1100 California" }
  ],
  "opera-house": [
    { m: "straight", street: "Grove St",     dist: "320 m" },
    { m: "left",     street: "Van Ness Ave", dist: "40 m" },
    { m: "arrive",   street: "Opera House · 301 Van Ness" }
  ],
  "veterans-building": [
    { m: "straight", street: "Van Ness Ave", dist: "90 m" },
    { m: "arrive",   street: "Veterans Building · 401 Van Ness" }
  ]
};
