:root {
  --myra-map-green: #2a2d24;
  --myra-map-active: #4fb5c2;
  --myra-map-muted: #8f918b;
  --myra-map-ink: #2a2d24;
}

#myra-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--myra-map-ink);
}

#myra-map-overlay .myra-map-card {
  position: absolute;
  top: 76px;
  right: 20px;
  width: min(20vw, 320px);
  max-height: calc(100vh - 96px);
  box-sizing: border-box;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid var(--myra-map-green);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(42, 45, 36, 0.2);
  opacity: 0;
  transform: translateX(18px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 320ms;
}

#myra-map-overlay[data-open="true"] .myra-map-card {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 280ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

#myra-map-overlay .myra-map-card__header {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  box-sizing: border-box;
  padding: 5px 6px;
  background: var(--myra-map-green);
  color: #ffffff;
}

#myra-map-overlay .myra-map-floor-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

#myra-map-overlay .myra-map-floor-tab {
  min-width: 0;
  min-height: 30px;
  box-sizing: border-box;
  padding: 5px 6px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 700 11px/1.1 Georgia, "Times New Roman", Times, serif;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 100ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

#myra-map-overlay .myra-map-floor-tab:hover,
#myra-map-overlay .myra-map-floor-tab:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.38);
  outline: none;
}

#myra-map-overlay .myra-map-floor-tab--active,
#myra-map-overlay .myra-map-floor-tab--active:hover,
#myra-map-overlay .myra-map-floor-tab--active:focus-visible {
  color: var(--myra-map-green);
  background: #ded5cc;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(13, 15, 11, 0.2);
}

#myra-map-overlay .myra-map-card__body {
  max-height: calc(100vh - 140px);
  box-sizing: border-box;
  padding: 8px;
  overflow: auto;
  background: #ffffff;
}

#myra-map-overlay .myra-map-stage {
  position: relative;
  width: 100%;
  line-height: 0;
}

#myra-map-overlay .myra-map-plan {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

#myra-map-overlay .myra-map-markers {
  position: absolute;
  inset: 0;
}

#myra-map-overlay .myra-map-marker {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(18px, 1.5vw, 28px);
  height: clamp(18px, 1.5vw, 28px);
  box-sizing: border-box;
  padding: 2px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: var(--myra-map-muted);
  box-shadow: 0 2px 5px rgba(42, 45, 36, 0.24);
  cursor: pointer;
  line-height: 0;
  /* Node coordinates identify the sharp tip of the pin glyph. */
  transform: translate(-50%, calc(-100% + 2px));
  transform-origin: 50% calc(100% - 2px);
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

#myra-map-overlay .myra-map-marker:hover,
#myra-map-overlay .myra-map-marker:focus-visible {
  z-index: 20;
  transform: translate(-50%, calc(-100% + 2px)) scale(1.08);
  outline: none;
}

#myra-map-overlay .myra-map-marker--active {
  background: var(--myra-map-active);
  box-shadow: 0 0 0 4px rgba(79, 181, 194, 0.26), 0 3px 8px rgba(42, 45, 36, 0.28);
}

#myra-map-overlay .myra-map-marker img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#myra-map-overlay .myra-map-marker:not(.myra-map-marker--active) img {
  opacity: 0.78;
}

#myra-map-overlay .myra-map-marker__tooltip {
  position: absolute;
  z-index: 4;
  bottom: calc(100% + 7px);
  left: 50%;
  width: max-content;
  max-width: 148px;
  box-sizing: border-box;
  padding: 6px 9px;
  color: #ffffff;
  background: rgba(42, 45, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 7px;
  box-shadow: 0 7px 18px rgba(22, 24, 19, 0.28), 0 0 8px rgba(255, 255, 255, 0.18);
  font: 600 11px/1.2 Georgia, "Times New Roman", Times, serif;
  letter-spacing: 0.015em;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 80ms ease, transform 110ms ease, visibility 0s linear 110ms;
}

#myra-map-overlay .myra-map-marker:hover .myra-map-marker__tooltip,
#myra-map-overlay .myra-map-marker:focus-visible .myra-map-marker__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 80ms ease, transform 110ms ease, visibility 0s linear 0s;
}

#myra-map-overlay .myra-map-marker[data-tooltip-align="left"] .myra-map-marker__tooltip {
  left: -6px;
  transform: translate(0, 3px);
}

#myra-map-overlay .myra-map-marker[data-tooltip-align="left"]:hover .myra-map-marker__tooltip,
#myra-map-overlay .myra-map-marker[data-tooltip-align="left"]:focus-visible .myra-map-marker__tooltip {
  transform: translate(0, 0);
}

#myra-map-overlay .myra-map-marker[data-tooltip-align="right"] .myra-map-marker__tooltip {
  right: -6px;
  left: auto;
  transform: translate(0, 3px);
}

#myra-map-overlay .myra-map-marker[data-tooltip-align="right"]:hover .myra-map-marker__tooltip,
#myra-map-overlay .myra-map-marker[data-tooltip-align="right"]:focus-visible .myra-map-marker__tooltip {
  transform: translate(0, 0);
}

#myra-map-overlay .myra-map-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  padding: 7px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: var(--myra-map-green);
  cursor: pointer;
}

#myra-map-overlay .myra-map-close:hover,
#myra-map-overlay .myra-map-close:focus-visible {
  background: #3d4234;
  outline: none;
}

#myra-map-overlay .myra-map-close img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  #myra-map-overlay .myra-map-card {
    inset: 0;
    width: 100%;
    max-height: none;
    border-width: 0;
    border-radius: 0;
    transform: translateX(100%);
  }

  #myra-map-overlay[data-open="true"] .myra-map-card {
    transform: translateX(0);
  }

  #myra-map-overlay .myra-map-card__header {
    min-height: 58px;
    padding: 8px 12px;
  }

  #myra-map-overlay .myra-map-floor-tab {
    min-height: 40px;
    font-size: 12px;
  }

  #myra-map-overlay .myra-map-card__body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 58px);
    max-height: none;
    padding: 12px;
    overflow: hidden;
  }

  #myra-map-overlay .myra-map-stage {
    width: auto;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 840 / 1187;
  }

  #myra-map-overlay .myra-map-plan {
    width: 100%;
    height: 100%;
  }

  #myra-map-overlay .myra-map-marker {
    width: 30px;
    height: 30px;
  }

  #myra-map-overlay .myra-map-close {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  #myra-map-overlay .myra-map-card,
  #myra-map-overlay .myra-map-marker,
  #myra-map-overlay .myra-map-marker__tooltip,
  #myra-map-overlay .myra-map-floor-tab {
    transition: none;
  }
}
/* Directional stair links between the ground and first floors. */
.ggskin.myra-directional-hotspot {
  width: 64px !important;
  height: 64px !important;
  left: calc(50% - 32px) !important;
  top: calc(50% - 32px) !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.42));
  transition: transform 180ms ease, filter 180ms ease !important;
}

.ggskin_hotspot:hover > .myra-directional-hotspot,
.ggskin_hotspot:focus-visible > .myra-directional-hotspot {
  transform: translateY(-2px) scale(1.06);
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.82));
}

@media (max-width: 600px) {
  .ggskin.myra-directional-hotspot {
    width: 56px !important;
    height: 56px !important;
    left: calc(50% - 28px) !important;
    top: calc(50% - 28px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ggskin.myra-directional-hotspot {
    transition: none !important;
  }
}
