  #map { position: relative; z-index: 0; }
  .pm-pin { background: none; border: 0; }
  .leaflet-popup-content { margin: 10px 12px; font-family: inherit; }
  :root { box-sizing: border-box; --ink: #141414; --paper: #ffffff; --cream: #fffdf3; --brand: #ffd21f; --brand-soft: #fff1a8; --good: #b4e04a; --good-soft: #eef8c4; --off: #ececea; --off-ink: #6b6b63; --warn: #b45309; --mute: #5b5b52; --lime: var(--brand); --sun: var(--brand); --tang: var(--warn); --shadow: 2px 2px 0 rgba(20,20,20,.9); }
  body { font-weight: 400; background-color: var(--cream); background-image: radial-gradient(rgba(20,20,20,.035) 1.5px, transparent 1.5px); background-size: 24px 24px; color: var(--ink); font-family: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .panel { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
  .field { background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 500; color: var(--ink); }
  .chip-off, .chip-on, .chip-dark-on, .chip-sun, .chip-tang { border: 1.5px solid var(--ink) !important; font-weight: 500; box-shadow: 1px 1px 0 var(--ink); }
  .chip-off { background: #fff; color: var(--ink); border: 1.5px solid var(--ink) !important; box-shadow: none; }
  .chip-off:hover { background: var(--brand-soft); }
  .chip-on { background: var(--lime); color: var(--ink); }
  .chip-dark-on { background: var(--ink); color: #fff; }
  .chip-sun { background: var(--sun); color: var(--ink); }
  .chip-tang { background: var(--tang); color: #fff; }
  .chip-off:active, .chip-on:active, .chip-dark-on:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
  .seg button { white-space: nowrap; }
  #areaChips:empty { display: none; }
  .seg { display: inline-flex; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px; font-size: 14px; font-weight: 500; }
  .seg-on { background: var(--ink); color: #fff; }
  header.site { background: #c9ec62; border-bottom: 1.5px solid var(--ink); color: var(--ink); }
  .search { background: #fff; border: 1.5px solid var(--ink); box-shadow: var(--shadow); color: var(--ink); }
  .sync { border: 1.5px solid var(--ink); background: #fff; font-weight: 500; }
  .sync.err { background: var(--warn); color: #fff; }
  .hero { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; padding: 8px 0 4px; }
  .hero h1 { font-weight: 600; font-size: clamp(24px, 4.4vw, 34px); line-height: 1.25; letter-spacing: 0; }
  .hero .mark { background: linear-gradient(transparent 58%, var(--brand) 58%); padding: 0 4px; }
  .hero p { margin-top: 10px; line-height: 1.7; color: var(--mute); font-weight: 400; font-size: 14px; max-width: 34em; }
  .hero-art { width: clamp(90px, 22vw, 190px); flex-shrink: 0; filter: drop-shadow(3px 3px 0 var(--ink)); }
  .qbtn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--shadow); transition: transform .08s, box-shadow .08s, background .15s; }
  @media (max-width: 480px) { .qbtn { padding: 7px 12px; font-size: 14px; gap: 5px; } .hero { padding-top: 0; } }
  .qbtn:hover { background: var(--brand-soft); }
  .qbtn:active { transform: scale(0.96); box-shadow: 0 0 0 var(--ink); }
  .qbtn.on { background: var(--lime); }
  .venue-card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .2s; }
  .venue-card:hover { transform: translate(-2px, -4px) rotate(-0.5deg); box-shadow: 6px 6px 0 rgba(20,20,20,1); }
  .venue-card:focus-visible { outline: 3px solid var(--tang); outline-offset: 2px; }
  .strip { width: 8px; background: var(--lime); border-right: 1.5px solid var(--ink); }
  .strip.free { background: var(--good); }
  .thumb { background: #f1eedf; border-right: 1.5px solid var(--ink); }
  .badge { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--ink); white-space: nowrap; }
  .badge-on { background: var(--good); color: var(--ink); } .badge-off { background: var(--off); color: var(--off-ink); } .badge-ask { background: var(--brand-soft); }
  .court-pill { font-size: 14px; font-weight: 600; background: var(--ink); color: #fff; padding: 2px 12px; border-radius: 10px; }
  .tag { font-size: 12px; font-weight: 500; background: #f3f0e0; border-radius: 6px; padding: 3px 8px; color: var(--mute); border: none; }
  .btn-s { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; font-size: 12px; font-weight: 600; color: var(--ink); }
  .btn-s:hover { background: var(--brand-soft); }
  .btn-m { border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 2px 2px 0 var(--ink); }
  .btn-m:hover { background: var(--brand-soft); }
  .btn-primary { background: var(--lime); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); }
  .btn-primary:hover { background: #ffc400; }
  .modal-box { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 22px; }
  #modal { overscroll-behavior: contain; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
  #overlay { transition: opacity .22s ease; }
  #overlay:not(.hidden) { animation: ovIn .22s ease backwards; }
  #overlay:not(.hidden) .modal-box { animation: sheetIn .34s cubic-bezier(.22, 1, .36, 1) backwards; }
  #overlay.closing { opacity: 0; pointer-events: none; }
  #overlay.closing .modal-box { transform: translateY(32px); transition: transform .22s ease; }
  @keyframes ovIn { from { opacity: 0 } to { opacity: 1 } }
  @keyframes sheetIn { from { transform: translateY(56px); opacity: .5 } to { transform: none; opacity: 1 } }
  @media (min-width: 640px) { @keyframes sheetIn { from { transform: scale(.96); opacity: 0 } to { transform: none; opacity: 1 } } }
  #modal { position: relative; }
  .sheet-grip { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.25); z-index: 5; pointer-events: none; }
  @media (min-width: 640px) { .sheet-grip { display: none; } }
  html.no-scroll, html.no-scroll body { overflow: hidden; }
  a, button, [role="button"], select, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  #galMain { will-change: transform; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
  .price-big { font-weight: 600; }
  .link-oops { font-weight: 500; text-decoration: underline; text-decoration-color: var(--tang); text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--ink); }
  .pm-pill { display: inline-block; transform: translate(-50%, -50%); background: #fff; border: 1.5px solid var(--ink); color: var(--ink); border-radius: 9999px; padding: 1px 9px; font: 600 12px/18px "Noto Sans TC", system-ui, sans-serif; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); }
  .pm-pill.on { background: var(--good); color: var(--ink); }
  .pm-pill.free { background: var(--brand); color: var(--ink); }
  /* 手機版篩選：更緊湊、一列一個重點，橫向捲動的列右側淡出提示還有更多 */
  @media (max-width: 639px) {
    #filterBody { gap: 0; }
    #filterBody > * + * { margin-top: 10px; }
    #cityChips button, #areaChips button, #tagChips button { font-size: 13px; padding: 5px 12px; }
    #cityChips, #areaChips, #tagChips, #toggleRow { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; margin-right: -4px;
      -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
    #toggleRow > * { flex-shrink: 0; }
    #rangeBox { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(255,208,0,.18); border: 1.5px dashed rgba(26,26,26,.35); }
    #rangeBox select.field { flex: 1 1 0; min-width: 0; }
    #rangeBox .rg-sel { display: flex; align-items: center; gap: 6px; }
    #rangeBox .rg-sel .rg-pair { flex: 2 1 0; display: flex; align-items: center; gap: 4px; min-width: 0; }
    #rangeBox .rg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    #priceSel, #sortSel { flex: 1 1 0; min-width: 0; width: 100%; }
    #filterBody label.sel-lbl { flex-direction: column; align-items: stretch; gap: 3px; color: var(--mute); }
  }
  /* 手機：往下滑時，標題列（Logo、同步、回饋）跟著捲走，只留搜尋列固定在最上方 */
  @media (max-width: 639px) { header.site { top: calc(var(--hdr-hide, 0px) * -1); } }
  /* 配色：黃色是品牌色（標題列、選取的篩選、主要按鈕），綠色代表「可預約／營業中」，灰色代表客滿或休息，黑色是文字與框線 */
  .text-amber-500, .text-amber-400, .hover\:text-amber-400:hover { color: #f2a900 !important; }
  .border-lime-400 { border-color: var(--brand) !important; } .bg-lime-400 { background-color: var(--brand) !important; } .bg-lime-50 { background-color: var(--brand-soft) !important; }
  .marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(255,210,31,.5) !important; }
  .marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: rgba(255,210,31,.98) !important; color: var(--ink) !important; font-weight: 700; border: 1.5px solid var(--ink); }
  ::selection { background: var(--brand-soft); color: var(--ink); }
  .chip-scroll { scrollbar-width: none; }
  .chip-scroll::-webkit-scrollbar { display: none; }
  @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
