/* COMPANY/P2 — header, overlay menu (kiểu Starlink), footer */

/* ===== Header ===== */
.p1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--p1-header-h);
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, transform .28s ease;
    border-bottom: 1px solid transparent;
    will-change: transform;
}

/* Chỉ giữ header cố định khi cuộn lên; cuộn xuống thì ẩn (gắn/gỡ bằng JS theo hướng cuộn). */
.p1-header.p1-header--hidden {
    transform: translateY(-100%);
    pointer-events: none;
}
.p1-header.is-menu-open.p1-header--hidden,
.p1-header:has(.p1-nav-dd.is-open).p1-header--hidden {
    transform: none;
    pointer-events: auto;
}

/* Trang trong (không có .p1-hero homepage): nền xanh ngay từ CSS, không chờ JS — tránh chữ trắng trên nền trắng. */
.company-p2-body:not(:has(.p1-hero)) #p1Header {
    background: rgba(0, 84, 220, .88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--p1-border);
    box-shadow: 0 8px 30px rgba(0, 40, 120, .3);
}

/*
 * blur(16px)+saturate() trên header FIXED, full chiều ngang từng làm cuộn giật: trình duyệt phải tính lại lớp mờ này
 * ở MỌI frame trong suốt lúc cuộn (không chỉ lúc bật/tắt class), vì nội dung phía sau luôn đổi. Hạ xuống blur(10px),
 * bỏ saturate() (chồng thêm một phép lọc nữa lên blur càng nặng) — nền đã đủ đậm (rgba .88) nên vẫn mờ sương rõ, nhẹ tay hơn nhiều.
 */
.p1-header--scrolled,
.p1-header.is-menu-open {
    background: rgba(0, 84, 220, .88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--p1-border);
    box-shadow: 0 8px 30px rgba(0, 40, 120, .3);
}

.p1-header__inner {
    height: var(--p1-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Header tràn hết chiều ngang như Starlink (logo sát trái, hành động sát phải). */
.p1-header .p1-header__inner {
    max-width: none;
    padding: 0 var(--p1-gutter);
}

/* Menu ngang kiểu Starlink: chữ trắng đậm, mục đang hover/mở có nền xám mờ bo 4px. */
.p1-header__nav {
    display: none;
    align-items: center;
    align-self: stretch;
    position: relative;
    gap: 4px;
    flex: 1;
    margin-left: 28px;
}

.p1-header__nav > a,
.p1-nav-dd__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 0;
    border-radius: 30px;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.p1-header__nav > a:hover,
.p1-nav-dd__btn:hover,
.p1-nav-dd.is-open .p1-nav-dd__btn {
    background: rgba(255, 255, 255, .14);
}

.p1-nav-dd__btn i {
    font-size: 10px;
    transition: transform .2s ease;
}

.p1-nav-dd.is-open .p1-nav-dd__btn i {
    transform: rotate(180deg);
}

/* Panel 3 cột (Tìm hiểu / Hỗ trợ / Công ty), gắn mép trái với đầu menu, ngay dưới header. */
.p1-nav-dd__panel {
    position: absolute;
    left: 0;
    top: calc(100% - 6px);
    width: max-content;
    max-width: calc(100vw - 2 * var(--p1-gutter));
    display: flex; /* cột nào bị ẩn trong admin thì panel tự co lại */
    /* Nền dịu thay cho trắng tinh: gradient trắng → xanh rất nhạt; quầng sáng hr-pricing-bg1.png nằm ở ::before bên dưới. */
    /*  background:
        radial-gradient(ellipse at 18% 85%, rgba(176, 194, 238, .55) 0%, rgba(176, 194, 238, 0) 55%),
        radial-gradient(ellipse at 80% 12%, rgba(176, 222, 240, .6) 0%, rgba(176, 222, 240, 0) 55%),
        linear-gradient(135deg, #e6ebf7 0%, #dde8f6 50%, #d9edf4 100%);*/
    background: radial-gradient(ellipse at 18% 85%, #fff 0%, rgba(176, 194, 238, 0) 55%), radial-gradient(ellipse at 80% 12%, #fbfbf5 0%, rgba(176, 222, 240, 0) 55%), linear-gradient(345deg, #ebf1ff 0%, #dde8f6 50%, #d9edf4 100%); border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 14px;
    overflow: hidden; /* bo góc cắt cả quầng sáng nền */
    box-shadow: 0 24px 60px rgba(0, 40, 120, .28), 0 2px 8px rgba(0, 40, 120, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.p1-nav-dd.is-open .p1-nav-dd__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Quầng sáng xanh tím + xanh ngọc (hr-pricing-bg1.png) ở góc phải trên panel: mờ (opacity .4) để chữ vẫn rõ, tạo chiều sâu sang hơn nền trắng. */
.p1-nav-dd__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    opacity: .4;
    pointer-events: none;
}

.p1-nav-dd__col {
    position: relative; /* nằm trên lớp nền ::before */
    padding: 24px 20px 18px;
    min-height: 210px;
}

.p1-nav-dd__col + .p1-nav-dd__col {
    border-left: 1px solid rgba(11, 31, 68, .08);
}

/* Cầu nối vô hình từ nút xuống panel để rê chuột không bị đóng giữa chừng (panel bắt đầu ở mép trái menu, không ngay dưới nút). */
.p1-nav-dd.is-open::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 34px);
    height: 34px;
}

.p1-nav-dd__col a.p1-nav-dd__head,
.p1-nav-dd__head {
    display: block;
    margin: 0 0 4px;
    padding: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #5a6b88;
}

.p1-nav-dd__col a.p1-nav-dd__head:hover {
    color: var(--p1-brand-1);
}

.p1-nav-dd__col a {
    display: block;
    margin: 0 -10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0b1f44;
    transition: color .25s ease, background .25s ease, padding-left .3s var(--p1-ease-out);
}

/* Rê chuột: nền xanh nhạt trong suốt + chữ trượt nhẹ sang phải. */
.p1-nav-dd__col a:hover {
    color: var(--p1-brand-1);
    background: rgba(0, 104, 255, .07);
    padding-left: 16px;
}

/* Nút Zalo cột "Hỗ trợ": icon Zalo + vòng sóng lan nhẹ (dùng lại @keyframes p1Ripple ở company-p2-service.css) để nổi bật hơn link chữ thường. */
.p1-nav-dd__zalo {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.p1-nav-dd__zalo-icon {
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.p1-nav-dd__zalo-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 104, 255, .55);
    pointer-events: none;
    animation: p1Ripple 2.4s ease-out infinite;
}

.p1-header__logo {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 24px;
   /* letter-spacing: .1em;*/
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    color: #fff;
}

/* Chữ thương hiệu: bù khoảng trống cuối do letter-spacing để chữ nhìn cân với khoảng cách menu. */
.p1-header__brand {
    margin-right: -.28em;
    line-height: 1;
}

/*
 * Logo chữ 2 màu: phần chính trắng, phần nhấn (đuôi tên miền / từ sau) vàng kim cùng tông tiêu đề hero
 * — kèm vệt sáng ánh kim chạy qua, CÙNG kỹ thuật với .p1-topthemes__title-shine (băng "Giao diện nổi bật").
 */
.p1-header__brand-accent {
    background-image: var(--p1-gold-shine);
    background-size: 300% 100%;
    background-position: 120% center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
    .p1-header__brand-accent {
        animation: p1HeaderBrandShine 7s ease-in-out infinite;
    }
}

@keyframes p1HeaderBrandShine {
    0%, 58% { background-position: 120% center; }
    78%, 100% { background-position: -20% center; }
}

.p1-header__logo img {
    height: 30px;
    width: auto;
    display: block;
}

.p1-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Nhóm nút phân đoạn (giống "Cá nhân | Doanh nghiệp") + nút tròn (giống biểu tượng toàn cầu/tài khoản). */
.p1-header__seg {
    display: none;
    padding: 3px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
}

.p1-header__seg a {
    padding: 5px 14px;
    border-radius:30px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    transition: background .2s ease, color .2s ease;
}

.p1-header__seg a:hover {
    color: #fff;
}

.p1-header__seg a.is-active {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.p1-header__circle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    transition: background .2s ease;
}

.p1-header__circle:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/*
 * Nút "Liên hệ ngay" (điện thoại / máy tính bảng): kính mờ gần trong suốt, viền trắng mảnh, chữ trắng — cùng ngôn ngữ với nút burger bên cạnh
 * và các nút kính mờ ở hero; thay cho nút trắng đặc chói trên nền tối.
 */
.p1-header__cta {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    transition: background .35s var(--p1-ease-out), border-color .35s var(--p1-ease-out), transform .35s var(--p1-ease-out);
}

/* 2 lớp (.company-p2-body + .p1-header__cta) để thắng ".company-p2-body a { color: inherit }" mà không cần !important. */
.company-p2-body .p1-header__cta {
    color: #fff;
}

.p1-header__cta:hover,
.p1-header__cta:focus-visible {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .7);
    transform: translateY(-1px);
}

.p1-header__cta:active {
    transform: scale(.97);
}

.p1-header__burger {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .04);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.p1-header__burger span {
    display: block;
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.p1-header__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.p1-header__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.p1-header__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 992px) {
    .p1-header__nav { display: flex; }
    .p1-header__seg { display: inline-flex; }
    .p1-header__circle { display: inline-flex; }
    .p1-header__cta { display: none; }
    .p1-header__burger { display: none; }
}

/* ===== Overlay menu toàn màn hình ===== */
.p1-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #0044b8;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
    overflow-y: auto;
}

.p1-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.p1-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--p1-brand-grad);
    pointer-events: none;
}

.p1-overlay__inner {
    position: relative;
    max-width: var(--p1-container);
    margin: 0 auto;
    padding: calc(var(--p1-header-h) + 40px) 20px 60px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p1-overlay__close {
    position: absolute;
    top: 22px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.p1-overlay__nav {
    margin-bottom: 48px;
}

.p1-overlay__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p1-overlay__list > li {
    border-bottom: 1px solid var(--p1-border);
}

.p1-overlay__list > li > a {
    display: block;
    padding: 13px 4px;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -.01em;
    color: #fff;
    transition: color .2s ease, padding-left .2s ease;
}

.p1-overlay__list > li > a:hover {
    color: var(--p1-accent-2);
    padding-left: 14px;
}

.p1-overlay__sublist {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.p1-overlay__sublist li a {
    font-size: 14px;
    color: var(--p1-text-muted);
    font-weight: 500;
}

.p1-overlay__sublist li a:hover {
    color: #fff;
}

.p1-overlay__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
    color: var(--p1-text-muted);
    font-size: 14px;
}

.p1-overlay__contact p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.p1-overlay__contact i {
    color: var(--p1-accent-2);
}

.p1-overlay__social {
    display: flex;
    gap: 10px;
}

.p1-overlay__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.p1-overlay__social a:hover {
    background: var(--p1-accent-grad);
    border-color: transparent;
}

body.p1-menu-open {
    overflow: hidden;
}

/* ===== Footer ===== */
.p1-footer {
    background: linear-gradient(180deg, #0b3fb5 0, #082d80 100%);
    padding: 64px 0 0;
    color: var(--p1-text-muted);
    font-size: 14px;
}

.p1-footer__brand {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 16px;
}

.p1-footer p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    line-height: 1.6;
}

.p1-footer p i {
    color: var(--p1-accent-2);
    margin-top: 3px;
}

.p1-footer a:hover {
    color: #fff;
}

.p1-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.p1-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--p1-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.p1-footer__social a:hover {
    background: var(--p1-accent-grad);
    border-color: transparent;
}

.p1-footer__heading {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 18px;
}

.p1-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p1-footer__links li {
    margin-bottom: 10px;
}

/* Danh mục dịch vụ thứ 5 trở đi: ẩn mặc định, mở bằng nút "Xem thêm" — cùng cơ chế với #btnMoreDates
   (.bc-dates-more) ở TRAVEL/P2/ChiTietTour.aspx, JS toggle ở company-p2-nav.js. */
.p1-footer__links-extra {
    display: none;
}

.p1-footer__links.is-expanded .p1-footer__links-extra {
    display: list-item;
}

.p1-footer__links-more {
    margin-bottom: 6px;
}

.p1-footer__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: color .2s var(--p1-ease);
}

.p1-footer__more-btn:hover {
    color: #fff;
}

.p1-footer__more-btn i {
    font-size: 10px;
    transition: transform .2s var(--p1-ease);
}

.p1-footer__links.is-expanded .p1-footer__more-btn i {
    transform: rotate(180deg);
}

/* Điện thoại + Hotline cùng một hàng: cách nhau bằng vạch đứng; hàng hẹp thì Hotline xuống dòng. */
.p1-footer .p1-footer__phones {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
}

.p1-footer__phones-item::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    margin-right: 10px;
    vertical-align: -1px;
    background: rgba(255, 255, 255, .35);
}

.p1-footer__phones > a:first-of-type + .p1-footer__phones-item::before {
    display: inline-block;
}

/* Cột "Thông tin công ty": đoạn giới thiệu ngắn + bản đồ nhúng. */
.p1-footer__about {
    margin: 0 0 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
}

.p1-footer__about a {
    color: var(--p1-gold);
    font-weight: 600;
    white-space: nowrap;
}

/*
 * Bản đồ giãn theo chiều cao cột: các cột trong hàng vốn cao bằng nhau (bootstrap row), cột này là flex dọc nên bản đồ (flex:1)
 * lấp đầy phần còn lại → đáy bản đồ thẳng hàng với đáy cột công ty (cột dài nhất). Có chiều cao tối thiểu khi cột ngắn / xếp chồng trên điện thoại.
 */
.p1-footer__col-fill {
    display: flex;
    flex-direction: column;
}

.p1-footer__map {
    flex: 1 1 auto;
    min-height: 150px;
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .25);
}

.p1-footer__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 150px;
    aspect-ratio: auto !important; /* iframe của Google có style inline aspect-ratio:16/9 */
    border: 0;
}

/* Ô ảnh đối tác: ảnh phủ kín ô (object-fit: cover), không đệm — không còn viền trắng thừa quanh ảnh. */
.p1-footer__partner-logo {
    width: 96px;
    height: 60px;
    border-radius: 12px;
    background: #fff;
    display: inline-block;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .35);
    box-shadow: 0 6px 16px rgba(0, 20, 80, .22);
    transition: transform .4s var(--p1-ease), border-color .4s var(--p1-ease);
}

.p1-footer__partner-logo:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .7);
}

.p1-footer__partner-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .6s var(--p1-ease-out);
}

.p1-footer__partner-logo:hover img {
    transform: scale(1.08);
}

.p1-footer__bottom {
    margin-top: 32px;
    padding: 18px 0;
    border-top: 1px solid var(--p1-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    font-size: 13px;
}

.p1-footer__bottom p {
    margin: 0;
}

/* Link "Tất cả …" cuối mỗi cột menu */
.p1-nav-dd__col a.p1-nav-dd__all { font-weight: 600; opacity: .85; }

/* Thẻ tin cho thuê / dự án (TinDangs, DanhMucTinDang, DuAns, DanhMucDuAn, Chi tiết) */
.p2-listing-card { display: flex; flex-direction: column; gap: 8px; }
.p2-listing-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: #eef1f5; }
.p2-listing-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p2-listing-card__name { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.p2-listing-card__price { margin: 0; font-weight: 700; color: var(--p1-accent, #c8102e); }
.p2-listing-card__addr { margin: 0; font-size: .9rem; opacity: .75; }
.p2-detail { display: grid; gap: 28px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.p2-detail__gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.p2-detail__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.p2-detail__gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.p2-detail__box { border: 1px solid rgba(0,0,0,.1); border-radius: 14px; padding: 20px; }
.p2-detail__facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.p2-detail__facts li { display: flex; justify-content: space-between; gap: 12px; }
.p2-detail__price { font-size: 1.4rem; font-weight: 800; margin: 0 0 12px; }
@media (max-width: 860px) { .p2-detail { grid-template-columns: 1fr; } .p2-detail__gallery { grid-template-columns: repeat(2, 1fr); } }

/* 2 cột đầu (Cần bán / Cho thuê) rộng hơn, chữ không rớt dòng */
.p1-nav-dd__col:nth-child(-n+2) a { white-space: nowrap; }

/* Hotline trong menu: chữ "Hotline" thường, số điện thoại đậm + màu nhấn */
.p1-nav-dd__col a .p1-nav-dd__hl-label { font-weight: 400; }
.p1-nav-dd__col a .p1-nav-dd__hl-num { font-weight: 700; color: #e11d48; }
/* Firefox tính max-content của flex container theo nội dung, không theo flex-basis -> cột cuối bị panel (overflow:hidden) cắt.
   Dùng width cố định + flex-shrink:0 và để panel co theo tổng các cột. */
.p1-nav-dd__col { flex: 0 0 auto; min-width: 200px; box-sizing: border-box; }
.p1-nav-dd__col.p1-nav-dd__col--wide { min-width: 250px; }
.p1-nav-dd__col a { white-space: nowrap; }
.p1-nav-dd__panel { width: -moz-max-content; width: max-content; max-width: none; }

/* Trái tim "Tin đã lưu" ở header + nút lưu trên thẻ tin */
.p2-saved-link { position: relative; }
.p2-saved-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.p2-saved-count[hidden] { display: none; }
.p2-listing-wrap { position: relative; display: flex; }
.p2-listing-wrap > .p2-listing-card { flex: 1 1 auto; }
.p2-save-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; font: inherit; color: #5a6b88; background: rgba(255,255,255,.92); }
.p2-save-btn--float { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.p2-save-btn--wide { padding: 10px 18px; border: 1px solid rgba(0,0,0,.15); border-radius: 999px; font-weight: 600; background: #fff; }
.p2-save-btn .fa-heart { font-weight: 400; }
.p2-save-btn.is-saved { color: #e11d48; }
.p2-save-btn.is-saved .fa-heart { font-weight: 900; }
.p2-saved-empty { text-align: center; padding: 48px 0; opacity: .8; }

/* Chi tiết dự án: khối nội dung + ảnh, tiện ích, bản đồ */
.p2-block { margin: 28px 0; }
.p2-block__imgs { display: grid; gap: 10px; margin-top: 14px; }
.p2-block__imgs--1 { grid-template-columns: 1fr; }
.p2-block__imgs--2 { grid-template-columns: repeat(2, 1fr); }
.p2-block__imgs--3 { grid-template-columns: repeat(3, 1fr); }
.p2-block__imgs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; display: block; }
.p2-block__imgs--1 img { aspect-ratio: 16 / 9; }
.p2-amenities { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.p2-amenities li { padding: 6px 14px; border-radius: 999px; background: #eef1f5; font-size: .9rem; }
.p2-map { margin: 24px 0; border-radius: 12px; overflow: hidden; }
.p2-map iframe { width: 100%; height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .p2-block__imgs--3 { grid-template-columns: 1fr; } .p2-block__imgs--2 { grid-template-columns: 1fr; } }

/* ===== Chi tiết dự án (bố cục tham khảo duchunggroup.com): gallery lưới, tiêu đề, thẻ thông số, tab dính, sidebar dính ===== */
.pd { padding: calc(var(--p1-header-h, 72px) + 18px) 0 56px; background: #fff; }
.pd-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #6b7a90; margin-bottom: 14px; }
.pd-crumb a { color: #6b7a90; } .pd-crumb a:hover { color: var(--p1-brand-1, #0068ff); } .pd-crumb em { font-style: normal; color: #0b1f44; }
.pd-gallery { display: grid; gap: 8px; border-radius: 16px; overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 200px); }
.pd-gallery__item { position: relative; display: block; overflow: hidden; background: #eef1f5; }
.pd-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pd-gallery__item:hover img { transform: scale(1.04); }
.pd-gallery__item:first-child { grid-row: 1 / 3; }
.pd-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 420px; } .pd-gallery--1 .pd-gallery__item:first-child { grid-row: auto; }
.pd-gallery--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 420px; } .pd-gallery--2 .pd-gallery__item:first-child { grid-row: auto; }
.pd-gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 210px); }
.pd-gallery--4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 200px); } .pd-gallery--4 .pd-gallery__item:nth-child(4) { grid-column: 2 / 4; }
.pd-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 31, 68, .55); color: #fff; font-weight: 700; font-size: 18px; }
.pd-gallery__item--video { background: #0f172a; }
.pd-gallery__item--video img { opacity: .92; }
.pd-gallery__item--video { container-type: size; }
.pd-gallery__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover !important; border: 0; pointer-events: none; background: #0f172a; }
/* iframe YouTube/Vimeo luôn 16:9 → phóng to kiểu "cover" để lấp đầy khung, phần thừa bị cắt */
iframe.pd-gallery__media { inset: auto; top: 50%; left: 50%; width: max(100cqw, 100cqh * 16 / 9); height: max(100cqh, 100cqw * 9 / 16); transform: translate(-50%, -50%); }
.pd-gallery__item--video:hover .pd-gallery__media { transform: none; }
.pd-gallery__item--video:hover iframe.pd-gallery__media { transform: translate(-50%, -50%); }
.pd-gallery__item--video:has(.pd-gallery__media) .pd-gallery__play { display: none; }
.pd-gallery__play {
    position: absolute; inset: 0; z-index: 2;
    display: grid; place-items: center;
    background: rgba(11, 31, 68, .28);
    color: #fff; pointer-events: none;
}
.pd-gallery__play i {
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,.95); color: var(--p1-brand-1, #0068ff);
    font-size: 18px; padding-left: 3px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .28);
}
.pd-gallery__item--video:hover .pd-gallery__play i { transform: scale(1.06); }
.pd-gallery__item--video:hover img { transform: scale(1.04); }
.pd-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 22px 0 16px; }
.pd-title h1 { margin: 6px 0 8px; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; color: #0b1f44; }
.pd-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #e8f5ec; color: #17803d; font-size: 12px; font-weight: 700; }
.pd-addr { display: flex; align-items: center; gap: 6px; margin: 0; color: #4a5b78; font-size: 14px; flex-wrap: wrap; }
.pd-addr a { color: var(--p1-brand-1, #0068ff); font-weight: 600; }
.pd-share {
    flex: none;
    height: 35px !important;
    padding: 0 18px;
    border: 1px solid #d6deea;
    border-radius: 999px !important;
    background: #fff;
    color: #4d79cb;
    font-weight: 600;
    cursor: pointer !important;
}
.pd-share:hover { border-color: var(--p1-brand-1, #0068ff); color: var(--p1-brand-1, #0068ff); }
.pd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 16px; border-radius: 14px; background: #f5f8fd; }
.pd-facts div { display: flex; flex-direction: column; gap: 4px; padding: 4px 10px; border-left: 3px solid var(--p1-brand-1, #0068ff); }
.pd-facts span { font-size: 12px; color: #6b7a90; text-transform: uppercase; letter-spacing: .02em; }
.pd-facts strong { font-size: 15px; color: #0b1f44; line-height: 1.35; }
.pd-tabs {
    position: sticky;
    top: var(--p1-sticky-top, var(--p1-header-h, 72px));
    z-index: 20;
    display: flex;
    gap: 6px;
    margin: 22px 0 0;
    padding: 10px 0;
    background: #fff;
    border-bottom: 1px solid #e6ecf4;
    overflow-x: auto;
    transition: top .28s ease;
}
.pd-tabs a { flex: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #4a5b78; }
.pd-tabs a:hover { background: #f0f4fb; } .pd-tabs a.is-on { background: var(--p1-brand-1, #0068ff); color: #fff; }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 8px; }
.pd-sec { padding: 26px 0 8px; scroll-margin-top: calc(var(--p1-sticky-top, var(--p1-header-h, 72px)) + 70px); }
.pd-sec > h2 { margin: 0 0 14px; font-size: 22px; color: #0b1f44; }
.pd-sec .p2-block { margin: 22px 0; }
.pd-sec .p2-block h3 { font-size: 18px; margin: 0 0 8px; color: #0b1f44; }
.pd-sec .p2-block__imgs img { border-radius: 14px; }
.pd-side {
    position: sticky;
    top: calc(var(--p1-sticky-top, var(--p1-header-h, 72px)) + 88px);
    transition: top .28s ease;
}
.pd-card { padding: 20px; border: 1px solid #e1e8f2; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(11, 31, 68, .08); display: flex; flex-direction: column; gap: 10px; }
.pd-card__label { margin: 0; font-size: 13px; color: #6b7a90; }
.pd-card__price { margin: 0 0 4px; font-size: 24px; font-weight: 800; color: #e11d48; line-height: 1.25; }
.pd-btn { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 999px; border: 1px solid var(--p1-brand-1, #0068ff); color: var(--p1-brand-1, #0068ff); font-weight: 700; background: #fff; }
.pd-btn--primary {
    background: linear-gradient(135deg, #f6d24e, #f0a81c);
    border-color: transparent;
    color: #fff;
}
.pd-btn:hover { filter: brightness(.95); }
.pd-card__note { margin: 0; font-size: 12px; color: #6b7a90; text-align: center; }
.pd-credit { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: #f5f8fd; font-size: 12px; color: #6b7a90; }
.pd-credit ul { margin: 6px 0 0; padding-left: 18px; }
.pd-related { margin-top: 24px; border-top: 1px solid #e6ecf4; }
.pd-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pd-rcard { display: flex; flex-direction: column; gap: 6px; color: #0b1f44; }
.pd-rcard__img { display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #eef1f5; }
.pd-rcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pd-rcard:hover .pd-rcard__img img { transform: scale(1.05); }
.pd-rcard em { font-style: normal; font-size: 13px; color: #e11d48; font-weight: 700; }
.pd-lb { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(5, 12, 28, .92); }
.pd-lb[hidden] { display: none; }
.pd-lb img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.pd-lb button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; line-height: 1; }
.pd-lb__x { top: 18px; right: 18px; } .pd-lb__prev { left: 18px; } .pd-lb__next { right: 18px; }
.pd-lb__prev, .pd-lb__next { top: 50%; transform: translateY(-50%); }
@media (max-width: 960px) {
    .pd-layout { grid-template-columns: 1fr; } .pd-side { position: static; order: -1; }
    .pd-gallery, .pd-gallery--3, .pd-gallery--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px 120px; }
    .pd-gallery__item:first-child { grid-column: 1 / 3; grid-row: 1; } .pd-gallery--4 .pd-gallery__item:nth-child(4) { grid-column: auto; }
    .pd-gallery--1, .pd-gallery--2 { grid-template-columns: 1fr; grid-template-rows: 260px; }
}

/* Header P2 trong suốt chữ trắng: trang chi tiết dự án không có hero xanh nên cần dải nền xanh phía sau header. */
.pd { position: relative; }
.pd::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--p1-header-h, 72px); background: linear-gradient(135deg, #0a46c8 0%, #0068ff 100%); z-index: 0; }
.pd > .p1-container { position: relative; z-index: 1; }

/* Form đặt lịch xem nhà (cột phải chi tiết dự án) */
.pd-book { background: linear-gradient(180deg, #f3f8ff 0%, #fff 60%); }
.pd-book__title {
    margin: 0;
    font-size: 18px;
    color: #1b5bd2;
}
.pd-book__sub { margin: 0 0 4px; font-size: 13px; color: #6b7a90; line-height: 1.4; }
.pd-in { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d6deea; border-radius: 10px; font: inherit; font-size: 14px; color: #0b1f44; background: #fff; }
.pd-in:focus { outline: 0; border-color: var(--p1-brand-1, #0068ff); box-shadow: 0 0 0 3px rgba(0, 104, 255, .12); }
[data-pd-book] { display: flex; flex-direction: column; gap: 10px; }
.pd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pd-book__btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.pd-book__btn:disabled { opacity: .6; cursor: wait; }
.pd-book__msg { margin: 0; font-size: 13px; text-align: center; min-height: 18px; }
.pd-book__msg.is-ok { color: #17803d; } .pd-book__msg.is-err { color: #d92d20; }

/* Form đặt lịch (kiểu form hẹn xem nhà): nhãn, ô +84, nút chọn Cần bán/Cho thuê, ngày flatpickr, giờ select2, captcha */
.pd-lbl { margin: 4px 0 -4px; font-size: 13px; font-weight: 600; color: #475569; }
.pd-lbl b { color: #e11d48; }
.pd-book .pd-in, .pd-book .pd-phone { height: 44px; border-radius: 12px; }
.pd-book textarea.pd-in { height: auto; min-height: 64px; resize: vertical; }
.pd-phone { display: flex; border: 1px solid #d6deea; background: #fff; overflow: hidden; }
.pd-phone:focus-within { border-color: var(--p1-brand-1, #0068ff); box-shadow: 0 0 0 3px rgba(0, 104, 255, .12); }
.pd-phone span { display: grid; place-items: center; padding: 0 14px; background: #f1f4f8; color: #475569; font-weight: 600; font-size: 14px; border-right: 1px solid #d6deea; }
.pd-phone input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; font: inherit; font-size: 14px; color: #0b1f44; background: transparent; }
.pd-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pd-seg button { height: 44px; border: 1px solid #d6deea; border-radius: 12px; background: #fff; font: inherit; font-weight: 700; font-size: 14px; color: #0b1f44; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pd-seg button:hover { border-color: var(--p1-brand-1, #0068ff); }
.pd-seg button.is-on { background: linear-gradient(135deg, var(--p1-brand-1, #0068ff), #7c3aed); border-color: transparent; color: #fff; }
.pd-book .pd-row { grid-template-columns: 1.15fr 1fr; }
.pd-book .pd-date { cursor: pointer; }
/* Native select giờ — khớp ô ngày ngay từ first paint (trước khi Select2 init) */
.pd-book select.pd-time,
.pf-book select.pd-time {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 32px 0 12px;
    border: 1px solid #d6deea;
    border-radius: 12px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.2 1.2L6 6l4.8-4.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    color: #0b1f44;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 42px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}
.pf-book select.pd-time {
    height: 38px;
    border-radius: 10px;
    padding: 0 28px 0 12px;
    font-size: 13.5px;
    line-height: 36px;
}
.pd-book select.pd-time:focus,
.pf-book select.pd-time:focus {
    outline: 0;
    border-color: var(--p1-brand-1, #0068ff);
    box-shadow: 0 0 0 3px rgba(0, 104, 255, .12);
}
.pd-book select.pd-time:disabled,
.pf-book select.pd-time:disabled {
    color: #94a3b8;
    background-color: #f8fafc;
    cursor: not-allowed;
}
.pd-book .select2-container { width: 100% !important; }
.pd-book .select2-container--default .select2-selection--single { height: 44px; border: 1px solid #d6deea; border-radius: 12px; background: #fff; display: flex; align-items: center; }
.pd-book .select2-container--default.select2-container--open .select2-selection--single,
.pd-book .select2-container--default .select2-selection--single:hover { border-color: var(--p1-brand-1, #0068ff); }
.pd-book .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 30px 0 12px; line-height: 42px; font-size: 14px; font-weight: 600; color: #0b1f44; }
.pd-book .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 6px; }
.pd-cap { display: grid; grid-template-columns: 110px 1fr 40px; gap: 8px; align-items: center; }
.pd-cap img { width: 110px; height: 44px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 1px solid #d6deea; }
.pd-cap__rf { height: 44px; border: 1px solid #d6deea; border-radius: 12px; background: #fff; font-size: 18px; cursor: pointer; color: #475569; }
.pd-cap__rf:hover { color: var(--p1-brand-1, #0068ff); border-color: var(--p1-brand-1, #0068ff); }
.pd-book__btn { height: 48px; font-size: 16px; }
.pd-book__ok { margin: 0; text-align: center; font-size: 13px; color: #17803d; font-weight: 600; }
.flatpickr-calendar { z-index: 10000 !important; border-radius: 14px; box-shadow: 0 14px 34px rgba(15, 23, 42, .22); }

/* ===== Chi tiết dự án v2: bỏ bo viên thuốc; tab gạch chân; bảng thông tin; tin đăng thuộc dự án ===== */
.pd-badge { border-radius: 30px; padding: 4px 10px; }
.pd-share { border-radius: 8px; height: 35px; }
.pd-tabs { gap: 0; padding: 0; border-bottom: 1px solid #e6e9ee; background: #fff; }
.pd-tabs a { position: relative; padding: 16px 22px; border-radius: 0; font-size: 16px; font-weight: 500; color: #4b5563; background: transparent; }
.pd-tabs a:hover { background: transparent; color: var(--p1-brand-1, #0068ff); }
.pd-tabs a.is-on { background: transparent; color: var(--p1-brand-1, #0068ff); font-weight: 600; }
.pd-tabs a.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px  !important; background: var(--p1-brand-1, #0068ff); border-radius: 3px 3px 0 0; }
.pd-sec > h2 {  font-weight: 600; color: #1a1a1a; margin: 0 0 20px; letter-spacing: -.01em; }
.pd-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e6e9ee; border-radius: 12px; overflow: hidden; margin: 0 0 24px; font-size: 16px; }
.pd-table th, .pd-table td { padding: 18px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid #e6e9ee; line-height: 1.5; }
.pd-table tr:last-child th, .pd-table tr:last-child td { border-bottom: 0; }
.pd-table th { width: 28%; background: #f5f6f8; color: #4b5563; font-weight: 400; }
.pd-table td { color: #111827; font-weight: 500; }
.pd-desc, .pd-sec .p2-block .p1-svc-content { font-size: 16px; line-height: 1.75; color: #1f2937; }
.pd-sec .p2-block h3 { font-size: 20px; font-weight: 700; margin: 0 0 10px; color: #111827; }
.pd-ltabs { display: flex; gap: 0; border-bottom: 1px solid #e6e9ee; margin-bottom: 18px; }
.pd-ltabs button { position: relative; padding: 12px 20px; border: 0; background: transparent; font: inherit; font-size: 16px; color: #4b5563; cursor: pointer; }
    .pd-ltabs button span {
        display: inline-block;
        min-width: 22px;
        padding: 1px 6px;
        margin-left: 6px;
        border-radius: 15px;
        background: #fff;
        font-size: 12px;
        font-weight: 700;
        border: solid 1px #cccccc73;
        text-align: center;
    }
.pd-ltabs button.is-on { color: var(--p1-brand-1, #0068ff); font-weight: 600; }
.pd-ltabs button.is-on span { background: var(--p1-brand-1, #0068ff); color: #fff; }
.pd-ltabs button.is-on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; background: var(--p1-brand-1, #0068ff); border-radius: 3px 3px 0 0; }
.pd-lpanel { display: flex; flex-direction: column; gap: 16px; }
.pd-lpanel[hidden] { display: none; }
.pd-empty { margin: 0; padding: 28px; border: 1px dashed #d6deea; border-radius: 12px; text-align: center; color: #6b7280; background: #fafbfc; }
.pd-empty a { color: var(--p1-brand-1, #0068ff); font-weight: 600; }
.p2-amenities li { border-radius: 8px; background: #f5f6f8; padding: 8px 14px; }
.pd-btn { border-radius: 10px; }
.pd-seg button { border-radius: 10px; }
.pd-card, .pd-credit { border-radius: 12px; }
.pd-gallery { border-radius: 12px; }

/* ===== v3: tab 2 dòng (tiêu đề + mô tả), Tin đăng thuộc dự án, Vị trí ===== */
.pd-tabs { overflow-x: auto; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tabs a { display: flex; flex-direction: column; gap: 2px; padding: 14px 26px 16px; }
.pd-tabs a b { font-size: 18px; font-weight: 600; color: #8a8f98; white-space: nowrap; transition: color .2s; }
.pd-tabs a small { font-size: 11px; color: #9aa0a9; white-space: nowrap; transition: color .2s; }
.pd-tabs a:hover b, .pd-tabs a.is-on b { color: #111827; }
.pd-tabs a.is-on small { color: #111827; }
.pd-tabs a.is-on::after { left: 0; right: 0; height: 3px; background: #e0402e; border-radius: 0; }
.pd-listhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-listhead h2 { margin: 0 0 4px !important; }
.pd-listhead p { margin: 0; font-size: 14px; color: #6b7280; }
.pd-listsec .pd-ltabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0; border: 0; background: #eef1f5; border-radius: 30px; }
.pd-listsec .pd-ltabs button { padding: 9px 18px; border-radius: 30px; font-size: 15px; font-weight: 600; color: #4b5563; }
.pd-listsec .pd-ltabs button.is-on { background: #fff; color: var(--p1-brand-1, #0068ff); box-shadow: 0 2px 8px rgba(15, 23, 42, .1); }
.pd-listsec .pd-ltabs button.is-on::after { display: none; }
    .pd-listsec .pd-ltabs button.is-on span {
        background: orange
    }
.pd-listsec .pd-lpanel { gap: 20px; }
.pd-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 24px; border: 1px dashed #cfd8e6; border-radius: 14px; background: linear-gradient(180deg, #fafcff, #f4f7fc); text-align: center; color: #6b7280; }
.pd-empty i { font-size: 34px; color: #9fb0c8; }
.pd-empty strong { font-size: 17px; color: #111827; }
.pd-empty span { max-width: 420px; font-size: 14px; line-height: 1.5; }
.pd-empty__btn { margin-top: 6px; padding: 10px 22px; border-radius: 10px; background: var(--p1-brand-1, #0068ff); color: #fff !important; font-weight: 600; }
.pd-more { align-self: center; padding: 12px 28px; border: 1px solid var(--p1-brand-1, #0068ff); border-radius: 10px; color: var(--p1-brand-1, #0068ff); font-weight: 600; background: #fff; }
.pd-more:hover { background: var(--p1-brand-1, #0068ff); color: #fff; }
.pd-loc { border: 1px solid #e6e9ee; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 6px 22px rgba(15, 23, 42, .06); }
.pd-loc__bar { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #e6e9ee; background: #f9fafc; flex-wrap: wrap; }
.pd-loc__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 30px; background: #fde8e5; color: #e0402e; flex: none; }
.pd-loc__txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.pd-loc__txt small { font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; }
.pd-loc__txt strong { font-size: 16px; color: #111827; line-height: 1.4; }
.pd-loc__btn { padding: 10px 18px; border-radius: 10px; background: #fff; border: 1px solid #d6deea; color: #111827; font-weight: 600; font-size: 14px; white-space: nowrap; }
.pd-loc__btn:hover { border-color: var(--p1-brand-1, #0068ff); color: var(--p1-brand-1, #0068ff); }
.pd-loc .p2-map { margin: 0; border-radius: 0; }
.pd-loc .p2-map iframe { width: 100%; height: 280px; }
@media (max-width: 640px) { .pd-tabs a { padding: 12px 16px 14px; } .pd-tabs a b { font-size: 16px; } .pd-loc .p2-map iframe { width: 100%; height: 280px; } }

/* Bản đồ: nền xám khi đang tải (không để vùng trắng), chặn chuột cho tới khi bấm — wheel cuộn trang, không hiện gợi ý ctrl+cuộn của Google */
.p2-map { position: relative; background: #e8edf3; line-height: 0; }
.p2-map iframe { display: block; width: 100%; height: 440px; border: 0; pointer-events: none; }
.p2-map.is-live iframe { pointer-events: auto; }
.p2-map__shield { position: absolute; inset: 0; cursor: pointer; z-index: 1; }
.p2-map.is-live .p2-map__shield { display: none; }
.pd-loc { background: #e8edf3; }
.pd-loc .p2-map, .pd-loc .p2-map iframe { margin: 0; }
.pd-sec .pd-loc { margin-bottom: 0; }

/* ===== v4: Tiện ích dạng thẻ + icon, khung tư vấn khi chưa có tin, Dự án liên quan ===== */
.pd-sub { margin: -10px 0 18px; color: #6b7280; font-size: 15px; }
.pd-amen { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pd-amen__it { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #e8ecf2; border-radius: 14px; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pd-amen__it:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15, 23, 42, .1); border-color: transparent; }
.pd-amen__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 30px; font-size: 20px; color: var(--c, #0068ff); background: var(--bg, #e8f1ff); transition: transform .25s ease; }
.pd-amen__it:hover .pd-amen__ico { transform: scale(1.1) rotate(-4deg); }
.pd-amen__txt { font-size: 15px; font-weight: 600; color: #1f2937; line-height: 1.3; }
.pd-amen--0 { --c: #0068ff; --bg: #e8f1ff; } .pd-amen--1 { --c: #e0402e; --bg: #fde8e5; } .pd-amen--2 { --c: #0f9d58; --bg: #e3f6ec; }
.pd-amen--3 { --c: #7c3aed; --bg: #f0e9fe; } .pd-amen--4 { --c: #d97706; --bg: #fdf1dc; } .pd-amen--5 { --c: #0891b2; --bg: #def4f9; }

.pd-consult { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; padding: 30px; border-radius: 18px; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(circle at 92% 8%, rgba(255,255,255,.18) 0, rgba(255,255,255,0) 40%), linear-gradient(135deg, #0a46c8 0%, #0068ff 55%, #7c3aed 120%); box-shadow: 0 18px 40px rgba(0, 80, 220, .25); }
.pd-consult__tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 8px; background: rgba(255,255,255,.18); font-size: 13px; font-weight: 600; }
.pd-consult h3 { margin: 12px 0 8px; font-size: 24px; line-height: 1.3; color: #fff; }
.pd-consult p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.9); }
.pd-consult__ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.pd-consult__ul i { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 11px; }
.pd-consult__act { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.pd-consult__call { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #fff; color: #0b1f44; transition: transform .25s ease, box-shadow .25s ease; }
.pd-consult__call:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.pd-consult__ring { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #e0402e; color: #fff; font-size: 18px; flex: none; }
.pd-consult__ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(224,64,46,.55); animation: pdRing 2s ease-out infinite; }
@keyframes pdRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.pd-consult__call small { display: block; font-size: 12px; color: #6b7280; }
.pd-consult__call strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: .01em; color: #e0402e; }
.pd-consult__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.pd-consult__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.pd-consult__btn:hover { background: #fff; color: #0a46c8; }
.pd-consult__mail { text-align: center; font-size: 13.5px; color: rgba(255,255,255,.9); }
.pd-consult__mail:hover { color: #fff; text-decoration: underline; }
@media (max-width: 760px) { .pd-consult { grid-template-columns: 1fr; padding: 22px; } }

.pd-more--sm { align-self: flex-end; padding: 9px 18px; font-size: 14px; }
.pd-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pd-rcard { display: flex; flex-direction: column; border: 1px solid #e8ecf2; border-radius: 16px; overflow: hidden; background: #fff; color: #0b1f44; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
.pd-rcard:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 23, 42, .14); border-color: transparent; }
.pd-rcard__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f5; border-radius: 0; }
.pd-rcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.pd-rcard:hover .pd-rcard__img img { transform: scale(1.08); }
.pd-rcard__img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(7, 18, 40, .45)); pointer-events: none; }
.pd-rcard__tag { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(17, 24, 39, .72); backdrop-filter: blur(4px); color: #fff; font-size: 12px; font-weight: 600; }
.pd-rcard__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.pd-rcard__name { font-size: 17px; font-weight: 700; line-height: 1.35; color: #111827; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-rcard__addr { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: #6b7280; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-rcard__addr i { color: #e0402e; margin-right: 6px; }
.pd-rcard__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #eef1f5; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pd-rcard__foot em { font-style: normal; font-weight: 800; color: #e0402e; font-size: 15px; }
.pd-rcard__go { font-size: 13px; font-weight: 600; color: var(--p1-brand-1, #0068ff); white-space: nowrap; transition: transform .25s ease; }
.pd-rcard:hover .pd-rcard__go { transform: translateX(4px); }
@media (max-width: 960px) { .pd-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pd-related__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pd-rcard, .pd-rcard *, .pd-amen__it, .pd-amen__ico, .pd-consult__ring::after { transition: none !important; animation: none !important; } }

.pd-listhead h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -.01em;
}
.pd-lpanel .pd-consult { margin-bottom: 8px; }
.pd-consult__call strong { font-size: 20px; }
.pd-rcard__scale { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-rcard__scale i { color: #0068ff; margin-right: 6px; }

/* ===== v5: Nhu cầu (chọn bắt buộc, viền 1.5px), khung liên hệ khi chưa có tin (nền trong suốt) ===== */
.pd-seg button, .pd-seg button:hover { background: transparent; color: #0b1f44; border: 1px solid #d6deea; box-shadow: none; }
.pd-seg button.is-on { background: transparent; color: #0b1f44; border: 1.5px solid var(--p1-brand-1, #0068ff); }
.pd-seg.is-err button { border-color: #e11d48; }
.pd-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 36px; align-items: center; padding: 28px; border: 1px solid #e3e8ef; border-radius: 16px; background: transparent; }
.pd-contact__intro { display: flex; gap: 16px; align-items: flex-start; }
.pd-contact__intro h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.35; color: #111827; }
.pd-contact__intro p { margin: 0; font-size: 15px; line-height: 1.6; color: #6b7280; }
.pd-contact__list { display: grid; gap: 14px; }
.pd-contact__it { display: flex; align-items: center; gap: 14px; color: #111827; transition: transform .25s ease; }
a.pd-contact__it:hover { transform: translateX(4px); }
.pd-contact__txt { display: flex; flex-direction: column; min-width: 0; }
.pd-contact__txt small { font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; }
.pd-contact__txt strong { font-size: 17px; font-weight: 700; color: #111827; line-height: 1.35; word-break: break-word; }
.pd-contact__it--call .pd-contact__txt strong { font-size: 22px; color: #e0402e; letter-spacing: .01em; }
.pd-contact__ico { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 18px; background: transparent; border: 1.5px solid currentColor; color: var(--p1-brand-1, #0068ff); }
.pd-fx--ring { color: #e0402e; } .pd-fx--zalo { color: #0068ff; } .pd-fx--mail { color: #7c3aed; } .pd-fx--pin { color: #0f9d58; }
.pd-fx--ring::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid currentColor; animation: pdRing 2s ease-out infinite; }
.pd-fx--wiggle i { animation: pdWiggle 2.4s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes pdWiggle { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(-16deg); } 72% { transform: rotate(14deg); } 79% { transform: rotate(-10deg); } 86% { transform: rotate(8deg); } }
.pd-contact__intro .pd-contact__ico { width: 54px; height: 54px; font-size: 22px; }
.pd-contact__book { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 10px; border: 1.5px solid var(--p1-brand-1, #0068ff); color: var(--p1-brand-1, #0068ff); font-weight: 700; background: transparent; transition: background .2s, color .2s; }
.pd-contact__book:hover { background: var(--p1-brand-1, #0068ff); color: #fff; }
@media (max-width: 760px) { .pd-contact { grid-template-columns: 1fr; padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .pd-fx--ring::after, .pd-fx--wiggle i { animation: none !important; } }

/* ===== v6: khung liên hệ khi chưa có tin — nền tint mờ (opacity thấp), 2 ô liên hệ, icon điện thoại lan sóng như thẻ tư vấn ===== */
.pd-cc { padding: 26px 28px; border-radius: 16px; border: 1px solid rgba(0, 104, 255, .16);
    background: linear-gradient(135deg, rgba(0, 104, 255, .08) 0%, rgba(124, 58, 237, .05) 100%); }
.pd-cc__head h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #111827; line-height: 1.35; }
.pd-cc__head p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: #4b5563; }
.pd-cc__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pd-cc__tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #111827;
    transition: background .35s ease, transform .35s ease, box-shadow .35s ease; }
.pd-cc__tile:hover { background: rgba(255, 255, 255, .9); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .1); }
.pd-cc__icon { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 17px; }
.pd-cc__icon--call { background: #e0402e; } .pd-cc__icon--zalo { background: #0068ff; }
.pd-cc__icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; opacity: .8; animation: p1Ripple 2.4s ease-out infinite; pointer-events: none; }
.pd-cc__icon--call::after { border-color: rgba(224, 64, 46, .75); } .pd-cc__icon--zalo::after { border-color: rgba(0, 104, 255, .75); }
.pd-cc__icon--call i { animation: pdWiggle 2.4s ease-in-out infinite; transform-origin: 50% 60%; }
.pd-cc__txt { display: flex; flex-direction: column; min-width: 0; }
.pd-cc__txt small { font-size: 12px; color: #6b7280; }
.pd-cc__txt strong { font-size: 20px; font-weight: 800; letter-spacing: .01em; line-height: 1.25; color: #111827; }
.pd-cc__tile:first-child .pd-cc__txt strong { color: #e0402e; }
@media (max-width: 560px) { .pd-cc { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .pd-cc__icon::after, .pd-cc__icon--call i { animation: none !important; } }

/* ===== v7: Dự án liên quan dạng slideshow (snap + 2 nút), tên dự án đè lên ảnh ===== */
.pd-slider { position: relative; margin: 0 -4px; }
.pd-slider__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 6px 4px 18px; overscroll-behavior-x: contain; cursor: grab; }
.pd-slider__viewport::-webkit-scrollbar { display: none; }
.pd-slider__viewport.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.pd-slider__track { display: flex; gap: 20px; }
.pd-slider .pd-rcard { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; min-width: 0; }
.pd-rcard__img { aspect-ratio: 4 / 3; }
.pd-rcard__img::after { height: 62%; background: linear-gradient(180deg, transparent, rgba(7, 18, 40, .78)); }
.pd-rcard__name { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; margin: 0; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.3; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-rcard__body { padding: 14px 18px 16px; }
.pd-slider__btn { position: absolute; z-index: 5; top: calc(50% - 22px); width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #111827; font-size: 15px; cursor: pointer; box-shadow: 0 6px 20px rgba(15, 23, 42, .22); transition: transform .25s ease, opacity .25s ease, background .25s ease, color .25s ease; }
.pd-slider__btn:hover:not(:disabled) { background: var(--p1-brand-1, #0068ff); color: #fff; transform: scale(1.08); }
.pd-slider__btn:disabled { opacity: 0; pointer-events: none; }
.pd-slider__btn--prev { left: -14px; } .pd-slider__btn--next { right: -14px; }
.pd-slider.is-static .pd-slider__btn { display: none; }
@media (max-width: 960px) { .pd-slider .pd-rcard { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .pd-slider .pd-rcard { flex-basis: 86%; } .pd-slider__btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .pd-slider__viewport { scroll-behavior: auto; } }

.pd-slider__viewport { scroll-padding: 0 4px; }

.pd-rcard__scale { display: block; -webkit-line-clamp: unset; font-size: 14px; color: #4b5563; }
.pd-rcard__scale b { color: #111827; font-weight: 700; }
.pd-rcard__addr { -webkit-line-clamp: 1; line-clamp: 1; }

/* Quy mô: đúng 1 hàng, quá dài thì cắt ... (rê chuột xem đủ qua title) */
.pd-rcard__scale { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; -webkit-box-orient: initial; }
.pd-rcard__scale b { font-weight: 600; }

/* Dự án liên quan: tỉ lệ ảnh dọc 4:5 giống thẻ Dự án nổi bật ở trang chủ */
.pd-rcard__img { aspect-ratio: 4 / 5; }
.pd-rcard__img img { height: 100%; object-fit: cover; }

/* Dự án liên quan: 4 thẻ/hàng trên máy tính để ảnh 4:5 không quá lớn (≤960px: 2 thẻ; ≤560px: 1 thẻ + lộ thẻ kế). Đổi số 4 / 60px (= 3 khoảng cách 20px) để chỉnh số thẻ. */
.pd-slider .pd-rcard { flex: 0 0 calc((100% - 60px) / 4); }
.pd-rcard__name { font-size: 16px; }
.pd-rcard__body { padding: 12px 14px 14px; }
@media (max-width: 960px) { .pd-slider .pd-rcard { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .pd-slider .pd-rcard { flex-basis: 78%; } }
.pd-rcard__foot { flex-wrap: nowrap; }
.pd-rcard__foot em { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pd-rcard__go { font-size: 0; flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eef4ff; }
.pd-rcard__go i { font-size: 13px; }
.pd-rcard:hover .pd-rcard__go { background: var(--p1-brand-1, #0068ff); color: #fff; }

/* Nút mũi tên "Xem chi tiết": luôn là vòng tròn đúng 32x32, không bị co/giãn thành bầu dục */
.pd-slider .pd-rcard .pd-rcard__go { box-sizing: border-box; flex: 0 0 32px; width: 32px; min-width: 32px; max-width: 32px; height: 32px; min-height: 32px; padding: 0; aspect-ratio: 1 / 1; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0; line-height: 1; overflow: hidden; background: #eef4ff; color: var(--p1-brand-1, #0068ff); transform: none; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.pd-slider .pd-rcard .pd-rcard__go i { font-size: 13px; line-height: 1; margin: 0; transition: transform .25s ease; }
.pd-slider .pd-rcard:hover .pd-rcard__go { background: var(--p1-brand-1, #0068ff); color: #fff; transform: none; box-shadow: 0 6px 14px rgba(0, 104, 255, .35); }
.pd-slider .pd-rcard:hover .pd-rcard__go i { transform: translateX(2px); }

/* ===== Trang danh mục dự án (/duans, /duan/{alias}) — bố cục kiểu trang dự án batdongsan: hero + thanh lọc + lưới thẻ + phân trang ===== */
.pj-hero { position: relative; padding: calc(var(--p1-header-h, 72px) + 34px) 0 70px; color: #fff; background: linear-gradient(135deg, #0a46c8 0%, #0068ff 60%, #3b82f6 100%); }
.pj-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .8); margin-bottom: 12px; }
.pj-crumb a { color: rgba(255, 255, 255, .85); } .pj-crumb a:hover { color: #fff; } .pj-crumb em { font-style: normal; color: #fff; }
.pj-hero__title { margin: 0 0 8px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.01em; color: #fff; }
.pj-hero__desc { margin: 0 0 24px; max-width: 760px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.pj-filter { display: grid; grid-template-columns: minmax(0, 1fr) 260px auto; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(5, 25, 80, .28); position: relative; z-index: 3; }
.pj-filter__q { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border: 1px solid #dfe5ee; border-radius: 10px; background: #fff; color: #6b7280; }
.pj-filter__q:focus-within { border-color: var(--p1-brand-1, #0068ff); box-shadow: 0 0 0 3px rgba(0, 104, 255, .12); }
.pj-filter__q input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; color: #0b1f44; background: transparent; }
.pj-filter__prov, .pj-filter__cat { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 8px 0 14px; height: 48px; border: 1px solid #dfe5ee; border-radius: 10px; background: #fff; color: #6b7280; }
.pj-filter__prov:focus-within, .pj-filter__cat:focus-within { border-color: var(--p1-brand-1, #0068ff); box-shadow: 0 0 0 3px rgba(0, 104, 255, .12); }
.pj-filter__prov > .fa-location-dot, .pj-filter__cat > .fa-layer-group { flex: none; font-size: 15px; color: var(--p1-brand-1, #0b3d91); opacity: .85; }
.pj-filter__prov .pj-sel, .pj-filter__cat .pj-sel { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 8px 0 0; font: inherit; font-size: 15px; color: #0b1f44; }
.pj-filter__go { height: 48px; padding: 0 26px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--p1-brand-1, #0068ff), #7c3aed); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; transition: filter .2s, transform .2s; }
.pj-filter__go:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pj-filter .select2-container { width: 100% !important; }
.pj-filter .select2-container--default .select2-selection--single, .pj-bar .select2-container--default .select2-selection--single { height: 48px; border: 1px solid #dfe5ee; border-radius: 10px; background: #fff; display: flex; align-items: center; }
.pj-bar .select2-container--default .select2-selection--single { height: 40px; }
.pj-filter .select2-container--default .select2-selection--single:hover, .pj-filter .select2-container--open .select2-selection--single, .pj-bar .select2-container--open .select2-selection--single { border-color: var(--p1-brand-1, #0068ff); }
.pj-filter .select2-container--default .select2-selection--single .select2-selection__rendered, .pj-bar .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 32px 0 14px; line-height: 46px; font-size: 15px; font-weight: 500; color: #0b1f44; }
.pj-bar .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 38px; font-size: 14px; }
.pj-filter .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; } .pj-bar .select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }
.pj-filter__prov .select2-container, .pj-filter__cat .select2-container { flex: 1 1 auto; min-width: 0; height: 100%; }
.pj-filter__prov .select2-container--default .select2-selection--single,
.pj-filter__cat .select2-container--default .select2-selection--single { height: 100%; border: 0; border-radius: 0; background: transparent; }
.pj-filter__prov .select2-container--default .select2-selection--single:hover,
.pj-filter__prov .select2-container--open .select2-selection--single,
.pj-filter__cat .select2-container--default .select2-selection--single:hover,
.pj-filter__cat .select2-container--open .select2-selection--single { border: 0; }
.pj-filter__prov .select2-container--default .select2-selection--single .select2-selection__rendered,
.pj-filter__cat .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 28px 0 0; line-height: 46px; }
.pj-filter__prov .select2-container--default .select2-selection--single .select2-selection__arrow,
.pj-filter__cat .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 2px; }
.pj-filter--agents { grid-template-columns: minmax(0, 1fr) 260px auto; }
.pj-filter > input[type="hidden"] { display: none !important; }
.pj-filter .p2-lf-area { height: 48px; font-size: 15px; font-weight: 500; }
.pj-sel { width: 100%; height: 48px; border: 1px solid #dfe5ee; border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; }

.pj-list { padding: 26px 0 64px; background: #f6f8fb; }
.pj-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.pj-bar__count { margin: 0; font-size: 16px; color: #4b5563; } .pj-bar__count strong { color: #111827; font-size: 18px; }
.pj-bar__count a { color: var(--p1-brand-1, #0068ff); font-weight: 600; }
.pj-bar__sort { display: flex; align-items: center; gap: 10px; } .pj-bar__sort label { font-size: 14px; color: #6b7280; }
.pj-bar__sort .select2-container { width: 190px !important; }
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pj-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6ebf2; border-radius: 16px; overflow: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease; }
.pj-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(15, 23, 42, .14); border-color: transparent; }
.pj-card__img { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: #eef1f5; }
.pj-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.pj-card:hover .pj-card__img img { transform: scale(1.07); }
.pj-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(17, 24, 39, .75); backdrop-filter: blur(4px); color: #fff; font-size: 12px; font-weight: 600; }
.pj-badge--hot { left: auto; right: 12px; background: #e0402e; }
.pj-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.pj-card__name { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 700; }
.pj-card__name a { color: #111827; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .pj-card__name a:hover { color: var(--p1-brand-1, #0068ff); }
.pj-card__loc { margin: 0; font-size: 14px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pj-card__loc i { color: #e0402e; margin-right: 8px; }
.pj-card__kv { margin: 0; display: grid; gap: 8px; padding: 12px 0 0; border-top: 1px dashed #e3e8ef; }
.pj-card__kv > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.pj-card__kv dt { color: #6b7280; } .pj-card__kv dd { margin: 0; color: #111827; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-card__kv dd.pj-card__price { color: #e0402e; font-weight: 800; }
.pj-card__cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #0068ff59;
    color: var(--p1-brand-1, #0068ff);
    font-weight: 700;
    font-size: 14px;
    transition: background .25s, color .25s;
}
.pj-card__cta i { transition: transform .25s; } .pj-card:hover .pj-card__cta { background: var(--p1-brand-1, #0068ff); color: #fff; } .pj-card:hover .pj-card__cta i { transform: translateX(4px); }
.pj-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 24px; border: 1px dashed #cfd8e6; border-radius: 16px; background: #fff; text-align: center; color: #6b7280; }
.pj-empty i { font-size: 40px; color: #9fb0c8; } .pj-empty strong { font-size: 18px; color: #111827; }
.pj-empty__btn { margin-top: 8px; padding: 11px 24px; border-radius: 10px; background: var(--p1-brand-1, #0068ff); color: #fff !important; font-weight: 600; }
.pj-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.pj-pager a, .pj-pager__dots { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dfe5ee; border-radius: 10px; background: #fff; color: #374151; font-weight: 600; font-size: 15px; transition: all .2s; }
.pj-pager__dots { border: 0; background: transparent; }
.pj-pager a:hover { border-color: var(--p1-brand-1, #0068ff); color: var(--p1-brand-1, #0068ff); }
.pj-pager a.is-active { background: var(--p1-brand-1, #0068ff); border-color: var(--p1-brand-1, #0068ff); color: #fff; }
@media (max-width: 1100px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pj-filter { grid-template-columns: 260px auto; } .pj-filter--agents { grid-template-columns: 260px auto; } .pj-filter__q { grid-column: 1 / -1; } }
@media (max-width: 640px) { .pj-grid { grid-template-columns: 1fr; } .pj-filter { grid-template-columns: 1fr; } .pj-hero { padding-bottom: 50px; } .pj-bar__sort .select2-container { width: 160px !important; } }
@media (prefers-reduced-motion: reduce) { .pj-card, .pj-card *, .pj-filter__go { transition: none !important; } }

/* Ảnh nền chìm của hero danh mục dự án (ảnh đại diện danh mục): mờ + phủ gradient xanh để chữ vẫn rõ */
.pj-hero { overflow: hidden; isolation: isolate; }
.pj-hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .38; transform: scale(1.04); filter: saturate(.9); }
.pj-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 40, 140, .92) 0%, rgba(0, 85, 230, .78) 45%, rgba(10, 70, 200, .55) 100%); }
.pj-hero > .p1-container { position: relative; z-index: 1; }

/* v2 hero danh mục dự án: thấp hơn ~100px, thanh lọc nằm giữa đường biên hero / danh sách */
.pj-hero { overflow: visible; padding: calc(var(--p1-header-h, 72px) + 14px) 0 0; }
.pj-hero__bg { transform: none; }
.pj-crumb { margin-bottom: 8px; }
.pj-hero__title { margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); }
.pj-hero__desc { margin: 0 0 18px; font-size: 15px; line-height: 1.5; max-width: 880px; }
.pj-filter { margin-bottom: -36px; }
.pj-list { padding-top: 76px; }
@media (max-width: 1100px) { .pj-hero { padding-bottom: 22px; } .pj-filter { margin-bottom: 0; } .pj-list { padding-top: 26px; } }

/* margin-bottom âm của thanh lọc bị "nuốt" qua hero (margin collapse) -> hero dựng ngữ cảnh riêng để hero ngắn lại 36px và thanh lọc vắt ngang đường biên */
.pj-hero { display: flow-root; }
.pj-filter { position: relative; z-index: 5; }
@media (max-width: 1100px) { .pj-hero { display: block; } }

/* Tên dự án đè lên đáy ảnh (chữ trắng trên lớp phủ tối dần) */
.pj-card__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg, transparent, rgba(7, 18, 40, .8)); pointer-events: none; }
.pj-card__img .pj-card__name { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; margin: 0; color: #fff; font-size: 19px; font-weight: 700; line-height: 1.3; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pj-card__body { padding-top: 14px; }

/* Phân trang dự án: dùng .p1-pagination chung (xem company-p2-service.css), bỏ .pj-pager cũ */
.pj-pager { display: none; }
.pj-pagination { margin-top: 36px; }

/* Danh mục dự án: 4 thẻ/hàng, ảnh 4:5 — đồng bộ với "Dự án nổi bật" (trang chủ) và "Dự án liên quan" */
.pj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pj-card__img { aspect-ratio: 4 / 5; }
.pj-card__img .pj-card__name { left: 14px; right: 14px; bottom: 12px; font-size: 17px; }
.pj-card__body { padding: 12px 14px 14px; gap: 8px; }
.pj-card__loc { font-size: 13px; }
.pj-card__kv { gap: 6px; padding: 10px 0; }
.pj-card__kv > div { grid-template-columns: 72px minmax(0, 1fr); font-size: 13px; }
.pj-card__cta { height: 40px; font-size: 13.5px; }
.pj-badge { font-size: 11.5px; padding: 3px 9px; }
@media (max-width: 1200px) { .pj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pj-grid { grid-template-columns: 1fr; } }

/* ===== Danh bạ môi giới (/moi-gioi): thẻ có bìa, avatar trồi 30px lên bìa, thống kê, số điện thoại bấm hiện, mô tả ===== */
.pa-sec { padding-bottom: 64px; }
.pa-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 12px; }
.pa-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e6ebf2; border-radius: 16px; overflow: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease; }
.pa-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(15, 23, 42, .14); border-color: transparent; }
.pa-card__cover { display: block; height: 96px; background-size: cover; }
.pa-cover--0 { background: linear-gradient(135deg, #0a46c8, #3b82f6); } .pa-cover--1 { background: linear-gradient(135deg, #7c3aed, #4f46e5); } .pa-cover--2 { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.pa-cover--3 { background: linear-gradient(135deg, #be123c, #f43f5e); } .pa-cover--4 { background: linear-gradient(135deg, #b45309, #f59e0b); } .pa-cover--5 { background: linear-gradient(135deg, #1e293b, #475569); }
.pa-card__cover { position: relative; overflow: hidden; }
.pa-card__cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .28), transparent 45%), radial-gradient(circle at 10% 110%, rgba(255, 255, 255, .18), transparent 40%); }
.pa-card__avatar { position: relative; z-index: 2; display: block; width: 84px; height: 84px; margin: -30px auto 0; border-radius: 50%; border: 4px solid #fff; background: #fff; box-shadow: 0 8px 20px rgba(15, 23, 42, .18); overflow: hidden; }
.pa-card__avatar > *:not(.pa-card__badge),
.pa-card__avatar img:not(.pa-card__badge) { width: 100% !important; height: 100% !important; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; }
.pa-card__body { display: flex; flex-direction: column; gap: 10px; padding: 12px 18px 18px; text-align: center; flex: 1; }
.pa-card__name { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; }
    .pa-card__name a {
        color: #114ccc;
    } .pa-card__name a:hover { color: var(--p1-brand-1, #0068ff); }
.pa-card__role { margin: 0; font-size: 13px; color: #6b7280; } .pa-card__role i { margin-right: 6px; color: var(--p1-brand-1, #0068ff); }
.pa-card__bio { margin: 0; font-size: 13.5px; line-height: 1.55; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 63px; }
.pa-card__stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; padding: 12px 0; border-top: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; }
.pa-card__stats > div { display: flex; flex-direction: column; gap: 2px; }
.pa-card__stats > div + div { border-left: 1px solid #eef1f5; }
.pa-card__stats strong { font-size: 14px; font-weight: 600; color: #111827; line-height: 1.2; } .pa-card__stats span { font-size: 13px; color: #6b7280; }
.pa-card__phone { display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 12px; border: 1.5px solid #0f9d58; border-radius: 10px; background: transparent; color: #0f9d58; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .25s, color .25s; }
.pa-card__phone b { font-weight: 800; }
.pa-card__phone:hover, .pa-card__phone.is-revealed { background: #0f9d58; color: #fff; }
.pa-card__cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 10px; background: #1f2937; color: #fff; font-weight: 700; font-size: 14.5px; transition: background .25s, transform .25s; }
.pa-card__cta:hover { background: var(--p1-brand-1, #0068ff); transform: translateY(-1px); color: #fff; }
@media (max-width: 1200px) { .pa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pa-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pa-card, .pa-card__cta, .pa-card__phone { transition: none !important; } }

/* sửa v2 danh bạ môi giới: chữ cái đầu khi chưa có ảnh, nút gọi / xem tin đủ specificity */
.pa-card .pa-card__avatar { display: block; background: transparent; color: var(--p1-brand-1, #0068ff); font-size: 32px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.pa-card .pa-card__avatar img:not(.pa-card__badge) { display: block; }
.pa-card .pa-card__phone {
    background: transparent;
    border: 1.5px solid #009ba157;
    color: #0f9d58;
    box-shadow: none;
}
.pa-card .pa-card__phone:hover, .pa-card .pa-card__phone.is-revealed { background: #009ba1; color: #fff; }
.pa-card .pa-card__cta, .pa-card .pa-card__cta i { color: #fff; }
.pa-card .pa-card__cta { background: #1f2937; }
.pa-card .pa-card__cta:hover { background: var(--p1-brand-1, #0068ff); }

/* v3 danh bạ môi giới: bỏ phần bìa. Avatar nằm trọn trong thẻ.
   margin âm kéo avatar ra ngoài, còn overflow:hidden của .pa-card cắt mất nửa trên. */
.pa-card__cover { display: none; }
.pa-card .pa-card__avatar {
    position: relative;
    margin: 16px auto 0;
    width: 68px;
    height: 68px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    display: block;
}
.pa-card__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    background: linear-gradient(135deg, #e0ecff, #f3e8ff);
    color: var(--p1-brand-1, #0068ff);
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 0 0 1px #e6ebf2, 0 8px 20px rgba(15, 23, 42, .12);
}
.pa-card__photo > *,
.pa-card__photo img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.pa-card__badge {
    position: absolute;
    right: -3px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    z-index: 3;
    pointer-events: none;
    display: block;
}
.pa-card__body { padding-top: 10px; }

/* v4 danh bạ môi giới: bỏ mô tả, danh sách trồi lên che một phần đường chéo đáy hero */
.pa-sec { position: relative; z-index: 3; margin-top: -76px; padding-top: 0; }
.pa-grid { padding-top: 0; }
.pa-card__body { gap: 12px; }
.pa-card__stats { margin-top: 4px; }
.p1-page-hero.pa-hero { padding-bottom: calc(28px + var(--p1-slant, 48px)); }
.p1-page-hero.pa-hero + .pa-sec { margin-top: calc(-1 * var(--p1-slant, 48px)); padding-top: 0; z-index: 5; }
.pa-sec .pj-filter { position: relative; z-index: 6; margin: -28px 0 20px; }
.pa-bar { margin: 0 0 16px; font-size: 14.5px; color: #4b5563; }
.pa-bar a { color: var(--p1-brand-1, #0068ff); font-weight: 600; }
@media (max-width: 900px) { .pa-sec { margin-top: -40px; } .p1-page-hero.pa-hero + .pa-sec { margin-top: calc(-1 * var(--p1-slant, 32px)); } .pa-sec .pj-filter { margin-top: -16px; } }

/* ===== Trang cá nhân môi giới: bìa thấp; avatar đè giữa 2 biên (nổi trên clip-path hero) ===== */
.pf-hero { padding-top: calc(var(--p1-header-h) + 20px); padding-bottom: calc(48px + var(--p1-slant)); }
.p1-page-hero.pf-hero + .pf-sec {
    z-index: 4;
}
.pf-id {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-top: -96px;
    margin-bottom: 22px;
    position: relative;
    z-index: 5;
}
.pf-id__avatar {
    position: relative;
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    margin-top: 15px;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    display: block;
    font-size: 0;
    line-height: 0;
}
.pf-id__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    background: linear-gradient(135deg, #e0ecff, #f3e8ff);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
    color: var(--p1-brand-1, #0068ff);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}
.pf-id__photo > *,
.pf-id__photo img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover;
}
.pf-id__badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 28px;
    height: 28px;
    z-index: 2;
    pointer-events: none;
    display: block;
}
.pf-id__text { min-width: 0; flex: 1; padding-top: 15px; }
.pf-id__name {
    margin: 0 0 25px;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.015em;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}
.pf-id__actions { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; margin: 0 0 10px; overflow-x: auto; }
.pf-id__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; color: #64748b; font-size: 13.5px; }
.pf-id__stats strong { color: #0f172a; font-size: 16px; font-weight: 800; margin-right: 4px; }
.pf-id__actions > * { flex: 0 0 auto; white-space: nowrap; }
.company-p2-body .pf-id__actions .p2-listing__phone,
.company-p2-body .pf-id__actions .btn-p1,
.company-p2-body .pf-about__cta .btn-p1 {
    height: 36px;
    padding: 0 16px;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pf-zalo-icon { width: 18px; height: 18px; flex: none; display: block; }
.pf-sec > .p1-container > .p1-service-tabs { margin-bottom: 22px; }
.pf-sec .pf-group-tabs { margin: 0; }
.pf-sec .pf-group-tabs a { padding: 6px 16px; font-size: 13.5px; }
.pf-sec { --pf-side-w: 340px; }
.pf-sec .pf-tabs {
    margin: 6px 0 20px;
    position: static;
    top: auto;
    z-index: auto;
    overflow: visible;
    align-items: stretch;
    border: 1px solid #e6e9ee;
    border-radius: 14px;
    background: #fff;
    padding: 0 10px;
}
.pf-tabs__search {
    margin-left: auto;
    flex: 0 0 var(--pf-side-w);
    width: var(--pf-side-w);
    max-width: var(--pf-side-w);
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 8px 0;
}
.pf-tabs__search .p2-search__field {
    width: 100%;
    height: 40px;
    padding: 0 6px 0 14px;
    border: 1px solid #d6deea;
    border-radius: 999px;
    box-shadow: none;
}
.pf-tabs__search .p2-search__field:focus-within,
.pf-tabs__search .p2-search__field.is-open {
    border-color: var(--p1-brand-1, #0068ff);
    box-shadow: 0 0 0 3px rgba(0, 104, 255, .14);
}
.pf-tabs__search .p2-search__field input[type="text"] { font-size: 13.5px; font-weight: 500; }
.pf-search__go {
    flex: none;
    width: 32px; height: 32px;
    border: 0; border-radius: 50%;
    background: var(--p1-brand-1, #0068ff);
    color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.pf-search__go:hover { background: var(--p1-brand-2, #0b3fb5); }
.pf-search__go i { color: #fff; opacity: 1; font-size: 13px; }
@media (max-width: 900px) {
    .pf-sec .pf-tabs { flex-wrap: wrap; }
    .pf-tabs__search {
        margin-left: 0;
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        padding: 8px 0 12px;
        border-top: 1px solid #e6e9ee;
    }
}

.pf-about {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    padding: 22px 24px 24px;
}
.pf-about__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f7;
}
.pf-about__badge {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 104, 255, .08);
    color: var(--p1-brand-1, #0068ff);
    font-size: 20px;
}
.pf-about__title { margin: 0 0 2px; font-size: 20px; font-weight: 800; color: #0f172a; }
.pf-about__role { margin: 0; font-size: 14px; color: #64748b; }
.pf-about__bio {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}
.pf-about__bio > *:first-child { margin-top: 0; }
.pf-about__bio > *:last-child { margin-bottom: 0; }
.pf-about__bio p { margin: 0 0 .75em; }
.pf-about__bio ul, .pf-about__bio ol { margin: 0 0 .75em; padding-left: 1.25em; }
.pf-about__bio li { margin: 0 0 .35em; }
.pf-about__bio b, .pf-about__bio strong { font-weight: 700; color: #0f172a; }
.pf-about__bio a { color: var(--p1-brand-1, #0068ff); word-break: break-word; }
.pf-about__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.pf-about__grid li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #fff;
}
.pf-about__grid i {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 104, 255, .08);
    color: var(--p1-brand-1, #0068ff);
    font-size: 13px;
    margin-top: 1px;
}
.pf-about__grid span {
    display: block;
    min-width: 0;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
}
.pf-about__grid strong {
    display: block;
    margin-top: 3px;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}
.pf-about__grid a { color: var(--p1-brand-1, #0068ff); }
.pf-about__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.company-p2-body .pf-about__cta .p2-listing__phone,
.company-p2-body .pf-about__cta .btn-p1 {
    height: 38px;
    padding: 0 16px;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pf-sec .p2-listpage__grid { grid-template-columns: minmax(0, 1fr) var(--pf-side-w); }
.pf-book { position: sticky; top: calc(var(--p1-sticky-top, var(--p1-header-h, 72px)) + 12px); transition: top .28s ease; }
.pf-book.pd-card { padding: 14px 16px; gap: 8px; }
.pf-book .pd-book__title {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 1px 0 11px 11px;
    border: 0;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: #0b1f44;
    background: none;
    box-shadow: none;
}
.pf-book .pd-book__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 13px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #0068ff, #7c3aed);
}
.pf-book .pd-book__title::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 104, 255, .3), rgba(232, 238, 246, 0));
}
.pf-book .pd-book__title i {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, #0068ff, #4f46e5);
    box-shadow: 0 4px 10px rgba(0, 104, 255, .28);
    animation: pf-title-icon 2.4s ease-in-out infinite;
}
.pf-book .pd-book__title span { flex: 0 1 auto; min-width: 0; }
.pf-book .pd-book__title em {
    flex: 0 0 auto;
    margin: 0 0 0 2px;
    padding: 3px 8px;
    border: 0;
    border-radius: 6px;
    font-style: normal;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0369a1;
    background: #e0f2fe;
}
@keyframes pf-title-icon {
    0%, 100% { box-shadow: 0 4px 10px rgba(0, 104, 255, .24); }
    50% { box-shadow: 0 4px 14px rgba(0, 104, 255, .42); }
}
@media (prefers-reduced-motion: reduce) {
    .pf-book .pd-book__title i { animation: none; }
}
.pf-book__hello { margin: 0; font-size: 13px; line-height: 1.5; color: #475569; }
.pf-book__hello b { color: #0f172a; }
.pf-book [data-pf-book] { position: relative; display: flex; flex-direction: column; gap: 8px; }
.pf-book .pd-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}
.pf-book .pd-lbl {
    margin: 2px 0 -8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: #437fd4;
    font-style:italic;
}
.pf-book .pd-in { height: 38px; border-radius: 10px; padding: 0 12px; font-size: 13.5px; }
.pf-book .pd-phone { height: 38px; border-radius: 10px; padding: 0; }
.pf-book textarea.pd-in { height: 50px; min-height: 50px; padding: 9px 12px; resize: vertical; }
.pf-book .pd-phone span { flex: 0 0 auto; padding: 0 10px; font-size: 13px; }
.pf-book .pd-phone input { font-size: 13.5px; padding: 0 10px; }
.pf-book .pd-seg { gap: 8px; }
.pf-book .pd-seg button { height: 38px; border-radius: 10px; font-size: 13.5px; }
.pf-book .pd-row { gap: 8px; }
.pf-book .select2-container--default .select2-selection--single { height: 38px; border-radius: 10px; }
.pf-book .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 28px 0 12px; line-height: 36px; font-size: 13.5px; }
.pf-book .select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }
.pf-book .pd-cap { grid-template-columns: 96px 1fr 36px; gap: 8px; }
.pf-book .pd-cap img { width: 96px; height: 38px; border-radius: 8px; }
.pf-book .pd-cap__rf { height: 38px; border-radius: 10px; }
.pf-book .pd-book__btn { height: 40px; font-size: 14.5px; border-radius: 12px; }
.pf-book .pd-book__msg { min-height: 0; font-size: 12.5px; }
.pf-book .pd-book__msg:empty { display: none; }
.pf-book .pd-book__ok { display: none; }
.pf-sidebox__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #1e293b; }
.pf-sidebox__bio { margin: 0 0 12px; font-size: 14.5px; line-height: 1.65; color: #475569; }
.pf-sidebox__row { margin: 0 0 8px; font-size: 14px; color: #334155; }
.pf-sidebox__row i { width: 18px; margin-right: 8px; color: var(--p1-brand-1, #0068ff); }
.pf-sidebox__more { display: inline-block; margin: 6px 0 12px; font-weight: 700; font-size: 14px; color: var(--p1-brand-1, #0068ff); }
.pf-sidebox__call { width: 100%; justify-content: center; margin-top: 4px; }

@media (max-width: 720px) {
    .pf-id { margin-top: -64px; gap: 14px; }
    .pf-id__avatar { width: 88px; height: 88px; flex-basis: 88px; }
    .pf-id__photo { border-width: 3px; font-size: 36px; }
    .pf-id__badge { width: 24px; height: 24px; }
    .pf-id__text { padding-top: 4px; }
    .pf-id__name { margin-bottom: 36px; font-size: 22px; }
    .pf-about { padding: 18px 16px 20px; }
    .pf-about__grid { grid-template-columns: 1fr; }
    .pf-sec .p2-listpage__grid { grid-template-columns: 1fr; }
    .pf-book { position: static; }
}

/* ===== Chi tiết tin đăng ===== */
html:has(.td-page) .p1-header {
    background: rgba(0, 84, 220, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--p1-border);
}
.td-page { padding: calc(var(--p1-header-h, 72px) + 16px) 0 72px; background: #fff; color: #1e293b; }

/* Chống giật scrollbar khi mở zoom (Fancybox / Ola IV) — bù header + mbar cố định */
html.with-fancybox .p1-header,
html.with-fancybox .td-mbar {
    padding-right: var(--fancybox-scrollbar-compensate, 0px);
}
html.ola-iv-open .p1-header,
html.ola-iv-open .td-mbar,
html[data-ola-iv="1"] .p1-header,
html[data-ola-iv="1"] .td-mbar {
    padding-right: var(--ola-iv-sb, 0px);
}
html.ola-iv-open,
html[data-ola-iv="1"] {
    padding-right: var(--ola-iv-sb, 0px);
}
.td-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "gal side" "body side" "more side";
    gap: 22px 36px;
    align-items: start;
}
.td-gal { grid-area: gal; min-width: 0; }
.td-body { grid-area: body; min-width: 0; }
.td-morecol { grid-area: more; min-width: 0; }
.td-side {
    grid-area: side;
    position: sticky;
    top: calc(var(--p1-sticky-top, var(--p1-header-h, 72px)) + 14px);
    z-index: 4;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: top .28s ease;
}
.td-side > .td-agent,
.td-side > .td-book {
    flex: none;
    position: relative;
    z-index: 1;
}
.td-side > .td-agent { z-index: 2; }
.td-book.pf-book { position: static; margin-top: 0; }
.company-p2-body .td-book .pd-btn--primary { color: #0b1f44; }

.td-gal__stage { position: relative; border-radius: 14px; overflow: hidden; background: #0f172a; }
.td-gal__main { display: block; }
.td-gal__main img {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    display: block; border: 0; height: auto;
}
.td-gal__main[hidden],
.td-gal__video[hidden] { display: none !important; }

/* Video gallery: full khung (cover) — hết letterbox/pillarbox YouTube/Vimeo */
.td-gal__video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}
.td-gal__video .td-video {
    position: absolute;
    inset: 0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    container-type: size;
    container-name: td-gal-video;
    background: #0f172a;
}
.td-gal__video .td-video video {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: unset !important;
    object-fit: cover;
    display: block;
    border: 0;
}
/* iframe YT/Vimeo: phóng cover — không transform (tránh vạch giữa player).
   Hệ số ~170% để che pillarbox clip dọc/vuông trong khung 16:9 (object-fit:cover kiểu ảnh). */
.td-gal__video .td-video iframe {
    position: relative;
    flex: none;
    width: max(170cqw, calc(170cqh * 16 / 9)) !important;
    height: max(170cqh, calc(170cqw * 9 / 16)) !important;
    max-width: none !important;
    min-width: 0;
    aspect-ratio: 16 / 9 !important;
    border: 0;
    display: block;
}
@supports not (width: 1cqw) {
    .td-gal__video .td-video iframe {
        width: 170% !important;
        height: 170% !important;
        min-width: 170%;
        min-height: 170%;
    }
}
.td-gal__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.95); color: #0b1f44; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.16); z-index: 2;
}
.td-gal__nav:hover { background: #fff; }
.td-gal__nav--prev { left: 12px; }
.td-gal__nav--next { right: 12px; }
.td-gal__zoom {
    position: absolute; left: 12px; bottom: 12px; z-index: 3;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.92); color: #0b1f44;
    display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.td-gal__zoom:hover { background: #fff; color: var(--p1-brand-1, #0068ff); transform: scale(1.04); }
.td-gal__count {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    padding: 3px 10px; border-radius: 999px; background: rgba(15,23,42,.72);
    color: #fff; font-size: 12px; font-weight: 700;
}
.td-gal__rail { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.td-gal__rail-btn {
    flex: none; width: 28px; height: 28px; border: 1px solid #dbe3ee; border-radius: 50%;
    background: #fff; color: #334155; cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center; font-size: 11px;
}
.td-gal__rail-btn:hover { border-color: var(--p1-brand-1, #0068ff); color: var(--p1-brand-1, #0068ff); }
.td-gal__thumbs {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px; flex: 1; min-width: 0;
    scrollbar-width: none;
}
.td-gal__thumbs::-webkit-scrollbar { display: none; }
.td-gal--many .td-gal__thumbs {
    display: flex; overflow: hidden; scroll-behavior: smooth;
}
.td-gal--many .td-gal__thumb { flex: 0 0 calc((100% - 42px) / 8); width: auto; }
.td-gal__thumb {
    position: relative; padding: 0; border: 2px solid transparent;
    border-radius: 8px; overflow: hidden; background: #e8edf3; cursor: pointer;
    aspect-ratio: 4 / 3; min-width: 0;
}
.td-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-gal__thumb.is-on { border-color: var(--p1-brand-1, #0068ff); }
.td-gal__thumb--video { background: #0f172a; }
.td-gal__vico {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 11px; background: rgba(15, 23, 42, .28); pointer-events: none;
}
.td-gal__vico i {
    width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.45);
    display: inline-flex; align-items: center; justify-content: center; font-size: 9px;
}

.td-head { margin: 4px 0 0; }
.td-title { margin: 0 0 10px; font-size: 24px; line-height: 1.35; font-weight: 700; color: #2c2c2c; }
.td-addr { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #8c8c8c; font-size: 14px; line-height: 1.5; }
.td-addr svg { flex: none; margin-top: 2px; color: #8c8c8c; }
.td-addr__sub { color: #8c8c8c; }

.td-strip {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 24px; padding: 18px 0 16px; margin: 16px 0 8px;
    border-top: 1px solid #ececec; border-bottom: 1px solid #ececec;
}
.td-strip__facts { display: flex; flex-wrap: wrap; gap: 12px 48px; flex: 1; min-width: 0; }
.td-strip__it { display: flex; flex-direction: column; gap: 4px; min-width: 108px; }
.td-strip__it small { font-size: 14px; color: #8c8c8c; font-weight: 400; }
.td-strip__it strong { font-size: 18px; font-weight: 700; color: #2c2c2c; line-height: 1.25; }
.td-strip__price { color: #2c2c2c; font-size: 22px; }
.td-strip__it em { font-style: normal; font-size: 13px; color: #8c8c8c; line-height: 1.35; }
.td-strip__acts { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.td-page .td-strip__acts .td-ico,
.td-page .td-strip__acts .p2-save-btn {
    width: 40px; height: 40px; padding: 0; margin: 0;
    border: 0; border-radius: 50%;
    background: transparent; box-shadow: none;
    font-size: 17px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.td-page .td-strip__acts [data-td-share] { color: var(--p1-brand-1, #0068ff); }
.td-page .td-strip__acts [data-td-share]:hover { background: #eff6ff; color: #0050c8; }
.td-page .td-strip__acts [data-td-report] { color: #d97706; }
.td-page .td-strip__acts [data-td-report]:hover { background: #fff7ed; color: #c2410c; }
.td-page .td-strip__acts .p2-save-btn { color: #64748b; }
.td-page .td-strip__acts .p2-save-btn:hover { background: #fff1f2; color: #e11d48; }
.td-page .td-strip__acts .p2-save-btn.is-saved { color: #e11d48; }
.td-page .td-strip__acts .p2-save-btn.is-saved:hover { background: #ffe4e6; color: #be123c; }

.td-map { margin: 0; }
.td-map .p2-map { margin: 0; border-radius: 8px; overflow: hidden; }
.td-map .p2-map iframe { width: 100%; height: 320px; }

.td-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 0;
    margin: 22px 0 0;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}
.td-meta__it {
    flex: 1 1 0;
    min-width: 0;
}
.td-viewed[hidden] { display: none !important; }
.td-meta__it small {
    display: block; font-size: 13px; color: #8c8c8c; font-weight: 400; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.td-meta__it strong {
    display: block; margin-top: 6px; font-size: 16px; font-weight: 700; color: #2c2c2c; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.td-sec { margin: 28px 0 0; }
.td-sec h2, .td-sidebox h2 { margin: 0 0 14px; font-size: 20px; color: #0b1f44; }
.td-facts {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 56px;
}
.td-facts li {
    display: grid;
    grid-template-columns: 22px minmax(108px, 1.15fr) minmax(0, 1fr);
    gap: 12px 14px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 15px;
    min-width: 0;
}
.td-facts__ico {
    display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; color: #2c2c2c; font-style: normal;
}
.td-facts__ico svg { display: block; width: 22px; height: 22px; }
.td-facts li span { color: #2c2c2c; line-height: 1.4; }
.td-facts li strong {
    color: #2c2c2c; font-weight: 600; text-align: left;
    line-height: 1.4; overflow-wrap: anywhere;
}
.td-facts li a { color: var(--p1-brand-1, #0068ff); word-break: break-word; }
.td-desc.is-clamp { max-height: 220px; overflow: hidden; position: relative; }
.td-desc.is-clamp::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 90%);
}
.td-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: fit-content;
    max-width: 100%;
    margin: 14px auto 0;
    padding: .55rem 1.25rem;
    border: 1px solid #d7e3f480;
    border-radius: 999px;
    background: #f4f8ff;
    color: var(--p1-brand-1, #0068ff);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.td-more:hover {
    background: var(--p1-brand-1, #0068ff); border-color: var(--p1-brand-1, #0068ff); color: #fff;
    box-shadow: 0 6px 16px rgba(0, 104, 255, .22);
}
.td-more:focus-visible {
    outline: 2px solid rgba(0, 104, 255, .35); outline-offset: 3px;
}

/* Popup cảm ơn sau đặt lịch xem tin */
.td-thanks {
    position: fixed; inset: 0; z-index: 10050;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
    background: rgba(15, 23, 42, .42);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.td-thanks.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.td-thanks__card {
    width: min(400px, 100%);
    padding: 26px 22px 18px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .18);
    transform: translateY(10px) scale(.98);
    transition: transform .22s ease;
}
.td-thanks.is-on .td-thanks__card { transform: none; }
.td-thanks__top {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; min-height: 72px;
}
.td-thanks__badge {
    position: absolute; right: calc(50% - 48px); top: 0; z-index: 2;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #16a34a; color: #fff; font-size: .85rem;
    border: 2px solid #fff; box-shadow: 0 2px 8px rgba(22, 163, 74, .35);
}
.td-thanks--plain .td-thanks__badge {
    position: static; width: 56px; height: 56px; font-size: 1.45rem;
    border: 0; background: #e8f8ef; color: #16a34a; box-shadow: none;
}
.td-thanks__avatar {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
    border: 3px solid #e8f8ef; background: #f1f5f9;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .1);
}
.td-thanks__avatar img,
.td-thanks__avatar .ola-avatar,
.td-thanks__avatar > * {
    width: 100% !important; height: 100% !important;
    max-width: none !important; border-radius: 50% !important;
    object-fit: cover; display: block;
}
.td-thanks__title {
    margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; color: #0f172a; letter-spacing: -.015em;
}
.td-thanks__lead {
    margin: 0 0 10px; font-size: .95rem; line-height: 1.45; color: #334155; font-weight: 500;
}
.td-thanks__txt {
    margin: 0 0 8px; font-size: .92rem; line-height: 1.55; color: #475569;
}
.td-thanks__txt b { color: #0f172a; font-weight: 800; }
.td-thanks__note {
    margin: 0 0 12px; font-size: .84rem; line-height: 1.5; color: #64748b;
}
.td-thanks__note b { color: #0f172a; font-weight: 700; }
.td-thanks__hint {
    margin: 0 0 10px; font-size: .78rem; color: #94a3b8;
}
.td-thanks__hint b { color: #64748b; font-variant-numeric: tabular-nums; }
.td-thanks__bar {
    height: 3px; border-radius: 999px; background: #e8eef8; overflow: hidden; margin: 0 0 14px;
}
.td-thanks__bar span {
    display: block; height: 100%; width: 100%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    transform-origin: left center;
    animation: td-thanks-bar 6s linear forwards;
}
@keyframes td-thanks-bar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
.td-thanks__close {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 0 18px; border-radius: 999px;
    border: 1px solid #d7e3f4; background: #f8fafc; color: #334155;
    font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
}
.td-thanks__close:hover { background: #eef4ff; border-color: #bcd0f0; color: #0b57d0; }

/* Popup báo cáo tin — không giật scrollbar khi mở/đóng */
html.td-scroll-lock {
    overflow: hidden !important;
    padding-right: var(--td-sb-w, 0px);
}
html.td-scroll-lock body { overflow: hidden !important; }
html.td-scroll-lock .p1-header,
html.td-scroll-lock .td-mbar {
    padding-right: var(--td-sb-w, 0px);
}

.td-report {
    position: fixed; inset: 0; z-index: 10060;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
    background: rgba(11, 31, 68, .48);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}
.td-report.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
/* Chỉ ẩn hẳn khi đã đóng xong — tránh đổi display giữa lúc fade (giật) */
.td-report[hidden]:not(.is-on) { display: none !important; }
.td-report__panel {
    width: min(380px, 100%);
    overflow: visible;
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(11, 31, 68, .18);
    padding: 0;
    transform: translateY(6px);
    transition: transform .18s ease;
    will-change: transform;
}
.td-report.is-on .td-report__panel { transform: none; }
.td-report__head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    margin: 0; padding: 16px 16px 12px;
    background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
    border-bottom: 1px solid #f1e7db;
    border-radius: 18px 18px 0 0;
}
.td-report__brand { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.td-report__ico {
    flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 30px;
    display: grid; place-items: center;
    background: #fff1e6; color: #c2410c;
    font-size: 16px;
    box-shadow: inset 0 0 0 1px #ffd8b5;
}
.td-report__head h3 {
    margin: 0 0 2px; font-size: 1.02rem; font-weight: 750;
    color: #0b1f44; letter-spacing: -.015em; line-height: 1.25;
}
.td-report__sub { margin: 0; font-size: .8rem; color: #6b7a90; line-height: 1.35; }
.td-report__x {
    width: 32px; height: 32px; border: 0; border-radius: 999px;
    background: rgba(255,255,255,.85); color: #64748b;
    font-size: 1.25rem; line-height: 1; cursor: pointer; flex-shrink: 0;
    box-shadow: inset 0 0 0 1px #e8eef6;
}
.td-report__x:hover { background: #fff; color: #0b1f44; }
.td-report__body { padding: 14px 16px 4px; }
.td-report__pick { position: relative; margin: 0 0 10px; z-index: 3; }
.td-report__field {
    display: flex; align-items: center; gap: 10px;
    width: 100%; box-sizing: border-box;
    height: 46px; padding: 0 14px;
    border: 1px solid #d6deea; border-radius: 12px;
    background: #fff; color: #0b1f44;
    font: inherit; font-size: 14px; font-weight: 600;
    text-align: left; cursor: pointer;
    box-shadow: 0 2px 8px rgba(11, 31, 68, .06);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.td-report__field > i:first-child {
    flex: none; color: var(--p1-brand-1, #0b3d91); opacity: .8; font-size: 14px;
}
.td-report__field > i:last-child {
    flex: none; margin-left: auto; color: #64748b; font-size: 12px;
    transition: transform .18s ease;
}
.td-report__pick.is-open .td-report__field > i:last-child { transform: rotate(180deg); }
.td-report__field-txt {
    flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.td-report__field.is-empty .td-report__field-txt { color: #64748b; font-weight: 500; }
.td-report__field:hover,
.td-report__pick.is-open .td-report__field {
    border-color: var(--p1-brand-1, #0068ff);
    box-shadow: 0 0 0 3px rgba(0, 104, 255, .12);
}
.td-report__dd.p2-type-dd {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px);
    z-index: 10070;
    width: 100%;
    max-height: 260px;
    margin: 0;
}
.td-report__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.td-report__note {
    width: 100%; box-sizing: border-box;
    margin: 0 0 8px; padding: 10px 14px;
    border: 1px solid #d6deea; border-radius: 12px;
    font: inherit; font-size: 14px; color: #0b1f44; background: #f8fafc;
    resize: none; min-height: 54px; line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.td-report__note.is-need { border-color: #fdba74; background: #fff7ed; }
.td-report__note:focus {
    outline: 0;
    border-color: var(--p1-brand-1, #0068ff);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 104, 255, .12);
}
.td-report__msg { margin: 0 0 6px; font-size: .8rem; text-align: center; line-height: 1.3; }
.td-report__msg:empty { display: none; }
.td-report__msg.is-ok { color: #15803d; }
.td-report__msg.is-err { color: #b91c1c; }
.td-report__acts {
    display: flex; gap: 8px;
    padding: 10px 16px 16px;
}
.td-report__send {
    flex: 1; height: 44px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer;
    border: 0; color: #fff;
    background: linear-gradient(135deg, var(--p1-brand-1, #0068ff), #0050c8);
    box-shadow: 0 6px 16px rgba(0, 104, 255, .22);
    transition: filter .15s ease, box-shadow .15s ease;
}
.td-report__send:hover { filter: brightness(.97); }
.td-report__send:disabled { opacity: .65; cursor: wait; filter: none; box-shadow: none; }

.td-sidebox {
    margin-top: 16px;
    border: 1px solid #e6ebf2; border-radius: 16px; padding: 14px;
    background: #fff;
}
.td-sidebox h2 { margin: 0 0 10px; font-size: 16px; }
.td-video { position: relative; border-radius: 10px; overflow: hidden; background: #0f172a; }
.td-video iframe, .td-video video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }

.td-agent {
    position: relative;
    overflow: visible;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 0 0 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
    isolation: isolate;
}
    .td-agent::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 48px;
        background: #25716d;
        border-radius: 13px 13px 0 0;
        pointer-events: none;
    }
.td-agent--owner::before { background: #3d6b68; }
.td-agent__who {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 12px 16px 8px;
}
.td-agent__avatar {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    flex: none;
    width: 68px;
    height: 68px;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    display: block;
    background: transparent;
    box-shadow: none;
    font-size: 0;
    line-height: 0;
}
.td-agent__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    background: #e8eef8;
    color: var(--p1-brand-1, #0068ff);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .16);
}
.td-agent__photo img,
.td-agent__photo .ola-avatar,
.td-agent__photo > * {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.td-agent__badge {
    position: absolute;
    right: -2px;
    bottom: -1px;
    width: 22px;
    height: 22px;
    z-index: 2;
    pointer-events: none;
    display: block;
}
.td-agent__id {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
}
.td-agent__label {
    display: flex;
    align-items: center;
    margin: 0;
    height: 36px;
    padding: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.td-agent__name {
    display: block;
    margin: 10px 0 0;
    font-size: 16.5px;
    font-weight: 800;
    color: #0b1f44;
    text-decoration: none;
    line-height: 1.3;
}
.company-p2-body .td-agent__name:hover { color: var(--p1-brand-1, #0068ff); }
.td-agent__role {
    display: flex; align-items: center; gap: 6px;
    margin: 3px 0 0; color: #64748b; font-size: 12.5px; line-height: 1.35;
}
.td-agent__role i { color: #94a3b8; font-size: 11px; }
.company-p2-body .td-agent__more {
    display: inline-flex; align-items: center; gap: 4px;
    margin: 3px 0 0; padding: 0; max-width: 100%;
    background: none; border-radius: 0;
    color: var(--p1-brand-1, #0068ff); font-size: 12.5px; font-weight: 600;
    line-height: 1.35; text-decoration: none;
}
.company-p2-body .td-agent__more:hover { background: none; color: var(--p1-brand-2, #0b3fb5); }
.company-p2-body .td-agent__more i { font-size: 10px; }
.td-agent__zalo, .td-agent__phone, .td-agent__save {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 44px; margin-top: 10px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.td-agent__phone,
.td-agent__row {
    margin-left: 16px;
    margin-right: 16px;
    width: auto;
}
.td-agent__phone.p2-listing__phone {
    width: calc(100% - 32px);
    max-width: none;
}
.td-agent__row {
    display: flex; align-items: stretch; gap: 8px;
    margin-top: 10px;
}
.td-agent__row .td-agent__zalo,
.td-agent__row .td-agent__save {
    width: auto; margin-top: 0; min-width: 0;
}
.td-agent__row .td-agent__zalo {
    flex: 1 1 auto; padding: 0 12px; font-size: 13.5px;
}
.td-agent__row .td-agent__save {
    flex: 0 0 44px; width: 44px; padding: 0; gap: 0;
}
.td-agent__zalo-icon { width: 22px; height: 22px; flex: none; display: block; }
.company-p2-body .td-agent__zalo { border: 1px solid #d5dbe3; background: #fff; color: #0b1f44; }
.company-p2-body .td-agent__zalo:hover { border-color: #0068ff; color: #0b1f44; }
.td-agent__phone.p2-listing__phone { height: 44px; font-size: 14px; }

/* Nút gọi: halo + rung icon nhẹ để hút click, dừng khi đã hiện số / giảm chuyển động. */
.td-agent__phone.p2-listing__phone,
.td-mbar__phone.p2-listing__phone {
    position: relative;
    z-index: 2;
    overflow: visible;
    color: #fff;
    background: linear-gradient(44deg, #20a1a6 0%, #1f696c 100%);
    box-shadow: 0 8px 18px rgba(47, 142, 146, .32);
    transition: filter .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.td-agent__phone.p2-listing__phone::after,
.td-mbar__phone.p2-listing__phone::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(78, 179, 183, .55);
    pointer-events: none;
    opacity: 0;
}
.td-agent__phone.p2-listing__phone:hover,
.td-mbar__phone.p2-listing__phone:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(47, 142, 146, .42);
}
.td-agent__phone.p2-listing__phone:hover::after,
.td-mbar__phone.p2-listing__phone:hover::after,
.td-agent__phone.p2-listing__phone.is-revealed::after,
.td-mbar__phone.p2-listing__phone.is-revealed::after { animation: none; opacity: 0; }
.td-agent__phone.p2-listing__phone.is-revealed,
.td-mbar__phone.p2-listing__phone.is-revealed {
    background: #1d8a4f;
    animation: none;
    box-shadow: 0 8px 16px rgba(29, 138, 79, .28);
}
@media (prefers-reduced-motion: no-preference) {
    .td-agent__phone.p2-listing__phone:not(.is-revealed),
    .td-mbar__phone.p2-listing__phone:not(.is-revealed) {
        animation: tdPhoneGlow 1.8s ease-in-out infinite;
    }
    .td-agent__phone.p2-listing__phone:not(.is-revealed)::after,
    .td-mbar__phone.p2-listing__phone:not(.is-revealed)::after {
        animation: tdPhoneRipple 1.8s ease-out infinite;
    }
    .td-agent__phone.p2-listing__phone:not(.is-revealed) i,
    .td-mbar__phone.p2-listing__phone:not(.is-revealed) i {
        display: inline-block;
        animation: tdPhoneRing 1.8s ease-in-out infinite;
        transform-origin: 50% 55%;
    }
    .td-agent__phone.p2-listing__phone:hover,
    .td-mbar__phone.p2-listing__phone:hover { animation: none; }
    .td-agent__phone.p2-listing__phone:hover i,
    .td-mbar__phone.p2-listing__phone:hover i { animation: none; }
}
@keyframes tdPhoneGlow {
    0%, 100% { box-shadow: 0 8px 16px rgba(47, 142, 146, .28); }
    50% { box-shadow: 0 10px 26px rgba(47, 142, 146, .5); }
}
@keyframes tdPhoneRipple {
    0% { opacity: .65; transform: scale(1); }
    70% { opacity: 0; transform: scale(1.08); }
    100% { opacity: 0; transform: scale(1.08); }
}
@keyframes tdPhoneRing {
    0%, 55%, 100% { transform: rotate(0); }
    10% { transform: rotate(14deg); }
    18% { transform: rotate(-12deg); }
    26% { transform: rotate(10deg); }
    34% { transform: rotate(-6deg); }
    42% { transform: rotate(0); }
}
.td-agent__save {
    margin-top: 0; border: 1px solid #d7deea; background: #fff; color: #5b6b82; font-size: 16px;
}
.td-agent__save:hover { border-color: #b8c6db; color: #334155; }
.td-agent__save.is-saved { color: #e11d48; border-color: #f3c4cd; }

.td-related { margin-top: 48px; }
.td-viewed { margin-top: 40px; }
.td-related__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.td-related__head h2 { margin: 0; font-size: 22px; }
.td-related__head p { margin: 4px 0 0; color: #64748b; font-size: 14px; }
.td-related__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
}
.td-rcard {
    min-width: 0;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.td-rcard:hover {
    border-color: #d5deea;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
    transform: translateY(-2px);
}
.td-rcard__img {
    position: relative; display: block; aspect-ratio: 4 / 3;
    overflow: hidden; background: #eef1f5; margin: 0;
}
.td-rcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.td-rcard:hover .td-rcard__img img { transform: scale(1.05); }
.td-rcard__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .55); color: #fff; font-size: 11px;
}
.td-rcard__n {
    position: absolute; left: 8px; bottom: 8px;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 7px; border-radius: 999px;
    background: rgba(15, 23, 42, .48); color: #fff; font-size: 11.5px; font-weight: 600;
}
.td-rcard__body { padding: 10px 12px 11px; display: flex; flex-direction: column; flex: 1; }
.td-rcard__title { margin: 0 0 6px; font-size: 14px; font-weight: 700; line-height: 1.4; min-height: 2.8em; }
.td-rcard__title a {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; color: #0f172a; text-decoration: none;
}
.td-rcard__title a:hover { color: var(--p1-brand-1, #0068ff); }
.td-rcard__price { margin: 0 0 6px; color: #c0392b; font-weight: 800; font-size: 14.5px; }
.td-rcard__spec {
    display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 8px;
    color: #64748b; font-size: 12.5px;
}
.td-rcard__spec i { margin-left: 3px; }
.td-rcard__addr {
    display: flex; align-items: flex-start; gap: 6px; margin: 0 0 8px;
    color: #475569; font-size: 12.5px; line-height: 1.4;
}
.td-rcard__addr i { color: #94a3b8; margin-top: 2px; flex: none; }
.td-rcard__addr span {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.td-rcard__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: auto; padding-top: 8px; border-top: 1px solid #f1f5f9;
}
.td-rcard__foot small { color: #94a3b8; font-size: 12px; }
.td-rcard__heart {
    width: 30px; height: 30px; border-radius: 50%; background: transparent;
    color: #94a3b8; font-size: 15px;
}
.td-rcard__heart:hover,
.td-rcard__heart.is-saved { color: #e11d48; }

.td-keys__list { display: flex; flex-wrap: wrap; gap: 8px; }
.td-keys__list a {
    padding: 8px 14px; border-radius: 999px; background: #f1f5f9; color: #334155;
    font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.td-keys__list a:hover { background: #e2e8f0; color: var(--p1-brand-1, #0068ff); }

.td-mbar { display: none; }

@media (max-width: 991px) {
    .td-agent__phone.p2-listing__phone,
    .td-mbar__phone.p2-listing__phone { font-size: 14px; height: 42px; padding: 0 14px; }
    .td-agent__phone.p2-listing__phone b,
    .td-mbar__phone.p2-listing__phone b { display: inline; font-size: 14px; }
    .td-agent__phone.p2-listing__phone span,
    .td-mbar__phone.p2-listing__phone span { font-size: 14px; }
}

@media (max-width: 1199px) {
    .td-related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .td-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "gal" "side" "body" "more";
        gap: 18px;
    }
    .td-side { position: static; max-height: none; overflow: visible; }
    .td-strip { flex-wrap: nowrap; gap: 12px; }
    .td-strip__facts { gap: 12px 16px; }
    .td-strip__it { min-width: 0; }
    .td-strip__it strong,
    .td-strip__price { font-size: 18px; }
    .td-strip__acts { margin-left: 0; }
    .td-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 20px;
    }
    .td-meta__it { flex: none; }
    .td-facts { grid-template-columns: 1fr; column-gap: 0; }
    .td-facts li { grid-template-columns: 22px minmax(108px, 1.2fr) minmax(0, 1fr); gap: 10px 12px; }
    .td-related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
    .td-rcard__title { font-size: 13.5px; min-height: 0; }
    .td-rcard__body { padding: 8px 9px 10px; }
    .td-page { padding-bottom: 96px; }
    .td-mbar {
        display: flex; gap: 8px; align-items: center;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        padding: 10px var(--p1-gutter, 16px) calc(10px + env(safe-area-inset-bottom, 0px));
        background: #fff; box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
    }
    .td-mbar__zalo, .td-mbar__phone {
        flex: 1; display: flex; justify-content: center; align-items: center;
        height: 42px; border-radius: 999px; font-weight: 700; text-decoration: none;
    }
    .td-mbar__zalo { border: 1px solid #d5dbe3; color: #0b1f44; background: #fff; }
}

/* ================= NÚT LÊN ĐẦU TRANG (tham khảo TRAVEL/P2) ================= */
.fab-group {
    position: fixed;
    bottom: 120px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99990;
    pointer-events: none;
}

.fab-group .fab-btn {
    pointer-events: auto;
}

.btn-back-to-top {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--p1-accent-grad, linear-gradient(135deg, #0068ff 0%, #4a6cf7 100%));
    box-shadow: 0 4px 14px rgba(0, 104, 255, .28);
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .3s cubic-bezier(.2, 0, 0, 1),
        visibility .3s cubic-bezier(.2, 0, 0, 1),
        transform .3s cubic-bezier(.2, 0, 0, 1);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
}

.btn-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    transform: scale(1.08);
    color: #fff;
}

.btn-back-to-top.is-visible:hover {
    transform: scale(1.08);
}

@media (max-width: 767.98px) {
    /* Tránh chồng thanh liên hệ đáy / td-mbar chi tiết tin */
    .fab-group {
        bottom: 100px;
        right: 14px;
    }
}

