{# Standalone HTML document used as iframe srcdoc for the article editor preview.
   Includes Leaflet so map shortcodes render correctly. #}
<!doctype html>
<html>
<head>
  <link rel="stylesheet" href="{{ url_for('static', filename='css/output.css') }}">
  <link rel="stylesheet" href="{{ url_for('static', filename='vendor/leaflet/leaflet.min.css') }}">
  <style>html,body{margin:0;padding:0}body{padding:2rem 2.5rem}</style>
</head>
<body>
  <div class="article-body">{{ body_html | safe }}</div>
  <script>
  window.LEAFLET_JS_URL = '{{ url_for("static", filename="vendor/leaflet/leaflet.min.js") }}';
  window.__MAP_T = {score_label:"Padelnomics Score",venues:"venues",pop:"pop",click_explore:"Click to explore →",coming_soon:"Coming soon",courts:"courts",indoor:"indoor",outdoor:"outdoor"};
  </script>
  <script src="{{ url_for('static', filename='js/map-markers.js') }}"></script>
  <script src="{{ url_for('static', filename='js/article-maps.js') }}"></script>
</body>
</html>
