/* Scoped to: ss-tourism-template-travel_info */
(function() {
  'use strict';
  var componentRoots = document.querySelectorAll('[data-component-slug="ss-tourism-template-travel_info"]');
  componentRoots.forEach(function(componentRoot) {
    // Helper to query within component, with fallback to document for sibling elements
    var $ = function(sel) { 
      return componentRoot.querySelector(sel) || document.querySelector('[data-component-slug="ss-tourism-template-travel_info"] ~ ' + sel) || document.querySelector(sel);
    };
    var $$ = function(sel) { 
      var results = componentRoot.querySelectorAll(sel);
      return results.length ? results : document.querySelectorAll(sel);
    };
    // Original component JS runs in this scope
    document.querySelectorAll(".accordion-header").forEach(button => { button.addEventListener("click", () => { const item = button.parentElement; const content = item.querySelector(".accordion-content"); const icon = button.querySelector(".accordion-icon"); document.querySelectorAll(".accordion-content").forEach(el => { if (el !== content) { el.classList.add("hidden"); el.previousElementSibling.querySelector(".accordion-icon").textContent = "+"; } }); content.classList.toggle("hidden"); icon.textContent = content.classList.contains("hidden") ? "+" : "−"; }); });
  });
})();