﻿.home-project {
    background: #f7f7f7;
}

    .home-project .grid.wide {
        max-width: 96%;
    }

.home-project-sub {
    width: 30%;
    float: right;
}

.price .price-avg {
    margin-left: 8px; /* nằm cạnh giá bán */
    white-space: nowrap;
    font-weight: 600;
    color: #d35400; /* tuỳ chỉnh */
}

.home-project-sub .my-side {
    border-color: #e0e0e0;
    background-color: #fff;
}

.home-project-sub a.link {
    margin-bottom: 15px;
}

.render-price-percent-one {
    position: relative;
    margin-left: 7px;
    padding-left: 9px;
}

    .render-price-percent-one:before {
        content: "|";
        position: absolute;
        left: 0;
        top: 0;
    }

.render-price-percent {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 5px;
    padding-left: 9px;
}

    .render-price-percent:before {
        content: "|";
        position: absolute;
        left: 0;
        top: 0;
    }

.price {
    display: flex;
    align-items: center;
}

    .price .price-item {
        margin-left: 8px;
        white-space: nowrap;
        font-weight: normal;
    }

.full-scale-price-percent {
    display: flex;
    align-items: center;
}

.decor-rent {
    margin: 0 7px;
}

.price .price-avg {
    color: #d35400;
    margin-left: 6px !important;
}
/* giá của tin */
.price .price-street-avg {
    color: #2980b9;
    margin-left: 0;
}

.price .price-compare {
    color: #27ae60; /* xanh lá nhấn mạnh */
    font-weight: normal;
    margin-left: 0;
}

/* giá trung bình theo đường (màu khác để phân biệt) */

a.side-road-link {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    padding-left: 20px;
    background: #fff;
    -webkit-transition: all ease .2s;
    -o-transition: all ease .2s;
    transition: all ease .2s;
}

.img-decor-road {
    width: 13px;
}

    .img-decor-road img {
        width: 100%;
        height: auto;
    }

a.side-road-link .content {
    display: flex;
    align-items: center;
    width: 100%;
}

    a.side-road-link .content h3 {
        margin: 0;
        font-size: 14px;
        font-family: 'MonM';
        color: #313131;
        margin-left: 7px;
        font-weight: normal;
    }

a.side-road-link:hover {
    background: #dc2321;
}

    a.side-road-link:hover .content h3 {
        color: #fff;
    }

    a.side-road-link:hover .img-decor-road img {
        filter: invert(100%) sepia(0%) saturate(997%) hue-rotate(308deg) brightness(115%) contrast(101%);
    }

.home-project-wrap .p-project-list {
    padding-right: 10px;
}

.count-page {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 19px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    clear: both;
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.8;
    justify-content: center;
}

    .count-page a {
        text-align: center;
        color: #505050;
        font-size: 14px;
        width: 32px;
        border: 1px solid #F2F2F2;
        height: 32px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        background-color: #fff;
        transition: all .3s;
    }

        .count-page a:hover {
            background-color: #2c2c2c;
            color: #fff;
        }

        .count-page a.active {
            background: none;
            color: #fff !important;
            background-color: #2c2c2c !important;
            overflow: hidden;
        }

.home-project-container {
    padding: 50px 0;
}

.home-project.df .home-project-container {
    padding: 50px 0;
}

.home-project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

    .home-project-top .top-title {
    }

    .home-project-top .top-btn {
    }

        .home-project-top .top-btn a {
            background: var(--default-gradient);
            border-radius: 55px;
            font-family: robotoB;
            color: #fff;
            font-size: 18.74px;
            padding: 19px 35px;
        }

.p-decor span {
    color: #787878;
    font-size: 16px;
    display: block;
    font-family: 'MonM';
    text-transform: uppercase;
}

.full-intro-page {
    display: flex;
    flex-flow: row-reverse;
}

.full-page-restate-home {
    width: 72%;
}

.full-search-home-page {
    flex: 1 1 0;
    padding-top: 50px;
    background: #f7f7f7;
}

.home-project-top .top-title h3 {
    margin: 0;
    text-transform: uppercase;
    color: #dc2321;
    font-size: 28px;
    font-family: 'MonB';
    line-height: normal;
    padding-bottom: 5px;
    font-weight: normal;
}

.home-project-top .top-title .p-decor {
    margin: 0;
}

.home-project-top .top-title .p-decor-item {
}

.home-project-list {
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    grid-template-columns: repeat(1,minmax(0,1fr));
    column-gap: 29px;
    row-gap: 29px;
    margin-top: 55px;
}

.home-project-item {
    display: flex;
    align-items: center;
}

    .home-project-item:hover .home-project-img img {
        transform: scale(1.02);
    }

.home-project-content {
    flex: 1;
    padding-left: 37px;
}

    .home-project-content .title {
    }

.home-project-img {
    height: 251px;
    width: 390px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #242a363d;
}

    .home-project-img img {
        transition: all .3s;
    }

.home-project-title {
    margin: 0;
    font-size: 30px;
    color: #242A36;
    font-family: 'anyM';
    text-transform: capitalize;
    font-weight: 100;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.home-project-address {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    margin-top: 15px;
}

    .home-project-address .img {
    }

        .home-project-address .img img {
            width: 17px;
        }

    .home-project-address span {
        display: block;
        font-size: 20px;
        color: #2A2D34;
        padding-left: 13px;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        display: -webkit-box;
    }

.home-project-options {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 19px;
}

    .home-project-options .options-item {
        display: flex;
        align-items: center;
        margin-right: 79px;
    }

    .home-project-options .options-item-img {
    }

        .home-project-options .options-item-img img {
        }

    .home-project-options .options-item span {
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        padding-left: 11px;
        font-size: 20px;
        color: #2A2D34;
    }

@media(max-width:1023px) {
    .home-project-sub {
        width: 100%;
        padding: 0;
        float: unset;
    }

    .full-page-restate-home {
        width: 100%;
    }

    .full-intro-page {
        flex-direction: column;
    }

    .full-search-home-page {
        padding-top: 20px;
    }

    .home-project-wrap .p-project-list {
        width: 100%;
        padding: 0;
        float: unset;
        margin-bottom: 20px;
    }
}

@media(min-width:740px) and (max-width:1023px) {
}

@media(max-width: 739px) {
    .home-project-top {
        flex-direction: column;
        align-items: unset;
    }

        .home-project-top .top-btn {
            margin-top: 10px;
        }

        .home-project-top .top-title h3 {
            font-size: 16px;
            padding-bottom: 7px;
        }

    .p-project-content .foot .price-item {
        font-size: 14px;
    }

    .full-scale-price-percent {
        flex-wrap: wrap;
    }

    .info-project-item span {
        padding-top: 0;
        font-size: 15px;
    }

    .p-decor span {
        font-size: 14px;
        text-transform: unset;
    }

    .p-project-img .count span {
        font-size: 14px;
    }

    .p-project-img > img {
        border-radius: 10px;
    }

    .home-project-top .top-btn a {
        font-size: 14.74px;
        padding: 10px 30px;
    }

    .home-project-container {
        padding: 25px 0 !important;
        padding-bottom: 0 !important;
    }
}

/*Chung*/
/* ===== Hình/Sổ/Chia sẻ/SĐT — phong cách giống ảnh mẫu ===== */
:root {
    --bds-primary: #f59e0b;
    --bds-primary-2: #fbbf24;
    --bds-border: #e5e7eb;
    --bds-overlay: rgba(0,0,0,.6);
}

.bds-action-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.bds-btn {
    appearance: none;
    border: 1px solid var(--bds-border);
    background: #fff;
    color: #333;
    font: 600 14px/1.2 system-ui,-apple-system,Segoe UI,Roboto;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: .2s;
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

    .bds-btn:hover {
        border-color: #ffd38a;
        background: linear-gradient(#fff,#fff5e6);
    }

.bds-btn-phone {
    color: #1f2937;
    border-color: #ffd38a;
    background: #fff7e6;
}

    .bds-btn-phone:hover {
        background: #fff2d6;
    }

.bds-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bds-overlay);
    padding: 18px;
}

    .bds-modal[aria-hidden="false"] {
        display: flex;
    }

.bds-modal__dialog {
    width: min(920px, 94vw);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--bds-border);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.bds-modal__head {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bds-border);
    background: #fffdf7;
}

.bds-modal__title {
    font-size: 15px;
    color: #1B5E20;
    font-weight: normal;
    width: 53%;
    line-height: 140%;
    font-family: 'MonSB';
}

.bds-share a svg {
    width: 30px;
    height: auto;
}

.bds-modal__head-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1 1 0;
}

.bds-chip:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.bds-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #f0ad4e;
    background: #fff7e6;
    color: #7a4a00;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-family: 'MonB';
    font-weight: normal;
    cursor: pointer;
}

.bds-modal__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
}

    .bds-modal__close:hover {
        color: #333;
    }

.bds-modal__body {
    padding: 16px;
}
/* Toast mặc định ẩn */
.bds-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    min-width: 250px;
    max-width: 90%;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

    /* Khi hiển thị */
    .bds-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    /* Thêm hiệu ứng mượt khi click */
    .bds-toast:active {
        transform: translateX(-50%) scale(0.97);
    }

/* Responsive – chữ nhỏ hơn trên màn hình nhỏ */
@media (max-width: 480px) {
    .bds-toast {
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* ================== Mobile Responsive ================== */
@media (max-width: 768px) {
    .bds-modal {
        padding: 0;
    }

    .bds-modal__dialog {
        width: 97%;
        height: 530px;
        max-height: 530px;
        border-radius: 10px;
        overflow: scroll;
    }

    .bds-modal__head {
        padding: 10px;
        flex-direction: column;
        align-items: unset;
    }

    .bds-modal__close {
        position: absolute;
        right: 13px;
    }

    .bds-chip {
        font-size: 12px;
    }

    .bds-modal__title {
        font-size: 13px;
        width: 80%;
    }

    .bds-modal__body {
        padding: 10px;
    }
}
/* Gallery chung */
.bds-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.bds-thumb {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px dashed #f59e0b33;
}

    .bds-thumb:hover {
        border-style: solid;
    }

    .bds-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .bds-thumb a {
        display: block;
        width: 100%;
        height: 100%;
    }

.bds-idx {
    position: absolute;
    left: 7px;
    top: 7px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #f59e0b;
    font-size: 12px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 999px;
}

.bds-dl {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffffd9;
    border: 1px solid var(--bds-border);
    cursor: pointer;
    font-size: 16px;
}

    .bds-dl:hover {
        transform: translateY(-1px);
    }

/* Sổ: 2 tấm đầu to hơn như ảnh mẫu */
.bds-gallery.so .bds-thumb:nth-child(-n+2) {
}

/* Sổ BĐS — tiêu đề, dòng mô tả, nút tải tất cả */
.bds-so-title {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin: 6px 0 8px;
}

.bds-so-lines {
    text-align: center;
    color: #333;
    margin-bottom: 12px;
}

.bds-so-line {
    margin: 4px 0;
}

.bds-download-all span {
    display: flex;
    align-items: center;
    position: relative;
    top: -2px;
}

.bds-download-all {
    margin: 14px auto 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--bds-border);
    background: #fff7e6;
    font-weight: normal;
    cursor: pointer;
    font-family: 'MonSB';
    font-size: 14px;
}

    .bds-download-all:hover {
        background: #fff2d6;
    }

/* Share */
.bds-share {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 6px;
}

    .bds-share a, .bds-share button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid var(--bds-border);
        background: #fff;
        padding: 10px;
        border-radius: 12px;
        font-weight: 700;
        color: #374151;
    }

        .bds-share a:hover, .bds-share button:hover {
            background: #fff7e6;
        }

/* SĐT — form giống ảnh */
.bds-phone-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 10px 0 6px;
}

.bds-phone-title {
    font-weight: 800;
    font-size: 18px;
    font-family: 'MonM';
}

.bds-phone-enteredby {
    color: #111827;
    font-weight: 600;
    font-family: 'MonSB';
}

.bds-passbox {
    width: min(360px, 90%);
    border: 1px solid var(--bds-border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
}

.bds-btn-lg {
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid #f0ad4e;
    background: linear-gradient(180deg, var(--bds-primary-2), var(--bds-primary));
    color: #2b1d00;
    font-family: 'MonM';
    cursor: pointer;
}

    .bds-btn-lg:hover {
        filter: brightness(1.05);
    }

.bds-share a img {
    width: 28px;
    height: auto;
}

.bds-phone-mask {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
}

@media (max-width: 1023px) {
    .bds-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .bds-share {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bds-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*End*/