.marker {
  position: absolute;
  z-index: 100;
  border: 2px dotted transparent;
  cursor: pointer;
  user-select: none;

  &:hover {
    & .index {
      opacity: 1;
      transition: 0.3s;
    }
  }

  & .index {    
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background-color: $tealx;
    flex-shrink: 0;    
    border: solid thin white;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;   
  }

  & .tooltip {    
    padding: 10px;
    border-radius: 3px;
    background-color: $tealx;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    /* position: absolute; */
    /* bottom: 100%; */
    /* left: 0; */
    /* margin-bottom: 20px; */
    color: white;

    &::before {
      top: 100%;
      left: 40%;
      border-color: $tealx transparent transparent transparent;
      content: "";
      display: block;
      border-style: solid;
      border-width: 10px 10px 10px 10px;
      position: absolute;
    }
  }  
}

.active {
  border: 2px dotted $tealx;

  & .index {
    opacity: 1
  }
}