/* WebGL campus map: theme colors are inherited from the WordPress theme. */
body.festa-map-screen {
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.festa-map-screen.admin-bar {
  height: calc(100dvh - 32px);
}
.festa-map-screen > .site-header,
.festa-map-screen > .site-footer {
  flex-shrink: 0;
}
.festa-map-screen > .festa-map-page {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 4px;
  padding-bottom: 4px;
}
.festa-map {
  --map-control-edge: 8px;
  --map-side-tools-width: 92px;
  --map-main-controls-start: calc(var(--map-control-edge) + var(--map-side-tools-width));
  position: relative;
  height: 75dvh;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink, #35334a);
}
.festa-map #viewport {
  position: absolute;
  inset: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  overflow: hidden;
}
.festa-map :is(button, svg) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.festa-map canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
}
.festa-map .controls {
  position: absolute;
  top: 4px;
  left: var(--map-main-controls-start);
  right: var(--map-control-edge);
  width: max-content;
  margin-inline: auto;
  display: flex;
  gap: 8px;
  z-index: 20;
  pointer-events: none;
}
.festa-map button {
  font: inherit;
  border: 1px solid #eadde7;
  border-radius: 999px;
  background: var(--paper, #fffefa);
  color: var(--ink, #35334a);
  font-weight: 800;
  cursor: pointer;
  touch-action: none;
  pointer-events: auto;
}
.festa-map .controls button {
  box-sizing: border-box;
  height: 30px;
  line-height: 1;
  padding: 4px 14px;
  white-space: nowrap;
  background: #fffefa80;
}
@media (hover: hover) {
  .festa-map button:not(:where(.view-tools button)):hover {
    background: #fff0f5;
    color: var(--pink, #f2548b);
  }
}
@media (hover: none) {
  .festa-map button:active {
    background: #fff0f5;
    color: var(--pink, #f2548b);
  }
}
.festa-map button.active {
  background: var(--pink, #f2548b);
  border-color: var(--pink, #f2548b);
  color: var(--paper, #fffefa);
}
.festa-map button:focus-visible {
  outline: 3px solid var(--indigo, #6474e5);
  outline-offset: 2px;
}
.festa-map .view-tools {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: #fffefa66;
  border: 1px solid #eadde766;
  border-radius: 22px;
  box-shadow: 0 5px 20px #4b3a5b0c;
  z-index: 25;
  pointer-events: none;
}
.festa-map .view-tools button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  background-color: #fffefa80;
}
.festa-map .view-tools button:active {
  background: #fff0f5;
  color: var(--pink, #f2548b);
}
.festa-map .view-tools [data-orbit] {
  touch-action: none;
}
.festa-map .event-pin-layer {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  user-select: none;
}
.festa-map .event-pin {
  position: absolute;
  transform: none;
  display: block;
  width: max-content;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.festa-map .event-pin[hidden] {
  display: none;
}
.festa-map .event-pin-title {
  display: flex;
  align-items: center;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  white-space: normal;
  padding: 2px 5px;
  color: #005de0;
  font-size: var(--pin-title-size, 14px);
  font-weight: 700;
  line-height: 1.4;
  -webkit-text-stroke: 3px #fffefa;
  paint-order: stroke fill;
  text-shadow: 0 1px 2px #fffefa;
  pointer-events: none;
}
.festa-map .event-pin-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.festa-map .event-pin-link {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #fffefac9;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.festa-map .event-pin-link svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}
.festa-map .event-pin-link:hover,
.festa-map .event-pin-link:focus-visible {
  background: #fffefa;
  color: #c12765;
}
.festa-map .event-pin-stem,
.festa-map .event-pin-disc {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.festa-map .event-pin-stem {
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(207, 32, 48, 0.58);
  stroke-linejoin: round;
}
.festa-map .event-pin-disc {
  width: 1.4em;
  height: 1.4em;
  font-size: var(--pin-title-size, 14px);
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgb(255 255 255 / 60%), rgb(255 255 255 / 0%));
  transform: translate(-50%, -50%) scaleY(var(--pin-disc-tilt, 1));
}
.festa-map-screen > .site-footer {
  padding: 16px 25px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.map-error {
  margin: 80px 24px;
  padding: 16px;
  background: #fff0f5;
  color: #35334a;
}
@media (max-width: 782px) {
  body.festa-map-screen.admin-bar {
    height: calc(100dvh - 46px);
  }
}
@media (max-width: 700px) {
  .festa-map-screen > .festa-map-page {
    padding: 0;
  }
  .festa-map {
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .festa-map .controls {
    width: auto;
    margin-inline: 0;
  }
  .festa-map .controls button {
    padding: 4px 6px;
    flex: 1;
  }
  .festa-map .view-tools {
    bottom: 8px;
    max-width: calc(100vw - 20px);
    gap: 4px;
    padding: 3px 5px;
    box-sizing: border-box;
  }
  .festa-map .event-pin-title {
    padding: 2px 4px;
  }
  .festa-map-screen > .site-footer {
    padding-top: 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    font-size: 11px;
  }
}

/* SVG controls have exact visual centers, independent of font metrics. */
.festa-map .view-tools button {
  box-sizing: border-box;
  line-height: 1;
  letter-spacing: 0;
  min-width: 0;
  min-height: 0;
  align-self: center;
  flex-shrink: 0;
}
.festa-map .view-tools button svg {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
  margin: 0;
}

.festa-map .map-quick-tools button[aria-pressed="true"],
.festa-map .map-quick-tools [data-map-search].active {
  color: var(--pink, #f2548b);
  border-color: var(--pink, #f2548b);
}
.festa-map .event-pin-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  max-width: 100%;
}
.festa-map .event-pin-place {
  max-width: 100%;
  margin: 0 0 -2px 5px;
  color: #1769c2;
  font-size: clamp(8px, calc(var(--pin-title-size, 14px) * 0.72), 14px);
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-text-stroke: 2px #fffefa;
  paint-order: stroke fill;
}
.festa-map .event-pin-layer.names-hidden .event-pin-item,
.festa-map .event-pin-layer.names-hidden .event-pin-stem,
.festa-map .event-pin-layer.names-hidden .event-pin-disc {
  display: none;
}

@media (max-width: 700px) {
  .festa-map .controls {
    gap: 4px;
  }
}

/* Native page gestures must not chain out of the interactive canvas. */
.festa-map {
  overscroll-behavior: contain;
}
.festa-map #viewport,
.festa-map #viewport canvas {
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.festa-map .event-pin-layer,
.festa-map .event-pin,
.festa-map .event-pin-link {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.festa-map .event-pin.is-selected .event-pin-title {
  color: #c74b00;
}
.festa-map .map-route {
  position: absolute;
  z-index: 19;
  top: 38px;
  left: calc(var(--map-main-controls-start) - 16px);
  right: 4px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  padding: 3px 4px;
  border: 1px solid #eadde766;
  border-radius: 12px;
  background: #fffefa66;
  font-size: 12px;
}
.festa-map .map-route :is(select, .map-route-place) {
  min-width: 0;
  width: clamp(65px, 21vw, 190px);
  font: inherit;
  color: inherit;
}
.festa-map .map-route :is(.route-origin-select, .route-destination-select) {
  flex: 1 1 0;
  width: 0;
}
.festa-map .map-route button {
  background: #fffefa80;
  padding: 2px 8px;
  line-height: 1.25;
  flex: none;
  white-space: nowrap;
}
.festa-map .map-route-share,
.festa-map .map-route-swap {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 1;
}
.festa-map .map-route :is(.map-route-origin-clear, .map-route-destination-clear) {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8b5360;
  line-height: 1;
}
.festa-map .map-route :is(.map-route-origin-clear, .map-route-destination-clear) svg {
  width: 16px;
  height: 16px;
}
.festa-map .map-route :is(.map-route-origin-clear, .map-route-destination-clear):disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.festa-map .map-route button svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
}
.festa-map .map-route-direction {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  color: #1769c2;
}
.festa-map .map-route-direction svg {
  display: block;
  width: 18px;
  height: 18px;
}
.festa-map .map-route-direction .map-route-arrow-horizontal {
  display: block;
}
.festa-map .map-route-direction .map-route-arrow-vertical {
  display: none;
}
.festa-map .map-route[hidden],
.festa-map .map-route [hidden] {
  display: none;
}
.festa-map:has(.map-tutorial[open][data-preview-route]) .map-route[hidden] {
  display: flex;
}
.festa-map .floor-route {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  overflow: visible;
  pointer-events: none;
}
.festa-map .floor-route[hidden] {
  display: none;
}
.festa-map .floor-route {
  opacity: 0.75;
}
.festa-map .floor-route path {
  fill: none;
  stroke: var(--floor-route-color, #1769c2);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.festa-map .floor-route-track {
  stroke-width: 8;
  stroke-dasharray: 6 12;
}
.festa-map .floor-route-arrow {
  stroke-width: 8;
}
.festa-map .map-route :is(select, .map-route-place) {
  appearance: none;
  border: 1px solid #eadde7;
  border-radius: 999px;
  background: #fffefa80
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23c12765' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E")
    no-repeat right 8px center / 14px;
  padding: 2px 26px 2px 10px;
  line-height: 1.25;
  font-weight: 700;
  cursor: pointer;
  text-overflow: ellipsis;
}
@media (hover: hover) {
  .festa-map .map-route :is(select, .map-route-place):hover {
    border-color: var(--pink, #f2548b);
  }
}
.festa-map .map-route :is(select, .map-route-place):focus-visible {
  outline: 3px solid var(--indigo, #6474e5);
  outline-offset: 2px;
}
.festa-map .controls .route-departure-floor {
  box-shadow: 0 0 0 2px #ffd1e2;
}
.festa-map .controls .route-destination-floor {
  animation: route-destination-border 1.8s ease-in-out infinite;
}
.festa-map .controls .route-departure-floor.route-destination-floor {
  outline: 2px solid #ffd1e2;
  outline-offset: 2px;
}
@keyframes route-destination-border {
  0%,
  100% {
    box-shadow: 0 0 0 2px #b5e8b9;
  }
  50% {
    box-shadow: 0 0 0 2px #aedcff;
  }
}

@media (max-width: 400px) {
  .festa-map .map-route {
    gap: 2px;
    padding-inline: 4px;
  }
  .festa-map .map-route-share,
  .festa-map .map-route-swap {
    width: 24px;
    height: 24px;
  }
  .festa-map .map-route :is(select, .map-route-place) {
    padding-right: 18px;
    background-position: right 3px center;
  }
}
@media (max-width: 600px) {
  .festa-map .map-route {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    grid-template-areas: "direction origin origin-clear" "direction destination destination-clear";
    align-items: center;
    justify-items: stretch;
    gap: 2px;
    padding: 3px 4px;
  }
  .festa-map .map-route-direction {
    grid-area: direction;
    align-self: stretch;
    width: 20px;
  }
  .festa-map .map-route-direction .map-route-arrow-horizontal {
    display: none;
  }
  .festa-map .map-route-direction .map-route-arrow-vertical {
    display: block;
    width: 15px;
    height: 100%;
  }
  .festa-map .map-route .map-route-place.route-origin-select {
    grid-area: origin;
    width: 100%;
  }
  .festa-map .map-route .map-route-place.route-destination-select {
    grid-area: destination;
    width: 100%;
  }
  .festa-map .map-route .map-route-origin-clear {
    grid-area: origin-clear;
    justify-self: center;
    width: 20px;
    height: 20px;
  }
  .festa-map .map-route .map-route-destination-clear {
    grid-area: destination-clear;
    justify-self: center;
    width: 20px;
    height: 20px;
  }
}

.festa-map .map-route-swap .route-arrow-forward,
.festa-map .map-route-swap[aria-pressed="true"] .route-arrow-reverse {
  opacity: 1;
  stroke: #1769c2;
}
.festa-map .map-route-swap .route-arrow-reverse,
.festa-map .map-route-swap[aria-pressed="true"] .route-arrow-forward {
  opacity: 0.35;
}
.festa-map .map-compass-enable {
  position: absolute;
  top: 83px;
  right: 8px;
  z-index: 18;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: none;
}
.festa-map .map-compass-enable:hover {
  background: none;
}
.festa-map .map-compass {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px #35334a20);
}

.festa-map .map-compass [hidden] {
  display: none;
}

.festa-map .controls button.active {
  background: #f2548b80;
  color: #35334a;
}
.festa-map .map-compass-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}
@media (min-width: 701px) {
  .festa-map-screen > .festa-map-page {
    max-width: none;
    padding-inline: 0;
  }
}
.festa-map .map-route-candidates:empty {
  display: none;
}
.festa-map .map-route-candidates {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
}
.festa-map .map-route-candidates button {
  flex-shrink: 0;
  white-space: nowrap;
}
.festa-map .map-route-candidates button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid #c4d5e6;
  border-radius: 6px;
  background: #fffefa80;
  color: #174d85;
  font: inherit;
  cursor: pointer;
}
.festa-map .map-route-candidates button[aria-pressed="true"] {
  border-color: #174d85;
  background: #fffefa80;
}
.festa-map .map-route-candidates svg {
  width: 1em;
  height: 1em;
}
.festa-map .map-route-place {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
.festa-map .map-place-picker {
  box-sizing: border-box;
  width: min(520px, calc(100% - 24px));
  height: min(68dvh, 540px);
  padding: 14px;
  border: 1px solid #eadde7;
  border-radius: 16px;
  background: #fffefa;
  color: #35334a;
}
.festa-map .map-place-picker::backdrop {
  background: #35334a66;
}
.festa-map .map-place-picker[open] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.festa-map .map-place-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.festa-map .map-place-picker h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  margin: 0;
  font-size: 16px;
}
.festa-map .map-place-picker-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid #f2548b;
  border-radius: 999px;
  color: #c12765;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  background: #fff0f5;
  box-shadow: 0 1px 3px #c1276525;
}
.festa-map .map-place-picker-sort-label::before {
  content: "↓";
  font-size: 12px;
  line-height: 1;
}
.festa-map .map-place-picker-floor-filter {
  gap: 5px;
  padding: 3px 4px 3px 8px;
}
.festa-map .map-place-picker-floor-filter::before {
  content: none;
}
.festa-map .map-place-picker-floor-filter button {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.festa-map .map-place-picker-floor-filter button:hover,
.festa-map .map-place-picker-floor-filter button:focus-visible {
  background: #fffefa;
}
.festa-map .map-place-picker-close {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}
.festa-map .map-place-picker input {
  box-sizing: border-box;
  width: 100%;
  font-size: 16px;
}
.festa-map .map-place-picker-status {
  margin: 0;
  font-size: 13px;
}
.festa-map .map-place-picker-status:empty {
  display: none;
}
.festa-map .map-place-picker-results {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0;
  padding-inline-end: 12px;
  list-style: none;
}
.festa-map .map-place-picker-results button {
  width: 100%;
  padding: 5px 6px;
  font-size: 14px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: pan-y;
}
.festa-map .map-place-picker-results button[aria-current="true"] {
  border-color: #c12765;
}
.festa-map .map-place-picker-results li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.festa-map .map-place-result-label {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 30px;
  overflow: hidden;
}
.festa-map .map-place-picker-results .map-place-result {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  line-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.festa-map .map-place-picker-results .map-place-result:hover,
.festa-map .map-place-picker-results .map-place-result:focus-visible {
  background: transparent;
  color: #c12765;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.festa-map .map-place-picker-results .map-place-result[aria-current="true"] {
  border: 0;
  background: transparent;
  color: #c12765;
  font-weight: 700;
}
.festa-map .map-place-result-name,
.festa-map .map-place-result-events {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.festa-map .map-place-result-name {
  line-height: 30px;
  font-weight: 800;
}
.festa-map .map-place-result-events {
  position: absolute;
  inset: 0 0 0 35%;
  z-index: 1;
  padding: 0 5px;
  display: block;
  background: rgb(255 254 250 / 76%);
  font-size: 12px;
  font-weight: 500;
  line-height: 30px;
  color: #52677f;
  pointer-events: none;
}
.festa-map .map-place-result-events a {
  pointer-events: auto;
}
.festa-map .map-place-picker-results li.has-events .map-place-result-name {
  text-overflow: clip;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 35%, rgb(0 0 0 / 45%) 72%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 35%, rgb(0 0 0 / 45%) 72%, transparent 100%);
}
.festa-map .map-place-result-events .map-place-event-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 2px;
}
.festa-map .map-place-event-link > svg {
  width: 1em;
  height: 1em;
  margin-inline-end: 0.2em;
  vertical-align: -0.15em;
}
.festa-map .map-place-picker-results :is(.map-place-share, .map-place-open) {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
}
.festa-map .map-place-open {
  box-sizing: border-box;
  border: 1px solid #eadde7;
  border-radius: 999px;
  background: var(--paper, #fffefa);
  color: var(--ink, #35334a);
}
.festa-map :is(.map-place-share, .map-place-open) svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 600px) {
  .festa-map .map-place-picker-results li {
    display: flex;
    align-items: center;
    gap: 3px;
  }
}
.festa-map .map-debug-tools {
  position: absolute;
  top: 145px;
  right: 22px;
  z-index: 18;
  display: grid;
  grid-template-columns: 28px;
  grid-auto-rows: 28px;
  gap: 6px;
}
.festa-map .map-debug-tools button {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #fffefaed;
  box-shadow: 0 1px 5px #35334a30;
}
.festa-map .map-debug-tools button svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  pointer-events: none;
}
.festa-map .map-debug-tools button[aria-pressed="true"] {
  background: #aedcff;
  border-color: #1769c2;
  color: #174d85;
}
.festa-map .map-debug-tools [data-debug-mode="entrances"][aria-pressed="true"] {
  background: #fff0b5;
  border-color: #c58f00;
  color: #795600;
}
.festa-map .map-debug-tools [data-debug-mode="rooms"][aria-pressed="true"] {
  background: #d8f0dd;
  border-color: #2c8c45;
  color: #17652c;
}
.festa-map .map-debug-status {
  position: absolute;
  left: 36px;
  top: 0;
  width: max-content;
  max-width: min(240px, 70vw);
  padding: 5px 8px;
  border-radius: 6px;
  background: #fffefa;
  color: #35334a;
  font-size: 12px;
  box-shadow: 0 1px 5px #35334a30;
}
.festa-map .map-camera-coordinates {
  position: absolute;
  top: 4px;
  left: var(--map-control-edge);
  z-index: 19;
  padding: 3px 7px;
  border-radius: 5px;
  background: #fffefae8;
  color: #35334a;
  font: 11px/1.3 monospace;
  white-space: nowrap;
}
.festa-map .map-camera-coordinates[hidden],
.festa-map .map-debug-status[hidden] {
  display: none;
}

.festa-map .map-side-tools {
  position: absolute;
  top: 4px;
  left: var(--map-control-edge);
  z-index: 18;
  display: grid;
  justify-items: stretch;
  gap: 6px;
  pointer-events: none;
}
.festa-map .map-camera-coordinates:not([hidden]) ~ .map-side-tools {
  top: 25px;
}
.festa-map .map-side-tools .map-compass-enable {
  position: relative;
  top: auto;
  right: auto;
  justify-self: start;
  margin-right: 0;
  margin-bottom: 13px;
  pointer-events: auto;
}
.festa-map .map-side-tools .map-debug-tools {
  position: relative;
  top: auto;
  right: auto;
  justify-self: start;
  pointer-events: auto;
}
.festa-map .map-quick-tools {
  display: grid;
  justify-self: start;
  gap: 6px;
}
.festa-map .map-quick-tools button {
  box-sizing: border-box;
  width: max-content;
  min-width: 0;
  height: 28px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  font-size: 10px;
  white-space: nowrap;
  background: #fffefa99;
  pointer-events: auto;
}
.festa-map .map-quick-tools svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.festa-map .map-tutorial-open[hidden] {
  display: none;
}
.festa-map .map-tutorial {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: white;
  cursor: pointer;
}
.festa-map .map-tutorial::backdrop {
  background: transparent;
}
.map-tutorial-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.map-tutorial-mask {
  fill: rgb(0 0 0 / 76%);
}
.map-tutorial-outline,
.map-tutorial-arrow {
  fill: none;
  stroke: white;
  stroke-width: 2;
  filter: drop-shadow(0 1px 2px #000);
}
.map-tutorial-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(380px, calc(100% - 36px));
  max-height: calc(100% - 78px);
  overflow: auto;
  text-align: center;
  text-shadow: 0 1px 4px #000, 0 0 8px #000;
}
.map-tutorial-copy h2 {
  margin: 4px 0 8px;
  color: inherit;
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1.35;
}
.map-tutorial-copy p {
  margin: 0;
  line-height: 1.6;
}
.map-tutorial-count {
  font-size: 13px;
}
.festa-map .map-tutorial-next {
  margin: 10px 3px 4px;
  padding: 7px 14px;
  border-color: #fff;
  background: #222;
  color: white;
  font-size: 13px;
  touch-action: manipulation;
}
.festa-map .map-tutorial-exit {
  position: absolute;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  touch-action: manipulation;
}

.festa-map .view-tools[hidden],
.festa-map .map-status:empty {
  display: none;
}
.festa-map .map-status {
  position: absolute;
  top: 70px;
  left: var(--map-main-controls-start);
  right: var(--map-control-edge);
  width: fit-content;
  margin-inline: auto;
  z-index: 20;
  padding: 4px 10px;
  border-radius: 8px;
  background: #fffefa80;
  color: #174d85;
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}
@media (min-width: 701px) {
  .festa-map {
    --map-control-edge: max(8px, calc((100% - var(--festa-content-max-width)) / 2));
  }
  .festa-map :is(.controls, .map-route, .map-status) {
    inset-inline: var(--map-main-controls-start);
  }
}
.festa-map .map-toilet-icon {
  display: inline-flex;
  width: 1.3em;
  height: 1.3em;
  vertical-align: middle;
  color: #007dd1;
}
.festa-map .map-toilet-icon[data-kind="female"] {
  color: #d52236;
}
.festa-map .map-toilet-icon[data-kind="accessible"] {
  color: #178744;
}
.festa-map .map-toilet-icon svg {
  width: 100%;
  height: 100%;
}

.festa-map .map-route:not([hidden]) ~ .map-status {
  top: 82px;
}
.festa-map .map-route:not([hidden]):has(.map-route-candidates:not(:empty)) ~ .map-status {
  top: 112px;
}
