@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/brand/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/brand/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("./assets/brand/bebas-neue.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black";
  src: url("./assets/brand/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/brand/jetbrains-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: #101112;
  color: #eeeae2;
  --map-ground: #101112;
  --sac-ink: #191919;
  --sac-paper: #eeebe4;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #8baeff; outline-offset: 3px; }

.maps {
  min-width: 0;
  height: 100vh;
  height: 100dvh;
}
.map-panel {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.map-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 0 17px;
}
.map-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.map-title {
  margin: 0;
  padding-inline-start: 18px;
  border-inline-start: 1px solid currentColor;
}
.compare-link {
  margin-inline-start: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}
.compare-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.map-viewport { position: relative; min-width: 0; min-height: 0; isolation: isolate; }
.map-viewport > .map-canvas { position: absolute; inset: 0; z-index: 0; background: var(--map-ground); }
.map-status {
  position: absolute;
  left: 18px;
  bottom: 42px;
  z-index: 3;
  width: fit-content;
  max-width: calc(100% - 135px);
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #676967;
  background: #171817;
  color: #f3f1ed;
  font-size: 14px;
  pointer-events: none;
}
.map-status:empty { display: none; }
.map-controls {
  position: absolute;
  right: 22px;
  bottom: 46px;
  z-index: 5;
  display: grid;
  gap: 5px;
}
.map-controls button {
  display: grid;
  place-items: center;
  width: 78px;
  min-height: 54px;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 0;
  line-height: 1;
}
.map-controls button[data-map-action^="zoom"] { font-size: 29px; }
.map-controls button:active { translate: 0 2px; }

.sac {
  --flyer-paper: #fff;
  --flyer-ink: #191919;
  --flyer-red: #191919;
  --flyer-speckle: none;
  color-scheme: light;
}
.sac .map-header {
  border-bottom: 1px solid #ddd;
  background: #fff;
  color: #191919;
}
.sac-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font: 500 36px/1 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -.065em;
}
.sac-wordmark > span {
  display: inline-block;
  font-size: .38em;
  font-weight: 400;
  letter-spacing: -.5px;
  transform: rotate(-2deg);
}
.sac .map-title {
  border-color: #ddd;
  color: #404040;
  font: 500 14px/1.2 "Space Grotesk", system-ui, sans-serif;
}
.sac-navigation {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
}
.sac-navigation a,
.sac-navigation button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: #191919;
  font: 500 13px/1.1 "Space Grotesk", system-ui, sans-serif;
}
.sac-navigation a { text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.sac-navigation .venues-toggle {
  padding-inline: 13px;
  border: 1px solid #191919;
  background: #fff;
  cursor: pointer;
}
.sac-navigation .venues-toggle[aria-pressed="true"] { background: #191919; color: #fff; }
.sac .map-controls button {
  border: 1px solid #a5a5a5;
  background: #fff;
  color: #191919;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
}
.sac .map-controls button[aria-pressed="true"] { border-color: #191919; background: #191919; color: #fff; }
.sac .map-controls button:hover { box-shadow: inset 0 0 0 2px #777; }
.sac .map-controls .downtown-button { font-size: 13px; line-height: 1.12; }

.upcycle .map-header {
  border-block-end: 1px solid #597fdb;
  background: #fafaf7;
  color: #111;
}
.upcycle .map-brand { gap: 8px; font: 700 23px/1 "Space Grotesk", sans-serif; letter-spacing: -1px; }
.upcycle .brand-mark { position: relative; width: 40px; height: 40px; overflow: hidden; }
.upcycle .brand-mark img { position: absolute; top: -14px; left: -10px; width: 178px; max-width: none; mix-blend-mode: multiply; }
.upcycle .map-title { color: #154fca; font: 400 15px/1.2 "IBM Plex Mono", monospace; }
.upcycle .map-controls button { border: 1px solid #85888c; background: #fafaf7; color: #111; font-weight: 600; }
.upcycle .map-controls button[aria-pressed="true"],
.upcycle .map-controls button:hover { border-color: #154fca; background: #e8eefb; color: #154fca; }
.upcycle .map-controls .downtown-button { font: 400 12px/1.12 "IBM Plex Mono", monospace; }

.comparison { background: #292927; }
.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 52px;
  padding: 0 17px;
  background: #111211;
  border-bottom: 1px solid #3c3c38;
}
.compare-header h1 { margin: 0; font-size: 15px; font-weight: 600; }
.compare-header nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.compare-header nav a { display: flex; align-items: center; min-height: 44px; text-underline-offset: 3px; font-size: 13px; }
.comparison .maps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 2px;
  height: calc(100vh - 52px);
  height: calc(100dvh - 52px);
}

@media (max-width: 680px) {
  .comparison .maps { grid-template-columns: minmax(0, 1fr); gap: 2px; height: auto; }
  .comparison .map-panel { height: 63vh; height: 63svh; min-height: 330px; }
}
@media (max-width: 480px) {
  .map-panel { grid-template-rows: 60px minmax(0, 1fr); }
  .map-header { padding-inline: 11px; gap: 10px; }
  .map-title { padding-inline-start: 10px; }
  .sac-wordmark { font-size: 27px; }
  .sac .map-title { font-size: 12px; }
  .sac { grid-template-rows: 60px minmax(0, 1fr); }
  .sac .map-header { gap: 7px; }
  .sac .map-title { padding: 0 0 0 7px; }
  .sac-navigation { gap: 7px; }
  .sac-navigation a, .sac-navigation button { font-size: 12px; }
  .sac-navigation .venues-toggle { padding-inline: 7px; }
  .sac-navigation .shows-link { padding-inline: 0; }
  .sac-navigation .compare-link { gap: 3px; }
  .sac .map-controls { bottom: 48px; }
  .compare-header { padding: 6px 11px; flex-wrap: wrap; }
  .compare-header nav { column-gap: 11px; }
  .map-controls { grid-template-columns: repeat(4, auto); right: 10px; bottom: 29px; }
  .map-controls button { width: 65px; min-height: 46px; }
  .map-status { left: 10px; bottom: 86px; max-width: calc(100% - 20px); }
}

@media (max-width: 360px) {
  .sac .map-title { display: none; }
  .sac-navigation .compare-link > span { display: none; }
}

@media (max-width: 460px) {
  body:not(.comparison):not(.shows-view) .sac { grid-template-rows: 82px minmax(0, 1fr); }
  body:not(.comparison):not(.shows-view) .sac .map-header {
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-template-rows: 37px 44px;
    column-gap: 9px;
    row-gap: 0;
  }
  body:not(.comparison):not(.shows-view) .sac .map-title { display: block; }
  body:not(.comparison):not(.shows-view) .sac-navigation {
    grid-column: 1 / -1;
    justify-content: space-between;
    margin-inline-start: 0;
  }
  body:not(.comparison):not(.shows-view) .compare-link { margin-inline-start: 0; }
}
