.agent-tabs {
    display: flex;
    flex-direction: column;
}

.agent-tab-titles {
    display: flex;
    gap: 5px;
}

.agent-tab-title {
    padding: 10px;
    margin: 2px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 300;
    line-height: 22.4px;
    color: #5C5E61;    
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    padding: 0 8px;
    border: none;
    padding-bottom: 7px;
    border-bottom: 2px solid transparent;
}

.tab button.active {
    background-color: #ccc;
}

.agent-tab-title:hover {
    color: var(--theme-primary-color);
    border-color: var(--theme-primary-color);
}

.agent-tab-title.active {
    color: var(--theme-primary-color);
    border-color: var(--theme-primary-color);
    font-weight: 700;
}

.agent-tab-content .agent-tab {
    display: none;
}

.agent-tab-content .agent-tab.active {
    display: block;
}

.agent-tab-content .agent-tab.active .properties p {
font-size: 16px;
font-weight: 400;
line-height: 22.4px;
color: #5C5E61;
}

.agent-inner.sidebar-left{
    order: 1;
}

.agency-wrapper {
    position: relative;
}

.user-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-description {
    font-size: 18px;
}

.cover-photo {
    height: 100%;
    overflow: hidden;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-contact-information {
    margin-top: 5%
}

.agency-view-grid-list.active{
    color: black;
}
.card {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}

.thumbnail {
    flex: 0 0 150px;
}

.thumbnail img {
    width: 100%;
    height: auto;
}

.agency-avatar img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    object-position: center;
}


.single-agent-all-listing .button-wrap {
    border-top: 1px solid #EFEFEF;
    padding-top: 30px;
    margin-top: 30px;
}

.single-agent-all-listing .button {
    padding: 18px 32px;
    display: inline-block;
    background: var(--theme-primary-color);
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
}

.single-agent-all-listing .button i {
    margin-left: 8px;
    vertical-align: middle;
}

.single-agent-all-listing .button:hover {
    background: #161E2D;
    color: #fff;
}

.single-agent-element .agent-author {
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0px 8px 20px 0px #0000000D;
    padding: 20px 20px 20px 20px;
    margin-bottom: 49px;
}

.single-agent-element .agent-description p {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: #5C6368;
}

.single-agent-element .agent-author .agent-avatar img {
    border-radius: 16px;
    object-fit: cover;
    height: 467px;
    object-position: top;
}

.single-agent-element .agent-author .agent-avatar {
    margin-right: 30px;
    width: 43.7%;
    position: relative;
}

.single-agent-element .agent-author .agent-title {
    font-size: 22px;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    color: #5C5E61;
    margin: 0;
}

.single-agent-element .agent-author .agent-content-item {
    display: flex;
    align-items: center;
}

.single-agent-element .agent-author .agent-content-item svg {
    width: 14px;
    height: 14px;
}

.single-agent-element .agent-author .agent-content-item svg * {
    fill: #555;
}

.single-agent-element .agent-author .agent-content-company {
    margin-bottom: 18px;
}

.single-agent-element .agent-author .agent-company {
    color: #5C6368;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0em;
}

.single-agent-element .agent-author .agent-company b {
    color: #2b2b2b;
}

.single-agent-element .agent-author .agent-content-phone,
.single-agent-element .agent-author .agent-content-email {
    margin-bottom: 5.5px;
}

.single-agent-element .agent-author .agent-content-phone a {
    color: var(--theme-primary-color);
}

.single-agent-element .agent-author .agent-content-phone i,
.single-agent-element .agent-author .agent-content-email i,
.single-agent-element .agent-author .agent-content-address i {
    color: #8E8E93;
    margin-right: 7px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.single-agent-element .agent-author .agent-content-email i {
    font-size: 13px;
}

.single-agent-element .agent-author .agent-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    border-radius: 16px;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    right: 0;
    background: #000000;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 5;
    width: max-content;
}

.single-agent-element .agent-author .agent-social a {
    padding: 0 15px;
    border: unset;
    border-right: 1px solid #ffffff29;
    color: #fff;
    line-height: 5px;
}

.single-agent-element .agent-author .agent-social a:hover {
    color: var(--theme-primary-color);
}

.single-agent-element .agent-author .agent-social .item:last-child a {
    border: unset !important;
}

.single-agent-element .agent-author {
    display: flex;
}

.single-agent-element .agent-author .agent-content {
    width: 50%;
}

.single-agent-element .agent-author .agent-content-title h5 {
font-size: 24px;
font-weight: 600;
line-height: 30px;
margin-bottom: -2px;
}

.single-agent-element .agent-author .agent-content-company {
font-size: 14px;
font-weight: 400;
line-height: 21px;
color: #8E8E93;
}

.single-agent-element .agent-author .agent-description {
    margin-top: 30px;
    padding-top: 31px;
    border-top: 1px solid #EFEFEF;
}

.single-agent-element .agent-author .agent-description h6 {
    font-size: 18px;
    font-weight: 600;
    line-height: 22.5px;
    margin-bottom: 11px;
}

.single-agent-element .agent-author .agent-description p {
font-size: 16px;
font-weight: 400;
line-height: 22.4px;
color: #5C5E61;
}

.single-agent-element .tfre-property-info .inner {
    position: relative;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.single-agent-element .tfre-property-info .inner.hide-content {
    height: 88px;
    overflow: hidden;
}

.single-agent-element .tfre-property-info .inner.show-content {
    height: auto;
}

.single-agent-element .tfre-property-info .inner::after {
    content: '';
    width: 100%;
    height: 50%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(55, 100, 235, 0) 0%, #fff 100%);
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.single-agent-element .tfre-property-info .inner.hide::after {
    display: none;
}

.single-agent-element .tfre-property-info .inner.show-content::after {
    opacity: 0;
    visibility: hidden;
}

.single-agent-element .tfre-property-info .inner.hide-content::after {
    opacity: 1;
    visibility: visible;
}

.single-agent-element .tfre-property-info {
    margin-top: 11px;
}

.single-agent-element .tfre-property-info .button-show-hide {
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    color: var(--theme-primary-color);
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    margin-top: 9px;
    display: block;
    cursor: pointer;
}

.single-agent-element .tfre-property-info .button-show-hide:hover {
    color: var(--theme-primary-color);
}

.single-agent-element .tfre-property-info .button-show-hide::after {
    content: '\e921';
    font-family: 'proty';
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    transform: rotate(90deg);
    font-size: 20px;
}

.single-agent-element .tfre-property-info .button-show-hide.show::after {
    transform: rotate(270deg);
}

.more-listing-description {
    font-weight: 600 !important;
    color: #000 !important;
    cursor: pointer;
    font-size: 16px !important;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.more-listing-description:hover {
    color: var(--theme-primary-color) !important;
}

.list-item-agent {
    margin-top: 30px;
}

.list-item-agent .agent-inner {
    display: flex;
    flex-wrap: wrap;
    margin-left: -40px;
}

.list-item-agent .agent-inner .agent-wrapper.column3 {
    width: calc(25% - 40px);
    margin-left: 40px;
}

.list-item-agent .agent-inner .agent-wrapper.column4 {
    width: calc(33.33333% - 40px);
    margin-left: 40px;
}

.list-item-agent .infor-agent {
    display: flex;
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0px 4px 18px 0px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 30px;
}

.list-item-agent .infor-agent .agent-avatar img {
    border-radius: 10px;
}

.list-item-agent .infor-agent .agent-avatar {
    margin-right: 30px;
    position: relative;
}

.list-item-agent .agent-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 2px;
}

.list-item-agent .agent-position {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #5C5E61;
}

.list-item-agent .agent-wrap-info {
    margin-bottom: 17px;
}

.list-item-agent .agent-phone,
.list-item-agent .agent-email {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0em;
    color: #2b2b2b;
}

.list-item-agent .group-connect-agent {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 0px;
    top: 5px;
}

.list-item-agent .group-connect-agent a {
    width: 38px;
    height: 38px;
    border: 1px solid #ECECEC;
    border-radius: 50%;
    color: #5C5E61;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-item-agent .group-connect-agent a:hover {
    background: var(--theme-primary-color);
    color: #fff;
    border-color: var(--theme-primary-color);
}

.list-item-agent .agent-wrapper.grid .inner {
    margin-bottom: 39px;
}

.list-item-agent .agent-wrapper.grid .agent-image {
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}

.list-item-agent .agent-wrapper.grid .agent-image img {
    border-radius: unset;
    object-fit: cover;
    width: 100%;
    height: 390px;
    object-position: top;
}

.list-item-agent .agent-wrapper .agent-content {
    position: relative;
    padding-right: 83px;
}

.list-item-agent .agent-wrapper .agent-content.position {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0em;
    color: #555555;
}

.list-item-agent .paging-navigation {
    justify-content: center;
}

.list-item-agent .agent-wrapper .agent-image img {
    -webkit-transition: all 1s cubic-bezier(0.3, 1, 0.35, 1) 0s;
    transition: all 1s cubic-bezier(0.3, 1, 0.35, 1) 0s;
}

.list-item-agent .agent-wrapper:hover .agent-image img {
    -webkit-transform: scale3d(1.07, 1.07, 1.07);
    transform: scale3d(1.07, 1.07, 1.07);
}

.list-item-agent .agent-wrapper .agent-image::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.12);
    bottom: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 1;
}

.list-item-agent .agent-wrapper:hover .agent-image::after {
    bottom: 0;
    opacity: 1;
    visibility: visible;
}

.agent-wrapper .agent-image .agent-social,
.infor-agent.list .agent-avatar .agent-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px 0;
    border-radius: 16px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    right: 0;
    background: #000000;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 5;
    width: max-content;
}

.agent-wrapper:hover .agent-image .agent-social,
.infor-agent.list:hover .agent-avatar .agent-social {
    opacity: 1;
    visibility: visible;
    bottom: 32px;
}

.tfre-agency-single-wrap .header-agent-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tfre-agency-single-wrap .header-agent-list .title-agent {
    margin: 0;
    font-size: 40px;
    font-weight: 600;
    line-height: 50px;
}

.tfre-agency-single-wrap .tfre-controll-agencies .group-agency-order .nice-select {
    border: none;
}

.cards-container.list-item-agent .paging-navigation {
    text-align: center;
}

.agent-wrapper .agent-social a,
.infor-agent.list .agent-avatar .agent-social a {
    padding: 0 15px;
    border: unset;
    border-right: 1px solid #ffffff29;
    color: #fff;
    line-height: 5px;
}

.agent-wrapper .agent-social a:last-child,
.infor-agent.list .agent-avatar .agent-social a:last-child {
    border: unset !important;
}

.agent-wrapper .agent-social a:hover,
.infor-agent.list .agent-avatar .agent-social a:hover {
    color: var(--theme-primary-color) !important;
}

.infor-agent.list .agent-content {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-agent-property.agent-tabs {
    margin-bottom: 26px;
}

.single-agent-property.agent-tabs .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.single-agent-property.agent-tabs h3 {
    font-size: 34px;
    font-weight: 600;
    line-height: 1.25em;
    margin: 0;
}

@media only screen and (max-width: 991px) {
    .infor-agent.list {
        display: block;
    }
    .infor-agent.list .agent-avatar {
        margin-right: 0px;
        margin-left: 0;
        margin-bottom: 20px;
    }
    .single-agent-element .agent-author .agent-avatar img,
    .infor-agent.list .agent-avatar img {
        width: 100%;
    }
}

@media only screen and (max-width: 767px) {
    .list-item-agent .infor-agent .agent-avatar img {
        height: 100%;
        object-fit: cover;
    }
    .single-agent-element .agent-author { 
        display: block;
    }
    .single-agent-element .agent-author .agent-avatar {
        margin-right: 0px;
    }
    .single-agent-element .agent-author .agent-content { 
        padding-bottom: 0;
    }
    .single-agent-all-listing  {
        margin-bottom: 80px;
    }
    .single-agent-element .agent-author .agent-avatar,
    .single-agent-element .agent-author .agent-content {
        width: 100%;
    }
    .single-agent-element .agent-author .agent-avatar {
        margin-bottom: 30px;
    }
    .single-agent-property.agent-tabs h3 {
        font-size: 25px;
    }
}