<template>
  <div class="map-container">

  </div>
</template>

<script setup lang="ts">
// import { VideoCamera, MapMarker, Person, AlertCircle, ChevronDown } from '@vicons/ionicons5';
</script>

<style scoped lang="scss">
.map-container {
  position: relative;
  width: 100%;
  height: 100%;

  .map-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .map-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .marker {
    position: absolute;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: rgba(54, 162, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;

    &:hover { transform: scale(1.2); }

    .label {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(10, 25, 71, 0.9);
      color: #fff;
      font-size: 0.12rem;
      padding: 0.03rem 0.05rem;
      border-radius: 0.03rem;
      margin-top: 0.05rem;
    }

    // 标记点位置
    &.warehouse-cam { top: 30%; left: 55%; }
    &.slope-displacement { top: 60%; left: 50%; }
    &.person-position { top: 45%; left: 35%; }
    &.warning-point {
      top: 55%; left: 30%;
      background: rgba(255, 99, 132, 0.8);
      animation: pulse 2s infinite;
    }
  }

  .filter-dropdown {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    z-index: 10;
  }

  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 99, 132, 0.7); }
    70% { box-shadow: 0 0 0 0.1rem rgba(255, 99, 132, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 99, 132, 0); }
  }
}
</style>