:root {
  --ink: #0b1018;
  --panel: #162033;
  --panel-mid: #1e2c40;
  --paper: #f6efe0;
  --paper-dim: #c9c0ad;
  --beanie: #e22b2b;
  --drip: #ffcc33;
  --teal-deep: var(--ink);
  --teal: var(--panel);
  --teal-mid: var(--panel-mid);
  --cream: var(--paper);
  --cream-dim: var(--paper-dim);
  --gold: var(--drip);
  --rust: var(--beanie);
}

* { box-sizing: border-box; }
html, body { margin: 0; max-width: 100%; }
html { color-scheme: dark; overflow-x: hidden; }

body {
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  background: var(--teal-deep);
  color: var(--cream);
  line-height: 1.45;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.stripe {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 100vh;
  background: var(--rust);
  z-index: 40;
}
.stripe::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  width: 4px;
  height: 100%;
  background: var(--gold);
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem 1.2rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.4rem 0.8rem 2.4rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav a { color: var(--gold); text-decoration: none; }
.nav a:hover { color: var(--cream); }
.nav-links { display: flex; gap: 0.75rem 1.15rem; flex-wrap: wrap; min-width: 0; }
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  font-weight: 600;
  letter-spacing: 0.14em;
  min-width: 0;
  max-width: 100%;
}
.nav-brand:hover { color: var(--gold); text-decoration: none; }
.nav-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 204, 51, 0.45);
}
.nav-short { display: none; }

.hero {
  padding: 0.4rem 1.4rem 1rem 2.4rem;
  max-width: 46rem;
}
.eyebrow {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}
h1 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 0.95;
  font-weight: 600;
  margin: 0 0 0.7rem;
}
h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

.best {
  margin: 1rem 1.4rem 0 2.4rem;
  padding: 0.9rem 1rem;
  background: var(--teal);
  border: 1px solid rgba(255, 204, 51, 0.35);
  max-width: 40rem;
}
.best strong { color: var(--gold); }

.layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  min-height: 62svh;
  padding: 1rem 0 2rem 1.15rem;
}
#map {
  height: 62svh;
  min-height: 320px;
  border-top: 1px solid rgba(246, 239, 224, 0.12);
  border-bottom: 1px solid rgba(246, 239, 224, 0.12);
}
.list-wrap {
  padding: 0 1.2rem 2rem 1rem;
  overflow: auto;
  max-height: 62svh;
}

.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1.4rem 1rem 2.4rem;
}
.chip {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  background: var(--teal);
  color: var(--cream-dim);
  border: 1px solid rgba(246, 239, 224, 0.12);
}
.chip.hot { color: var(--gold); border-color: rgba(255, 204, 51, 0.45); }
.chip.bad { color: #f0b9a8; border-color: rgba(226, 43, 43, 0.5); }

.room {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.7rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(246, 239, 224, 0.1);
  cursor: pointer;
}
.room:hover { background: rgba(12, 47, 44, 0.55); }
.meter {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.2rem;
}
.room h3 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.2rem;
  margin: 0 0 0.15rem;
  font-weight: 600;
}
.meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--cream-dim);
}
/* BEV-11: open/closed by posted hours only. No crowd bands. */
.is-open .meter { color: var(--gold); }
.is-closed .meter { color: #6d7f7b; }
.is-unnamed .meter { color: var(--cream-dim); }

.foot {
  padding: 1.5rem 1.4rem 2.4rem 2.4rem;
  color: var(--cream-dim);
  font-size: 0.85rem;
}
.foot p { margin: 0 0 0.4rem; }

#gate {
  padding: 2rem 1.4rem 3rem 2.4rem;
  max-width: 36rem;
}
#gate .row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }
button#yes, .ghost {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  cursor: pointer;
}
button#yes {
  background: var(--gold);
  color: var(--teal-deep);
  border: 0;
  font-weight: 600;
}
.ghost {
  color: var(--gold);
  border: 1px solid var(--gold);
  background: transparent;
  text-decoration: none;
  display: inline-block;
}

.maplibregl-popup-content {
  background: var(--teal-deep) !important;
  color: var(--cream) !important;
  font-family: "Nunito Sans", sans-serif;
  border: 1px solid var(--gold);
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: var(--gold) !important;
}

@media (max-width: 860px) {
  .stripe { width: 8px; }
  .stripe::after { left: 8px; width: 3px; }
  .layout {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
  #map { height: 42svh; min-height: 240px; }
  .list-wrap {
    max-height: none;
    padding-left: max(1.35rem, calc(env(safe-area-inset-left, 0px) + 1.15rem));
    padding-right: max(1.1rem, calc(env(safe-area-inset-right, 0px) + 0.9rem));
  }
  .hero, .best, .signals, .foot, .nav, #gate {
    padding-left: max(1.35rem, calc(env(safe-area-inset-left, 0px) + 1.15rem));
    padding-right: max(1.1rem, calc(env(safe-area-inset-right, 0px) + 0.9rem));
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  .nav-links { width: 100%; max-width: 100%; justify-content: flex-start; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
  #gate .row, .taps { flex-direction: column; align-items: stretch; }
  button#yes, .ghost { width: 100%; text-align: center; }
  h1 { font-size: 2.2rem; }
}
