.agency-inner.sidebar-left {
    order: 1;
}

/* Agencies
-------------------------------------------------------------- */

.tfre-controll-agencies {
    display: flex;
    justify-content: right;
    column-gap: 10px;
    row-gap: 10px;
}

.tfre-controll-agencies .group-switch-layout {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: right;
}

.tfre-controll-agencies .group-switch-layout a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #ECECEC;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5C5E61;
    font-size: 24px;
    cursor: pointer;
    -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;
}

.tfre-controll-agencies .group-switch-layout a.active,
.tfre-controll-agencies .group-switch-layout a:hover {
    background: var(--theme-primary-color);
    border-color: var(--theme-primary-color);
    color: #fff;
}

.tfre-controll-agencies .group-switch-layout svg {
    max-width: 13px;
    max-height: 13px;
}

.tfre-controll-agencies .group-switch-layout svg path {
    fill: #555;
}

.tfre-controll-agencies .group-switch-layout a.active svg *,
.tfre-controll-agencies .group-switch-layout a:hover svg * {
    fill: #fff;
}

.tfre-controll-agencies .group_search_agency input,
.tfre-controll-agencies .group-agency-order .nice-select {
    margin: 0;
    border: 1px solid #ECECEC;
    padding: 8.3px 15px;
    border-radius: 10px;
}

.tfre-controll-agencies .group-agency-order .nice-select .current {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #2C2E33;
    padding-right: 35px;
    text-transform: capitalize;
}

.tfre-controll-agencies .group-agency-order .nice-select .current:after {
    color: currentColor;
    font-weight: 900;
    font-size: 16px;
}

.tfre-agency-card-item {
    display: flex;
    padding: 30px;
    background: #FFF;
    margin-bottom: 24px;
    overflow: hidden;
    padding-bottom: 32px;
    border: 1px solid #ECECEC;
    border-radius: 16px;
}

.tfre-agency-card-item .agency-avatar {
    width: 90px;
    height: 90px;
    margin-right: 29px;
    border-radius: 10px;
    border: 1px solid #ECECEC;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tfre-agency-card-item.grid .agency-image {
    width: 90px;
    height: 90px;
    margin-right: 29px;
    border-radius: 50%;
    box-shadow: 0px 4px 18px 0px #00000014;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: absolute;
    left: 19px;
    bottom: -46px;
}

.tfre-agency-card-item .agency-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tfre-agency-card-item .agency-content-title h3 {
    margin-bottom: 6px;
    margin-top: 2px;
}

.tfre-agency-card-item .agency-content-address {
    display: flex;
    align-items: center;
    color: #A8ABAE;
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    margin-bottom: 20px;
    column-gap: 5px;
}

.tfre-agency-card-item .agency-content-address i {
    font-size: 19px;
    margin-right: 2px;
}

.tfre-agency-card-item .agency-content-address svg,
.tfre-agency-card-item .card-bottom .content-left .agency-userlink a svg {
    max-width: 18px;
    max-height: 18px;
}

.tfre-agency-card-item .card-bottom .content-left .agency-userlink a:hover svg * {
    fill: #fff;
}

.tfre-agency-card-item .agency-content-address img {
    margin-right: 4px;
}

.tfre-agency-card-item .agency-content-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    color: #5C5E61;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.tfre-agency-card-item .agency-content-title .agency-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 22.5px;
    margin-bottom: 5px;
}

.tfre-agency-card-item .card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 23px;
    border-top: 1px solid #ECECEC;
    margin-top: 19px;
}

.tfre-agency-card-item .card-bottom .content-right a {
font-size: 16px;
font-weight: 400;
line-height: 22.4px;
color: var(--theme-primary-color);
padding: 11px 28px;
border-radius: 12px;
border: 1px solid var(--theme-primary-color);
}

.tfre-agency-card-item .card-bottom .content-right a:hover {
    color: #fff;
    background: var(--theme-primary-color);
}

.tfre-agency-card-item .card-bottom .content-left .agency-userlink a {
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 8px;
    color: var(--theme-primary-color);
    background: var(--theme-primary-rgba);
    font-size: 16px;
}

.tfre-agency-card-item .card-bottom .content-left .agency-userlink a * {
    fill: var(--theme-primary-color);
}

.tfre-agency-card-item .card-bottom .content-left .agency-userlink a:hover {
    background: var(--theme-primary-color);
    color: #fff;
    border-color: var(--theme-primary-color);
}

.tfre-agency-card-item .card-bottom .agency-social a,
.tfre-agency-card-item.grid .agency-social a {
    color: #C8C8CF;
    font-size: 20px;
    margin-left: 20px;
}

.tfre-agency-card-item .card-bottom .agency-social a:hover,
.tfre-agency-card-item.grid .agency-social a:hover,
.list-item-agent .agent-social a:hover {
    color: var(--theme-primary-color);
}

.tfre-agency-card-item.grid .agency-social a {
    margin-right: 20px;
    font-size: 18px;
    margin-left: 0;
}

.tfre-agency-card-item.grid .agency-social {
    margin-top: 20px;
    padding: 0 !important;
}

.tfre-agency-card-item.grid .agency-social {
    padding-top: 16px;
    margin-bottom: -5px;
}

.agency-listing-header {
    margin-bottom: 32px;
    align-items: center;
}

.agency-listing-header .col-sm-3 h4 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25em;
    margin: 0;
}

.tfre-agency-card-item.grid {
    display: block;
    padding: 0;
    border: none;
}

.tfre-agency-card-item.grid .agency-content {
    padding: 54px 20px 26px 23px;
    border: 1px solid #ECECEC;
    border-top: unset;
    border-radius: 0 0 16px 16px;
}

.tfre-agency-card-item.grid .agency-address {
font-size: 16px;
font-weight: 400;
line-height: 22.4px;
color: #5C5E61;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-word;
}

.agency-inner-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -40px;
}

.agency-inner-grid .tfre-agency-card-item.grid {
    width: calc(33.33333% - 40px);
    margin-left: 30px;
}

.enable .agency-inner-grid .tfre-agency-card-item.grid {
    width: calc(50% - 40px);
    margin-left: 40px;
    margin-bottom: 40px;
}

.tfre-agency-card-item.grid .cover-photo img {
    width: 100%;
    height: 202px;
    border-radius: 10px 10px 0 0;
}

.tfre-agency-card-item.grid .agency-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tfre-agency-card-item.grid .agency-wrapper {
    position: relative;
}

.tfre-agency-card-item.grid .agency-title {
    margin-top: 8px;
    margin-bottom: 1px;
    font-size: 18px;
    font-weight: 600;
    line-height: 22.5px;
}

.tfre-agency-card-item.grid .agency-userlink .agency-title {
    margin: 0 !important;
}

.tfre-agency-card-item.grid .card-bottom .content-left {
    gap: 8px;
}

.tfre-agency-card-item.grid .agency-content-address {
    margin-bottom: 17px;
}

.tfre-agency-card-item.grid .agency-infor-list {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
font-size: 14px;
font-weight: 400;
line-height: 21px;
color: #5C5E61;
}

.tfre-agency-card-item.grid .card-bottom {
    padding-top: 19px;
    margin-top: 0px;
}

.tfre-agency-card-item.grid .agency-infor-list strong {
    font-weight: 500;
    width: 20%;
    flex-shrink: 0;
    margin-right: 10px;
    color: #2C2E33;
}

.tfre-agency-single-wrap .cover-photo img {
    height: 300px;
    border-radius: 16px;
    object-fit: cover;
}

.tfre-agency-single-wrap .agency-wrap-info {
    display: flex;
    align-items: end;
    margin: 0 30px;
}

.tfre-agency-single-wrap .agency-wrap-info .agency-image {
    margin-right: 26px;
    flex-shrink: 0;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    box-shadow: 0px 4px 18px 0px #00000014;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -13.9%;
    transform: translateY(14px);
}

.tfre-agency-single-wrap .agency-wrap-info .agency-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tfre-agency-single-wrap .agency-wrap-info .agency-title {
    margin-bottom: 8px;
}

.tfre-agency-single-wrap .agency-wrap-info .agent-content-address {
    color: #8E8E93;
}

.tfre-agency-single-wrap .agency-wrap-info .agent-content-address svg {
    max-width: 20px;
    max-height: 20px;
}

.tfre-agency-single-wrap .agency-wrap-info .agent-content-address svg * {
    fill: #8E8E93;
}

.tfre-agency-single-wrap .agency-wrap-info .agency-info h5 {
font-size: 26px;
font-weight: 600;
line-height: 32.5px;
color: #1C1C1E;
margin-bottom: 5px;
}

.tfre-agency-single-wrap .agency-wrap-info .agency-info .agent-content-address {
font-size: 16px;
font-weight: 400;
line-height: 22.4px;
color: #5C5E61;
}

.tfre-agency-single-wrap .agency-wrap-info .agency-info .agent-content-address i {
    font-size: 18px;
    margin-right: 3px;
}

.tfre-agency-single-wrap .agent-contact-information {
    border-radius: 16px;
    padding: 30px;
    margin-top: 62px;
    border: 1px solid #ECECEC;
}

.tfre-agency-single-wrap .group-infor {
    border-radius: 10px;
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 33px;
}

.tfre-agency-single-wrap .group-infor strong {
    font-weight: 600;
    width: 10%;
    flex-shrink: 0;
    margin-right: 10px;
}

.tfre-agency-single-wrap .group-infor .agency-infor-list {
    display: flex;
    align-items: center;
    margin-bottom: 12.1px;
}

.tfre-agency-single-wrap .group-infor .agency-infor-list:last-child {
    margin-bottom: 0;
}

.tfre-agency-single-wrap .agency-title {
    border-bottom: 1px solid #EFEFEF;
    margin-bottom: 12px;
    padding-bottom: 11px;
font-size: 18px;
font-weight: 600;
line-height: 22.5px;
}

.tfre-agency-single-wrap .agent-content {
    margin-bottom: 30px;
}

.tfre-agency-single-wrap .agent-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    color: #5C5E61;
}

.tfre-agency-single-wrap .map-container #map-agency {
    height: 360px;
    border-radius: 10px;
}

.tfre-agency-single-wrap .map-container #map-agency .mapboxgl-marker {
    width: 45px;
    height: 60px;
}

.agent-contact-information {
    margin-bottom: 30px;
}

.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: 42.5px;
}

@media only screen and (max-width: 991px) {

    .agency-inner-grid,
    .tfre-agency-card-item .card-bottom,
    .tfre-controll-agencies {
        flex-wrap: wrap;
    }

    .tfre-controll-agencies .group-switch-layout,
    .tfre-controll-agencies .group_search_agency {
        width: calc(50% - 10px);

    }

    .tfre-controll-agencies .group-agency-order {
        width: max-content;
    }

    .disable .agency-inner-grid .tfre-agency-card-item.grid {
        width: calc(50% - 30px);
    }

    .tfre-agency-card-item .card-bottom .content-left,
    .agency-inner h2 {
        margin-bottom: 20px;
    }

    .tfre-controll-agencies .group-agency-order,
    .tfre-controll-agencies {
        margin-top: 0px;
    }

    .tfre-controll-agencies .group_search_agency {
        margin-bottom: 10px;
    }

    .tfre-agency-single-wrap .group-infor strong {
        width: 20%;
    }

    .tfre-controll-agencies .group-switch-layout {
        width: unset;
    }

    .tfre-controll-agencies {
        flex-wrap: nowrap;
        align-items: baseline;
    }

    .tfre-agency-single-wrap .agency-wrap-info {
        align-items: center;
    }

    .tfre-agency-single-wrap .agency-wrap-info .agency-image {
        width: 150px;
        height: 150px;
    }
}

@media only screen and (max-width: 767px) {

    .enable .agency-inner-grid .tfre-agency-card-item.grid,
    .disable .agency-inner-grid .tfre-agency-card-item.grid {
        width: calc(100% - 30px);
    }

    .tfre-controll-agencies .group-switch-layout {
        justify-content: left;
    }

    .tfre-agency-single-wrap .agency-wrap-info {
        margin: 0;
        margin-top: 20px;
    }

    .tfre-controll-agencies .group-switch-layout {
        width: unset;
        margin-bottom: 10px;
        margin-top: 10px;
    }

    .tfre-controll-agencies {
        justify-content: left;
    }

    .tfre-controll-agencies.controll-agent {
        justify-content: right;
    }

    .title-agent {
        margin: 0;
    }
}