@import '../variables';

.card {
  position: relative;
  display: block;
  margin-top: -1px;
  text-decoration: none;
  background-color: $brand-white;
  border-top: 1px solid $light-grey;
  border-bottom: 1px solid $light-grey;

  &:hover {
    background-color: #e3f2fd;
  }

  &:focus {
    outline: none;
  }

  &:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: .5rem;
  }
}

.cardWrapper {
  padding: 1.5rem 1rem;
}

.title {
  composes: title from 'cem/styles/typography';
  margin: 0;
  margin-bottom: .2rem;
  color: $dark-grey;
}

.fullName {
  margin: 0;
  margin-bottom: .2rem;
  color: $brand-default;
  font-size: 1.8rem;
  font-weight: 400;
}

.titleBigger {
  composes: fullName;
}

.position {
  margin: 0;
  color: $darker-grey;
  font-size: 1.4rem;
}

.conditionWrapper {
  text-align: right;
}

.list {
  margin: 0;
}

.listTitle {
  margin: 0;
  margin-bottom: .5rem;
  color: $dark-grey;
  font-weight: 300;
  line-height: 1;
}

.listDescription {
  margin: 0;
  color: $brand-default;
  font-weight: 400;
}

.objectPrice {
  margin-bottom: 1.5rem;
}

.imageContainer {
  overflow: hidden;
  width: 23.4rem;
  height: 20rem;
}

.image {
  width: 100%;
  height: 100%;
}

/* properties photos card */

.cardPhotos {
  display: block;
  border: 1px solid $light-grey;
  margin-bottom: 3rem;
}

.titlePhotos {
  margin-top: 0;
  color: $font-color;
}

.imageProperties {
  display: block;
}

/* kind */

.success {
  &:after {
    background-color: $brand-success;
  }
}

.danger {
  &:after {
    background-color: $brand-danger;
  }
}

/* sizes */

.resetPadding {
  margin-left: -2.5rem;
}

.pushedBottom {
  margin-bottom: 4.5rem;
}

.pushedBottom10 {
  margin-bottom: 1rem;
}

.pushedTop {
  margin-top: 2rem;
}

.isDragging > * {
  opacity: 0;
}

.isDragging {
  border-top: 2px solid $brand-primary;
}
