﻿.article-card {
    border-radius: 8px;
    box-shadow: 0 1px 10px 0 rgba(0,0,0,0.12);
    background-color: #ffffff;
    margin-bottom: 24px;
}

.article-card .article-card-head {
    height: 160px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
    overflow: hidden;
}

.article-card-head .card-head-img {
    height: 100%;
}

.article-card-head .card-head-img iframe {
    height: 100%;
    width: 100%;
    border-radius: 8px;
}

.article-card-head .card-head-img a {
    height: 100%;
    width: 100%;
    background-color: transparent;
    z-index: 99;
    display: block;
    position: absolute;
}

.card-head-img .card-image-top {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.article-card-head .card-head-function {
    height: 64px;
    border-radius: 8px;
    background-image: linear-gradient(to top, rgba(255,255,255,0), rgba(43,43,43,0.18) 70%, rgba(43,43,43,0.68));
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
}

.card-head-function .article-flag {
    border-radius: 4px;
    background-color: #65bd43;
    color: #fff;
    font-size: 12px;
    min-width: 70px;
    text-align: center;
    padding: 3px 6px;
    height: 24px;
}

.card-head-function .list-function {
    margin-top: 8px;
    margin-right: 5px;
    z-index: 999;
}

.btn-func {
    background-color: transparent;
    padding: 0px;
    width: 32px;
    height: 32px;
    margin-right: 6px;
}

.btn-func img {
    width: 28px;
}

.article-card-body {
    padding: 10px 12px;
    position: relative;
}

.article-card-body .card-title h3 {
    height: 40px;
    font-size: 14px;
    font-weight: 700;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.43;
    letter-spacing: normal;
    color: #2b2b2b;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    margin-bottom: 0;
    margin-top: 0 !important;
}

.card-title {
    display: flex;
    margin-bottom: 4px;
}

.no-wrap {
    flex-wrap: nowrap;
}

.items-center {
    align-items: center;
}

.article-card-body .article-info-detail {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: normal;
    color: #2b2b2b;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    margin: 0 8px;
    border-top: 1px solid #e0e0e0;
    padding: 8px 0 12px;
}

.article-card-footer a {
    color: #ab8843 !important;
}

.article-card-footer .icons {
    width: 14px;
    margin-right: 8px;
}

.article-card-footer .chip-content-footer {
    line-height: 1.5;
    letter-spacing: normal;
    color: #626262;
    font-size: 12px;
}

.article-card-footer .chip-content-footer::before {
    content: '';
    display: inline-block;
    height: 20px;
    width: 14px;
    vertical-align: bottom;
    background: transparent none no-repeat center center/100% auto;
    margin-right: 8px;
}

.article-card-footer .chip-content-footer.icon-date::before {
    background-image: url("/img/icons/date.svg");
}

.article-card-footer .chip-content-footer.icon-eye::before {
    background-image: url("/img/icons/eye-outline.svg");
}

.article-card-footer .chip-content-footer.icon-messenge::before {
    height: 20px;
    width: 20px;
    background-image: url("/img/icons/messenge.svg");
}

.article-card-footer .items-center {
    display: flex;
}

.article-card-footer .items-center:nth-of-type(3) .icons {
    width: 20px;
}

.article-card-body .article-info {
    display: inline-flex;
    align-items: center;
    padding: 4px 0 4px;
}

.article-info .article-price {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.71;
    letter-spacing: normal;
    color: #2b2b2b;
    min-width: 145px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    padding-right: 15px;
}

.text-normal {
    font-size: 12px;
    line-height: 1.5;
    color: #4a4a4a;
}

.article-info-detail-item {
    display: block;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.article-info-detail-item::before {
    content: '';
    display: inline-block;
    height: 18px;
    width: 18px;
    vertical-align: middle;
    background: transparent none no-repeat center center/auto 100%;
    margin-right: 6px;
}

.article-info-detail-item.icon-area::before {
    background-image: url("/img/icons/area.svg");
}

.article-info-detail-item.icon-wideroad::before {
    height: 15px;
    margin-right: 7px;
    margin-left: 1px;
    background-image: url("/img/icons/ngorong.svg");
}

.article-info-detail-item.icon-frontface::before {
    background-image: url("/img/icons/frontface.svg");
}

.article-info-detail-item.icon-compass::before {
    background-image: url("/img/icons/compass.svg");
}

.article-info-detail-item.icon-creator-type::before {
    background-image: url("/img/icons/target_user.svg");
    background-size: 100% auto;
    height: 13px;
}

.article-info-detail-item.icon-type-of-house::before {
    background-image: url("/img/icons/loai-hinh-bds.svg");
    background-size: 100% auto;
    height: 15px;
}

.w-14px {
    width: 14px;
}

.w-18px {
    width: 18px;
}

.ml-2px {
    margin-left: 2px;
}

.ml-mr-5 {
    margin-right: 5px;
}

.article-info-location {
    display: block;
    margin-top: 10px;
    line-height: 1.5;
    letter-spacing: normal;
    color: #2b2b2b;
    font-size: 12px;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.article-info-location::before {
    content: '';
    display: inline-block;
    height: 19px;
    width: 14px;
    vertical-align: bottom;
    background: transparent url("/img/icons/location.svg") no-repeat center center/auto 100%;
    margin-right: 6px;
}

.article-card .card-title h3.vip_1 {
    color: #993393;
    text-transform: uppercase;
}

.article-card .card-title h3.vip_2 {
    color: #dd8c43;
    text-transform: uppercase;
}

.article-card .card-title h3.vip_3 {
    color: #b18734;
}

.btn-func.active {
    background-color: rgba(255,255,255,0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.btn-func.function-note {
    background-image: url(/img/icons/note.svg);
    background-position: 5px 4px;
    background-size: 80% 80%;
    background-repeat: no-repeat;
}

.btn-func.function-note.active {
    background-image: url(/img/icons/note-active.svg);
}

.btn-func.function-heart {
    background-image: url(/img/icons/favorite-outline.svg);
    background-position: 3px 4px;
    background-size: 80% 80%;
    background-repeat: no-repeat;
}

.btn-func.function-heart.active {
    background-image: url(/img/icons/favorite-inline.svg);
}

.article-card-body .card-title .icons {
    width: 28px;
    margin-left: -6px;
    margin-right: 4px;
    margin-top: 4px;
}

.ml-text-bold-2 {
    font-weight: bold;
}

.loading, .loading-data {
    position: relative;
}

.loading::before, .loading-data::before {
    content: 'Vui lòng đợi trong giây lát!';
    display: block;
    width: auto;
    height: auto;
    padding-top: 76px;
    font-size: 14px;
    line-height: 20px;
    color: #787878;
    background: transparent url("/img/icons/loading.gif") no-repeat center top/64px 64px;
    position: absolute;
    left: 50%;
    top: calc(100vh/3);
    z-index: 2;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.loading::after, .loading-data::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    background: rgba(246,248,251,0.8) none;
}

.loading-data::before {
    top: 50%;
}

.loading-data::after {
    display: none;
}

.bs-tooltip-auto[x-placement^=top] .arrow::before, .bs-tooltip-top .arrow::before {
    top: -1px !important;
}

.tooltip {
    font-size: 12px !important;
}

.tooltip .tooltip-inner {
    max-width: 306px;
}

@media (min-width: 1300px) {
    .article-card .article-card-head {
        height: 185px;
    }
}
