nav {
    position: relative;
}

.dinhthangauto-title {
    padding-top: 0;
    padding-bottom: 1.5rem;
}

.dinhthangauto-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.dinhthangauto-wrapper .dinhthangauto-col-l {
    flex-basis: 70%;
}

.dinhthangauto-wrapper .dinhthangauto-col-r {
    flex-basis: 28%;
}

.dinhthangauto-wrapper .dinhthangauto-col-l .dinhthangauto-title-car {
   
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.dinhthangauto-box-car-detail {
   
    border-radius: 4px;
}

.detail-gia
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1em;
    align-items: center;
}
.detail-gia span
{
    flex-basis: 49%;
}
.gia-xe-al
{
    color: var(--main-color);
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    font-size: 2rem;
}
.da-ban-detail
{
    font-size: 2.2rem;
    font-weight: bold;
    color: red;
    text-transform: uppercase;
}
/*danh sách ảnh xe*/
.dinhthangauto-box-img {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

#dinhthangauto-main-photo {
    flex-basis: 70%;
}

#dinhthangauto-main-photo img {
    height: 420px;
    border-radius: 6px;
}

.dinhthangauto-box-img .dinhthangauto-list-img {
    flex-basis: 29%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.dinhthangauto-box-img .dinhthangauto-list-img:after {
    content: '';
    flex-basis: 24%;
}

.dinhthangauto-list-img .dinhthangauto-item {
    flex-basis: 49%;
    margin-bottom: 0.5rem;
}

.dinhthangauto-list-img .dinhthangauto-item:last-child {
    margin-bottom: 0;
}

.dinhthangauto-list-img .dinhthangauto-item:nth-child(2) img {
    
}

.dinhthangauto-list-img .dinhthangauto-item .dinhthangauto-photo-list img {
    height: 80px;
    border-radius: 4px;
}

/*thông tin xe*/
.dinhthangauto-box-info {
    margin-top: -0.5rem;
}

.dinhthangauto-box-info .dinhthangauto-price-car {
    padding: 2rem 0;
    background: var(--alBlue);
    font-size: 2.6rem;
    font-weight: bold;
    color: var(--alRed);
    text-align: center;
}

.dinhthangauto-box-info .dinhthangauto-info-car {
    
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1.5rem;
}

.dinhthangauto-box-info .dinhthangauto-info-car .dinhthangauto-item {
    flex-basis: 49%;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.dinhthangauto-box-info .dinhthangauto-info-car .dinhthangauto-item label {
    flex-basis: 35%;
}

/*thông tin salon*/
.dinhthangauto-box-info-salon ul {
    padding: 0 1.5rem;
}

.dinhthangauto-box-info-salon p {
    margin-top: 1rem;
}

.dinhthangauto-box-info-salon .dinhthangauto-info-hotline {
    background: var(--main-color);
    color: var(--white);
    padding: 1.5rem 0;
    font-size: 2.1rem;
    text-align: center;
}

.dinhthangauto-info-hotline b {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    font-size: 2.6rem;
}

/*nội dung tin xe*/
.dinhthangauto-car-description {
    padding: 1.5rem;
}

.dinhthangauto-car-description p {
    display: block;
    margin-top: 1rem;
    width: 100%;
}

/*tính phí sang tên*/
.dinhthangauto-box-name-transfer-fee {
    margin-top: 1rem;
}

.dinhthangauto-name-transfer-fee {
    border: 1px solid #333;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-radius: 4px;
}

.dinhthangauto-name-transfer-fee .dinhthangauto-box {
    flex-basis: 49%;
}

.tinh-vay-tra-gop
{
    flex-basis: 49%;
}


.btn-grad
{
    background: var(--main-color);
    border-radius: 20px;
    padding: 0.5em 1em;
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
    text-align: center;
    color: var(--white);
    font-weight: bold;
    text-transform: uppercase;
}
.rs-installment {
    padding: 5px 15px;
    margin: 15px 0 0;
    border: 1px solid #4e4e4e;
    border-radius: 4px;
}
.rs-installment .item {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px dotted var(--gray);
    color: #000;
}
.rs-price-installment, .lai-hang-thang, .rs-pay-monthly, .btn-grad:hover
{
    color: var(--main-color);
}
.dinhthangauto-name-transfer-fee .dinhthangauto-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.installment .item
{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 1em;
}
.installment .item label
{
    flex-basis: 30%;
}
.installment .item input, .installment .item select
{
    flex-basis: 69%;
}
.dinhthangauto-name-transfer-fee .dinhthangauto-item:last-child {
    margin-bottom: 0;
}

.dinhthangauto-name-transfer-fee .dinhthangauto-row {
    flex-basis: 50%;
}

.dinhthangauto-name-transfer-fee .dinhthangauto-pdb .dinhthangauto-row {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.dinhthangauto-name-transfer-fee .dinhthangauto-row input {
    margin-right: 0.5rem;
    position: relative;
    top: 1px;
}

.dinhthangauto-name-transfer-fee .dinhthangauto-choose {
    flex-basis: 75%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dinhthangauto-name-transfer-fee .dinhthangauto-choose select {
    height: 30px;
    width: 100px;
    padding-left: 10px;
}

.dinhthangauto-name-transfer-fee .dinhthangauto-cacu {
    border-top: 1px solid #4e4e4e;
    padding-top: 1.5rem;
}

.dinhthangauto-name-transfer-fee .dinhthangauto-cacu label {
    font-weight: bold;
}

.dinhthangauto-name-transfer-fee .dinhthangauto-cacu span {
    font-weight: bold;
    color: var(--alRed);
}

/*xe cùng khoảng giá*/
.dinhthangauto-box-other-car {
    margin-top: 2.5rem;
    flex-basis: 100%;
}

.dinhthangauto-other-car {
    --spaceing: 10px;
    display: flex;
    align-items:stretch;
    justify-content:flex-start;
    flex-wrap: wrap;
    margin: 0 calc(var(--spaceing) * (-1));
}

.dinhthangauto-other-car .dinhthangauto-item {
    background: #fff3f3;
    margin: 0 var(--spaceing);
    width: calc(33.33% - var(--spaceing) * 2);
    border-radius: 4px;
}

.dinhthangauto-other-car .dinhthangauto-item a {
    display: inline-block;
    width: 100%;
}

.dinhthangauto-other-car .dinhthangauto-item a .dinhthangauto-img-car {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    height: 179px;
}

.dinhthangauto-other-car .dinhthangauto-box-price {
    
   
    padding: .3em .7em;
    margin-top: .5em;
    color: #fff;
}
.dinhthangauto-other-car .dinhthangauto-box-price span
{
    display: block;
}
.dinhthangauto-box-price .dinhthangauto-price {
    display: inline-block;
    padding: 0.4rem 0.5rem;
    border-radius: 20px;
    padding-left: 0;
    font-size: 16px;
}

.dinhthangauto-other-car .dinhthangauto-info-car {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.9rem 1rem 0;
    background: blanchedalmond;
   border-radius: 0 0 5px 5px;
}

.dinhthangauto-other-car .dinhthangauto-info-car .dinhthangauto-item-info {
    flex-basis: 49%;
    color: #999797;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.dinhthangauto-other-car .dinhthangauto-info-car .dinhthangauto-item-info i, .dinhthangauto-other-car .dinhthangauto-info-car .dinhthangauto-item-info span {
    color: var(--main-color);
    margin-right: 0.2rem;
    font-size: .8em;
}

.location
{
    padding: 0.5em;
    font-size: .9em;
    background: darkgoldenrod;
    color: #fff;
    border-radius: 0 0 5px 5px;
    text-align: center;
}

/*tin tức*/
.dinhthangauto-wrapper .dinhthangauto-col-r .dinhthangauto-box-news {
    margin-bottom: 1rem;
}

.dinhthangauto-col-r .dinhthangauto-news {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.dinhthangauto-news .dinhthangauto-item {
    flex-basis: 100%;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    
}

.dinhthangauto-news .dinhthangauto-item:last-child {
    border-bottom: none;
}

.dinhthangauto-box-news .dinhthangauto-item a {
    font-weight: 600;
}

.dinhthangauto-box-news .dinhthangauto-item a:hover
{
    color: var(--main-color);
}


/*giao diện cho Mobile*/
@media only screen and (max-width: 1230px) {
    .dinhthangauto-wrapper {
        padding: 0 1.5rem 1.5rem;
        margin-bottom: 0;
    }

    /*thông tin xe*/
    .dinhthangauto-box-info .dinhthangauto-price-car {
        font-size: 2.1rem;
        padding: 1.5rem 0;
    }

    .dinhthangauto-box-info .dinhthangauto-info-car .dinhthangauto-item label {
        flex-basis: 40%;
    }

    /*thông tin salon*/
    .dinhthangauto-box-info-salon .dinhthangauto-info-hotline {
        font-size: 1.8rem;
    }

    .dinhthangauto-info-hotline b {
        font-size: 2.1rem;
    }

    /*phí sang tên*/
    .dinhthangauto-name-transfer-fee .dinhthangauto-row {
        flex-basis: 60%;
    }

    .dinhthangauto-name-transfer-fee .dinhthangauto-choose {
        flex-basis: 85%;
    }

    .dinhthangauto-name-transfer-fee .dinhthangauto-item {
        justify-content: space-between;
    }

    .dinhthangauto-name-transfer-fee .dinhthangauto-choose {
        flex-basis: 100%;
    }
}

@media only screen and (max-width: 1024px) {
    .dinhthangauto-wrapper .dinhthangauto-col-l {
        flex-basis: 100%;
    }

    .dinhthangauto-wrapper .dinhthangauto-col-r {
        margin-top: 2.5rem;
        flex-basis: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .dinhthangauto-wrapper .dinhthangauto-col-r .dinhthangauto-box-news {
        flex-basis: 48%;
    }

    .dinhthangauto-wrapper .dinhthangauto-col-r .dinhthangauto-qc {
        flex-basis: 100%;
    }

    /*xe cùng khoảng giá*/
    .dinhthangauto-other-car .dinhthangauto-item a .dinhthangauto-img-car {
        height: 212px;
    }
}

@media only screen and (max-width: 810px) 
{
    .tra-truoc-al
    {
        flex-basis: 100%;
        margin-top: 0.6em;
    }
}


@media only screen and (max-width: 768px) {
    .dinhthangauto-wrapper {
        padding: 0 1rem 1.5rem;
    }

    /*danh sách ảnh xe*/
    #dinhthangauto-main-photo img {
        height: 348px;
    }

    .dinhthangauto-list-img .dinhthangauto-item .dinhthangauto-photo-list img {
        height: 66px;
    }

    /*thông tin xe*/
    .dinhthangauto-box-info .dinhthangauto-info-car .dinhthangauto-item label {
        flex-basis: 50%;
    }

    /*phí sang tên*/
    .dinhthangauto-box-name-transfer-fee {
        margin-top: 0;
    }

    .dinhthangauto-name-transfer-fee .dinhthangauto-box-img {
        display: none;
    }

    .dinhthangauto-name-transfer-fee .dinhthangauto-box {
        flex-basis: 100%;
    }

    
    .dinhthangauto-other-car .dinhthangauto-item a .dinhthangauto-img-car {
        height: 158px;
    }

    /*tin tức*/
    .dinhthangauto-news .dinhthangauto-item {
        padding: 1rem 0;
    }

    .tinh-vay-tra-gop
    {
        flex-basis: 100%;
        margin-top: 3rem;
    }
    .dinhthangauto-wrapper .dinhthangauto-col-r .dinhthangauto-box-news
    {
        flex-basis: 100%;
    }
}

@media only screen and (max-width: 640px) {
    /*danh sách ảnh xe*/
    #dinhthangauto-main-photo img {
        height: 289px;
    }

    .dinhthangauto-list-img .dinhthangauto-item .dinhthangauto-photo-list img {
        height: 54px;
    }

    /*xe cùng khoảng giá*/
    .dinhthangauto-other-car .dinhthangauto-item a .dinhthangauto-img-car {
        height: 132px;
    }
    .dinhthangauto-other-car .dinhthangauto-item
    {
        width: calc(50% - var(--spaceing) * 2);
    }
    /*ẩn xe số 3*/
    .dinhthangauto-other-car .dinhthangauto-item:last-child
    {
        display: none;
    }
    
    .tra-truoc-al {
        flex-basis: auto;
        margin-top: 0;
    }
}


@media only screen and (max-width: 576px) {
    /*danh sách ảnh xe*/
    .dinhthangauto-box-img {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    #dinhthangauto-main-photo {
        flex-basis: 100%;
        margin-bottom: 1rem;
    }

    #dinhthangauto-main-photo img {
        height: 370px;
        border-top-left-radius: 0;
    }

    .dinhthangauto-list-img .dinhthangauto-item .dinhthangauto-photo-list img {
        height: 89px;
    }

    .dinhthangauto-list-img .dinhthangauto-item:nth-child(2) img {
        border-top-right-radius: 0;
    }

    .dinhthangauto-box-img .dinhthangauto-list-img {
        flex-basis: 100%;
    }

    .dinhthangauto-list-img .dinhthangauto-item {
        flex-basis: 24%;
    }

    /*thông tin xe*/
    .dinhthangauto-box-info {
        margin-top: 0;
    }

    .dinhthangauto-box-info .dinhthangauto-info-car .dinhthangauto-item {
        flex-basis: 100%;
    }

    /*xe cùng khoảng giá*/
    .dinhthangauto-other-car .dinhthangauto-item:last-child {
        margin-bottom: 0;
    }

    .dinhthangauto-other-car .dinhthangauto-item a .dinhthangauto-img-car {
        height: 181px;
    }
}
@media only screen and (max-width: 520px)
{
    .tra-truoc-al {
        flex-basis: 100%;
        
    }
}

@media only screen and (max-width: 480px) {
    
    /*danh sách ảnh xe*/
    #dinhthangauto-main-photo img {
        height: 306px;
    }

    .dinhthangauto-list-img .dinhthangauto-item .dinhthangauto-photo-list img {
        height: 74px;
    }

    /*xe cùng khoảng giá*/
    .dinhthangauto-other-car .dinhthangauto-item a .dinhthangauto-img-car {
        height: 150px;
    }

    /*tin tức*/
    .dinhthangauto-wrapper .dinhthangauto-col-r .dinhthangauto-box-news {
        flex-basis: 100%;
        margin-bottom: 0;
    }
    
    /*đánh giá xe*/
    .danh-gia-xe
    {
        margin-top: 2em;
        margin-bottom: 1em !important;
    }
}

@media only screen and (max-width: 420px) {
    /*danh sách ảnh xe*/
    #dinhthangauto-main-photo img {
        height: 266px;
    }

    .dinhthangauto-list-img .dinhthangauto-item .dinhthangauto-photo-list img {
        height: 64px;
    }

    /*thông tin salon*/
    .dinhthangauto-box-info-salon .dinhthangauto-info-hotline {
        font-size: 1.6rem;
    }

    .dinhthangauto-info-hotline b {
        font-size: 1.8rem;
    }

    /*xe cùng khoảng giá*/
    .dinhthangauto-other-car .dinhthangauto-item a .dinhthangauto-img-car {
        height: 130px;
    }

    .dinhthangauto-other-car .dinhthangauto-info-car .dinhthangauto-item-info {
        line-height: 2.0rem;
        font-size: 1.3rem;
    }

    .dinhthangauto-other-car .dinhthangauto-info-car .dinhthangauto-item-info i {
        line-height: 2.0rem;
        font-size: 1.3rem;
        margin-right: 0.1rem;
    }
}
@media only screen and (max-width: 410px)
{
    .dinhthangauto-other-car .dinhthangauto-item {
        width: calc(100% - var(--spaceing) * 2);
        margin-bottom: 2em;
    }
    .dinhthangauto-other-car .dinhthangauto-item:last-child
    {
        display: block;
    }
    .dinhthangauto-other-car .dinhthangauto-item a .dinhthangauto-img-car
    {
        height: 220px ;
    }
    .car-home-tieu-de
    {
        height: auto;
    }
}
@media only screen and (max-width: 375px) {
    /*danh sách ảnh xe*/
    #dinhthangauto-main-photo img {
        height: 237px;
    }

    .dinhthangauto-list-img .dinhthangauto-item .dinhthangauto-photo-list img {
        height: 57px;
    }

    /*xe cùng khoảng giá*/
    .dinhthangauto-other-car .dinhthangauto-item a .dinhthangauto-img-car {
        height: 190px;
    }
    .dinhthangauto-other-car .dinhthangauto-item
    {
        flex-basis: 100%;
        margin-bottom: 1em;
    }
    .dinhthangauto-other-car .dinhthangauto-item:last-child
    {
        display: block;
    }
}

@media only screen and (max-width: 360px) {
    /*thông tin xe*/
    .dinhthangauto-info-hotline b {
        font-size: 1.6rem;
    }

    /*phí trước bạ*/
    .dinhthangauto-name-transfer-fee {
        padding: 1.5rem 0.5rem;
    }

    /*danh sách xe đang bán*/
    .dinhthangauto-other-car .dinhthangauto-info-car .dinhthangauto-item-info i {
        line-height: 1.8rem;
        font-size: 1.2rem;
        margin-right: 0.1rem;
    }

    .dinhthangauto-other-car .dinhthangauto-info-car .dinhthangauto-item-info {
        line-height: 1.8rem;
        font-size: 1.2rem;
    }
    /*tính vay trả góp*/
    .installment .item input, .installment .item select
    {
        flex-basis: 60% !important;
    }
    .installment .item label
    {
        flex-basis: 39%;
    }
}
@media only screen and (max-width: 330px) 
{
    .dinhthangauto-other-car .dinhthangauto-item
    {
        flex-basis: 100%;
    }
    
    .tra-truoc-al
    {
        flex-basis: auto;
        margin-top: 0;
    }
    .car-home-tieu-de
    {
        height: auto;
    }
    .dinhthangauto-other-car .dinhthangauto-item a .dinhthangauto-img-car
    {
        height: 160px;
    }
}




