:root {
  --bg: #000;
  --ink: #fff;
  --dim: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.16);
  --red: #e31937;
  --glass: rgba(0, 0, 0, 0.78);
  --dead: #5c5e62;
  --stools: #f4f4f4;
  --lively: #ffffff;
  --packed: #e31937;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { color-scheme: dark; }
[hidden] { display: none !important; }

body {
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.35;
  min-height: 100svh;
  font-weight: 400;
}

a { color: var(--ink); text-decoration: none; }
button, input { font-family: inherit; }

.bar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  height: 64px;
  padding: 0 28px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}
.mark {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
}
.bar-place {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--dim);
}
#respot {
  justify-self: end;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0;
}
#respot:hover { color: var(--dim); }

.stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 8vw 64px;
  max-width: 920px;
}
.kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
h1 {
  margin: 0 0 18px;
  font-weight: 300;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.lede {
  margin: 0 0 32px;
  max-width: 28rem;
  color: var(--dim);
  font-size: 18px;
  font-weight: 300;
}

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
button.go, button#yes, .ghost {
  min-height: 40px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
button.go, button#yes {
  background: #fff;
  color: #000;
  border: 0;
}
button#yes { align-self: flex-start; width: min(420px, 100%); }
button.go:hover, button#yes:hover { background: #e8e8e8; }
button.go:disabled { opacity: 0.45; cursor: wait; }
.ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.ghost:hover { background: rgba(255, 255, 255, 0.08); }

.search { margin-top: 28px; max-width: 460px; }
.search input {
  width: 100%;
  background: transparent;
  color: #fff;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 300;
}
.search input:focus { outline: none; border-bottom-color: #fff; }
.search input::placeholder { color: rgba(255, 255, 255, 0.35); }
.hit {
  display: block;
  width: 100%;
  max-width: 460px;
  text-align: left;
  margin-top: 8px;
  padding: 14px 0;
  background: transparent;
  color: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 300;
  cursor: pointer;
}
.hit:hover { color: var(--dim); }
.hint { color: var(--dim); font-size: 14px; font-weight: 300; margin-top: 18px; }

.cockpit { position: relative; height: 100svh; }
#map { position: absolute; inset: 0; z-index: 1; }

.sheet {
  position: absolute;
  z-index: 5;
  top: 76px;
  right: 16px;
  bottom: 16px;
  width: min(400px, calc(100vw - 32px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px 22px 8px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.sheet::-webkit-scrollbar { width: 8px; }
.sheet::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.28); border-radius: 8px; }
.best h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.spec {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 14px 0 6px;
}
.spec b {
  font-weight: 300;
  font-size: 64px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.best.hot .spec b { color: var(--red); }
.spec span {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.meta, .why {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  font-weight: 300;
}
.why { margin-top: 6px; }

.signals {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 4px;
  scrollbar-width: none;
}
.signals::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 10px;
}
.chip.hot { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.chip.bad { color: #ffb4be; border-color: rgba(227, 25, 55, 0.7); }

.sheet-tools {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.sheet-tools .ghost { padding: 0 14px; }
.legend {
  display: flex;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.lg::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: 1px;
}
.lg.dead::before { background: var(--dead); }
.lg.stools::before { width: 8px; height: 8px; background: #cfcfcf; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12); }
.lg.lively::before { width: 10px; height: 10px; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28); }
.lg.packed::before { width: 10px; height: 10px; background: var(--red); box-shadow: 0 0 0 3px rgba(227, 25, 55, 0.4); }

.map-key {
  display: none;
  position: absolute;
  z-index: 4;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.inputs { padding-bottom: 8px; }
.inputs ul { list-style: none; padding: 0; margin: 8px 0 0; }
.inputs li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}
.inputs li.ok b { color: #fff; font-weight: 500; }
.inputs li.fail b { color: var(--red); font-weight: 500; }

.list-wrap { padding-bottom: 8px; }
.room {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.room:hover h3 { color: var(--dim); }
.meter {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.meter b {
  display: block;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.room h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 400;
}
.taps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.taps button {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.taps button:hover { border-color: #fff; }

.charge {
  height: 3px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
.charge span { display: block; height: 100%; border-radius: 99px; background: #5c5e62; }
.band-stools .charge span { background: #c8c8c8; }
.band-lively .charge span { background: #fff; }
.band-packed .charge span { background: var(--red); }
.band-closed .charge span { background: #2a2a2a; }
.band-dead .meter { color: #5c5e62; }
.band-stools .meter { color: #c8c8c8; }
.band-lively .meter { color: #fff; }
.band-packed .meter { color: var(--red); }
.band-dead .meter b { color: #5c5e62; }
.band-stools .meter b { color: #d7d7d7; }
.band-lively .meter b { color: #fff; }
.band-packed .meter b { color: var(--red); }
.band-closed .meter b { color: #3a3a3a; }
.best.band-packed .spec b,
.best.band-packed .spec span { color: var(--red); }
.best.band-lively .spec b { color: #fff; }
.rooms-btn { display: none; }

.pin {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pin b {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 2px #000, 0 0 6px #000;
  pointer-events: none;
}
.pin-later b { color: rgba(255, 255, 255, 0.55); }
.pin i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #000;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.pin-later i {
  width: 9px;
  height: 9px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}
.look {
  position: absolute;
  z-index: 6;
  top: 132px;
  left: 14px;
}
.foot {
  padding: 8px 0 16px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 300;
}
.foot p { margin: 0; }

.you {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.18);
}

.maplibregl-popup-content {
  background: #000 !important;
  color: #fff !important;
  font-family: Inter, sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px !important;
  box-shadow: none !important;
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: #000 !important; }
.maplibregl-ctrl-top-left { top: 72px; left: 14px; }
.maplibregl-ctrl-attrib {
  background: rgba(0, 0, 0, 0.55) !important;
  color: rgba(255, 255, 255, 0.45) !important;
}
.maplibregl-ctrl-attrib a { color: rgba(255, 255, 255, 0.62) !important; }
.maplibregl-ctrl-group {
  background: rgba(0, 0, 0, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}
.maplibregl-ctrl-group button + button { border-top: 1px solid rgba(255, 255, 255, 0.12) !important; }

@media (max-width: 860px) {
  .bar { padding: 0 16px; grid-template-columns: auto 1fr auto; }
  .bar-place { font-size: 12px; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stage { padding: 96px 22px 48px; }
  h1 { font-size: 64px; }
  .bar { height: 52px; }
  .sheet {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    max-height: none;
    padding: 12px 16px 12px;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    overflow: hidden;
  }
  .sheet .best h2 {
    font-size: 26px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sheet .spec { margin: 6px 0 2px; }
  .sheet .spec b { font-size: 48px; }
  .sheet .signals { padding-top: 8px; }
  .sheet-tools { display: flex; }
  .rooms-btn { display: inline-flex; align-items: center; }
  .sheet:not(.open) .signals,
  .sheet:not(.open) .list-wrap,
  .sheet:not(.open) .foot,
  .sheet:not(.open) .inputs { display: none; }
  .sheet.open { max-height: 52svh; overflow-y: auto; }
  .sheet.open .best h2 { white-space: normal; }
  .maplibregl-ctrl-bottom-left,
  .maplibregl-ctrl-bottom-right { bottom: var(--dock, 168px); }
  .maplibregl-ctrl-top-left { top: 58px; left: 10px; }
  .look { top: 140px; left: 10px; }
}
