/* ==========================================================================
   STYLE FRONTEND
   --------------------------------------------------------------------------
   1.  Base & Typography
   2.  Utilities (width, size, text, object-fit, ...)
   3.  Layout chung
   4.  Components chung (text-hr, loading, overlay, buttons, ...)
   5.  Forms & Select2
   6.  Khung ảnh 16:9
   7.  Trang chủ - Tin tức (news-badge, fnews)
   8.  Trang chủ - Tài sản nổi bật (fa-*)
   9.  Trang chủ - Phòng giao dịch (tpo-*)
   10. Trang chủ - Dự án (fprj-*)
   11. Danh sách BĐS (real-estate-list)
   12. Danh mục (category-card)
   13. Tìm kiếm Typeahead
   14. Header / Menu / Banner
   15. Responsive
   ========================================================================== */


/* ==========================================================================
   1. BASE & TYPOGRAPHY
   ========================================================================== */
body { background-color: #e9edf0; }
a { color: #000; }
a:hover { text-decoration: none !important; }
p { font-size: .9rem; }
strong { font-weight: 600; }
label { font-weight: 600; }
.font-weight-bold { font-weight: 600 !important; }
.font-amazon { font-family: 'Amazon Ember', Arial, sans-serif; }

.container { max-width: 1240px !important; }
.container-color-white { background-color: #fff; padding: 1rem; }


/* ==========================================================================
   2. UTILITIES
   ========================================================================== */
/* Width */
.w-5  { width: 5%; }
.w-8  { width: 8%; }
.w-10 { width: 10%; }
.w-12 { width: 12%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-88 { width: 88%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.h-100 { height: 100%; }

/* Font size */
.size-06 { font-size: .6rem; }
.size-07 { font-size: .7rem; }
.size-08 { font-size: .8rem; }
.size-09 { font-size: .9rem; }
.size-1  { font-size: 1rem; }
.size-11 { font-size: 1.1rem; }
.size-12 { font-size: 1.2rem; }
.size-13 { font-size: 1.3rem; }
.size-14 { font-size: 1.4rem; }
.size-15 { font-size: 1.5rem; }
.size-16 { font-size: 1.6rem; }

/* Color */
.text-red   { color: red; }
.text-black { color: black; }
.text-green { color: green; }
.text-main  { color: #0097b2; }
.bg-main    { background-color: #0097b2; }

/* Text clamp */
.text-title-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.text-title-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }

/* Misc */
.object-fit-cover   { object-fit: cover; }
.object-fit-contain { object-fit: contain; }
.border-radius-50   { border-radius: 50%; }
.border-bottom-dotted { border-bottom: 1px dotted #ccc; }
.border-bottom-dotted:last-child { border-bottom: none; }
.box-shadow-cus { box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12); }
.row_nineteen { margin-left: -19px !important; margin-right: -19px !important; }
.custom-height-image img { object-fit: cover !important; height: 170px !important; }

/* Buttons */
.btn-xs { padding: .125rem .25rem; font-size: .75rem; line-height: 1.5; border-radius: .15rem; }
.btn-sm { padding: .1rem .3rem !important; }


/* ==========================================================================
   3. LAYOUT CHUNG
   ========================================================================== */
.title_indust { float: left; height: 32px; background-color: #b5b8ba; text-align: center; line-height: 30px; color: #fff; font-weight: bold; }
.title-header-box { background-color: #c5c8c5; }
.index_label_title h2 { width: 100%; line-height: 25px; font-size: 17px; font-weight: bold; margin: 6px 0; padding: 0 10px; }

.box-info-footer { line-height: 1; }
.box-four-home:last-child { border-bottom: 0 !important; }
.box-user-info { line-height: 1.8; }
.box-acti-operation { position: absolute; right: 5px; top: 5px; }
.box-contact-icon { position: absolute; top: 40px; right: 10px; }
.border-activities-home { border-right: 10px solid #e9edf0; }
.btn-user-edit { position: absolute; top: .2rem; right: .2rem; cursor: pointer; }
.delete-image-multi { position: absolute; right: 0; top: 0; cursor: pointer; }
.pagination { margin-top: .5rem !important; margin-bottom: .5rem !important; }

/* Nội dung chi tiết */
.box-detail img { max-width: 100% !important; max-height: 100%; }
.box-detail table { width: 100% !important; }
.content-detail table { max-width: 100% !important; }
.content-detail img { max-width: 100% !important; height: auto !important; }

/* Trạng thái tin (overlay) */
.box-status-proser {
    position: absolute; width: 50%; top: 20%; left: 25%;
    background-color: #000; opacity: .5; color: #fff;
    font-size: 1rem; padding: 5px; border-radius: 5px; font-weight: 600;
}
.box-status-proser strong { background-color: #ccc; opacity: .8; color: red; padding: 10px 15px; }

/* Captcha */
.box-show-captcha { background-color: #000; color: #fff; padding: 7.5px; text-align: center; font-size: 15px; float: left; }
.box-input-captcha { float: left; text-align: center; border-radius: 0; }

/* Scroll ngang */
.content-scroll {
    display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 10px; padding-bottom: 6px;
}
.content-scroll::-webkit-scrollbar { height: 5px; }
.content-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }


/* ==========================================================================
   4. COMPONENTS CHUNG
   ========================================================================== */
/* Nút giới thiệu */
.btn-about-cus {
    margin-top: 4px; border: 1px solid transparent; background-color: #00b5f1; border-radius: 8px;
    padding: 8px 15px !important; color: #fff; font-weight: 600; font-size: 16px; line-height: 18.75px; white-space: nowrap;
}
.btn-about-cus:hover { color: #00b5f1; background-color: #fff; border-color: #00b5f1; }
.btn-about-all {
    margin-top: 4px; border: 1px solid #6e7f88; border-radius: 8px; padding: 8px 10px !important;
    font-weight: 600; font-size: 16px; line-height: 18.75px; background-color: #fff; white-space: nowrap;
}

/* Đường kẻ có chữ (text-hr) */
.text-hr { display: flex; align-items: center; width: 100%; margin: 5px auto; color: #444; }
.text-hr__text { padding-right: 15px; }
.text-hr__text:not(:first-child) { display: none; }
.text-hr::after { flex: 1; background: #c7c7c7; content: ""; height: 5px; border-radius: 5px; }
.text-hr--right .text-hr__text { order: 1; padding: 0 0 0 15px; }
.text-hr--double .text-hr__text:nth-child(2) { order: 1; display: inline; padding: 0 0 0 15px; }
.text-hr--center::before { flex: 1; background: #c7c7c7; content: ""; height: 5px; border-radius: 5px; }
.text-hr--center .text-hr__text { padding: 0 15px; }
.text-hr--triple .text-hr__text:nth-child(2) { order: 2; display: inline; padding: 0 15px; }
.text-hr--triple .text-hr__text:nth-child(3) { order: 4; display: inline; padding: 0 0 0 15px; }
.text-hr--triple::after { order: 3; }
.text-hr--triple::before { flex: 1; background: #c7c7c7; content: ""; height: 1px; order: 1; }
.text-hr--loud .text-hr__text { font-size: 36px; font-weight: bold; }
.text-hr--loud .text-hr__text:nth-child(2) { font-size: 12px; font-weight: normal; }

/* Fade dọc */
.fade-vertical-auto {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 30%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 30%, rgba(0,0,0,0) 100%);
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    user-select: none; pointer-events: none;
}

/* Overlay màn hình */
#screen_overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.4); z-index: 1000;
}
.hover-background { position: absolute; width: 100%; height: 500px; background-color: #000; z-index: 999; opacity: .7; display: none; }
.search-input, .button-search, .tt-menu { position: relative; z-index: 999 !important; }

/* Loading */
.box-loading {
    position: fixed; z-index: 99999999; width: 100vw; height: 100vh; margin: 0;
    background-color: #000; opacity: .5;
    display: flex; justify-content: center; align-items: center; align-content: center;
}
.box-loading > .loading {
    position: relative; width: 5vmax; height: 5vmax;
    border-right: 4px solid #fff; border-radius: 100%;
    animation: spinRight 800ms linear infinite;
}
.box-loading > .loading::before,
.box-loading > .loading::after {
    content: ''; display: block; position: absolute;
    width: 6vmax; height: 6vmax; top: calc(50% - 3vmax); left: calc(50% - 3vmax);
    border-left: 3px solid #fff; border-radius: 100%;
    animation: spinLeft 800ms linear infinite;
}
.box-loading > .loading::after {
    width: 4vmax; height: 4vmax; top: calc(50% - 2vmax); left: calc(50% - 2vmax);
    border: 0; border-right: 2px solid #fff; animation: none;
}
@keyframes spinLeft  { from { transform: rotate(0deg); }   to { transform: rotate(720deg); } }
@keyframes spinRight { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

/* Xem thêm / Thu gọn */
#seeMore p.collapse:not(.show) { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; }
#seeMore p.collapsing { min-height: 100px !important; }
#seeMore span.collapsed::after { content: '+ Xem thêm'; }
#seeMore span:not(.collapsed)::after { content: '- Thu gọn'; }
#seeMore span { color: blue; cursor: pointer; }


/* ==========================================================================
   5. FORMS & SELECT2
   ========================================================================== */
.form-text { display: block; margin-top: .25rem; font-size: 14px; color: #dc3545 !important; }
.form-wrapper { counter-reset: label-counter; }
.form-wrapper label::before {
    counter-increment: label-counter; content: counter(label-counter) ". ";
    font-weight: 600; margin-right: .2rem; font-size: .9rem;
}

/* Tìm kiếm mobile */
.btn-search-mobile { position: absolute; right: 0; height: 38px; z-index: 99; }
.btn-search-mobile button { background-color: #0d5a86; color: #fff; }
.form-search-mobile > .select2-container--default .select2-selection--single { padding: .46875rem .1rem !important; }

/* Select2 chung */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single { border: 1px solid #ced4da; padding: .46875rem .75rem; height: calc(2.25rem + 2px); }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: #444; line-height: 20px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { top: 60%; }
.select2-search--dropdown .select2-search__field { width: 100% !important; }
.select2-container .select2-results__option,
.select2-container--default .select2-results__option { border-bottom: 1px dotted #ccc !important; }
.select2-container .select2-results__option:last-child,
.select2-container--default .select2-results__option:last-child { border-bottom: none !important; }

/* Select2 desktop */
.cateId > .select2-search { width: 100% !important; background-color: #fff; }
#select2-cateId-results { width: 100%; background-color: #fff; max-height: 500px; border: 1px solid #ccc; }
#select2-cateId-results li { border-bottom: 1px dotted #ccc; }
#select2-cateId-results.select2-dropdown { border: 0 !important; }

.provinceId > .select2-search { width: 100% !important; background-color: #fff; }
#select2-provinceId-results { width: 100%; background-color: #fff; max-height: 500px; border: 1px solid #ccc; }
#select2-provinceId-results li { border-bottom: 1px dotted #ccc; }
#select2-provinceId-results.select2-dropdown { border: 0 !important; }

.wardId > .select2-search { width: 150% !important; background-color: #fff; }
#select2-wardId-results { width: 150%; background-color: #fff; max-height: 500px; border: 1px solid #ccc; }
#select2-wardId-results li { border-bottom: 1px dotted #ccc; }
#select2-wardId-results.select2-dropdown { border: 0 !important; }

/* Select2 mobile */
.CateIDM > .select2-search { width: 305% !important; background-color: #fff; }
#select2-CateIDM-results { width: 305%; background-color: #fff; max-height: 500px; border: 1px solid #ccc; }
#select2-CateIDM-results li { border-bottom: 1px dotted #ccc; }
#select2-CateIDM-results.select2-dropdown { border: 0 !important; }

.cateIdTwoM > .select2-search { width: 200% !important; background-color: #fff; margin-left: -100%; }
#select2-cateIdTwoM-results { width: 200%; background-color: #fff; max-height: 500px; border: 1px solid #ccc; margin-left: -100%; }
#select2-cateIdTwoM-results li { border-bottom: 1px dotted #ccc; }
#select2-cateIdTwoM-results.select2-dropdown { border: 0 !important; }

.ProvinceIDM > .select2-search { width: 300% !important; background-color: #fff; margin-left: -100%; }
#select2-ProvinceIDM-results { width: 300%; background-color: #fff; max-height: 500px; border: 1px solid #ccc; margin-left: -100%; }
#select2-ProvinceIDM-results li { border-bottom: 1px dotted #ccc; }
#select2-ProvinceIDM-results > .select2-dropdown { border: 0 !important; }

.WardIDM > .select2-search { width: 300% !important; background-color: #fff; margin-left: -200%; }
#select2-WardIDM-results { width: 300%; background-color: #fff; max-height: 500px; border: 1px solid #ccc; margin-left: -200%; }
#select2-WardIDM-results li { border-bottom: 1px dotted #ccc; }
#select2-WardIDM-results.select2-dropdown { border: 0 !important; }

.StreetIDM > .select2-search { width: 300% !important; background-color: #fff; margin-left: -200%; }
#select2-StreetIDM-results { width: 300%; background-color: #fff; max-height: 300px; border: 1px solid #ccc; margin-left: -200%; }
#select2-StreetIDM-results li { border-bottom: 1px dotted #ccc; }
#select2-StreetIDM-results.select2-dropdown { border: 0 !important; }

#proviceR .select2, #districtR .select2, #wardR .select2, #streetR .select2 { width: 100% !important; }


/* ==========================================================================
   6. KHUNG ẢNH 16:9
   ========================================================================== */
.proser-image-main,
.fa-card-thumb,
.act-thumb {
    position: relative; display: block; width: 100%; overflow: hidden;
    background: #f3f4f6; aspect-ratio: 16 / 9;
}
.proser-image-main > img,
.fa-card-thumb img,
.act-thumb img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: block; object-fit: cover;
}
.fa-card-img { border-radius: 8px; }
@supports not (aspect-ratio: 16 / 9) {
    .proser-image-main, .fa-card-thumb, .act-thumb { height: 0; padding-top: 56.25%; }
}


/* ==========================================================================
   7. TRANG CHỦ - TIN TỨC
   ========================================================================== */
/* Badge chuyên mục */
.news-badge {
    display: inline-block; background-color: #eff6ff; color: #0d2986;
    padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
    text-decoration: none; transition: background-color .2s;
}
.news-badge:hover { background-color: #dbeafe; color: #1e40af; text-decoration: none; }

/* Khối tin tức (fnews) */
.fnews-wrapper { background-color: transparent; }
.fnews-banner-wrap { border-radius: 12px; overflow: hidden; }
.fnews-banner-img { border-radius: 12px; }
.fnews-list-wrap { border-radius: 12px; overflow: hidden; border: 1px solid #f3f4f6; }
.fnews-header { background-color: #047857; }
.fnews-view-all { font-size: 13px; opacity: .9; }
.fnews-view-all:hover { opacity: 1; text-decoration: underline !important; }
.fnews-item:last-child { border-bottom: none !important; }
.fnews-item-img { width: 140px; height: 90px; border-radius: 8px; border: 1px solid #f3f4f6; }
.fnews-item-cate { font-size: 11px; color: #059669; letter-spacing: .5px; }
.fnews-item-cate:hover { color: #047857; }
.fnews-item-title {
    font-size: 15px; font-weight: 600; color: #111827; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}
.fnews-item-title:hover { color: #059669; }
.fnews-item-views { font-size: 13px; color: #6b7280; }


/* ==========================================================================
   8. TRANG CHỦ - TÀI SẢN NỔI BẬT (fa-*)
   ========================================================================== */
.featured-assets-wrapper { background-color: #fff; }
.featured-assets-wrapper .fa-icon-box { width: 48px; height: 48px; background-color: #f0f6ff; color: #1a73e8; border-radius: 12px; flex-shrink: 0; }
.featured-assets-wrapper .fa-title { font-size: 20px; font-weight: 700; color: #111827; margin: 0; }
.featured-assets-wrapper .fa-subtitle { font-size: 14px; color: #6b7280; }
.featured-assets-wrapper .fa-btn-view-all {
    display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: #1a73e8;
    background-color: transparent; border: 1px solid #d2e3fc; border-radius: 50px; padding: 5px 40px; transition: all .3s ease;
}
.featured-assets-wrapper .fa-btn-view-all:hover { background-color: #f0f6ff; border-color: #1a73e8; color: #165bb7; text-decoration: none; }
.featured-assets-wrapper .fa-btn-view-all span { font-size: 18px; line-height: 1; }

.fa-card { border: 1px solid #f3f4f6; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: all .3s ease; }
.fa-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05); transform: translateY(-2px); }

.fa-badge-status,
.fa-badge-status-1 {
    top: 8px; left: 8px; color: #fff; font-size: 12px; font-weight: 500;
    padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; z-index: 2;
}
.fa-badge-status   { background-color: #06b6d4; }
.fa-badge-status-1 { background-color: #2196f3; }
.fa-dot { width: 6px; height: 6px; background-color: #fff; border-radius: 50%; margin-right: 6px; }
.fa-badge-discount {
    top: 8px; right: 8px; background-color: #ef4444; color: #fff; font-size: 12px; font-weight: 600;
    padding: 4px 8px; border-radius: 6px; z-index: 2;
}

.fa-card-title {
    font-size: 15px; font-weight: 600; color: #111827; line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}
.fa-card-title:hover { color: #1a73e8; }
.fa-card-location { font-size: 13px; color: #6b7280; display: flex; align-items: flex-start; }
.fa-card-price { font-size: 18px; font-weight: 700; color: #ef4444; }
.fa-card-unit { font-size: 13px; font-weight: normal; color: #6b7280; }
.fa-card-area-val { font-size: 15px; font-weight: 600; color: #111827; }
.fa-card-area-lbl { font-size: 12px; color: #9ca3af; }
.fa-card-footer { border-top: 1px solid #f3f4f6; padding-top: 12px; display: flex; align-items: center; font-size: 13px; color: #6b7280; }
.fa-card-footer a:hover { color: #1a73e8 !important; }


/* ==========================================================================
   9. TRANG CHỦ - PHÒNG GIAO DỊCH (tpo-*)
   ========================================================================== */
.tpo-wrapper { background-color: transparent; }
.tpo-wrapper .tpo-icon-box { width: 48px; height: 48px; background-color: #f0f6ff; color: #1a73e8; border-radius: 12px; flex-shrink: 0; }
.tpo-wrapper .tpo-title { font-size: 20px; font-weight: 700; color: #111827; margin: 0; }
.tpo-wrapper .tpo-subtitle { font-size: 14px; color: #6b7280; }
.tpo-wrapper .tpo-btn-view-all {
    display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: #1a73e8;
    background-color: transparent; border: 1px solid #d2e3fc; border-radius: 50px; padding: 6px 16px; transition: all .3s ease;
}
.tpo-wrapper .tpo-btn-view-all:hover { background-color: #f0f6ff; border-color: #1a73e8; color: #165bb7; text-decoration: none; }

.tpo-card { border: 1px solid #f3f4f6; border-radius: 16px; box-shadow: 0 2px 4px rgba(0,0,0,.03); transition: all .3s ease; }
.tpo-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04); transform: translateY(-2px); border-color: #e5e7eb; }
.tpo-avatar { width: 140px; height: 140px; border: 2px solid #fff; }
.tpo-verified-badge { bottom: 5px; right: 15px; width: 26px; height: 26px; background-color: #1a73e8; border: 2px solid #fff; z-index: 2; }
.tpo-card-title { font-size: 16px; font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpo-card-title a { color: #111827; }
.tpo-card-title a:hover { color: #1a73e8; }
.tpo-card-location { font-size: 13px; color: #6b7280; }
.tpo-listing-count { background-color: #fff; border: 1px solid #e5e7eb; border-radius: 10px; justify-content: center; }
.tpo-listing-icon { width: 28px; height: 28px; background-color: #f0f6ff; color: #1a73e8; }
.tpo-listing-text { font-size: 14px; }


/* ==========================================================================
   10. TRANG CHỦ - DỰ ÁN (fprj-*)
   ========================================================================== */
.fprj-wrapper { background-color: transparent; }
.fprj-wrapper .fprj-icon-box { width: 48px; height: 48px; background-color: #ecfdf5; color: #059669; border-radius: 12px; flex-shrink: 0; }
.fprj-wrapper .fprj-title { font-size: 20px; font-weight: 700; color: #111827; margin: 0; }
.fprj-wrapper .fprj-subtitle { font-size: 14px; color: #6b7280; }
.fprj-wrapper .fprj-btn-view-all {
    display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: #059669;
    background-color: transparent; border: 1px solid #d1fae5; border-radius: 50px; padding: 6px 16px; transition: all .3s ease;
}
.fprj-wrapper .fprj-btn-view-all:hover { background-color: #ecfdf5; border-color: #059669; color: #047857; text-decoration: none; }

.fprj-card { border: 1px solid #f3f4f6; border-radius: 16px; box-shadow: 0 2px 4px rgba(0,0,0,.02); transition: all .3s ease; }
.fprj-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04); transform: translateY(-2px); }
.fprj-avatar { width: 120px; height: 120px; border: 2px solid #fff; margin: 0 auto; }
.fprj-card-title {
    font-size: 15px; font-weight: 700; color: #111827; line-height: 1.3; min-height: 39px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}
.fprj-card-title:hover { color: #059669; }
.fprj-divider { width: 24px; height: 3px; background-color: #10b981; border-radius: 2px; }


/* ==========================================================================
   11. DANH SÁCH BĐS (real-estate-list)
   ========================================================================== */
.real-estate-list .real-item { display: flex; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #eee; position: relative; }
.real-estate-list .real-item:last-child { border-bottom: none; }
.real-estate-list .thumb { flex-shrink: 0; margin-right: 12px; }
.real-estate-list .thumb img { width: 140px; height: 105px; object-fit: cover; border-radius: 6px; background: #f5f5f5; }
.real-estate-list .info { flex: 1; min-width: 0; }
.real-estate-list .title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 15px; font-weight: 600; line-height: 1.4; color: #222; margin-bottom: 4px;
}
.real-estate-list .title:hover { color: #e53935; text-decoration: none; }
.real-estate-list .meta-price { font-size: 14px; margin-bottom: 2px; }
.real-estate-list .price, .real-estate-list .area { color: #e53935; font-weight: 600; }
.real-estate-list .dot { margin: 0 4px; color: #999; }
.real-estate-list .location { font-size: 13px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.real-estate-list .location i { color: #999; margin-right: 4px; }
.real-estate-list .time { font-size: 12px; color: #aaa; margin-top: 2px; }
.real-estate-list .favorite { width: 32px; text-align: center; font-size: 18px; color: #aaa; cursor: pointer; flex-shrink: 0; }
.real-estate-list .favorite:hover { color: #e53935; }


/* ==========================================================================
   12. DANH MỤC (category-card)
   ========================================================================== */
.category-card { background: #fff; border-radius: 12px; padding: 12px 8px; transition: all .25s ease; height: 100%; }
.category-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-3px); border-color: #ddd; }
.category-thumb img { object-fit: cover; border-radius: 50%; border: 1px solid #f1f1f1; padding: 6px; background: #fafafa; transition: all .25s ease; }
.category-card:hover .category-thumb img { transform: scale(1.05); border-color: #ddd; }
.category-title { font-size: .9rem; color: #333; line-height: 1.3; }
.category-title:hover { color: #007bff; text-decoration: none; }


/* ==========================================================================
   13. TÌM KIẾM TYPEAHEAD
   ========================================================================== */
/* Dropdown chung (desktop + modal mobile) */
.inputTypeaheadDesk .twitter-typeahead,
.inputTypeaheadMobi > .twitter-typeahead,
.inputTypeaheadMobiModal > .twitter-typeahead,
.requestSurvey > .twitter-typeahead { width: 100% !important; }

.inputTypeaheadDesk .tt-menu,
.inputTypeaheadMobi .tt-menu,
.inputTypeaheadMobiModal .tt-menu {
    width: 100%; border: 1px solid #ddd; background: #fff;
    max-height: 480px; overflow-y: scroll; overflow-x: hidden;
}
.inputTypeaheadMobiModal .tt-menu { top: 125% !important; margin-left: -18%; width: 135%; }

.inputTypeaheadDesk .tt-menu .list-result-search-construct,
.inputTypeaheadMobiModal .tt-menu .list-result-search-construct {
    padding: 12px 16px; width: 100%; border-bottom: 1px solid #eaeaea; background-color: #fff; box-sizing: border-box;
}
.inputTypeaheadDesk .tt-menu .result-wrapper,
.inputTypeaheadMobiModal .tt-menu .result-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; }
.inputTypeaheadDesk .tt-menu .image-result,
.inputTypeaheadMobiModal .tt-menu .image-result { flex-shrink: 0; width: 100px; height: 65px; }
.inputTypeaheadDesk .tt-menu .image-result img,
.inputTypeaheadMobiModal .tt-menu .image-result img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.inputTypeaheadDesk .tt-menu .content-result,
.inputTypeaheadMobiModal .tt-menu .content-result { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.inputTypeaheadDesk .tt-menu .text-title-1,
.inputTypeaheadMobiModal .tt-menu .text-title-1 {
    font-size: 16px; font-weight: 600; color: #1a1a1a; text-decoration: none; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inputTypeaheadDesk .tt-menu .meta-info,
.inputTypeaheadMobiModal .tt-menu .meta-info { display: flex; align-items: center; font-size: 13px; color: #6b7280; gap: 10px; }
.inputTypeaheadDesk .tt-menu .meta-info i,
.inputTypeaheadMobiModal .tt-menu .meta-info i { margin-right: 4px; }
.inputTypeaheadDesk .tt-menu .price-action,
.inputTypeaheadMobiModal .tt-menu .price-action { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.inputTypeaheadDesk .tt-menu .price-badge,
.inputTypeaheadMobiModal .tt-menu .price-badge { background-color: #218838; color: #fff; font-size: 14px; font-weight: bold; padding: 3px 10px; border-radius: 6px; }
.inputTypeaheadDesk .tt-menu .arrow-icon,
.inputTypeaheadMobiModal .tt-menu .arrow-icon { color: #6b7280; font-size: 16px; }
.inputTypeaheadDesk .tt-menu .list-result-search,
.inputTypeaheadMobiModal .tt-menu .list-result-search { padding: 10px 16px; border-bottom: 1px solid #eaeaea; transition: background-color .2s ease; }
.inputTypeaheadDesk .tt-menu .list-result-search a,
.inputTypeaheadMobiModal .tt-menu .list-result-search a { color: #333; text-decoration: none; font-size: 15px; display: block; width: 100%; }
.inputTypeaheadDesk .tt-menu .tt-suggestion:hover,
.inputTypeaheadDesk .tt-menu .tt-suggestion.tt-cursor,
.inputTypeaheadMobiModal .tt-menu .tt-suggestion:hover,
.inputTypeaheadMobiModal .tt-menu .tt-suggestion.tt-cursor { background-color: #f0f7f4; cursor: pointer; }
.inputTypeaheadDesk .tt-menu .header-title-search,
.inputTypeaheadMobiModal .tt-menu .header-title-search { padding: 10px 16px; background-color: #f8fafc; border-bottom: 1px solid #eaeaea; display: flex; align-items: center; }
.inputTypeaheadDesk .tt-menu .header-title-search strong,
.inputTypeaheadMobiModal .tt-menu .header-title-search strong {
    font-size: 13px !important; text-transform: uppercase; letter-spacing: .8px; color: #ef4444 !important;
    font-weight: 700; display: flex; align-items: center; margin: 0;
}
.inputTypeaheadDesk .tt-menu .header-title-search strong i,
.inputTypeaheadMobiModal .tt-menu .header-title-search strong i { margin-right: 8px !important; font-size: 14px; color: #ef4444; opacity: .9; }

/* Form yêu cầu khảo sát */
.requestSurvey .tt-menu { width: 100%; border: 1px solid #ddd; background: #fff; }
.requestSurvey .tt-menu .header-title-search { padding: .5rem 1rem; background-color: #f8f9fa; }
.requestSurvey .tt-menu .list-result-search { padding: .5rem 1rem; width: 100%; border-bottom: 1px dotted #ccc; }
.requestSurvey .tt-menu .list-result-search-construct { padding: .3rem .5rem; width: 100%; border-bottom: 1px dotted #ccc; }
.requestSurvey .tt-menu .list-result-search-construct img { width: 100%; height: 50px; object-fit: cover; }
.requestSurvey .tt-menu .list-result-search-construct .image-result { width: 10%; }
.requestSurvey .tt-menu .list-result-search-construct .title-result { width: 88%; line-height: 1.2 !important; margin-left: 2%; }
.requestSurvey .tt-menu .list-result-search-construct .btn-result { color: #fff; }


/* ==========================================================================
   14. HEADER / MENU / BANNER
   ========================================================================== */
#bars { position: absolute; z-index: 999; margin-top: 2rem; }
#bars ul { background-color: #f5f5f5; list-style: none; }
#bars ul li a i { font-size: 20px; margin-right: 5px; }
#bars ul li a strong { margin-left: 5px; }
.logo { max-width: 100%; object-fit: contain; }
.logo-mobi { max-width: 70%; object-fit: contain; }
.custom-hieght-banner { height: 479px; }


/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
/* ≤ 575px */
@media (max-width: 575.98px) {
    .container { width: 100%; padding-right: 5px; padding-left: 5px; margin-right: auto; margin-left: auto; }
    .content-detail table { width: 100% !important; height: auto !important; margin-left: 0 !important; }
    .w-30 { width: 40% !important; }
    .w-70 { width: 60% !important; }
    .row-custom-margin-sm { margin: 0 !important; }
    .col-custom-padding-sm { padding-left: 2px !important; padding-right: 2px !important; }
    .custom-hieght-banner { height: 100% !important; }
    .textarea-hight-cus { height: 100px !important; }

    .featured-assets-wrapper .fa-icon-box { width: 40px; height: 40px; }
    .featured-assets-wrapper .fa-icon-box svg { width: 18px; height: 18px; }
    .featured-assets-wrapper .fa-title { font-size: 18px; }
    .featured-assets-wrapper .fa-subtitle { font-size: 12px; }

    .tpo-wrapper .tpo-icon-box { width: 40px; height: 40px; }
    .tpo-wrapper .tpo-title { font-size: 18px; }
    .tpo-wrapper .tpo-subtitle { font-size: 12px; }
    .tpo-avatar { width: 110px; height: 110px; }
    .tpo-verified-badge { bottom: 5px; right: 5px; }

    .fprj-wrapper .fprj-icon-box { width: 40px; height: 40px; }
    .fprj-wrapper .fprj-title { font-size: 18px; }
    .fprj-wrapper .fprj-subtitle { font-size: 12px; }
    .fprj-avatar { width: 100px; height: 100px; }
}

/* ≤ 576px (real-estate-list) */
@media (max-width: 576px) {
    .real-estate-list .thumb img { width: 110px; height: 110px; }
    .real-estate-list .title { font-size: 15px; }
    .real-estate-list .meta-price { font-size: 13px; }
    .real-estate-list .location { font-size: 12px; }
}

/* 576px – 767px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .custon-padding-none { padding: 0; }
    .container { width: 100%; padding-right: 5px; padding-left: 5px; margin-right: auto; margin-left: auto; }
    .border-activities-home { border-right: 0; }
    .box-input-captcha { height: 38px !important; }
    .text-title-1 { -webkit-line-clamp: 2; }
    .content-detail table { width: 100% !important; height: auto !important; }
    .row-custom-margin-sm { margin-left: 0 !important; margin-right: 0 !important; }
    .col-custom-padding-sm { padding-left: 0 !important; padding-right: 2px; }
    .has-sub > ul { width: 200% !important; }
    .textarea-hight-cus { height: 100px !important; }
}

/* ≤ 767px (fnews) */
@media (max-width: 767.98px) {
    .fnews-item-img { width: 100px; height: 75px; }
    .fnews-item-title { font-size: 14px; }
}

/* 768px – 991px */
@media (min-width: 768px) and (max-width: 991.98px) {
    .w-5  { width: 10% !important; }
    .w-90 { width: 85% !important; }
    .content-detail table { width: 100% !important; height: auto !important; }
    .has-sub > ul { width: 200% !important; }
}

/* Tablet dọc */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .container { padding: 5px !important; }
}

/* 992px – 1199px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .w-5  { width: 8% !important; }
    .w-90 { width: 84% !important; }
}

/* 1200px – 1399px */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container { max-width: 1240px !important; }
}

/* ≥ 1400px */
@media (min-width: 1400px) {
    .container { max-width: 1472px !important; }
}