/* The map, carried over from the kestr.app city pages (map.css on the landing site) so the two read as one place. */
#mapview { --muted: #8e8e93; --map-card: #ffffff; --map-ink: #17151f; --map-ink-2: #3a3a44; --chip-ink: #5b5b66; --map-line: #e5e5ea; --soft: #f2f2f7; --lock: #f5f4ff; --fade: rgb(240 240 238 / .95);
  position: relative; overflow: hidden; min-height: 0; background: #f0f0ee; color: var(--map-ink); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
:root[data-theme="dark"] #mapview { --muted: #a3a3a3; --map-card: #272727; --map-ink: #f5f5f5; --map-ink-2: #d4d4d4; --chip-ink: #d4d4d4; --map-line: #3a3a3a; --soft: #333333; --lock: #303030; background: #1d1d1d; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] #mapview { --muted: #a3a3a3; --map-card: #272727; --map-ink: #f5f5f5; --map-ink-2: #d4d4d4; --chip-ink: #d4d4d4; --map-line: #3a3a3a; --soft: #333333; --lock: #303030; background: #1d1d1d; }
}

/* placement in the shell */
#mapview { grid-area: page; height: calc(100vh - var(--bar)); border-top-left-radius: 8px; animation: fade .35s ease both; }

.map-canvas { position: absolute; inset: 0; }
#mapview .maplibregl-map { position: absolute; font: inherit; }
#mapview .maplibregl-ctrl-attrib { font-size: 10px; color: #3a3a44; }
#mapview .maplibregl-ctrl-bottom-right { bottom: 0; }
#mapview button { font-family: inherit; }
#mapview h2, #mapview h3 { margin: 0; }
.you { width: 16px; height: 16px; border-radius: 50%; background: #1b6b3a; border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(27 107 58 / .25); }

.map-top, .map-bottom { position: absolute; z-index: 10; left: 14px; right: 14px; display: grid; gap: 10px; pointer-events: none; }
.map-top > *, .map-bottom > * { pointer-events: auto; min-width: 0; }
.map-top { top: 14px; }
.map-bottom { bottom: 30px; }
.srow { display: flex; align-items: center; gap: 10px; }
#mapview .search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--map-card); border: 1px solid var(--map-line); border-radius: 26px; padding: 0 16px; height: 46px; box-shadow: 0 2px 10px rgb(0 0 0 / .08); }
#mapview .search:focus-within { outline: 2px solid #4f46e5; outline-offset: 1px; }
.search .ico { width: 17px; height: 17px; color: var(--muted); }
#mapview .search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; font: 500 15px 'Inter', system-ui, sans-serif; color: var(--map-ink); }
#mapview .chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.chips::-webkit-scrollbar, .strip::-webkit-scrollbar { display: none; }
#mapview .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--map-line); border-radius: 17px; background: var(--map-card); color: var(--chip-ink); font-weight: 600; font-size: 13.5px; box-shadow: 0 1px 5px rgb(0 0 0 / .08); white-space: nowrap; }
#mapview .chip[aria-pressed="true"] { background: #4f46e5; border-color: #4f46e5; color: #fff; opacity: 1; }
#mapview .chip.now[aria-pressed="true"] { background: #22c55e; border-color: #22c55e; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.chip.now[aria-pressed="true"] .dot { background: #fff; }
.map-note { justify-self: start; background: var(--map-card); color: var(--map-ink-2); border-radius: 16px; padding: 8px 14px; font-size: 13.5px; font-weight: 500; box-shadow: 0 4px 18px rgb(15 15 26 / .16); }
.map-note b { color: var(--map-ink); }
#mapview .map-note .link { color: #6366f1; font-weight: 700; padding: 0 0 0 6px; }

.map-tools { position: absolute; z-index: 9; right: 14px; top: 130px; display: grid; gap: 10px; }
#mapview .map-tools button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--map-card); color: #6366f1; display: grid; place-items: center; box-shadow: 0 2px 10px rgb(0 0 0 / .18); }
.map-tools .ico { width: 20px; height: 20px; }
#mapview.loading [data-refresh] .ico { animation: spin .9s linear infinite; }

#mapview .legend { justify-self: start; display: flex; gap: 14px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--map-ink-2); background: var(--map-card); border-radius: 100px; box-shadow: 0 6px 28px rgb(15 15 26 / .18); }
#mapview .legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
#mapview .legend .p { background: #4f46e5; } #mapview .legend .g { background: #888888; }
.strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
.strip:empty { display: none; }
#mapview .venue-card { flex: none; scroll-snap-align: start; width: 292px; display: flex; gap: 12px; align-items: center; text-align: left; background: var(--map-card); border: 2px solid transparent; border-radius: 20px; padding: 10px 14px 10px 10px; box-shadow: 0 4px 18px rgb(15 15 26 / .16); color: var(--map-ink); }
#mapview .venue-card.active { border-color: #4f46e5; }
.venue-card .ph { flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--lock) center / cover no-repeat; display: grid; place-items: center; font-size: 26px; }
.venue-card .tx { min-width: 0; display: block; }
.venue-card b, .venue-card .m, .venue-card .s { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue-card b { font-size: 15.5px; letter-spacing: -.01em; line-height: 1.25; }
.venue-card .m { font-size: 12.5px; color: var(--muted); }
.venue-card .s { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--map-ink-2); }

/* the venue card: a left panel on wide screens, a bottom sheet on phones */
.map-panel { position: absolute; animation: rise .3s ease both; z-index: 12; left: 14px; top: 122px; width: min(420px, calc(100% - 28px)); max-height: calc(100% - 144px); overflow-y: auto; padding: 18px 20px 20px; background: var(--map-card); border-radius: 22px; box-shadow: 0 6px 28px rgb(15 15 26 / .24); }
#mapview.open .legend, #mapview.open .strip { visibility: hidden; }
.vhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vhead .nm { flex: 1; min-width: 0; }
#mapview .vhead h2 { font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.vhead p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
#mapview .x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; background: var(--soft); color: var(--chip-ink); display: grid; place-items: center; }
.map-panel .status { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13.5px; font-weight: 600; color: #22a35a; }
.map-panel .status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #34c759; }
.sp { border-top: 1px solid var(--map-line); margin-top: 12px; padding-top: 12px; }
#mapview .sp h3 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 16px; font-weight: 700; }
.sp em { font-style: normal; font-size: 12px; color: #22a35a; white-space: nowrap; }
.sp p { font-size: 13.5px; margin-top: 4px; color: var(--map-ink-2); overflow-wrap: anywhere; }
.sp .when { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sp ul { margin-top: 8px; background: var(--lock); border-radius: 12px; padding: 4px 12px; }
.sp li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13.5px; color: var(--map-ink-2); }
.sp li + li { border-top: 1px solid var(--map-line); }
.map-panel .plain { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--map-ink-2); }
#mapview .cta { width: 100%; background: #4f46e5; border: 0; color: #fff; font-weight: 700; font-size: 15px; padding: 13px; border-radius: 16px; margin-top: 4px; }

@media (max-width: 760px) {
  .map-top, .map-bottom { left: 10px; right: 10px; gap: 8px; }
  .map-top { top: 10px; }
  .map-bottom { bottom: 30px; }
  .venue-card { width: 262px !important; }
  .map-panel { left: 10px; right: 10px; top: auto; bottom: 30px; width: auto; max-height: 62%; z-index: 13; }
  .map-tools { right: 10px; top: 112px; }
}
