/* ==========================================================================
   BDS37 - Giao diện Batdongsan37 (clone web cũ batdongsan37.com)
   Toàn bộ style mới giới hạn trong class .bds37-*
   ========================================================================== */

/* ---------- Font từ source cũ ---------- */
@font-face {
    font-family: 'HelveticaNeue';
    src: url('../fonts/bds37/HelveticaNeue.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HelveticaNeue';
    src: url('../fonts/bds37/HelveticaNeue-Light.woff2') format('woff2'), url('../fonts/bds37/HelveticaNeue-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UTM HelvetIns';
    src: url('../fonts/bds37/UTM-HelvetIns.woff2') format('woff2'), url('../fonts/bds37/UTM-HelvetIns.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bds37-green: #4abc60;
    --bds37-green-bar: #3eb855;
    --bds37-green-dark: #27ae60;
    --bds37-orange: #f57d20;
    --bds37-red: #f00;
    --bds37-dark: #181818;
    --bds37-dark-2: #232323;
    --bds37-bg: #f1f3f7;
    --bds37-text: #333;
    --bds37-muted: #6c6c6c;
    --bds37-border: #e1e1e1;
    --bds37-zalo: #0068ff;
    --bds37-font-heading: 'UTM HelvetIns', 'HelveticaNeue', Arial, sans-serif;
}

/* theme cũ chừa chỗ cho thanh công cụ mobile - giao diện BDS37 không dùng thanh này */
body.is-mobile {
    margin-bottom: 0;
}

body {
    font-family: 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bds37-bg);
    color: var(--bds37-text);
    overflow-x: hidden;
}

/* ---------- Tiện ích chung ---------- */
.bds37-img {
    display: block;
    position: relative;
    overflow: hidden;
    background: #eef0f3 url('../img/no-image.png') no-repeat center / 64px auto;
}

.bds37-img img {
    display: block;
    color: transparent;
    font-size: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bds37-box {
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.bds37-box-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--bds37-text);
    text-transform: uppercase;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bds37-border);
}

.bds37-sub-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bds37-text);
    margin: 20px 0 12px;
    padding-left: 10px;
    border-left: 3px solid var(--bds37-green);
}

.bds37-btn-outline,
.bds37-btn-green,
.bds37-btn-red,
.bds37-btn-zalo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 14px;
    font-size: 1.3rem;
    line-height: 1.3;
    border-radius: 16px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
}

.bds37-btn-outline {
    color: var(--bds37-text);
    background: #fff;
    border: 1px solid #d5d5d5;
}

.bds37-btn-outline:hover {
    color: #fff;
    background: var(--bds37-green);
    border-color: var(--bds37-green);
    text-decoration: none;
}

.bds37-btn-green {
    color: #fff;
    background: var(--bds37-green);
    border: 1px solid var(--bds37-green);
    border-radius: 16px;
    min-height: 40px;
    padding: 8px 22px;
    font-size: 1.4rem;
}

.bds37-btn-green:hover {
    color: #fff;
    background: var(--bds37-green-dark);
    text-decoration: none;
}

.bds37-btn-red {
    color: #fff;
    background: var(--bds37-red);
    border: 1px solid var(--bds37-red);
    font-weight: 700;
}

.bds37-btn-red:hover {
    color: #fff;
    background: #c80000;
    text-decoration: none;
}

.bds37-btn-zalo {
    color: #fff;
    background: var(--bds37-zalo);
    border: 1px solid var(--bds37-zalo);
    border-radius: 3px;
    min-height: 40px;
    padding: 8px 22px;
    font-size: 1.4rem;
}

.bds37-btn-zalo:hover {
    color: #fff;
    opacity: .9;
    text-decoration: none;
}

.bds37-empty {
    padding: 40px 15px;
    text-align: center;
    color: var(--bds37-muted);
}

.bds37-empty i {
    display: block;
    font-size: 4.2rem;
    margin-bottom: 12px;
    color: #c5c9d0;
}

.bds37-empty p {
    margin: 0;
    font-size: 1.5rem;
}

/* ---------- Hàng (row) của layout ---------- */
.bds37-row-topbar {
    background: var(--bds37-green-bar);
}

.bds37-row-header {
    background: var(--bds37-dark);
}

.bds37-row-banner {
    background: var(--bds37-dark);
}

.bds37-row-white {
    background: #fff;
}

.bds37-row-ads {
    background: #fff;
    padding: 25px 0;
}

.bds37-row-footer {
    background: var(--bds37-dark) url('../media/bds37/bg-footer.jpg') no-repeat center top / cover;
    padding: 50px 0 25px;
    color: #fff;
}

.bds37-row-copyright {
    background: var(--bds37-dark-2);
}

.bds37-row-content {
    padding-top: 20px;
    padding-bottom: 10px;
}

/* ---------- Thanh thông tin đầu trang ---------- */
.bds37-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    font-size: 1.3rem;
    color: #fff;
}

.bds37-topbar a {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.bds37-topbar a:hover {
    color: #fff;
    opacity: .85;
}

.bds37-topbar__contact,
.bds37-topbar__right,
.bds37-topbar__social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bds37-topbar__social {
    gap: 12px;
}

.bds37-topbar__member .dropdown-menu a {
    color: var(--bds37-text);
}

/* ---------- Logo + menu ---------- */
.bds37-logo {
    padding: 10px 0;
}

.bds37-logo img {
    display: block;
    width: auto;
    height: 60px;
    max-width: 100%;
}

.bds37-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.bds37-menu__toggle {
    display: none;
    color: #fff;
    font-size: 2.6rem;
    padding: 8px;
    line-height: 1;
}

.bds37-menu__toggle:hover {
    color: var(--bds37-orange);
}

.bds37-menu__top {
    display: none;
}

.bds37-menu__list,
.bds37-menu__sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bds37-menu__grower {
    display: none;
}

@media (min-width: 992px) {
    .bds37-menu .back-drop {
        display: none;
    }

    .bds37-menu__list {
        display: flex;
        align-items: stretch;
        justify-content: flex-end;
    }

    .bds37-menu__list > li {
        position: relative;
    }

    .bds37-menu__list > li > a {
        display: flex;
        align-items: center;
        gap: 5px;
        height: 80px;
        padding: 0 13px;
        color: #fff;
        font-size: 1.5rem;
        border-bottom: 3px solid transparent;
        text-decoration: none;
        white-space: nowrap;
    }

    .bds37-menu__list > li > a i {
        font-size: 1.1rem;
    }

    .bds37-menu__list > li:hover > a,
    .bds37-menu__list > li > a.active {
        color: #fff;
        border-bottom-color: var(--bds37-orange);
    }

    .bds37-menu__sub {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1030;
        min-width: 250px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    }

    .bds37-menu__list > li:nth-last-child(-n+3) > .bds37-menu__sub {
        left: auto;
        right: 0;
    }

    .bds37-menu__list li:hover > .bds37-menu__sub {
        display: block !important;
        animation: bds37-fade-in .2s ease;
    }

    @keyframes bds37-fade-in {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .bds37-menu__sub li {
        position: relative;
    }

    .bds37-menu__sub li + li {
        border-top: 1px solid #f0f0f0;
    }

    .bds37-menu__sub a {
        display: block;
        padding: 10px 15px;
        color: var(--bds37-text);
        font-size: 1.4rem;
        text-decoration: none;
    }

    .bds37-menu__sub a:hover,
    .bds37-menu__sub a.active {
        color: var(--bds37-green);
        background: #f7f7f7;
    }

    .bds37-menu__sub .bds37-menu__sub {
        top: 0;
        left: 100%;
    }

    .bds37-menu__sub li.has-child > a::after {
        content: '\f0da';
        font-family: 'Font Awesome 6 Pro';
        font-weight: 900;
        float: right;
        color: #999;
    }
}

@media (max-width: 991.98px) {
    .bds37-menu__toggle {
        display: inline-block;
    }

    .bds37-menu .back-drop {
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(0, 0, 0, .5);
        opacity: 0;
        visibility: hidden;
        transition: all .25s ease;
    }

    .bds37-menu .back-drop.open {
        opacity: 1;
        visibility: visible;
    }

    .bds37-menu__nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1050;
        width: 300px;
        max-width: 85vw;
        overflow-y: auto;
        background: #fff;
        transform: translateX(-100%);
        transition: transform .3s ease;
    }

    .bds37-menu__nav.open {
        transform: translateX(0);
    }

    .bds37-menu__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
        background: var(--bds37-green);
        color: #fff;
        font-size: 1.6rem;
        text-transform: uppercase;
    }

    .bds37-menu__top a {
        color: #fff;
        font-size: 2.2rem;
        line-height: 1;
    }

    .bds37-menu__list li {
        position: relative;
        border-bottom: 1px solid #eee;
    }

    .bds37-menu__list a {
        display: block;
        padding: 12px 50px 12px 15px;
        color: var(--bds37-text);
        font-size: 1.5rem;
        text-decoration: none;
    }

    .bds37-menu__list > li > a i {
        display: none;
    }

    .bds37-menu__list a.active {
        color: var(--bds37-green);
    }

    .bds37-menu__grower {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 46px;
        height: 46px;
        cursor: pointer;
    }

    .bds37-menu__grower::before {
        content: '\f107';
        font-family: 'Font Awesome 6 Pro';
        font-weight: 300;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.8rem;
        color: #777;
        transition: transform .2s ease;
    }

    .bds37-menu__grower.open::before {
        transform: translate(-50%, -50%) rotate(180deg);
    }

    .bds37-menu__sub {
        display: none;
        background: #f7f7f7;
    }

    .bds37-menu__sub a {
        padding-left: 28px;
        font-size: 1.4rem;
    }

    .bds37-menu__sub .bds37-menu__sub a {
        padding-left: 42px;
    }
}

/* ---------- Banner + tìm kiếm ---------- */
.bds37-banner,
.bds37-banner .swiper-slide {
    position: relative;
    background: var(--bds37-dark);
}

.bds37-banner__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.bds37-search-bar {
    position: relative;
    z-index: 5;
}

.bds37-search-bar__toggle {
    display: none;
}

@media (min-width: 992px) {
    .bds37-search-bar {
        margin-top: -70px;
        padding-bottom: 32px;
    }

    .bds37-search-bar__form {
        display: block !important;
    }
}

.bds37-search {
    display: grid;
    gap: 10px;
}

.bds37-search--horizontal {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.bds37-search--vertical {
    grid-template-columns: 1fr;
}

.bds37-search__control {
    display: block;
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    font-size: 1.4rem;
    color: #3b3b3b;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 0;
    outline: none;
    text-overflow: ellipsis;
}

.bds37-search__control:focus {
    border-color: var(--bds37-green);
}

.bds37-search__control:disabled {
    background: #f3f3f3;
    color: #999;
}

.bds37-search--horizontal .bds37-search__control {
    border-color: #fff;
}

.bds37-search__submit {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 10px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--bds37-green);
    border: none;
    cursor: pointer;
}

.bds37-search__submit:hover {
    background: var(--bds37-green-dark);
}

@media (max-width: 991.98px) {
    .bds37-search-bar {
        background: var(--bds37-dark);
        padding: 10px 0;
    }

    .bds37-search-bar__toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 0;
        color: #fff;
        font-size: 1.5rem;
        text-transform: uppercase;
        text-decoration: none;
    }

    .bds37-search-bar__toggle:hover {
        color: #fff;
    }

    .bds37-search-bar__toggle .fa-angle-down {
        margin-left: auto;
        transition: transform .2s ease;
    }

    .bds37-search-bar__toggle.open .fa-angle-down {
        transform: rotate(180deg);
    }

    .bds37-search-bar__form {
        display: none;
        padding: 8px 0 6px;
    }

    .bds37-search--horizontal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bds37-search--horizontal .bds37-search__field--keyword,
    .bds37-search--horizontal .bds37-search__field--submit {
        grid-column: 1 / -1;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .bds37-search--horizontal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- Tiêu đề khu vực trang chủ ---------- */
.bds37-section {
    padding: 25px 0 10px;
}

.bds37-section__head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.bds37-section__head::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #d5d5d5;
}

.bds37-section__title {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-bottom: 8px;
    font-family: var(--bds37-font-heading);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--bds37-green);
    text-transform: uppercase;
    border-bottom: 4px solid var(--bds37-green);
}

.bds37-section__head .bds37-btn-outline {
    margin-bottom: 10px;
}

/* ---------- Thẻ dự án ---------- */
.bds37-project-grid {
    margin-left: -10px;
    margin-right: -10px;
}

.bds37-project-grid > [class*='col-'] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.bds37-project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #ddd;
    transition: box-shadow .2s ease;
}

.bds37-project-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.bds37-project-card__image {
    aspect-ratio: 16 / 10;
}

.bds37-project-card__image img {
    transition: transform .4s ease;
}

.bds37-project-card:hover .bds37-project-card__image img {
    transform: scale(1.05);
}

.bds37-project-card__body {
    padding: 10px 10px 12px;
}

.bds37-project-card__name {
    margin: 0 0 6px;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.35;
}

.bds37-project-card__name a {
    color: var(--bds37-green);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bds37-project-card__name a:hover {
    color: var(--bds37-orange);
    text-decoration: none;
}

.bds37-project-card__date {
    margin-bottom: 6px;
    font-size: 1.25rem;
    color: var(--bds37-muted);
}

.bds37-project-card__desc {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bds37-project-card__desc i {
    margin-right: 6px;
    color: #777;
}

.bds37-ribbon {
    position: absolute;
    top: 14px;
    left: -30px;
    z-index: 2;
    width: 120px;
    padding: 3px 0;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    background: #eba12c;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}

.bds37-project-slider {
    position: relative;
}

.bds37-project-slider .swiper-slide {
    height: auto;
}

.bds37-project-slider .swiper-slide > .bds37-project-card {
    height: 100%;
}

.bds37-project-slider .swiper-button-prev,
.bds37-project-slider .swiper-button-next {
    width: 38px;
    height: 38px;
    margin-top: -19px;
    color: var(--bds37-text);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.bds37-project-slider .swiper-button-prev::after,
.bds37-project-slider .swiper-button-next::after {
    display: none;
}

.bds37-project-slider .swiper-button-prev {
    left: -12px;
}

.bds37-project-slider .swiper-button-next {
    right: -12px;
}

.bds37-project-slider .swiper-pagination {
    position: static;
    margin-top: 10px;
}

.bds37-project-slider .swiper-pagination-bullet-active {
    background: var(--bds37-green);
}

/* ---------- Bảng tin theo tab ---------- */
.bds37-land-tabs {
    padding: 25px 0 30px;
}

.bds37-land-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bds37-land-tabs__nav a {
    display: inline-block;
    padding: 4px 6px;
    font-size: 1.3rem;
    line-height: 1.4;
    color: #818181;
    text-transform: uppercase;
    background: #fff;
    border: 1px solid var(--bds37-orange);
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s ease;
}

.bds37-land-tabs__nav .tab-all a {
    color: var(--bds37-orange);
    border-color: transparent;
    border-bottom: 2px solid var(--bds37-orange);
    border-radius: 0;
}

.bds37-land-tabs__nav .tab-ban a {
    color: #484848;
    background: #dbdada;
}

.bds37-land-tabs__nav .tab-thue a {
    color: #ededed;
    background: #6e6b6b;
}

.bds37-land-tabs__nav a:hover {
    border-color: var(--bds37-orange);
    box-shadow: 0 0 0 1px var(--bds37-orange);
    text-decoration: none;
}

.bds37-land-tabs__nav a.active {
    color: #fff;
    background: var(--bds37-orange);
    border-color: var(--bds37-orange);
    box-shadow: none;
}

.bds37-land-tabs__nav .tab-all a.active,
.bds37-land-tabs__nav .tab-all a:hover {
    color: var(--bds37-orange);
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--bds37-orange);
}

.bds37-land-tabs__toolbar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding: 15px 0 12px;
}

.bds37-land-tabs__toolbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #ddd;
}

.bds37-land-tabs__content {
    padding-top: 12px;
}

.bds37-land-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bds37-land-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 1.35rem;
    background: #fff;
}

.bds37-land-table th,
.bds37-land-table td {
    padding: 7px 6px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.bds37-land-table th {
    white-space: nowrap;
    font-weight: 400;
    color: var(--bds37-text);
    background: #ececec;
    border-bottom-width: 2px;
}

.bds37-land-table tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

.bds37-land-table tbody tr:hover {
    background: #f1f8f2;
}

.bds37-land-table td,
.bds37-land-table td a {
    color: var(--bds37-text);
}

.bds37-land-table tr.is-featured td,
.bds37-land-table tr.is-featured td a {
    color: var(--bds37-red);
}

.bds37-land-table td a:hover {
    color: var(--bds37-green);
    text-decoration: none;
}

.bds37-land-table .col-code {
    width: 100px;
    overflow-wrap: anywhere;
}

.bds37-land-table__code-short {
    display: none;
}

.bds37-land-table .col-area,
.bds37-land-table .col-price {
    width: 90px;
    white-space: nowrap;
}

.bds37-land-table .col-view {
    width: 75px;
}

.bds37-land-table .col-date {
    width: 95px;
    white-space: nowrap;
}

.bds37-land-table__empty {
    padding: 30px 10px !important;
    text-align: center;
    color: var(--bds37-muted) !important;
}

/* ---------- Phân trang ---------- */
.bds37-pagination {
    display: flex;
    justify-content: flex-end;
    padding: 15px 0 5px;
}

.bds37-pagination__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bds37-pagination__list a,
.bds37-pagination__list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    font-size: 1.3rem;
    color: var(--bds37-text);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    text-decoration: none;
}

.bds37-pagination__list a:hover {
    color: var(--bds37-green);
    border-color: var(--bds37-green);
}

.bds37-pagination__list .active span {
    color: var(--bds37-orange);
    border-color: var(--bds37-orange);
}

.bds37-pagination__list .disabled span {
    border-color: transparent;
    background: transparent;
}

/* ---------- Breadcrumb ---------- */
.bds37-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 0 0 12px;
    margin-bottom: 15px;
    font-size: 1.35rem;
    border-bottom: 1px solid #eee;
}

.bds37-breadcrumb a {
    color: var(--bds37-text);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bds37-breadcrumb a:hover {
    color: var(--bds37-green);
    text-decoration: none;
}

.bds37-breadcrumb__sep {
    color: #bbb;
}

.bds37-breadcrumb__current {
    color: var(--bds37-green);
}

/* Khối nội dung chính trang danh sách / chi tiết:
   desktop: cột 9 của hàng .bds37-row-content; mobile: hàng .bds37-row-main */
.bds37-row-content > .container > .row > .col-md-9,
.bds37-row-main > .container > .row > .col-12 {
    position: relative;
    padding-top: 15px;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.bds37-row-content > .container > .row > .col-md-9::before,
.bds37-row-main > .container > .row > .col-12::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    right: 15px;
    background: #fff;
}

.bds37-row-content > .container > .row > .col-md-9 > [nh-block],
.bds37-row-main > .container > .row > .col-12 > [nh-block] {
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
}

.bds37-row-content .col-md-9 .bds37-box,
.bds37-row-main .bds37-box {
    padding: 0;
    margin-bottom: 15px;
}

/* ---------- Tin BĐS dạng danh sách ---------- */
.bds37-land-item {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.bds37-land-item:first-child {
    padding-top: 0;
}

.bds37-land-item__title {
    margin: 0 0 10px;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.4;
}

.bds37-land-item__title a {
    color: #1d1d1d;
}

.bds37-land-item.is-featured .bds37-land-item__title a {
    color: var(--bds37-red);
}

.bds37-land-item__title a:hover {
    color: var(--bds37-green);
    text-decoration: none;
}

.bds37-land-item__inner {
    display: flex;
    gap: 12px;
}

.bds37-land-item__image {
    flex: 0 0 185px;
    width: 185px;
    height: 120px;
}

.bds37-land-item__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bds37-land-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 15px;
    font-size: 1.35rem;
    color: #555;
}

.bds37-land-item__meta i {
    margin-right: 4px;
    color: #555;
}

.bds37-land-item__meta b {
    font-weight: 400;
    color: var(--bds37-red);
}

.bds37-land-item__desc {
    margin-top: 5px;
    font-size: 1.35rem;
    line-height: 1.6;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bds37-land-item__action {
    margin-top: auto;
    padding-top: 8px;
    text-align: right;
}

/* ---------- Bài viết dạng danh sách ---------- */
.bds37-news-item {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.bds37-news-item:first-child {
    padding-top: 0;
}

.bds37-news-item__title {
    margin: 0 0 10px;
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1.4;
}

.bds37-news-item__title a {
    color: #1d1d1d;
}

.bds37-news-item__title a:hover {
    color: var(--bds37-green);
    text-decoration: none;
}

.bds37-news-item__inner {
    display: flex;
    gap: 12px;
}

.bds37-news-item__image {
    flex: 0 0 155px;
    width: 155px;
    height: 100px;
}

.bds37-news-item__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bds37-news-item__date {
    font-size: 1.3rem;
    color: #777;
}

.bds37-news-item__date i {
    margin-right: 5px;
}

.bds37-news-item__date span {
    color: #c00;
}

.bds37-news-item__desc {
    margin-top: 4px;
    font-size: 1.35rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bds37-news-item__action {
    margin-top: auto;
    padding-top: 8px;
    text-align: right;
}

/* ---------- Sidebar ---------- */
.bds37-sidebar-box {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
}

.bds37-sidebar-title {
    position: relative;
    margin: 0 0 15px;
    padding-bottom: 8px;
    font-size: 1.7rem;
    color: var(--bds37-text);
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
}

.bds37-sidebar-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 130px;
    height: 1px;
    background: var(--bds37-orange);
    transform: translateX(-50%);
}

.bds37-sidebar-title.is-green {
    margin: -15px -15px 0;
    padding: 9px 10px;
    color: #fff;
    background: var(--bds37-green);
    border: none;
}

.bds37-sidebar-title.is-green::after {
    display: none;
}

.bds37-category-box {
    padding-bottom: 0;
}

.bds37-category-tree,
.bds37-category-tree ul {
    list-style: none;
    margin: 0 -15px;
    padding: 0;
}

.bds37-category-tree ul {
    margin: 0;
}

.bds37-category-tree li {
    position: relative;
    border-bottom: 1px solid #eee;
}

.bds37-category-tree a {
    display: block;
    padding: 9px 15px;
    font-size: 1.4rem;
    color: var(--bds37-text);
    background: #f7f7f7;
}

.bds37-category-tree > li.has-child > a {
    padding-left: 34px;
    background: #ebebeb;
}

.bds37-category-tree ul a {
    padding-left: 25px;
    background: #fff;
}

.bds37-category-tree a:hover,
.bds37-category-tree a.active {
    color: var(--bds37-green);
    text-decoration: none;
}

.bds37-category-tree__toggle {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 32px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    cursor: pointer;
}

.bds37-category-tree__toggle i {
    transform: rotate(-90deg);
    transition: transform .2s ease;
}

.bds37-category-tree__toggle.open i {
    transform: none;
}

.bds37-support__body {
    text-align: center;
}

.bds37-support__avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #eee;
}

.bds37-support__name {
    margin-top: 8px;
    font-size: 1.4rem;
    color: #555;
}

.bds37-support__phone {
    display: block;
    font-size: 1.5rem;
    color: var(--bds37-orange);
}

.bds37-support__actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.bds37-support__actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    color: #777;
    border: 1px solid #ccc;
    border-radius: 50%;
    text-decoration: none;
}

.bds37-support__actions a.is-zalo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bds37-zalo);
}

.bds37-support__actions a:hover {
    color: #fff;
    background: var(--bds37-green);
    border-color: var(--bds37-green);
}

/* ---------- Quảng cáo ---------- */
.bds37-ads__item img {
    display: block;
    width: 100%;
    height: auto;
}

.bds37-ads--stack .bds37-ads__item + .bds37-ads__item {
    margin-top: 10px;
}

.bds37-ads--stack {
    margin-bottom: 20px;
}

.bds37-ads--full .bds37-ads__list {
    max-width: 1140px;
    margin: 0 auto;
}

.bds37-ads--grid .bds37-ads__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 767.98px) {
    .bds37-ads--grid .bds37-ads__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Chi tiết BĐS ---------- */
.bds37-land-detail__title,
.bds37-article-detail__title {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.4;
    color: #1d1d1d;
}

.bds37-land-detail__meta,
.bds37-article-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #777;
}

.bds37-land-detail__meta i,
.bds37-article-detail__meta i {
    margin-right: 5px;
}

.bds37-land-detail__meta b,
.bds37-article-detail__meta b {
    font-weight: 400;
    color: var(--bds37-text);
}

.bds37-land-detail__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
    background: #f6fbf7;
    border: 1px solid #d9efdd;
}

.bds37-land-detail__price .label {
    font-size: 1.4rem;
    color: #555;
}

.bds37-land-detail__price .value {
    font-size: 1.9rem;
    color: var(--bds37-red);
    margin-right: 15px;
}

.bds37-gallery {
    margin-bottom: 15px;
}

.bds37-gallery__large {
    position: relative;
}

.bds37-gallery__large .swiper-slide .bds37-gallery__item {
    aspect-ratio: 4 / 3;
    max-height: 520px;
    width: 100%;
    background-color: #f3f3f3;
}

.bds37-gallery__large .swiper-slide img {
    object-fit: contain;
}

.bds37-gallery__large .swiper-button-prev,
.bds37-gallery__large .swiper-button-next {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    border-radius: 50%;
}

.bds37-gallery__large .swiper-button-prev::after,
.bds37-gallery__large .swiper-button-next::after {
    display: none;
}

.bds37-gallery__zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 8px;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    border-radius: 3px;
    pointer-events: none;
}

.bds37-gallery__thumbs {
    margin-top: 8px;
}

.bds37-gallery__thumbs .swiper-slide {
    height: 70px;
    cursor: pointer;
    opacity: .6;
    border: 2px solid transparent;
}

.bds37-gallery__thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--bds37-green);
}

.bds37-spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bds37-spec-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    font-size: 1.4rem;
    border-bottom: 1px dashed #e3e3e3;
}

.bds37-spec-list li.is-full {
    grid-column: 1 / -1;
}

.bds37-spec-list i {
    flex: 0 0 18px;
    color: var(--bds37-green);
    text-align: center;
}

.bds37-spec-list__label {
    flex: 0 0 auto;
    color: #666;
}

.bds37-spec-list__value {
    color: var(--bds37-text);
    word-break: break-word;
}

.bds37-content {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #222;
    overflow-wrap: anywhere;
}

.bds37-content img,
.bds37-content iframe,
.bds37-content video {
    max-width: 100% !important;
    height: auto !important;
}

.bds37-content iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.bds37-content table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

.bds37-land-detail__map p {
    font-size: 1.4rem;
}

.bds37-land-detail__contact {
    margin-top: 20px;
    padding: 15px;
    background: #f7f7f7;
    border-top: 3px solid var(--bds37-green);
}

.bds37-land-detail__contact-title {
    margin-bottom: 10px;
    font-size: 1.6rem;
    text-transform: uppercase;
}

.bds37-land-detail__contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bds37-land-detail__contact-actions .bds37-btn-outline {
    border-radius: 3px;
    min-height: 40px;
    font-size: 1.4rem;
}

/* ---------- Chi tiết bài viết / dự án ---------- */
.bds37-article-detail__desc {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
}

.bds37-project-detail__cover {
    margin-bottom: 15px;
}

.bds37-project-detail__cover img {
    height: auto;
    max-height: 560px;
    object-fit: cover;
}

.bds37-album {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.bds37-album__item {
    aspect-ratio: 4 / 3;
}

.bds37-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 10px 15px;
    background: #f1f1f1;
}

.bds37-tags a,
.bds37-tags__item {
    padding: 2px 10px;
    font-size: 1.3rem;
    color: #585858;
    background: #fff;
    border-radius: 12px;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.bds37-tags__label {
    font-size: 1.3rem;
    font-weight: 700;
}

.bds37-tags a:hover {
    color: var(--bds37-green);
    text-decoration: none;
}

.bds37-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bds37-related__list li {
    padding: 7px 0;
    font-size: 1.4rem;
    border-bottom: 1px dashed #e3e3e3;
}

.bds37-related__list a {
    color: var(--bds37-text);
}

.bds37-related__list a i {
    margin-right: 8px;
    color: var(--bds37-green);
}

.bds37-related__list a:hover {
    color: var(--bds37-green);
    text-decoration: none;
}

.bds37-related__date {
    margin-left: 5px;
    font-size: 1.2rem;
    color: #999;
}

/* ---------- Liên hệ ---------- */
.bds37-row-contact {
    padding-top: 20px;
}

.bds37-row-contact > .container > .row {
    margin: 0 0 25px;
    padding: 15px 5px 20px;
    background: #fff;
}

.bds37-row-contact .bds37-breadcrumb {
    margin-bottom: 20px;
}

.bds37-contact-form {
    margin-bottom: 20px;
}

.bds37-contact-title {
    margin-bottom: 12px;
    font-size: 1.6rem;
    color: var(--bds37-green);
    text-transform: uppercase;
}

.bds37-contact-form .form-control {
    height: 38px;
    font-size: 1.4rem;
    border-radius: 0;
    border-color: #d5d5d5;
}

.bds37-contact-form textarea.form-control {
    height: auto;
    min-height: 110px;
}

.bds37-contact-form .form-control:focus {
    border-color: var(--bds37-green);
    box-shadow: none;
}

.bds37-contact-info__map {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    background: #f3f3f3;
}

@media (max-width: 767.98px) {
    .bds37-contact-info__map {
        height: 280px;
    }
}

.bds37-contact-info__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.bds37-contact-info__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bds37-contact-info__list li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 1.4rem;
}

.bds37-contact-info__list i {
    flex: 0 0 16px;
    margin-top: 3px;
    color: var(--bds37-text);
}

.bds37-contact-info__list a {
    color: var(--bds37-text);
}

.bds37-contact-info__list a:hover {
    color: var(--bds37-green);
}

/* ---------- Chân trang ---------- */
.bds37-footer-col {
    margin-bottom: 25px;
    font-size: 1.35rem;
    color: #fff;
}

.bds37-footer-logo img {
    display: block;
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.bds37-footer-title {
    margin-bottom: 20px;
    font-size: 1.7rem;
    color: var(--bds37-green);
    text-transform: uppercase;
}

.bds37-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bds37-footer-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.bds37-footer-list i {
    margin-top: 3px;
}

.bds37-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bds37-footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.bds37-footer-contact .icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid #fff;
    border-radius: 50%;
}

.bds37-footer-contact b {
    display: block;
    font-weight: 700;
}

.bds37-footer-contact a,
.bds37-footer-col a {
    color: #fff;
}

.bds37-footer-contact a:hover {
    color: var(--bds37-green);
    text-decoration: none;
}

.bds37-footer-text {
    margin-bottom: 12px;
    line-height: 1.5;
}

.bds37-newsletter .form-group {
    margin-bottom: 10px;
}

.bds37-newsletter__input {
    width: 100%;
    height: 40px;
    padding: 6px 15px;
    font-size: 1.4rem;
    color: #fff;
    background: var(--bds37-dark-2);
    border: 1px solid var(--bds37-dark-2);
    outline: none;
}

.bds37-newsletter__input:focus {
    border-color: var(--bds37-green);
}

.bds37-newsletter__submit {
    display: block;
    width: 100%;
    height: 42px;
    line-height: 42px;
    font-size: 1.4rem;
    color: #fff;
    text-align: center;
    background: var(--bds37-green-dark);
    border-bottom: 2px solid #1e8449;
    cursor: pointer;
}

.bds37-newsletter__submit:hover {
    background: var(--bds37-green);
}

.bds37-newsletter .invalid-feedback {
    display: block;
}

.bds37-copyright {
    padding: 11px 0;
    font-size: 1.35rem;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
}

/* ---------- Nút hỗ trợ nổi ---------- */
.bds37-float-support {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1020;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
}

.bds37-float-support__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    background: var(--bds37-orange);
    border: none;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
    cursor: pointer;
}

.bds37-float-support__list {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.bds37-float-support.open .bds37-float-support__list {
    display: flex;
}

.bds37-float-support__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    padding: 8px 14px;
    font-size: 1.4rem;
    color: #fff;
    border-radius: 22px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
    text-decoration: none;
}

.bds37-float-support__list a:hover {
    color: #fff;
    opacity: .92;
}

.bds37-float-support__list .is-phone {
    background: var(--bds37-green);
}

.bds37-float-support__list .is-zalo {
    background: var(--bds37-zalo);
}

.bds37-float-support__list .is-contact {
    background: var(--bds37-orange);
}

@media (max-width: 767.98px) {
    .bds37-float-support {
        right: 12px;
        bottom: 12px;
    }

    .bds37-float-support__toggle {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        font-size: 2rem;
        border-radius: 50%;
    }

    .bds37-float-support__toggle .text {
        display: none;
    }

    .bds37-float-support__list a {
        min-width: 0;
    }
}

/* ---------- Responsive ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .bds37-menu__list > li > a {
        padding: 0 9px;
        font-size: 1.4rem;
    }
}

@media (max-width: 991.98px) {
    .bds37-logo img {
        height: 46px;
    }

    /* tablet: cột nội dung và sidebar xếp chồng, sidebar nằm dưới */
    .bds37-row-content > .container > .row > [class*='col-md-'],
    .bds37-row-contact > .container > .row > [class*='col-md-'],
    .bds37-row-footer > .container > .row > [class*='col-md-'] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .bds37-section__title {
        font-size: 2.4rem;
    }

    .bds37-row-content > .container > .row > .col-md-9 > [nh-block],
    .bds37-row-main > .container > .row > .col-12 > [nh-block] {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 767.98px) {
    .bds37-topbar {
        font-size: 1.2rem;
    }

    .bds37-topbar__social {
        display: none;
    }

    .bds37-section {
        padding-top: 20px;
    }

    .bds37-section__title {
        font-size: 2rem;
        border-bottom-width: 3px;
    }

    .bds37-project-card__name {
        font-size: 1.5rem;
    }

    .bds37-project-card__desc {
        font-size: 1.25rem;
    }

    .bds37-land-item__image {
        flex-basis: 120px;
        width: 120px;
        height: 90px;
    }

    .bds37-land-item__title {
        font-size: 1.55rem;
    }

    .bds37-land-item__desc {
        -webkit-line-clamp: 2;
    }

    .bds37-news-item__image {
        flex-basis: 110px;
        width: 110px;
        height: 75px;
    }

    .bds37-spec-list {
        grid-template-columns: 1fr;
    }

    .bds37-album {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bds37-land-detail__title,
    .bds37-article-detail__title {
        font-size: 1.8rem;
    }

    .bds37-land-tabs__nav a {
        font-size: 1.2rem;
    }

    .bds37-pagination {
        justify-content: center;
    }

    .bds37-box {
        padding-left: 12px;
        padding-right: 12px;
    }

    .bds37-row-content > .container > .row > .col-md-9 > [nh-block],
    .bds37-row-main > .container > .row > .col-12 > [nh-block] {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 767.98px) {
    .bds37-land-table {
        min-width: 620px;
        table-layout: fixed;
    }

    .bds37-land-table th,
    .bds37-land-table td {
        padding: 6px 4px;
    }

    .bds37-land-table .col-code {
        width: 40px;
    }

    .bds37-land-table .col-title {
        overflow-wrap: anywhere;
    }

    .bds37-land-table .col-area {
        width: 56px;
        white-space: normal;
    }

    .bds37-land-table .col-price {
        width: 80px;
    }

    .bds37-land-table .col-view {
        width: 64px;
    }

    .bds37-land-table .col-date {
        width: 90px;
    }

    .bds37-land-table__code-full {
        display: none;
    }

    .bds37-land-table__code-short {
        display: inline;
    }

    .bds37-land-table__area-unit {
        display: block;
    }

    /* Chỉ vùng chi tiết bài viết/dự án; hỗ trợ cả hai cấu trúc CMS. */
    body.article_detail :is(.bds37-row-content, .bds37-row-main) > .container {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    body.article_detail :is(.bds37-row-content, .bds37-row-main) > .container > .row {
        margin-left: 0;
        margin-right: 0;
    }

    body.article_detail :is(.bds37-row-content, .bds37-row-main) > .container > .row > [class*='col-']:has(.bds37-article-detail, .bds37-project-detail),
    body.article_detail :is(.bds37-row-content, .bds37-row-main) > .container > .row > [class*='col-'] > [nh-block]:has(> .bds37-article-detail, > .bds37-project-detail),
    body.article_detail :is(.bds37-article-detail, .bds37-project-detail) {
        padding-left: 0;
        padding-right: 0;
    }

    body.article_detail :is(.bds37-article-detail, .bds37-project-detail) > :is(.bds37-article-detail__title, .bds37-article-detail__meta, .bds37-article-detail__desc, .bds37-sub-title, .bds37-album) {
        margin-left: 8px;
        margin-right: 8px;
    }

    body.article_detail :is(.bds37-article-detail, .bds37-project-detail) > .bds37-content {
        padding-left: 8px;
        padding-right: 8px;
    }

    body.article_detail :is(.bds37-article-detail, .bds37-project-detail) > .bds37-tags {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Ảnh đứng riêng trong nội dung mở rộng qua lề chữ 8px. */
    body.article_detail :is(.bds37-article-detail, .bds37-project-detail) > .bds37-content :is(p, div, figure):has(> img:only-child, > :is(a, strong, span):only-child > img:only-child) {
        margin-left: -8px;
        margin-right: -8px;
        padding-left: 0;
        padding-right: 0;
        max-width: none;
    }

    body.article_detail :is(.bds37-article-detail, .bds37-project-detail) > .bds37-content :is(p, div, figure):has(> img:only-child, > :is(a, strong, span):only-child > img:only-child) img,
    body.article_detail :is(.bds37-article-detail, .bds37-project-detail) > .bds37-content .imageGallery > img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Ảnh có chú thích trong HTML chuyển đổi; chú thích giữ lề chữ. */
    body.article_detail :is(.bds37-article-detail, .bds37-project-detail) > .bds37-content .imageGallery:has(> img) {
        display: block;
        width: calc(100% + 16px);
        max-width: calc(100% + 16px);
        margin-left: -8px;
    }

    body.article_detail :is(.bds37-article-detail, .bds37-project-detail) > .bds37-content > img {
        display: block;
        width: calc(100% + 16px) !important;
        max-width: calc(100% + 16px) !important;
        margin-left: -8px;
        height: auto !important;
    }

    body.article_detail .bds37-project-detail__cover img {
        width: 100%;
        height: auto;
        max-height: none;
    }
}

@media (max-width: 420px) {
    .bds37-land-item__inner,
    .bds37-news-item__inner {
        flex-direction: column;
    }

    .bds37-land-item__image,
    .bds37-news-item__image {
        flex-basis: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bds37-project-card__image img,
    .bds37-menu__nav,
    .bds37-menu__sub {
        transition: none;
    }
}

/* ---------- Đăng tin / Tin đăng của tôi ---------- */
.bds37-post-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 14px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #1f6b30;
    background: #eef8f0;
    border: 1px solid #cfe9d4;
}

.bds37-post-note.is-warning {
    color: #8a5300;
    background: #fff6e5;
    border-color: #ffe1a8;
}

.bds37-post-note i {
    margin-top: 3px;
}

.bds37-post-login {
    padding: 40px 15px;
    text-align: center;
    color: #555;
}

.bds37-post-login > i {
    font-size: 4.2rem;
    color: #c5c9d0;
}

.bds37-post-login p {
    margin: 12px 0 18px;
    font-size: 1.5rem;
}

.bds37-post-login__actions,
.bds37-post-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.bds37-post-section {
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
}

.bds37-post-section__title {
    padding: 9px 15px;
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    background: var(--bds37-green);
}

.bds37-post-section > .row,
.bds37-post-section > .form-group,
.bds37-post-section > .bds37-post-hint,
.bds37-post-section > .bds37-post-images {
    margin: 15px;
}

.bds37-post-section > .row {
    margin-left: 0;
    margin-right: 0;
}

.bds37-post .form-group {
    margin-bottom: 14px;
}

.bds37-post .form-group label {
    margin-bottom: 5px;
    font-size: 1.35rem;
    color: #444;
}

.bds37-post .form-control {
    height: 38px;
    font-size: 1.4rem;
    border-radius: 0;
    border-color: #d5d5d5;
}

.bds37-post textarea.form-control {
    height: auto;
}

.bds37-post .form-control:focus {
    border-color: var(--bds37-green);
    box-shadow: none;
}

.bds37-post .required {
    color: var(--bds37-red);
}

.bds37-post .invalid-feedback {
    display: block;
}

.bds37-post-hint {
    font-size: 1.3rem;
    color: #777;
}

.bds37-post-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bds37-post-image,
.bds37-post-image-add {
    position: relative;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f5f5f5;
}

.bds37-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bds37-post-image.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #999;
}

.bds37-post-image__cover {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px 0;
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
    background: rgba(74, 188, 96, .9);
}

.bds37-post-image.is-cover {
    border-color: var(--bds37-green);
}

.bds37-post-image.is-cover .bds37-post-image__cover {
    display: block;
}

.bds37-post-image.is-cover .bds37-post-image__first {
    display: none;
}

.bds37-post-image__first,
.bds37-post-image__remove {
    position: absolute;
    top: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 1.2rem;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.bds37-post-image__first {
    left: 4px;
}

.bds37-post-image__remove {
    right: 4px;
}

.bds37-post-image__remove:hover {
    background: var(--bds37-red);
}

.bds37-post-image-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    font-size: 1.3rem;
    color: #777;
    border-style: dashed;
    cursor: pointer;
}

.bds37-post-image-add i {
    font-size: 2.2rem;
}

.bds37-post-image-add:hover {
    color: var(--bds37-green);
    border-color: var(--bds37-green);
}

.bds37-post-image-add input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.bds37-post-actions {
    justify-content: flex-start;
    margin-bottom: 15px;
}

.bds37-btn-cancel {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 22px;
    font-size: 1.4rem;
    color: #fff;
    background: #e53935;
    border-radius: 3px;
}

.bds37-btn-cancel:hover {
    color: #fff;
    background: #c62828;
    text-decoration: none;
}

.bds37-my-posts__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.bds37-my-posts__head .bds37-box-title {
    flex: 1 1 auto;
}

.bds37-my-posts__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.bds37-my-posts__filter .form-control {
    flex: 1 1 200px;
    height: 38px;
    font-size: 1.4rem;
    border-radius: 0;
}

.bds37-my-posts__filter select.form-control {
    flex: 0 1 200px;
}

.bds37-my-posts__table {
    min-width: 820px;
}

.bds37-my-posts__table td a {
    color: var(--bds37-text);
}

.bds37-my-posts__sub {
    font-size: 1.2rem;
    color: #888;
}

.bds37-my-posts__table .col-state {
    width: 120px;
    white-space: nowrap;
}

.bds37-my-posts__table .col-action {
    width: 80px;
    white-space: nowrap;
    text-align: center;
}

.bds37-state {
    display: inline-block;
    padding: 2px 10px;
    font-size: 1.2rem;
    border-radius: 10px;
}

.bds37-state--cho_duyet {
    color: #8a5300;
    background: #fff1d6;
}

.bds37-state--dang_hien_thi {
    color: #1f6b30;
    background: #e3f5e7;
}

.bds37-state--het_han {
    color: #666;
    background: #ececec;
}

.bds37-state--da_an {
    color: #b71c1c;
    background: #fde8e8;
}

.bds37-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    color: #555;
    border-radius: 50%;
}

.bds37-icon-btn:hover {
    color: #fff;
    background: var(--bds37-green);
    text-decoration: none;
}

.bds37-icon-btn.is-danger:hover {
    background: var(--bds37-red);
}

.bds37-post-menu__user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0 8px;
    font-size: 1.45rem;
    font-weight: 700;
}

.bds37-post-menu__user i {
    font-size: 2.2rem;
    color: var(--bds37-green);
}

.bds37-post-menu__list {
    list-style: none;
    margin: 0 -15px;
    padding: 0;
}

.bds37-post-menu__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    font-size: 1.4rem;
    color: var(--bds37-text);
    border-top: 1px solid #eee;
}

.bds37-post-menu__list a:hover,
.bds37-post-menu__list a.active {
    color: var(--bds37-green);
    background: #f7f7f7;
    text-decoration: none;
}

.bds37-post-menu__guest {
    padding: 12px 0 4px;
    text-align: center;
}

.bds37-post-menu__guest p {
    font-size: 1.35rem;
    color: #666;
}

.bds37-post-menu__guest .bds37-btn-green,
.bds37-post-menu__guest .bds37-btn-outline {
    margin: 0 3px 6px;
}

.bds37-post-menu__guide {
    margin-top: 12px;
    padding-top: 10px;
    font-size: 1.3rem;
    color: #555;
    border-top: 1px dashed #ddd;
}

.bds37-post-menu__guide p {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.bds37-post-menu__guide i {
    margin-top: 3px;
    color: var(--bds37-green);
}

@media (max-width: 575.98px) {
    .bds37-post-image,
    .bds37-post-image-add {
        width: calc(33.333% - 7px);
        height: 80px;
    }

    .bds37-my-posts__head {
        flex-direction: column;
    }
}
