import streamlit as st
import streamlit.components.v1 as components
import json
import os
# 1. 페이지 설정
st.set_page_config(page_title="Drunken Plane", page_icon="✈️", layout="wide")
st.markdown("""
""", unsafe_allow_html=True)
# 2. 데이터 로드
try:
with open('places.json', 'r', encoding='utf-8') as f:
PLACE_DB = json.load(f)
except FileNotFoundError:
PLACE_DB = {}
st.error("🚨 'places.json' 파일을 찾을 수 없습니다. V49.0 데이터를 저장해주세요!")
db_json = json.dumps(PLACE_DB)
# 3. HTML/JS
html_code = f"""