ul.pagination {
  list-style: none;
}

ul.pagination > li.active a {
  background-color: #EB3CF5;
  border-color: #EB3CF5;
}

ul.pagination > li a{
  color: #EB3CF5;
}

.property-list {
  margin: 50px 0;
  padding: 0 0;
}

#properties_list_box > div {
  cursor: pointer;
  margin: 20px 0;
}

#properties_list_box > div > .overlay {
  width: calc(100% - 30px);
  background: rgba(0,0,0,0);
  height: calc(100%);
  position: absolute;
  -webkit-transition: all 200ms ease-in-out;
  -moz-transition: all 200ms ease-in-out;
  -o-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

#properties_list_box > div:hover > .overlay {
  background: rgba(0,0,0,.5);
}

#properties_list_box > div > .overlay > .btn {
  display: none;
}

#properties_list_box > div:hover > .overlay > .btn {
  display: block;
}

#properties_list_box > div:last-child {
  border-bottom: none;
}

#properties_list_box > div > img {
  object-fit: cover;
  height: 240px;
  width:100%
}

#properties_list_box > div .item-contract {
  position: absolute;
  top: 30px;
  right: 20px;
  text-transform: uppercase;
  color: #fff;
  font-weight: bold;
  padding: 5px 10px;
}

#properties_list_box > div .item-contract.Affitto {
  background: #9DBC3C;
}

#properties_list_box > div .item-contract.Vendita {
  background: #EB3CF5;
}

#properties_list_box > div .item-description {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  width: 100%;
}

#properties_list_box > div .item-title {
  display: inline-block;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  padding: 0 5px;
}

.item-info {
  display: inline-block;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
}

.item-info a, .item-info a:hover {
  color: #EB3CF5;
}

@media (min-width: 992px) {
  #properties_list_box > div:nth-child(3n+1) {
    padding-left: 0;
  }

  #properties_list_box > div:nth-child(3n+1) > .overlay, #properties_list_box > div:nth-child(3n+1) > .item-description {
    width: calc(100% - 15px);
  }

  #properties_list_box > div:nth-child(3n+2) {
    padding-left: 0;
    padding-right: 0;
  }

  #properties_list_box > div:nth-child(3n+2) > .overlay, #properties_list_box > div:nth-child(3n+2) > .item-description {
    width: calc(100%);
  }

  #properties_list_box > div:nth-child(3n+3) {
    padding-right: 0;
  }

  #properties_list_box > div:nth-child(3n+3) > .overlay, #properties_list_box > div:nth-child(3n+3) > .item-description {
    width: calc(100% - 15px);
  }

  #properties_list_box > div:nth-child(3n+3) > .item-description {
    left: 15px;
  }
}
