* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; background:#f5f5f5; overflow:hidden; }
#app { display:flex; height:100vh; width:100vw; }
#sidebar { width:360px; background:#fff; box-shadow:2px 0 8px rgba(0,0,0,0.08); display:flex; flex-direction:column; z-index:1000; transition:transform 0.3s; }
#sidebar.hidden-mobile { transform:translateX(-100%); position:absolute; height:100vh; }
.sidebar-header { padding:16px; border-bottom:1px solid #eee; background:#fff; }
.sidebar-header h1 { font-size:18px; font-weight:600; color:#1a1a1a; margin-bottom:12px; }
.search-box { display:flex; gap:8px; }
.search-box input { flex:1; padding:10px 14px; border:1px solid #ddd; border-radius:8px; font-size:14px; outline:none; }
.search-box input:focus { border-color:#2563eb; }
.search-box button { padding:10px 16px; background:#2563eb; color:#fff; border:none; border-radius:8px; cursor:pointer; font-size:14px; }
.search-box button:hover { background:#1d4ed8; }
.tabs { display:flex; border-bottom:1px solid #eee; }
.tab { flex:1; padding:12px; text-align:center; cursor:pointer; font-size:13px; color:#666; border-bottom:2px solid transparent; transition:all 0.2s; }
.tab.active { color:#2563eb; border-bottom-color:#2563eb; font-weight:500; }
.tab:hover { color:#2563eb; }
.tab-content { flex:1; overflow-y:auto; padding:12px; }
.tab-pane { display:none; }
.tab-pane.active { display:block; }
.item-card { background:#fff; border:1px solid #eee; border-radius:10px; padding:14px; margin-bottom:10px; cursor:pointer; transition:box-shadow 0.2s; }
.item-card:hover { box-shadow:0 2px 8px rgba(0,0,0,0.08); }
.item-card h3 { font-size:15px; font-weight:600; color:#1a1a1a; margin-bottom:6px; }
.item-card p { font-size:13px; color:#666; line-height:1.4; }
.item-card .meta { font-size:12px; color:#999; margin-top:8px; }
.item-card img { width:100%; height:120px; object-fit:cover; border-radius:8px; margin-bottom:8px; display:block; }
#map { flex:1; position:relative; }
.locate-btn { position:absolute; bottom:24px; right:24px; z-index:1000; width:44px; height:44px; background:#fff; border:1px solid #ddd; border-radius:50%; cursor:pointer; font-size:20px; box-shadow:0 2px 8px rgba(0,0,0,0.12); display:flex; align-items:center; justify-content:center; }
.locate-btn:hover { background:#f5f5f5; }
#auth-btn { position:absolute; top:12px; right:12px; z-index:1000; padding:10px 20px; background:#fff; border:1px solid #ddd; border-radius:8px; cursor:pointer; font-size:14px; font-weight:500; box-shadow:0 2px 6px rgba(0,0,0,0.08); }
#auth-btn:hover { background:#f9f9f9; }
.user-menu { position:absolute; top:12px; right:12px; z-index:1000; display:none; }
.user-menu.active { display:flex; align-items:center; gap:8px; }
.user-menu .avatar { width:36px; height:36px; border-radius:50%; background:#2563eb; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; cursor:pointer; font-size:14px; }
.dropdown { position:absolute; top:48px; right:0; background:#fff; border:1px solid #eee; border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,0.1); display:none; min-width:180px; }
.dropdown.active { display:block; }
.dropdown a { display:block; padding:12px 16px; color:#333; text-decoration:none; font-size:14px; }
.dropdown a:hover { background:#f5f5f5; }
.route-nav { position:absolute; bottom:80px; left:50%; transform:translateX(-50%); background:#fff; padding:16px 24px; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,0.15); z-index:1000; display:none; min-width:340px; max-width:420px; text-align:center; }
.route-nav.active { display:block; }
.route-nav h4 { margin-bottom:8px; font-size:16px; }
.route-nav p { color:#666; margin-bottom:8px; font-size:14px; }
.route-nav #routeDist { color:#2563eb; font-weight:700; font-size:18px; margin:8px 0; }
.route-nav .arrival-alert { color:#22c55e; font-weight:700; font-size:16px; margin:8px 0; }
.route-nav .btn-primary { width:auto; padding:10px 20px; margin-right:8px; margin-top:8px; }
.route-nav .btn-secondary { width:auto; padding:10px 16px; margin-top:8px; }
.route-nav select { padding:6px 10px; border-radius:6px; border:1px solid #ddd; font-size:13px; margin-bottom:10px; }
.modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); display:none; align-items:center; justify-content:center; z-index:2000; }
.modal-overlay.active { display:flex; }
.modal { background:#fff; border-radius:12px; width:420px; max-width:90vw; max-height:90vh; overflow-y:auto; box-shadow:0 10px 40px rgba(0,0,0,0.15); position:relative; }
.modal.wide { width:640px; }
.modal-header { padding:20px 24px 0; }
.modal-header h2 { font-size:20px; font-weight:600; }
.modal-body { padding:20px 24px; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:13px; font-weight:500; color:#444; margin-bottom:6px; }
.form-group input { width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:8px; font-size:14px; outline:none; }
.form-group input:focus { border-color:#2563eb; }
.btn-primary { width:100%; padding:12px; background:#2563eb; color:#fff; border:none; border-radius:8px; font-size:15px; font-weight:500; cursor:pointer; }
.btn-primary:hover { background:#1d4ed8; }
.btn-secondary { width:100%; padding:12px; background:#f5f5f5; color:#333; border:1px solid #ddd; border-radius:8px; font-size:15px; cursor:pointer; margin-top:8px; }
.modal-close { position:absolute; top:16px; right:16px; font-size:22px; cursor:pointer; color:#999; background:none; border:none; }
.poi-detail { padding:20px; }
.poi-detail h2 { font-size:22px; margin-bottom:12px; }
.poi-detail .photos { display:flex; gap:8px; overflow-x:auto; margin-bottom:16px; padding-bottom:8px; }
.poi-detail .photos img { width:auto; min-width:220px; height:180px; border-radius:8px; object-fit:cover; flex-shrink:0; background:#eee; }
.poi-detail .description { font-size:15px; line-height:1.6; color:#444; margin-bottom:16px; }
.poi-detail audio { width:100%; margin-bottom:16px; }
.poi-detail .video-wrap { width:100%; height:300px; border-radius:8px; overflow:hidden; background:#000; }
.poi-detail .video-wrap iframe { width:100%; height:100%; border:none; }
.mobile-toggle { display:none; position:fixed; top:12px; left:12px; z-index:1001; padding:10px; background:#fff; border:1px solid #ddd; border-radius:8px; cursor:pointer; font-size:18px; }
.notification { position:fixed; top:60px; right:12px; background:#fff; padding:14px 20px; border-radius:10px; box-shadow:0 4px 12px rgba(0,0,0,0.12); z-index:3000; display:none; max-width:300px; }
.notification.active { display:block; }
.notification.success { border-left:4px solid #22c55e; }
.notification.error { border-left:4px solid #ef4444; }
@media (max-width:768px) {
  #sidebar { position:fixed; height:100vh; }
  .mobile-toggle { display:block; }
  #auth-btn, .user-menu { top:12px; right:12px; }
  .route-nav { bottom:80px; left:12px; right:12px; transform:none; min-width:auto; }
}
.leaflet-control-attribution{ display:none !important; }
.map-attribution{ position:absolute; bottom:4px; right:4px; z-index:1000; font-size:10px; color:#666; background:rgba(255,255,255,0.7); padding:2px 6px; border-radius:4px; }
