/* tmw-filter-sheet.css: THE FILTER SHEET (Jake 2026-10-20), one look for every page that filters.
   Used by the Dashboard's search sheet (journal/atlas/index.html, renderStateFilter) and the opening
   calendars (/restaurants/, /hotels/, /golf/, /residences/ via tmw-openings-sheet.js). Phones (under
   900px): a true bottom sheet, flush to the bottom edge, rounded top corners, its footer clearing the
   home indicator. 900px and up: a centred modal. The class names keep the Dashboard's (.atl-sh, .atl-chip)
   so its handlers and the page's own overrides keep working. Pair with tmw-filter-sheet.js. */
.atl-sh { position: fixed; inset: 0; z-index: 9995; display: none; font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif; }
.atl-sh.open { display: block; }
html.atl-sh-on, html.atl-sh-on body { overflow: hidden; }
.atl-sh-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: atlShF .2s ease; }
.atl-sh-pn { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column; border-radius: 28px 28px 0 0; overflow: hidden; color: #F4F5F2;
  background: rgba(18,20,18,.94); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 1px 0 0 rgba(255,255,255,.1), inset -1px 0 0 rgba(255,255,255,.1), 0 -20px 60px rgba(0,0,0,.5); animation: atlShU .34s cubic-bezier(.2,1.1,.3,1); }
@media (min-width: 900px) {
  .atl-sh-pn { left: 50%; right: auto; bottom: auto; top: 10vh; width: min(640px, 92vw); max-height: 80vh; border-radius: 26px; transform: translateX(-50%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.6); animation: atlShZ .22s ease; }
  .atl-sh-grab { display: none; }
}
.atl-sh.still .atl-sh-pn, .atl-sh.still .atl-sh-scrim { animation: none; }
@keyframes atlShU { from { transform: translateY(40%); opacity: .3; } }
@keyframes atlShF { from { opacity: 0; } }
@keyframes atlShZ { from { opacity: 0; transform: translateX(-50%) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .atl-sh-pn, .atl-sh-scrim { animation: none !important; } }
.atl-sh-hd { flex: none; padding: 10px 20px 0; }
.atl-sh-grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin: 0 auto 12px; }
.atl-sh-t { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 600 20px Inter, -apple-system, sans-serif; letter-spacing: -.01em; margin: 4px 0 14px; }
.atl-sh-done { appearance: none; border: 0; background: #F5F5F7; color: #1D1D1F; font: 600 14px Inter, -apple-system, sans-serif; height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer; }
.atl-sh-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 20px 6px; }
/* the footer pads past the home indicator (env() is 0 on desktop) */
.atl-sh-foot { flex: none; padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.08); }
.atl-sh-go { appearance: none; width: 100%; height: 48px; border: 0; border-radius: 999px; background: #F5F5F7; color: #1D1D1F; font: 600 15px Inter, -apple-system, sans-serif; cursor: pointer; transition: transform .15s ease, background .2s, color .2s; }
.atl-sh-go:hover { background: #fff; } .atl-sh-go:active { transform: scale(.98); }
/* "Show N results": the number ticks in when it changes; nothing found reads quieter (still a button) */
.atl-sh-go .tfs-n { display: inline-block; font-variant-numeric: tabular-nums; }
.atl-sh-go .tfs-n.tick { animation: tfsTick .26s cubic-bezier(.2,.9,.3,1); }
@keyframes tfsTick { from { opacity: .2; transform: translateY(5px); } }
.atl-sh-go.zero { background: rgba(255,255,255,.1); color: #C2C9C3; font-weight: 500; }
.atl-sh-go.zero:hover { background: rgba(255,255,255,.14); color: #E4E7E4; }
@media (prefers-reduced-motion: reduce) { .atl-sh-go .tfs-n.tick { animation: none; } }
.atl-sh .mc-search { position: relative; margin: 0 0 14px; }
.atl-sh .mc-search .mc-s-ico { position: absolute; left: 15px; top: 24px; transform: translateY(-50%); width: 17px; height: 17px; fill: none; stroke: #9AA39C; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.atl-sh .mc-search input { display: block; width: 100%; height: 48px; box-sizing: border-box; margin: 0; padding: 0 44px 0 43px; border-radius: 14px; border: 1px solid transparent;
  background: rgba(255,255,255,.08); color: #fff; font: 400 17px Inter, -apple-system, sans-serif; -webkit-appearance: none; appearance: none; }
.atl-sh .mc-search input::placeholder { color: #8e948e; }
.atl-sh .mc-search input:focus { outline: 0; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.1); }
@media (max-width: 899px) { .atl-sh .mc-search input { font-size: 16px; } }
.atl-sh-clr { position: absolute; right: 12px; top: 13px; width: 22px; height: 22px; border: 0; border-radius: 50%; padding: 0; background: rgba(255,255,255,.22); color: #0a0b0a; cursor: pointer; display: none; align-items: center; justify-content: center; }
.atl-sh-clr svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.atl-sh .mc-search:has(input:not(:placeholder-shown):not([readonly])) .atl-sh-clr { display: flex; }
.atl-sh .mc-sug { position: static; margin: 8px 0 0; border: 0; border-radius: 14px; background: rgba(255,255,255,.05); box-shadow: none; max-height: 40vh; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.atl-sh .mc-sug a { padding: 12px 14px; font-size: 15px; border-top: 1px solid rgba(255,255,255,.06); }
.atl-sh .mc-sug a:hover, .atl-sh .mc-sug a.sel { background: rgba(255,255,255,.09); }
.atl-sh .mc-sug .k { font: 600 11px Inter, sans-serif; letter-spacing: .06em; }
.atl-sh-sec { margin: 0 0 18px; }
.atl-sh-sec > small { display: block; font: 700 11px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8e948e; margin: 0 0 9px; }
/* each chip group is one swipeable row (Jake 2026-10-18), running to the sheet's edges */
.atl-sh-chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 -20px; padding: 0 20px 2px; scroll-padding: 0 20px; scroll-snap-type: x proximity; }
.atl-sh-chips::-webkit-scrollbar { display: none; }
.atl-sh-chips > .atl-chip { flex: none; scroll-snap-align: start; }
.atl-chip { appearance: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: none;
  color: #d6d9d6; font: 600 13.5px Inter, -apple-system, sans-serif; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s, border-color .15s; }
.atl-chip:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.atl-chip.on { background: #F4F5F2; color: #0a0b0a; border-color: #F4F5F2; }
/* the Markets row reads like Categories and Year (Jake 2026-10-20): white when chosen (with a small x),
   outline suggestions, a round outline + for the picker */
.atl-chip .x { font-size: 10.5px; opacity: .55; margin-right: -3px; }
.atl-chip.atl-shfull { opacity: .45; cursor: default; }
.atl-chip.atl-pinadd { width: 36px; padding: 0; justify-content: center; font-size: 19px; font-weight: 500; }
.atl-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #888); }
.atl-chip em { font-style: normal; font-size: 11.5px; color: #8e948e; font-variant-numeric: tabular-nums; }
.atl-chip.on em { color: #55595a; }

/* the + picker over the sheet (the Dashboard's .ash-addm look) */
.tfs-pick { display: none; position: fixed; z-index: 9999; width: 300px; box-sizing: border-box; background: #101311; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.8); padding: 8px; font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif; }
.tfs-pick.on { display: block; }
.tfs-pick input { width: 100%; box-sizing: border-box; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #0b0d0b; color: #ECEAE5; font: 400 16px Inter, -apple-system, sans-serif; padding: 0 12px; outline: 0; margin: 0 0 6px; }
.tfs-pick-l { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.tfs-pick-i { appearance: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: #ECEAE5; font: 500 13.5px Inter, -apple-system, sans-serif; text-align: left; cursor: pointer; }
.tfs-pick-i:hover { background: rgba(167,139,250,.12); }
.tfs-pick-i .ck { width: 16px; flex: 0 0 auto; font-style: normal; color: #C4B5FD; font-weight: 700; }
.tfs-pick-i span { flex: 1 1 auto; }
.tfs-pick-i small { color: #9AA39C; font-size: 11.5px; white-space: nowrap; }
.tfs-pick-i .tfs-tag { margin-left: 8px; font: 600 10px Inter, -apple-system, sans-serif; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #8e948e; }
.tfs-pick-i.on { color: #fff; }
.tfs-pick-e { padding: 12px 10px; color: #9AA39C; font: 500 13px Inter, -apple-system, sans-serif; }

/* the page's Filters pill (phones, where the page's own filters are hidden): the quiet glass pill; with
   anything set it turns lavender and reads like the Dashboard's chip ("2 filters", or what is typed) with an x */
.tfs-fw { display: none; }
@media (max-width: 899px) { .tfs-fw { display: flex; } }
.tfs-fpill { display: inline-flex; align-items: center; max-width: 100%; height: 40px; border-radius: 999px; background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background .2s, box-shadow .2s; }
.tfs-fbtn { appearance: none; border: 0; background: none; display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 16px 0 14px; border-radius: 999px;
  color: #ECEAE5; font: 600 14px/1.3 Inter, -apple-system, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tfs-fbtn svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.tfs-fbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding: 2px 0; }
.tfs-fx { display: none; appearance: none; border: 0; cursor: pointer; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0 5px 0 -6px; padding: 0; border-radius: 50%; background: transparent; color: #E4DBFF; opacity: .75; -webkit-tap-highlight-color: transparent; }
.tfs-fx svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.tfs-fx:hover { opacity: 1; background: rgba(167,139,250,.22); }
.tfs-fpill.on { background: rgba(167,139,250,.16); box-shadow: inset 0 0 0 1px rgba(167,139,250,.45); }
.tfs-fpill.on .tfs-fbtn { color: #E4DBFF; }
.tfs-fpill.on .tfs-fx { display: inline-flex; }
