:root{color-scheme:light;--ink:#12243a;--blue:#145bd7;--line:#dce4ef;--muted:#5e6e81;--want:#ee790e;--been:#119463;--again:#8250bd;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Noto Sans TC",sans-serif;color:var(--ink);background:#f5f8fc}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);padding:11px 16px;border-radius:9px;font-size:14px;font-weight:600;min-height:44px}button:hover{background:#eef4ff;border-color:#a9c3ec}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #518de6;outline-offset:3px}[hidden]{display:none!important}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--line);background:#fff;gap:20px}.brand{display:flex;align-items:center;gap:13px}.brand-icon{display:grid;place-items:center;background:var(--blue);color:#fff;width:44px;height:44px;border-radius:12px;font-size:34px;line-height:1}.brand h1{font-size:22px;margin:0;letter-spacing:.04em}.brand-caption{font-size:13px;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:12px}.header-actions a{font-size:14px;min-height:44px;display:flex;align-items:center}.privacy{font-size:13px;color:var(--muted)}.quiet{border-color:transparent;background:transparent;color:var(--muted)}.login-panel{min-height:calc(100dvh - 88px);display:grid;place-items:center;padding:40px 20px;background:radial-gradient(ellipse at 75% 20%,#dceaff 0,transparent 60%),#f5f8fc}.login-card{max-width:520px;width:100%;padding:44px;background:#fff;border:1px solid var(--line);border-top:4px solid var(--blue);border-radius:14px;box-shadow:0 18px 55px #12243a0c}.login-mark{font-size:50px;color:var(--blue)}.eyebrow{font-size:12px!important;letter-spacing:.13em;color:var(--muted)}.login-card h2{font-size:34px;line-height:1.45;margin:14px 0 20px}.login-card p{font-size:16px;color:var(--muted);line-height:1.7}.primary{background:var(--blue);color:#fff;border-color:var(--blue);margin-top:14px;padding:13px 24px}.primary:hover{background:#124bac;color:#fff}.helper{font-size:14px!important;min-height:24px}.helper:empty{display:none}#workspace{height:calc(100dvh - 88px);display:grid;grid-template-columns:380px minmax(0,1fr)}.sidebar{display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--line);min-height:0}.sidebar-head{padding:25px 24px 12px}.sidebar-head h2{font-size:20px;margin:0 0 8px}.sidebar-head h2 span{font-weight:500;color:var(--muted);font-size:14px;margin-left:8px}.sidebar-head p{font-size:13px;color:var(--muted);margin:0;line-height:1.6}.filters{padding:8px 24px 20px;border-bottom:1px solid var(--line)}input[type=search]{width:100%;border:1px solid var(--line);border-radius:8px;background:#f7f9fd;padding:12px;font-size:16px;min-height:46px}.filter-row{display:flex;gap:12px;margin-top:14px}.filter-row label{font-size:13px;color:var(--muted);flex:1}select{width:100%;display:block;margin-top:6px;background:white;border:1px solid var(--line);border-radius:7px;padding:9px 7px;font-size:14px;color:var(--ink);min-height:44px}.legend{display:flex;gap:20px;margin-top:17px;font-size:13px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:8px;height:8px;border-radius:50%;display:inline-block}.want{background:var(--want)}.been{background:var(--been)}.again{background:var(--again)}.place-list{overflow-y:auto;flex:1;min-height:0}.place-card{padding:20px 24px;border-bottom:1px solid #edf1f7}.place-card.active{background:#edf4ff;border-left:3px solid var(--blue);padding-left:21px}.place-top{display:flex;gap:12px;align-items:flex-start}.place-icon{flex:0 0 29.4px;width:29.4px;height:29.4px;display:grid;place-items:center;color:white;background:var(--status-color);border-radius:7px}.place-main{min-width:0;flex:1}.place-name{font-size:16px;font-weight:650;line-height:1.55;text-align:left;padding:0;min-height:unset;border:0;background:none;border-radius:0;overflow-wrap:anywhere}.place-name:hover{color:var(--blue);background:none}.place-meta{display:flex;align-items:center;gap:10px;margin-top:6px;font-size:12px;color:var(--muted)}.status-badge{color:var(--status-color);background:color-mix(in srgb,var(--status-color) 9%,white);padding:3px 7px;border-radius:4px;font-weight:600}.address{font-size:14px;color:var(--muted);line-height:1.6;margin:14px 0 10px;overflow-wrap:anywhere}.note{font-size:13px;color:#936006;background:#fff6df;padding:9px 11px;border-radius:6px;line-height:1.6;margin:10px 0}.place-actions{display:flex;gap:12px;align-items:center;margin-top:13px}.navigate{background:var(--blue);color:white!important;padding:9px 13px;border-radius:7px;font-size:14px;font-weight:600;display:inline-flex;align-items:center;min-height:44px}.navigate:hover{background:#124bac;text-decoration:none}.original-link{font-size:13px;display:inline-flex;align-items:center;min-height:44px}.sidebar-footer{padding:13px 24px;font-size:12px;line-height:1.6;color:var(--muted);background:#f8fafd;border-top:1px solid var(--line)}.map-panel{position:relative;min-height:0;background:#e7edf4}#map{position:absolute;inset:0;z-index:0}.map-fit{position:absolute;right:16px;top:16px;z-index:500;background:white;box-shadow:0 3px 12px #12243a20}.category-marker{border:none!important;background:none!important}.marker-pin{width:25.2px;height:25.2px;background:var(--status-color);border:2px solid white;box-shadow:0 2px 7px #0005;border-radius:50% 50% 50% 4px;transform:rotate(-45deg);display:grid;place-items:center}.marker-pin svg{transform:rotate(45deg);width:14px;height:14px;color:white}.place-icon svg{width:16.8px;height:16.8px}.leaflet-popup-content{font-family:inherit;font-size:14px;line-height:1.6;min-width:200px}.leaflet-popup-content h3{font-size:16px;margin:0 0 5px}.leaflet-popup-content p{margin:6px 0}.leaflet-popup-content .navigate{margin-top:10px}.leaflet-control-attribution{font-size:12px!important}.data-message{font-size:14px;line-height:1.6;padding:13px 24px;background:#fff6df;color:#79551c}.empty{padding:36px 24px;color:var(--muted);line-height:1.7}.mobile-nav{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#map-error{position:absolute;bottom:32px;left:20px;right:20px;z-index:500;padding:12px;background:white;border-radius:8px;font-size:14px;box-shadow:0 3px 12px #12243a20}
.popup-status-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.visit-button{padding:8px 10px;min-height:44px;color:#fff;border:2px solid transparent;font-size:13px;flex:1;white-space:nowrap}
.visit-button[data-status="想去"]{background:#bf5700}
.visit-button[data-status="去過"]{background:#08764f}
.visit-button[data-status="想再去"]{background:#7141a8}
.visit-button:hover{filter:brightness(.9);color:#fff}
.visit-button[aria-pressed="true"]{border-color:#fff;box-shadow:0 0 0 2px #12243a}
.visit-button:disabled{opacity:.65;cursor:wait}
.popup-status-actions .save-message{width:100%;font-size:12px;color:#5e6e81;margin:2px 0 0;overflow-wrap:anywhere}
.save-message:empty{display:none}

/* 浮動玻璃介面：地圖延伸到面板及工具列後方。 */
:root{--glass:rgba(250,253,255,.72);--glass-line:rgba(255,255,255,.85);--glass-shadow:0 12px 40px #18345120;--muted:#455870}
body{height:100dvh;overflow:hidden}
#workspace,body.sidebar-closed #workspace{position:fixed;inset:0;display:block;height:100dvh;isolation:isolate}
.map-panel{position:absolute;inset:0;height:100%;width:100%}
.topbar,.sidebar,.leaflet-popup-content-wrapper,.leaflet-popup-tip,.map-fit,.sidebar-toggle,.leaflet-bar,.login-card,#map-error{background:var(--glass);-webkit-backdrop-filter:blur(24px) saturate(145%);backdrop-filter:blur(24px) saturate(145%);border:1px solid var(--glass-line);box-shadow:var(--glass-shadow)}
.topbar{position:fixed;top:16px;left:16px;right:16px;z-index:1000;height:72px;padding:12px 20px;border-radius:22px}
.brand h1{font-size:20px}.brand-icon{width:40px;height:40px;border-radius:14px}
.header-actions button{background:#ffffff45;border-color:#ffffffa0;border-radius:14px}.header-actions .quiet{background:transparent;border-color:transparent}
.sidebar{position:absolute;left:16px;top:104px;bottom:26px;width:360px;z-index:800;border-radius:26px;overflow:hidden;display:flex;flex-direction:column;min-height:0}
.sidebar-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:22px 20px 12px;flex-shrink:0}
.sidebar-head h2{font-size:20px}.sidebar-head p{font-size:12px}.sidebar-close{flex:0 0 44px;padding:8px;background:#ffffff60;border-radius:50%;font-size:18px}
.filters{padding:8px 20px 18px;border-bottom:1px solid #ffffff90;flex-shrink:0}
input[type=search],select{background:#ffffff65;border-color:#ffffffb0;border-radius:14px;box-shadow:inset 0 1px 0 #ffffffa0}
input[type=search]{padding:12px 14px}select{border-radius:12px}
.place-list{flex:1 1 0;overscroll-behavior:contain;scrollbar-width:thin}
/* Keep long data warnings from consuming the space reserved for places. */
.data-message{flex-shrink:0;max-height:min(84px,16%);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.data-notices{flex-shrink:0;max-height:min(180px,28%);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;background:#fff6df;color:#79551c;font-size:13px;line-height:1.6}
.data-notices summary{cursor:pointer;padding:10px 20px;min-height:44px;font-weight:600}
.data-notices summary:focus-visible{outline:3px solid #518de6;outline-offset:-3px}
.data-notices ul{margin:0;padding:0 20px 12px 38px}.data-notices li+li{margin-top:8px}
.place-card{margin:0 10px;padding:18px 10px;border-bottom:1px solid #ffffffb0;background:transparent}
.place-card.active{background:#ffffff65;border-left:0;padding-left:10px;border-radius:16px}
.place-name{font-size:15px}.address{color:#455870}.status-badge{background:#ffffffa0}.note{background:#fff4d7bb}
.sidebar-footer{background:#ffffff40;border-top-color:#ffffff90;padding:12px 20px}
.sidebar-toggle{position:absolute;left:392px;top:104px;z-index:500;border-radius:16px}
body.sidebar-closed .sidebar{display:none}body.sidebar-closed .sidebar-toggle{left:16px}
.map-fit{top:104px;right:16px;border-radius:16px}
.sheet-handle,.sidebar-backdrop{display:none}
.leaflet-popup-content-wrapper{border-radius:22px}.leaflet-popup-content{margin:18px 20px;max-width:260px}.leaflet-popup-tip{box-shadow:none}.leaflet-container a.leaflet-popup-close-button{top:7px;right:7px;color:#455870}
.leaflet-bar{border-radius:16px!important;overflow:hidden}.leaflet-bar a{background:#ffffff60;color:var(--ink)}.leaflet-bar a:hover{background:#ffffffb0}
.leaflet-bottom.leaflet-right .leaflet-control-zoom{margin-right:18px;margin-bottom:38px}
.leaflet-control-attribution{background:#ffffffb0!important;border-radius:8px 0 0 0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.login-panel{height:100dvh;padding-top:110px;overflow:auto}.login-card{border-radius:28px}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root{--glass:rgba(250,253,255,.96)}}
@media(prefers-reduced-transparency:reduce){:root{--glass:rgba(250,253,255,.96)}}
@media(max-width:760px){
  /* 地圖背景延伸至 Safari 工具列後方，介面仍依可見高度定位。 */
  .map-panel{height:100lvh;min-height:100%}
  .map-panel .leaflet-bottom{bottom:max(0px,calc(100lvh - 100dvh))}
  .topbar{top:calc(10px + env(safe-area-inset-top));left:10px;right:10px;height:auto;min-height:94px;padding:12px 14px;gap:8px;align-items:flex-start;border-radius:22px}
  .brand{gap:9px}.brand h1{font-size:17px}.brand-icon{height:34px;width:34px;font-size:27px;border-radius:12px}.brand-caption{font-size:11px}
  .header-actions{gap:2px;flex-wrap:wrap;justify-content:flex-end;max-width:178px}.header-actions button,.header-actions a{font-size:11px;padding:7px 8px}.privacy{display:none}
  .sidebar,body.sidebar-closed .sidebar{display:flex;inset:auto 10px 0;width:auto;height:min(72dvh,640px);max-height:calc(100dvh - 136px - env(safe-area-inset-top));padding-bottom:env(safe-area-inset-bottom);border-radius:30px 30px 0 0;z-index:800;transition:height .25s ease}
  body.sidebar-closed .sidebar{height:calc(88px + env(safe-area-inset-bottom))}
  .sheet-handle{display:flex;align-items:center;justify-content:center;flex:0 0 32px;min-height:32px;width:100%;border:0;border-radius:0;background:transparent;padding:0;touch-action:none;cursor:ns-resize}
  .sheet-handle:hover{background:transparent}.sheet-handle span{width:40px;height:5px;border-radius:9px;background:#54667865}
  .sidebar-head{padding:0 18px 6px;min-height:52px;align-items:center}.sidebar-head h2{font-size:18px;margin-bottom:3px}.sidebar-head p{font-size:10px}.sidebar-close{display:none}
  .filters{padding:6px 18px 14px}.filter-row{margin-top:12px}.legend{gap:18px;margin-top:13px}
  body.sidebar-closed .filter-row,body.sidebar-closed .legend,body.sidebar-closed .place-list,body.sidebar-closed .data-message,body.sidebar-closed .data-notices,body.sidebar-closed .sidebar-footer{display:none}
  body.sidebar-closed .filters{border:0}.sidebar-footer{display:none}.place-card{padding:16px 8px}.place-card.active{padding-left:8px}
  .sidebar-toggle{display:none}
  body.sidebar-closed .filters{display:none}
  .sidebar.sheet-dragging{transition:none;user-select:none}.map-fit{top:calc(120px + env(safe-area-inset-top));right:12px;font-size:12px;padding:10px 12px}
  .leaflet-bottom.leaflet-right .leaflet-control-zoom{margin-right:12px;margin-bottom:calc(216px + env(safe-area-inset-bottom))}
  body:not(.sidebar-closed) .leaflet-control-zoom{visibility:hidden}
  .leaflet-popup-content{margin:16px;max-width:250px}.login-panel{padding-top:136px}.login-card{padding:30px 24px}.login-card h2{font-size:28px}
  #map-error{bottom:212px;left:12px;right:12px}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}

@media(max-width:360px){.map-fit{top:calc(140px + env(safe-area-inset-top))}}
