.profiles-show{
    padding-top: 30px;
}

.profiles-show a{
    color: inherit;
    text-decoration: none;
}
.profiles-show .form-inline{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 20px;
    margin: 0 0 20px;
}
.profile{
    height: 300px;
    
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    position: relative;
}
.wrap_profile {
  transition-duration: .3s;
  border-radius: 5px;
  width: 270px;
  margin: 0 auto;
}
.wrap_profile:hover {
  box-shadow: 0 5px 8px #00000042;
  transition-duration: .3s;
}

.profile-card{
    /*
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    */
    overflow: hidden;
}

.profile-card .profile-info{
    justify-content: start;
    display: flex;
    margin: 10px 0;
}
.profile-name{
    margin-left: 10px;
    width: 100%;
}
.description{
    font-size: 14px;
}
.description .profile-services, .description .profile-address {
  color: #969696;
}
.profile-name p, .description .profile-services, .description .profile-address {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 180px;
}
.wrap_profile_footer {
  width: calc(100% - 20px);
  position: absolute;
  bottom: 10px;
}
.profile_card_footer {
  position: relative;
}
.profile-card_footer .rate{
    color: #F79329;
}
.profile-card_footer .rate.rate-0{
    color: #C0C0C0;
}
.profile_card_footer .rate img {
  display: inline;
}
.profile_card_footer .favorite_btn {
  position: absolute;
  right: 0;
  cursor: pointer;
  color: tomato;
}

.profile-card .photo{
    width: 100%;
    height: 170px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #f2f2f2;
    border-radius: 5px;
}

.profile-card .photo img{
    border-radius: 5px;
    width: inherit;
}
.profile-photo{
    width: 100%;
    height: 100%;
    padding-bottom: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
}
.profile-info p {
  padding: 0;
  margin: 0;
}

.avatar-container{
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 25px;
}

.type-header{
    font-size: 24px;
}

/*
@media all and (max-width: 991px) {
    .profile{
        max-width: 250px;
        min-width: 100px;
    }
    
    .profile-card {
        padding: 10px 20px;
        width: 150px;
    }
    
    .avatar-container{
        width: 25px;
        height: 20px;
    }
    
}
*/
@media(min-width: 992px) and (max-width: 1199px){
    .wrap_profile {
      width: 230px;
    }
    
    .profile-name p, .description .profile-services, .description .profile-address {
      white-space: nowrap;
      width: 150px;
    }
}

@media all and (max-width: 1199px) {
    .avatar-container{
        width: 40px;
        height: 40px;
        padding: 20px;
    }
}

@media all and (max-width: 991px) {
    .profile{
        margin-left: 0px;
        margin-right: 0px;
    }
    
    .profile-name{
        line-height: 1;
    }
    
    .description{
        font-size: 12px;
        line-height: 1.3;
    }
    
}
@media(min-width: 768px) and (max-width: 991px){
    .profiles-show .form-inline {
      grid-template-columns: repeat(3, 1fr);
    }
    .wrap_profile {
      width: 230px;
    }
    .profile-name p, .description .profile-services, .description .profile-address {
      white-space: nowrap;
      width: 150px;
    }

}

@media all and (max-width: 780px) {
    
    .container{
        width: 100%;
        max-width: 100%;
    }
    
    
}
@media (min-width: 576px) and (max-width: 767px){
    .profiles-show .form-inline {
      grid-template-columns: repeat(2, 1fr);
    }

}

@media all and (max-width: 575px) {
    .type-header {
      text-align: center;
      margin: 10px;
    }
    .profiles-show .form-inline {
      grid-template-columns: repeat(1, 1fr);
    }
    .wrap_profile {
      width: 290px;
    }
    .profile-name p, .description .profile-services, .description .profile-address {
      white-space: nowrap;
      width: 230px;
    }
    .avatar-container{
        width: 30px;
        height: 30px;
        padding: 15px;
    }
}