<template>
  <div>
    <!-- 地图容器 -->
    <div id="mapContainer" :class="$route.path === '/billboard' ? 'billboard' : $route.path === '/guide' ? 'guide' : ''" />

    <!-- 地图弹框 -->
    <div id="shopInfo" class="boxShop">
      <div>{{ shop ? switchLanguage(shop, 'shopName') : '' }}</div>
    </div>
    <img src="./fac.png" id="fac" class="boxShop" />

    <div id="moveFloorBG">
      <span id="moveFloor"></span>
      <div style="position: absolute; z-index: 128" id="floorBox"></div>
    </div>
  </div>
</template>

<script setup>
import { storeToRefs } from 'pinia'
import { useStore } from '@/store/root'

const store = useStore()
const { shop } = storeToRefs(store)
</script>

<style lang="scss" scoped>
@import '@/assets/scss/mixin.scss';

#mapContainer {
  position: absolute;
  top: 118px;
  left: 0;
  height: 642px;
  width: 1080px;
  z-index: 10;
  overflow: hidden;
  background: var(--map-background);
  &.billboard {
    pointer-events: none;
  }
  &.guide {
    top: 408px;
  }
}
#fac {
  position: absolute;
  z-index: 9000 !important;
  visibility: hidden;
  width: 72px;
  height: 36px;
}
#shopInfo {
  position: absolute;
  z-index: 9000 !important;
  visibility: hidden;
  height: 36px;
  background: center / 100% 100% no-repeat url(./bg.png);
  div {
    font-weight: 700;
    font-size: 12px;
    line-height: 30px;
    text-align: center;
    border-radius: 100px;
    color: #ffffff;
    padding: 0 12px;
    @include no-wrap;
    z-index: 1;
  }
}
#moveFloorBG {
  position: absolute;
  visibility: hidden;
  border-radius: 5px;
  width: 32px;
  background-color: #ffffff;
  z-index: 126;
}
#moveFloor {
  position: absolute;
  bottom: 2px;
  left: 2px;
  border-radius: 5px;
  background-color: #dbb186;
  opacity: 1;
  width: 28px;
  height: 28px;
  z-index: 128;
}
.other-pop {
  height: 36px;
  background: #ad9c85;
  border: 2px solid #ffffff;
  border-radius: 20px;
  position: fixed;
  padding: 0 24px;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  user-select: none;
}
@media (min-aspect-ratio: 1/1) {
  #mapContainer {
    top: 280px;
    height: 800px;
    width: 1310px;
    &.guide {
      top: 280px;
    }
  }
}
</style>
