/*Used for carousel in both edit and detail page.*/
.prop-slider {
  position: relative;
}

.spy-edit-sections.featured .prop-slider:before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  transform: rotate(-90deg);
  height: 88px;
  width: 87px;
  background-repeat: no-repeat;
  z-index: 1;
  background-image: url(../../../images/is-featured-label.png);
}

.prop-slider > .carousel {
  height: 360px;
  padding: 5px;
  border-bottom: 1px solid #ddd;
}


    .prop-slider > .carousel > .carousel-inner {
        height: 350px;
        overflow: hidden;
    }
        .prop-slider > .carousel > .carousel-inner > .item {
            height: 100%;
            overflow: hidden;
        }

        .prop-slider > .carousel > .carousel-inner img {
            -o-object-fit: contain;
            object-fit: contain;
            margin: auto;
            width: 100%;
            height: 100%;
        }

.prop-slider > .carousel > .carousel-control {
  background-image: none;
  background-color: rgba(0, 147, 68, 0.7);
  -webkit-border-radius: 50%;
     -moz-border-radius: 50%;
          border-radius: 50%;
  top: 50%;
  margin-top: -20px;
  width: 40px;
  height: 40px;
}

.prop-slider > .carousel > .carousel-control.left {
  left: 5px;
}

.prop-slider > .carousel > .carousel-control.right {
  right: 5px;
}

.carousel-thumbnail-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  padding: 5px;
}

.prop-slider #thumbcarousel {
  width: -webkit-calc(100% - 90px);
  width: -moz-calc(100% - 90px);
  width: calc(100% - 90px);
  margin-left: 5px;
  margin-right: 5px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  height: 60px;
  overflow: auto;
  -webkit-flex-wrap: nowrap;
      -ms-flex-wrap: nowrap;
          flex-wrap: nowrap;
  vertical-align: top;
}

.prop-slider.edit-page #thumbcarousel {
  height: 100px;
  width: -webkit-calc(100% - 60px);
  width: -moz-calc(100% - 60px);
  width: calc(100% - 60px);
}

    .prop-slider #thumbcarousel.has-pix {
        width: -webkit-calc(100% - 180px);
        width: -moz-calc(100% - 180px);
        width: calc(100% - 180px);
    }

.prop-slider #thumbcarousel .thumb {
  width: 40px;
  min-width: 40px;
  height: 40px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.prop-slider.edit-page #thumbcarousel .thumb {
  width: 80px;
  min-width: 80px;
  height: 80px;
  position: relative;
  cursor: default;
}

.prop-slider #thumbcarousel .thumb + .thumb {
  margin-left: 5px;
}

.prop-slider #thumbcarousel .thumb.active {
  border: 3px solid #009344;
}

.prop-slider #thumbcarousel .thumb img {
  height: 100%;
  width: 100%;
  max-width: none;
  -o-object-fit: cover;
     object-fit: cover;
}

.carousel-thumbnail-container .thumb-button {
  padding: 5px;
  max-width: 40px;
  min-width: 40px;
  height: 40px;
  display: -webkit-flex;
  display: -ms-flex;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -ms-align-items: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.edit-page .carousel-thumbnail-container .thumb-button + .thumb-button {
    margin-top: 5px;
}

.carousel-thumbnail-container .thumb-button.pix-button img {
    max-width: 40px;
    min-width: 40px;
    height: 40px;
}

.carousel-thumbnail-container .thumb-button i.fa,
.carousel-thumbnail-container .thumb-button img {
  font-size: 20px;
}

.carousel-thumbnail-container .thumb-button h5 {
  text-align: center;
  margin: 0;
}

.carousel-thumbnail-container .thumb-button.managedealroom:hover {
  text-decoration: none;
  color: white;
}

.prop-slider .carousel-indicators li {
  margin-right: 1px;
  border: 1px solid #009344;
  background-color: rgba(255, 255, 255, 0.8);
}

.prop-slider .carousel-indicators li.active {
  margin-right: 0;
  background-color: #009344;
}

.prop-slider .img-top-content {
    padding: 10px 50px;
    background-color: rgba(0,0,0,0.4);
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1;
    color: white;
}

@media (min-width: 768px) {
  .prop-slider > .carousel {
    height: 396px;
    padding: 5px;
  }

  .prop-slider > .carousel > .carousel-control.left {
    left: 10px;
  }

  .prop-slider > .carousel > .carousel-control.right {
    right: 10px;
  }

  .carousel-thumbnail-container {
    padding: 10px;
  }

  .carousel-thumbnail-container .thumb-button {
    padding: 4px;
    max-width: 60px;
    min-width: 60px;
    height: 60px;
  }

    .carousel-thumbnail-container .thumb-button.pix-button img {
        max-width: 60px;
        min-width: 60px;
        height: 60px;
    }

  .prop-slider #thumbcarousel {
    width: -webkit-calc(100% - 130px);
    width: -moz-calc(100% - 130px);
    width: calc(100% - 130px);
    margin-right: 10px;
    height: 80px;
  }

  .prop-slider.edit-page #thumbcarousel {
    height: 270px;
    width: -webkit-calc(100% - 90px);
    width: -moz-calc(100% - 90px);
    width: calc(100% - 90px);
  }

    .prop-slider #thumbcarousel.has-pix {
        width: -webkit-calc(100% - 130px);
        width: -moz-calc(100% - 130px);
        width: calc(100% - 130px);
    }

    .prop-slider #thumbcarousel .thumb {
        width: 60px;
        min-width: 60px;
        height: 60px;
        position: relative;
    }

  .prop-slider.edit-page #thumbcarousel .thumb {
    width: 240px;
    min-width: 240px;
    height: 240px;
  }

  .prop-slider #thumbcarousel .thumb + .thumb {
    margin-left: 10px;
  }

  .carousel-thumbnail-container .thumb-button i.fa,
  .carousel-thumbnail-container .thumb-button img {
    margin-bottom: 2px;
  }

  .prop-slider > .carousel .carousel-control .glyphicon,
  .prop-slider > .carousel .carousel-control .glyphicon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-top: -11px;
  }
}
