*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Brand colors — overridable per project */
    --red-dark:      #b71c1c;
    --navy:          #1a1a2e;
    --dark:          #0d1b2a;
    --dark2:         #1b3a5c;
    --grad:          linear-gradient(135deg, red, #e67e22);

    /* Text */
    --txt:  #1a1a1a;
    --t2:   #344054;
    --t3:   #667085;
    --t4:   #98a2b3;

    /* Surface */
    --bg:    #f5f6f8;
    --white: #ffffff;
    --card:  #ffffff;
    --bdr:   #eaecf0;

    /* Radius & shadow */
    --r:   8px;
    --rlg: 14px;
    --sh:  0 2px 8px rgba(0, 0, 0, .08);
    --sh2: 0 8px 32px rgba(0, 0, 0, .12);

    /* Typography scale */
    --fs-h1:   28px;
    --fs-h2:   24px;
    --fs-h3:   20px;
    --fs-h4:   18px;
    --fs-h5:   16px;
    --fs-body: 16px;
    --fs-menu: 16px;
    --fs-tab:  16px;

    /* Footer */
    --footer-bg: #b90a0a;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    font-size: var(--fs-body);
    color: var(--txt);
    background: white;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }
img  { max-width: 100%; display: block; object-fit: cover; }
a    { text-decoration: none; color: inherit; }

/* ── HEADINGS ─────────────────────────────────────────────── */
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.2; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.3; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.35; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.4; }
h5 { font-size: var(--fs-h5); font-weight: 600; line-height: 1.4; }
/*p  { font-size: var(--fs-body); }*/

/* ── UTILITY ──────────────────────────────────────────────── */
.container      { max-width: 95%; margin: 0 auto; padding: 0 20px 40px 0; }
.container-lg   { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section        { padding: 36px 0; }
.section-white  { background: var(--white); }
.section-gray   { background: white; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: var(--r);
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all .18s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.btn-primary  { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-red      { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline  { background: #fff; color: var(--t2); border: 1.5px solid var(--bdr); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── BADGE / PILL ─────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 12px;
}
.badge-green  { background: #dcfce7; color: #166534; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-gray   { background: #f3f4f6; color: #374151; }

/* ============================================================
   NAVBAR
   ============================================================ */
.fe-nav {
    background: var(--white);
    border-bottom: 1px solid var(--bdr);
    position: sticky;
    top: 0;
    z-index: 400;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.fe-nav-inner {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 16px;
}

/* Logo */
.fe-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
    margin-right: 16px;
}
.fe-logo-img   { height: 38px; width: auto; object-fit: contain; }
.fe-logo-icon  {
    width: 28px; height: 28px;
    background: var(--red);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.fe-logo-icon svg { width: 16px; height: 16px; fill: #fff; }
.fe-logo-name { font-size: var(--fs-h4); font-weight: 900; color: var(--txt); }
.fe-logo-name span { color: var(--red); }
.fe-logo-sub  { font-size: var(--fs-sm); color: var(--t4); display: block; line-height: 1; margin-top: 1px; }

/* ── DESKTOP MENU ─────────────────────────────────────────── */
.fe-menu {
    display: flex;
    gap: 20px;
    flex: 1;
    align-items: center;
    text-transform: uppercase;
    justify-content: center;
}

/* Mặc định: trong suốt, chữ tối */
.fe-menu a {
    padding: 7px 13px;
    border-radius: 8px;
    font-size: var(--fs-menu);
    font-weight: 500;
    color: var(--t2);
    background: transparent;        /* tường minh: không có nền mặc định */
    transition: color .15s, background .15s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

/* Chỉ khi hover HOẶC active mới có nền + đổi màu chữ */
.fe-menu a:hover,
.fe-menu a.active {
    color: var(--red);

}

/* Right side */
.fe-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }

.fe-login-btn {
    padding: 8px 18px;
    background: var(--red);
    color: #fff;
    border-radius: var(--r);
    font-size: var(--fs-menu);
    font-weight: 700;
    transition: background .18s;
    white-space: nowrap;
}
.fe-login-btn:hover { background: var(--red); }

.fe-ham { display: none; background: none; border: none; cursor: pointer; padding: 4px; margin-left: 4px; }
.fe-ham i { font-size: 20px; color: var(--txt); }

@media (max-width: 900px) {
    .fe-menu { display: none; }
    .fe-ham  { display: block; }
}

/* ── USER MENU ────────────────────────────────────────────── */
.user-menu { position: relative; display: flex; align-items: center; }

.user-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border-radius: 30px;
    border: 1.5px solid var(--bdr);
    background: #fff;
    cursor: pointer;
    transition: all .18s;
    max-width: 220px;
}
.user-trigger:hover { border-color: var(--red); box-shadow: 0 2px 10px rgba(0, 0, 0, .09); }

.user-av {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--fs-sm); font-weight: 800; color: #fff;
    flex-shrink: 0; overflow: hidden;
}
.user-av img { width: 100%; height: 100%; object-fit: cover; }

.user-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: left; }
.user-name {
    font-size: var(--fs-sm); font-weight: 700; color: var(--txt);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px;
}
.user-role { font-size: var(--fs-sm); color: var(--t3); white-space: nowrap; font-weight: 500; }

.user-caret { font-size: var(--fs-sm); color: var(--t3); flex-shrink: 0; transition: transform .2s; }
.user-trigger.open .user-caret { transform: rotate(180deg); }

/* Dropdown */
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--bdr);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .13);
    z-index: 9999;
    overflow: hidden;
    animation: udFadeIn .18s ease;
}
.user-dropdown.open { display: block; }

@keyframes udFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ud-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--bdr);
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, rgba(229, 57, 53, .06), #fff);
}
.ud-av-lg {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: var(--fs-h5); font-weight: 800; color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.ud-av-lg img { width: 100%; height: 100%; object-fit: cover; }
.ud-fullname  { font-size: var(--fs-body); font-weight: 800; color: var(--txt); margin-bottom: 2px; }
.ud-role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: var(--fs-sm); font-weight: 700;
    background: rgba(229, 57, 53, .1); color: var(--red);
}

.ud-body { padding: 6px 0; }
.ud-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    color: var(--t2);
    transition: all .15s;
    cursor: pointer; text-decoration: none;
    border: none; background: none;
    width: 100%; text-align: left;
    font-family: inherit;
    font-size: 14px;
}
.ud-item:hover { background: #f8f8f8; color: var(--red); }
.ud-item i { width: 16px; text-align: center; color: var(--t3); font-size: var(--fs-sm); flex-shrink: 0; }
.ud-item:hover i { color: var(--red); }
.ud-item.danger { color: var(--red); }
.ud-item.danger i { color: var(--red); }
.ud-item.danger:hover { background: #fff5f5; }
.ud-divider { height: 1px; background: var(--bdr); margin: 4px 0; }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mm-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0, 0, 0, .5);
}
.mm-overlay.open { display: block; }

.mm-panel {
    position: fixed; top: 0; left: 0;
    width: 280px; height: 100vh;
    background: #fff; z-index: 501;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.mm-overlay.open .mm-panel { transform: translateX(0); }

.mm-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bdr);
}
.mm-logo { font-size: var(--fs-h4); font-weight: 900; color: var(--txt); }
.mm-logo span { color: var(--red); }
.mm-close-btn { background: none; border: none; cursor: pointer; padding: 4px; color: var(--t3); font-size: 18px; }

.mm-user {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bdr);
    background: rgba(229, 57, 53, .04);
}
.mm-user-av {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--fs-sm); font-weight: 700; color: #fff;
    flex-shrink: 0; overflow: hidden;
}
.mm-user-av img { width: 100%; height: 100%; object-fit: cover; }
.mm-user-name { font-size: var(--fs-body); font-weight: 700; color: var(--txt); }
.mm-user-role { font-size: var(--fs-sm); color: var(--t3); }

.mm-body a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px;
    font-size: 13px; color: var(--txt);
    border-bottom: 1px solid #f4f4f4;
    transition: all .15s;
}
.mm-body a:hover { color: var(--red); background: #fff5f5; }
.mm-body a i { width: 15px; color: var(--red); font-size: var(--fs-sm); flex-shrink: 0; }

.mm-login {
    margin: 14px 18px; display: block;
    padding: 11px; background: var(--red); color: #fff;
    border-radius: var(--r); text-align: center;
    font-weight: 700; font-size: 13px;
    transition: opacity .15s;
}
.mm-login:hover { opacity: .9; }

.mm-logout-btn {
    margin: 10px 0 0 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: #111;
}

@media (max-width: 768px) {
    /*.hero {*/
    /*    height: 300px;*/
    /*}*/
    .container {
        max-width: 100%;
        /* Padding cân đối 2 bên trên mobile: .container gốc để padding-left:0
           (chỉ có padding-right:20px) → nội dung dính mép trái và hở ~20px trắng
           bên phải. Ghi đè symmetric để hết lệch. Giữ padding-bottom:40px. */
        padding: 0 16px 40px;
    }
}

.hero-slides { display: flex; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
/* flex:0 0 100% + min-width:0 → mỗi slide đúng đúng 1 viewport, không để ảnh gốc (rộng) đẩy slide phình ra
   khiến translateX(-N00%) lệch. min-width:0 huỷ min-content (bề rộng ảnh) mặc định của flex item. */
.hero-slide  { flex: 0 0 100%; min-width: 0; height: 100%; position: relative; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
}

.hero-content {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    padding: 0 64px; z-index: 2;
}
@media (max-width: 768px) { .hero-content { padding: 0 24px; } }

.hero-text { max-width: 520px; color: #fff; }
.hero-title {
    font-size: var(--fs-h1); font-weight: 900; line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
@media (max-width: 768px) { .hero-title { font-size: var(--fs-h2); } }
.hero-sub { font-size: var(--fs-body); color: rgba(255, 255, 255, .85); }

.hero-prev, .hero-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,.18);
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff; width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .18s;
    backdrop-filter: blur(4px);
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.32); }
.hero-prev svg, .hero-next svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none; stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
}

.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.hero-dot  { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: all .2s; border: none; }
.hero-dot.on { background: #fff; width: 22px; border-radius: 4px; }

/* ============================================================
   STATS BAR (homepage)
   ============================================================ */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--bdr); padding: 28px 0; }
.stats-inner {
    max-width: 95%; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 640px) { .stats-inner { grid-template-columns: 1fr 1fr; gap: 20px 0; } }

.stat-item { text-align: center; padding: 0 16px; border-right: 1px solid var(--bdr); }
.stat-item:last-child { border-right: none; }
.stat-icon { width: 48px; height: 48px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.stat-icon svg { width: 32px; height: 32px; stroke: var(--t2); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stat-num { font-size: 30px; font-weight: 900; color: var(--txt); line-height: 1; margin-bottom: 4px; }
.stat-lbl { font-size: var(--fs-sm); color: var(--t3); }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.sec-head  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sec-title { font-size: var(--fs-h2); font-weight: 800; color: var(--txt); }
.sec-link  { font-size: var(--fs-body); font-weight: 600; color: var(--red); }
.sec-link:hover { text-decoration: underline; }

/* Nút "Xem tất cả" đặt giữa, phía dưới mỗi section (thay cho link góc phải) */
.sec-more { display: flex; justify-content: center; margin-top: 32px; }
.sec-more-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 16px; border: 1px solid var(--red); border-radius: 8px;
    color: var(--red); font-weight: 500; font-size: var(--fs-body);
    transition: all .18s;
}
.sec-more-btn:hover { background: var(--red); color: #fff; }

.sec-head-center  { text-align: center; margin-bottom: 32px; }
.sec-eyebrow {
    font-size: var(--fs-sm); font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--red);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 6px;
}
.sec-eyebrow::before, .sec-eyebrow::after {
    content: ''; display: inline-block;
    width: 32px; height: 2.5px;
    background: var(--red); border-radius: 2px;
}
.sec-sub { font-size: var(--fs-body); color: var(--t3); }

/* ============================================================
   PROPERTY CARDS (homepage & listings)
   ============================================================ */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}
@media (max-width: 1024px) { .prop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .prop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .prop-grid { grid-template-columns: 1fr; } }

.pcard {
    background: var(--white);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--sh);
    transition: box-shadow .2s;
    border: 1px solid var(--bdr);
    display: block;
}
.pcard:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .13); }

.pcard-img { aspect-ratio: var(--media-ratio); overflow: hidden; background: #e8e8e8; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }

.pcard-body { padding: 12px 14px; background: #FDFBF2; height: 100%;}
.pcard-name {
    font-size: var(--fs-body); font-weight: 700; color: var(--red);
    margin-bottom: 8px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pcard-row { display: flex; gap: 4px; margin-bottom: 4px; flex-wrap: wrap; }
.pcard-row span { font-size: var(--fs-sm); color: var(--t3); }
.pcard-row span strong { color: var(--t2); font-weight: 600; }
.pcard-row--icon { flex-wrap: nowrap; align-items: center; gap: 4px; }
.pcard-row--icon svg { width: 12px; height: 12px; stroke: var(--t3); fill: none; stroke-width: 2; flex-shrink: 0; }
.pcard-loc {
    font-size: var(--fs-sm); color: var(--t3);
    display: flex; align-items: flex-start; gap: 4px; margin-top: 2px;
}
.pcard-loc svg { width: 12px; height: 12px; stroke: var(--t3); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.pcard-price { font-size: var(--fs-body); font-weight: 700; color: var(--red); margin-top: 7px; padding-top: 7px; border-top: 1px solid #f5f5f5; }

/* ============================================================
   FOOTER
   ============================================================ */
.fe-footer {
    background: var(--red);
    color: #fff;
    padding: 0 0 20px;
}

.fe-footer .fe-fcol {
    padding-top: 44px;
}
.fe-footer-inner {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}

.fe-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}
@media (max-width: 1000px) {
    .fe-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}
@media (max-width: 600px)  {
    .fe-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
    }
    .fe-footer-grid > div:first-child {
        grid-column: span 2;
    }
    .fe-footer-grid > div:nth-child(4) {
        grid-column: span 2;
    }
}

.fe-brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}
.fe-brand-name {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fe-brand-name .icon {
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fe-brand-name .icon svg {
    width: 15px;
    height: 15px;
    fill: #fff;
}
.fe-brand-name span {
    color: rgba(255,255,255,.75);
}
.fe-brand-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 16px;
}

.fe-fcontact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fe-fcontact a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    transition: color .15s;
    text-decoration: none;
}
.fe-fcontact a:hover {
    color: #fff;
}
.fe-fcontact i {
    color: #fff;
    font-size: 13px;
    width: 16px;
    flex-shrink: 0;
    text-align: center;
}

.fe-socials {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.fe-social {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: all .2s ease;
}
.fe-social:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}
.fe-social svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}
.fe-social svg.fe-zalo-svg {
    width: 30px !important;
    height: 24px !important;
}

.fe-fcol h4 {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 18px;
    border-bottom: none;
    padding-bottom: 0;
}
.fe-fcol a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    transition: color .15s;
    text-decoration: none;
}
.fe-fcol a:hover {
    color: #fff;
}

.fe-fbottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 16px 0;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px;
}
.fe-fbottom p { font-size: var(--fs-sm); color: rgba(255,255,255,.8); }
.fe-fbottom-links { display: flex; gap: 16px; }
.fe-fbottom-links a { font-size: var(--fs-sm); color: rgba(255,255,255,.8); transition: color .15s; }
.fe-fbottom-links a:hover { color: #fff; }

/* ============================================================
   STICKY FLOATING BUTTONS
   ============================================================ */
.fe-sticky { position: fixed; right: 16px; bottom: 80px; display: flex; flex-direction: column; gap: 10px; z-index: 150; }
.fe-sticky-btn {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.22);
    transition: transform .18s;
    text-decoration: none; border: none; cursor: pointer;
}
.fe-sticky-btn:hover { transform: scale(1.1); }
.fe-sticky-phone { background: var(--red); animation: fePulse 2s infinite; }
.fe-sticky-zalo  { background: #0068ff; }
.fe-sticky-top   { background: rgba(0,0,0,.32); font-size: 15px; display: none; }

@keyframes fePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,.4); }
    50%       { box-shadow: 0 0 0 9px rgba(229,57,53,0); }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px; font-size: var(--fs-sm); color: #aaa;
    margin-bottom: 16px; list-style: none; padding: 0;
}
.breadcrumb a { color: var(--red) !important }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep     { color: #ccc; }
.breadcrumb .current { color: #444; font-weight: 500; }

/* ============================================================
   LISTING DETAIL PAGE
   ============================================================ */
.detail-container { max-width: 1230px; margin: 0 auto; padding: 24px 20px 60px; background: #f5f6f8; }

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}
.detail-main    { min-width: 0; }
.detail-sidebar { position: sticky; top: 80px; min-width: 0; }

@media (max-width: 960px) {
    .detail-layout   { grid-template-columns: 1fr; }
    .detail-sidebar  { position: static; }
}

/* Cards */
.d-card { background: #fff; border-radius: var(--rlg); border: 1px solid var(--bdr); overflow: hidden; margin-bottom: 16px; }
.d-card:last-child { margin-bottom: 0; }
.d-card-head { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; background: var(--red);}
.d-card-head h2 { margin: 0; font-size: var(--fs-h5); font-weight: 700; color: #fff }
.d-card-body { padding: 20px; }

/* Gallery */
.gallery-wrap { border-radius: var(--rlg); overflow: hidden; background: #111; margin-bottom: 16px; position: relative; }
.gallery-main { width: 100%; height: 400px; object-fit: cover; display: block; cursor: pointer; transition: opacity .2s; }
.gallery-main:hover { opacity: .94; }
.gallery-no-img { height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,.3); }
.gallery-no-img svg { width: 52px; height: 52px; stroke: currentColor; fill: none; stroke-width: 1; }
.gallery-count { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: var(--fs-sm); font-weight: 600; pointer-events: none; }
.gallery-strip { display: flex; gap: 6px; padding: 10px; background: rgba(0,0,0,.45); position: absolute; bottom: 0; left: 0; right: 0; overflow-x: auto; scrollbar-width: none; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip .thumb { width: 72px; height: 50px; border-radius: 7px; object-fit: cover; cursor: pointer; border: 2.5px solid transparent; opacity: .65; transition: all .2s; flex-shrink: 0; }
.gallery-strip .thumb:hover,
.gallery-strip .thumb.active { border-color: var(--red); opacity: 1; }
.gallery-more { width: 72px; height: 50px; border-radius: 7px; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; color: #fff; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; flex-shrink: 0; }

/* Title block in detail */
.d-card-body h1 { font-size: var(--fs-h3); font-weight: 800; color: var(--txt); line-height: 1.4; margin: 0 0 8px; }

.type-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 10px; }
.badge-transfer { background: #dcfce7; color: #166534; }
.badge-rental   { background: #dbeafe; color: #1e40af; }

.price-banner { margin: 14px 0 4px; }
.price-main   { font-size: 26px; font-weight: 900; color: var(--red); line-height: 1.2; }
.price-sub    { font-size: var(--fs-body); color: #888; margin-top: 2px; }

/* Quick stats */
.quick-stats { display: flex; gap: 0; border: 1px solid var(--bdr); border-radius: 12px; overflow: hidden; margin-top: 14px; background: #fafafa; }
.qs-item { flex: 1; padding: 12px 8px; text-align: center; border-right: 1px solid #f0f0f0; min-width: 0; }
.qs-item:last-child { border-right: none; }
.qs-icon  { font-size: 18px; margin-bottom: 2px; }
.qs-label { font-size: var(--fs-sm); color: #aaa; margin-bottom: 2px; }
.qs-val   { font-size: var(--fs-body); font-weight: 700; color: var(--txt); }

/* Prop table 2 cols */
.prop-grid-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 600px) { .prop-grid-wrap { grid-template-columns: 1fr; } }
.prop-table { width: 100%; border-collapse: collapse; }
.prop-table tr { border-bottom: 1px solid #f4f4f4; }
.prop-table tr:last-child { border-bottom: none; }
.prop-table td { padding: 10px 4px; font-size: var(--fs-sm); vertical-align: middle; }
.prop-table .prop-icon { width: 32px; color: #bbb; text-align: center; }
.prop-table .prop-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prop-table .prop-label { color: #888; font-size: var(--fs-sm); }
.prop-table .prop-val   { font-weight: 600; color: var(--txt); text-align: right; font-size: var(--fs-sm); }

/* Amenities */
.amenity-list { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: #fff5f5; border: 1px solid #fecaca; border-radius: 20px; font-size: var(--fs-sm); color: #c0392b; font-weight: 500; }
.amenity-chip::before { content: '✓'; font-weight: 700; }

/* Description */
.description-body { font-size: var(--fs-body); line-height: 1.8; color: #444; white-space: pre-wrap; }

/* Price history */
.price-history-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f4f4f4; font-size: var(--fs-sm); }
.price-history-row:last-child { border-bottom: none; }
.ph-date  { color: #aaa; font-size: var(--fs-sm); }
.ph-old   { color: #888; text-decoration: line-through; }
.ph-new   { color: var(--red); font-weight: 700; }
.ph-arrow { color: #ccc; margin: 0 6px; }

/* Sidebar price box */
.sidebar-price-box { background: linear-gradient(135deg, red, #e67e22); color: #fff; border-radius: var(--rlg); padding: 20px; margin-bottom: 16px; }
.spb-label { font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: .85; margin-bottom: 6px; }
.spb-price { font-size: 28px; font-weight: 900; line-height: 1.2; }
.spb-per   { font-size: var(--fs-sm); opacity: .8; margin-top: 3px; }

/* Sidebar info rows */
.sidebar-info-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #f4f4f4; font-size: var(--fs-sm); gap: 8px; }
.sidebar-info-row:last-child { border-bottom: none; }
.sir-label { color: #888; white-space: nowrap; }
.sir-val   { font-weight: 600; color: var(--txt); text-align: right; }

/* Agent */
.agent-card-inner { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.agent-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, red, #e67e22); display: flex; align-items: center; justify-content: center; font-size: var(--fs-h5); font-weight: 800; color: #fff; flex-shrink: 0; }
.agent-name     { font-size: var(--fs-body); font-weight: 700; color: var(--txt); }
.agent-phone    { font-size: var(--fs-sm); color: #888; margin-top: 2px; }
.agent-verified { font-size: var(--fs-sm); color: #16a34a; font-weight: 600; margin-top: 3px; display: block; }

/* CTA buttons */
.cta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 10px; font-size: var(--fs-body); font-weight: 700; cursor: pointer; border: none; text-decoration: none; transition: all .15s; margin-bottom: 8px; }
.cta-btn:last-child { margin-bottom: 0; }
.cta-call { background: linear-gradient(135deg, red, #e67e22); color: #fff; }
.cta-call:hover { opacity: .9; }
.cta-zalo { background: #0068ff; color: #fff; }
.cta-zalo:hover { opacity: .9; }
.cta-edit { background: #fff; color: #555; border: 1.5px solid var(--bdr); }
.cta-edit:hover { border-color: var(--red); color: var(--red); }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img  { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lb-close { position: fixed; top: 16px; right: 20px; color: #fff; font-size: 34px; cursor: pointer; background: none; border: none; line-height: 1; }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); color: #fff; font-size: 34px; cursor: pointer; background: rgba(255,255,255,.12); border: none; padding: 12px 16px; border-radius: 8px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: var(--fs-sm); }

/* ============================================================
   LISTINGS LIST PAGE (cho-thue / chuyen-nhuong)
   ============================================================ */
.page-hero { background: #fff; padding: 44px 0 32px; color: #000; }
.page-hero-inner { max-width: 95%; margin: 0 auto; padding: 0 24px; }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 900; margin-bottom: 8px; }
.page-hero p  { font-size: var(--fs-body); color: rgba(255,255,255,.6); }

.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; max-width: 95%; margin: 28px auto; padding: 0 24px; }
@media (max-width: 900px) { .listing-layout { grid-template-columns: 1fr; } }

/* Filter sidebar */
.filter-sidebar { background: var(--card); border: 1px solid var(--bdr); border-radius: var(--rlg); padding: 20px; box-shadow: var(--sh); position: sticky; top: 84px; }
@media (max-width: 900px) { .filter-sidebar { position: static; } }

.sf-title { font-size: var(--fs-body); font-weight: 700; color: var(--txt); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.sf-title a { font-size: var(--fs-body); color: var(--red); }
.sf-group { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--bdr); }
.sf-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sf-label { font-size: var(--fs-sm); font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 7px; }
.sf-select, .sf-input {
    width: 100%; padding: 9px 12px;
    border: 1.5px solid var(--bdr); border-radius: 9px;
    font-size: var(--fs-sm); color: var(--txt);
    outline: none; font-family: inherit;
    appearance: none; background: #fafafa;
    transition: border-color .2s;
}
.sf-select:focus, .sf-input:focus { border-color: var(--red); background: #fff; }
.sf-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sf-check-grid { display: flex; flex-direction: column; gap: 7px; }
.sf-check { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--t2); cursor: pointer; }
.sf-check input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--red); cursor: pointer; flex-shrink: 0; }
.sf-btn { width: 100%; padding: 11px; background: var(--grad); color: #fff; border: none; border-radius: 9px; font-size: var(--fs-body); font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 7px; transition: all .18s; margin-top: 4px; }
.sf-btn:hover { opacity: .9; }
.sf-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Results header */
.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.results-count { font-size: var(--fs-body); color: var(--t3); }
.results-count strong { color: var(--txt); font-weight: 700; }
.results-right { display: flex; align-items: center; gap: 10px; }
.results-sort select { padding: 7px 12px; border: 1.5px solid var(--bdr); border-radius: 8px; font-size: var(--fs-sm); color: var(--txt); outline: none; font-family: inherit; appearance: none; background: #fff; }

/* View toggle */
.view-toggle { display: flex; gap: 3px; }
.vt-btn { width: 30px; height: 30px; border-radius: 7px; border: 1.5px solid var(--bdr); background: #fff; color: var(--t3); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; }
.vt-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.vt-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Listing grid */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
@media (max-width: 1100px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .listing-grid { grid-template-columns: 1fr; } }
.listing-grid.list-view { grid-template-columns: 1fr; }

/* Listing card */
.lcard { background: var(--card); border-radius: var(--rlg); overflow: hidden; box-shadow: var(--sh); border: 1px solid var(--bdr); transition: all .22s; display: flex; flex-direction: column; color: inherit; }
.lcard:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.lcard-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #f0f0f0; flex-shrink: 0; }
.lcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lcard:hover .lcard-img img { transform: scale(1.05); }
.lcard-badge { position: absolute; top: 10px; left: 10px; padding: 3px 11px; border-radius: 20px; font-size: var(--fs-sm); font-weight: 700; color: #fff; }
.lb-transfer { background: var(--red); }
.lb-rent     { background: #3b82f6; }
.lcard-fav { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; }
.lcard-fav:hover { background: #fff; transform: scale(1.1); }
.lcard-fav svg { width: 14px; height: 14px; stroke: red; fill: none; stroke-width: 2; }
.lcard-body { padding: 13px 15px; flex: 1; display: flex; flex-direction: column; }
.lcard-price { font-size: var(--fs-h5); font-weight: 800; margin-bottom: 5px; }
.lcard-price.transfer { color: var(--red); }
.lcard-price.rent     { color: #3b82f6; }
.lcard-name  { font-size: var(--fs-body); font-weight: 600; color: var(--txt); margin-bottom: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4; }
.lcard-meta  { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.lcard-meta span { font-size: var(--fs-sm); color: var(--t3); display: flex; align-items: center; gap: 4px; }
.lcard-meta svg  { width: 12px; height: 12px; stroke: var(--t4); fill: none; stroke-width: 2; flex-shrink: 0; }
.lcard-loc   { font-size: var(--fs-sm); color: var(--t3); display: flex; align-items: center; gap: 5px; margin-top: auto; }
.lcard-loc svg { width: 12px; height: 12px; stroke: red; fill: none; stroke-width: 2; flex-shrink: 0; }
.lcard-date  { font-size: var(--fs-sm); color: var(--t4); margin-top: 7px; }

/* List view overrides */
.listing-grid.list-view .lcard { flex-direction: row; }
.listing-grid.list-view .lcard-img { width: 240px; height: 170px; flex-shrink: 0; }
@media (max-width: 600px) {
    .listing-grid.list-view .lcard { flex-direction: column; }
    .listing-grid.list-view .lcard-img { width: 100%; height: 190px; }
}
.listing-grid.list-view .lcard-body  { padding: 16px 18px; }
.listing-grid.list-view .lcard-name  { white-space: normal; font-size: var(--fs-h5); font-weight: 700; margin-bottom: 10px; }
.listing-grid.list-view .lcard-price { font-size: var(--fs-h4); }

/* Pagination */
.pagi-wrap { margin-top: 24px; display: flex; justify-content: center; }

/* ============================================================
   PROJECTS LIST PAGE
   ============================================================ */
.pt-hero { background: #fff; padding: 32px 0 20px; border-bottom: none; }
.pt-bc { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #888; margin-bottom: 20px; flex-wrap: wrap; }
.pt-bc a { color: #888; transition: color .15s; }
.pt-bc a:hover { color: var(--red, #e53935); }
.pt-bc .sep { color: #ccc; }
.pt-title { font-size: 1.5rem; font-weight: 800; color: #1a1a2e; text-transform: uppercase; letter-spacing: .5px; display: inline-block; padding-bottom: 12px; border-bottom: 3px solid var(--red, #e53935); }
.pt-title::after { display: none !important; }

/* Filter bar (projects) */
.fbar { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); position: sticky; top: 60px; z-index: 300; }
.fbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; overflow: visible; scrollbar-width: none; }
.fbar-inner::-webkit-scrollbar { display: none; }

.fb-search { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-right: 1px solid var(--bdr); min-width: 220px; flex-shrink: 0; }
.fb-search svg { width: 15px; height: 15px; stroke: #aaa; fill: none; stroke-width: 2; flex-shrink: 0; }
.fb-search input { border: none; outline: none; font-size: var(--fs-body); color: var(--txt); font-family: inherit; background: transparent; width: 100%; min-width: 160px; }
.fb-search input::placeholder { color: #aaa; }

.fb-drop { position: relative; flex-shrink: 0; }
.fb-drop-btn { display: flex; align-items: center; gap: 6px; padding: 14px 18px; font-size: var(--fs-body); font-weight: 400; color: #444; cursor: pointer; border-right: 1px solid var(--bdr); white-space: nowrap; user-select: none; transition: color .15s; background: transparent; border-top: none; border-left: none; border-bottom: none; font-family: inherit; }
.fb-drop-btn:hover, .fb-drop-btn.active { color: var(--red); }
.fb-drop-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; transition: transform .2s; }
.fb-drop-btn.open svg.caret { transform: rotate(180deg); }
.fb-drop-val { color: var(--red); font-weight: 700; margin-left: 2px; font-size: var(--fs-body); }

.fb-panel { display: none; position: absolute; top: 0; left: 0; min-width: 260px; background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.16); z-index: 9999; padding: 14px; border: 1px solid var(--bdr); }
.fb-panel.open { display: block; }
.fb-panel-title { font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #aaa; margin-bottom: 10px; }
.fb-option-list { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.fb-option { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 7px; cursor: pointer; font-size: var(--fs-body); color: #444; transition: background .12s, color .12s; user-select: none; }
.fb-option:hover  { background: #fff5f0; color: var(--red); }
.fb-option.selected { background: #fff5f0; color: var(--red); font-weight: 600; }
.fb-option svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; opacity: .6; }
.fb-city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.fb-price-opts { display: flex; flex-direction: column; gap: 2px; }
.fb-price-opt { padding: 9px 12px; border-radius: 7px; cursor: pointer; font-size: var(--fs-body); color: #444; transition: background .12s, color .12s; user-select: none; }
.fb-price-opt:hover  { background: #fff5f0; color: var(--red); }
.fb-price-opt.selected { background: #fff5f0; color: var(--red); font-weight: 600; }
.fb-status-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.fb-status-pill { padding: 7px 16px; border-radius: 20px; border: 1.5px solid #e0e0e0; font-size: var(--fs-body); cursor: pointer; transition: all .15s; color: #555; user-select: none; }
.fb-status-pill:hover  { border-color: var(--red); color: var(--red); }
.fb-status-pill.selected { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.fb-panel-footer { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.fb-reset-btn { flex: 1; padding: 9px 12px; border: 1.5px solid #e0e0e0; border-radius: 8px; font-size: var(--fs-sm); font-weight: 600; color: #666; cursor: pointer; background: #fff; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .15s; line-height: 1; }
.fb-reset-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.fb-reset-btn:hover { border-color: var(--red); color: var(--red); }
.fb-apply-btn { flex: 2; padding: 9px 12px; background: var(--red); border: none; border-radius: 8px; font-size: var(--fs-sm); font-weight: 700; color: #fff; cursor: pointer; font-family: inherit; transition: opacity .15s; line-height: 1; }
.fb-apply-btn:hover { opacity: .88; }
.fb-reset-all { display: flex; align-items: center; gap: 6px; padding: 14px 16px; font-size: var(--fs-body); color: #aaa; cursor: pointer; white-space: nowrap; border: none; background: none; font-family: inherit; transition: color .15s; flex-shrink: 0; }
.fb-reset-all:hover { color: var(--red); }
.fb-reset-all svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Projects grid */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .pgrid { grid-template-columns: 1fr; } }

/* Project card */
.proj-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); transition: all .22s; border: 1px solid var(--bdr); display: block; color: inherit; }
.proj-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.proj-card-img { aspect-ratio: var(--media-ratio); overflow: hidden; background: #eee; position: relative; }
.proj-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.proj-card:hover .proj-card-img img { transform: scale(1.05); }

.proj-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}
/* Badge trạng thái dự án — màu lấy từ token variable.css (fallback = giá trị gốc). */
.badge-mo_ban {
    background: var(--bg-prj-mo-ban, #e7fff4) !important;
    color: var(--color-prj-mo-ban, #07a35d) !important;
}
.badge-sap_mo_ban {
    background: var(--bg-prj-sap-mo-ban, #fff7ed) !important;
    color: var(--color-prj-sap-mo-ban, #f97316) !important;
}
.badge-sap_ra_mat {
    background: var(--bg-prj-sap-ra-mat, #eef2ff) !important;
    color: var(--color-prj-sap-ra-mat, #4f46e5) !important;
}
.badge-het_hang {
    background: var(--bg-prj-het-hang, #fef2f2) !important;
    color: var(--color-prj-het-hang, #ef4444) !important;
}
.badge-tam_dung {
    background: var(--bg-prj-tam-dung, #f3f4f6) !important;
    color: var(--color-prj-tam-dung, #4b5563) !important;
}
.badge-hoan_thanh {
    background: var(--bg-prj-hoan-thanh, #eff6ff) !important;
    color: var(--color-prj-hoan-thanh, #2563eb) !important;
}
.badge-dong_ban {
    background: var(--bg-prj-dong-ban, #f3f4f6) !important;
    color: var(--color-prj-dong-ban, #4b5563) !important;
}
.proj-card-body { padding: 12px 14px 14px; background: #FDFBF2; height: 100%;}
.proj-card-name { text-transform: uppercase; font-size: var(--fs-body); font-weight: 700; color: var(--red); margin-bottom: 8px; line-height: 2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-card-dev  { font-size: var(--fs-sm); color: var(--xam); margin-bottom: 7px; display: flex; align-items: center; gap: 4px; }
.proj-card-dev svg { width: 11px; height: 11px; stroke: #aaa; fill: none; stroke-width: 2; flex-shrink: 0; }
.proj-card-type { font-size: var(--fs-sm); color: var(--xam); margin-bottom: 7px; display: flex; align-items: flex-start; gap: 4px; line-height: 1.4; }
.proj-card-type svg { width: 11px; height: 11px; stroke: #aaa; fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.proj-card-info { display: flex; gap: 12px; margin-bottom: 6px; }
.proj-card-info-item { font-size: var(--fs-sm); color: #555; }
.proj-card-info-item span { color: var(--xam); }
.proj-card-info-item--icon { display: flex; align-items: center; gap: 4px; }
.proj-card-info-item--icon svg { width: 11px; height: 11px; stroke: #aaa; fill: none; stroke-width: 2; flex-shrink: 0; }
.proj-card-loc  { display: flex; align-items: flex-start; gap: 4px; font-size: var(--fs-sm); color: var(--xam); line-height: 1.4; }
.proj-card-loc svg { width: 11px; height: 11px; stroke: #aaa; fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }

/* Result bar */
.rbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.rbar-count { font-size: var(--fs-sm); color: #666; }
.rbar-count strong { color: var(--txt); font-weight: 800; }
.rbar-sort { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: #666; }
.rbar-sort select { border: 1.5px solid var(--bdr); border-radius: 7px; padding: 6px 10px; font-size: var(--fs-sm); outline: none; color: #333; font-family: inherit; background: #fff; cursor: pointer; }

/* Active filter tags */
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.af-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; background: #fff5f0; border: 1px solid #fecaca; border-radius: 20px; font-size: var(--fs-sm); color: var(--red); font-weight: 600; }
.af-tag button { background: none; border: none; cursor: pointer; padding: 0; font-size: var(--fs-sm); color: var(--red); line-height: 1; display: flex; }

/* Pagination */
.pagi-bar { margin-top: 28px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.pagi-info { font-size: var(--fs-sm); color: #888; }
.pagi { display: flex; align-items: center; gap: 4px; }
.pagi a, .pagi span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 7px; border: 1.5px solid var(--bdr); font-size: var(--fs-sm); color: #555; background: #fff; cursor: pointer; text-decoration: none; transition: all .15s; }
.pagi a:hover { border-color: var(--red); color: var(--red); }
.pagi .pg-cur { background: var(--red); color: #fff; border-color: var(--red); font-weight: 700; }
.pagi .pg-dis { opacity: .35; pointer-events: none; }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-wrap { max-width: 1205px; margin: 0 auto; padding: 32px 0px 30px; }

.profile-header { background: #fff; border-radius: var(--rlg); border: 1px solid var(--bdr); box-shadow: var(--sh); padding: 28px 32px; margin-bottom: 20px; display: flex; align-items: center; gap: 24px; }
@media (max-width: 600px) { .profile-header { flex-direction: column; text-align: center; padding: 20px; } }

.pf-av-wrap { position: relative; flex-shrink: 0; }
.pf-av { width: 90px; height: 90px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 900; color: #fff; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.pf-av img { width: 100%; height: 100%; object-fit: cover; }
.pf-av-edit { position: absolute; bottom: 2px; right: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; cursor: pointer; border: 2px solid #fff; transition: background .15s; }
.pf-av-edit:hover { background: var(--red-dark); }

.pf-hinfo { flex: 1; min-width: 0; }
.pf-name  { font-size: var(--fs-h3); font-weight: 900; color: var(--txt); margin-bottom: 4px; }
.pf-role  { display: inline-block; padding: 3px 12px; border-radius: 20px; background: rgba(229,57,53,.1); color: var(--red); font-size: var(--fs-sm); font-weight: 700; border: 1px solid rgba(229,57,53,.25); margin-bottom: 8px; }
.pf-meta  { display: flex; flex-wrap: wrap; gap: 14px; }
.pf-meta-item { display: flex; align-items: center; gap: 5px; font-size: var(--fs-sm); color: var(--t3); }
.pf-meta-item i { color: var(--red); font-size: var(--fs-sm); width: 14px; text-align: center; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .profile-grid { grid-template-columns: 1fr; } }

.pf-card { background: #fff; border-radius: var(--rlg); border: 1px solid var(--bdr); box-shadow: var(--sh); overflow: hidden; }
.pf-card-head { padding: 16px 20px; border-bottom: 1px solid var(--bdr); display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgba(229,57,53,.04), #fff); }
.pf-card-head i  { color: var(--red); font-size: var(--fs-body); width: 18px; text-align: center; }
.pf-card-head h3 { font-size: var(--fs-body); font-weight: 800; color: var(--txt); }
.pf-card-body { padding: 20px; }

.pf-field { margin-bottom: 16px; }
.pf-field:last-child { margin-bottom: 0; }
.pf-label { display: block; font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--t3); margin-bottom: 5px; }
.pf-input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--bdr); border-radius: 8px; font-size: 13px; color: var(--txt); outline: none; font-family: inherit; transition: border-color .15s; background: #fff; }
.pf-input:focus { border-color: var(--red); }
.pf-input[readonly] { background: #f9fafb; color: var(--t3); cursor: default; }

.pf-btn { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; background: var(--red); color: #fff; border: none; border-radius: 8px; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s; margin-top: 4px; }
.pf-btn:hover { background: var(--red-dark); }

.pf-alert { padding: 12px 16px; border-radius: 8px; font-size: var(--fs-body); font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.pf-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.pf-alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.pw-strength { height: 4px; border-radius: 2px; margin-top: 6px; background: #e0e0e0; overflow: hidden; }
.pw-strength-bar { height: 100%; border-radius: 2px; width: 0; transition: width .3s, background .3s; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-hero { background: linear-gradient(135deg, #1a1a2e, #0f3460); padding: 40px 0 32px; color: #fff; }
.search-hero-inner { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.search-hero h1 { font-size: var(--fs-h2); font-weight: 800; margin-bottom: 16px; }
.search-box { display: flex; gap: 10px; max-width: 700px; }
.search-box input { flex: 1; padding: 12px 18px; border: none; border-radius: 10px; font-size: var(--fs-body); font-family: inherit; outline: none; }
.search-box button { padding: 12px 24px; background: var(--grad); color: #fff; border: none; border-radius: 10px; font-size: var(--fs-body); font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; }
.search-tabs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.search-tab { padding: 6px 16px; border-radius: 20px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; border: 1.5px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7); transition: all .15s; }
.search-tab:hover, .search-tab.active { background: #fff; color: var(--red); border-color: #fff; }

.search-container { max-width: 1240px; margin: 28px auto; padding: 0 24px; }
.search-sec-title { font-size: var(--fs-h5); font-weight: 800; color: var(--txt); margin: 24px 0 14px; display: flex; align-items: center; gap: 8px; }
.search-sec-title span { font-size: var(--fs-sm); font-weight: 500; color: var(--t3); }

.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.search-card { background: var(--card); border: 1px solid var(--bdr); border-radius: var(--rlg); overflow: hidden; box-shadow: var(--sh); transition: all .2s; text-decoration: none; color: inherit; display: block; }
.search-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.search-card-img { height: 160px; overflow: hidden; background: #f0f0f0; }
.search-card-img img { width: 100%; height: 100%; object-fit: cover; }
.search-card-body { padding: 13px 15px; }
.search-card-price { font-size: var(--fs-h5); font-weight: 800; color: var(--red); margin-bottom: 4px; }
.search-card-name  { font-size: var(--fs-body); font-weight: 600; color: var(--txt); margin-bottom: 6px; }
.search-card-loc   { font-size: var(--fs-sm); color: var(--t3); display: flex; align-items: center; gap: 5px; }
.search-card-loc svg { width: 12px; height: 12px; stroke: red; fill: none; stroke-width: 2; flex-shrink: 0; }

/* ============================================================
   EMPTY STATE (shared)
   ============================================================ */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-state svg  { width: 48px; height: 48px; stroke: var(--bdr); fill: none; stroke-width: 1.2; display: block; margin: 0 auto 12px; }
.empty-state h3   { font-size: var(--fs-h5); font-weight: 700; color: #888; margin-bottom: 6px; }
.empty-state p    { font-size: var(--fs-body); color: #aaa; }

/* RICH TEXT: style .rich đã gom về 1 nguồn duy nhất tại
   public/css/frontend/ckeditor.css (nạp sau, đồng bộ với CRM). */

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */

/* ── Utility: responsive helpers ── */
.desktop-only { display: inline-flex; }
.mobile-only  { display: none; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only  { display: block !important; }
}


.fe-socials .fab, .fe-socials .fas  {
    padding: 8px;
}

.ud-logout-btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
}
.mm-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: inherit;
}

.fe-slider-box { border: 1.5px solid #e5e7eb; border-radius: 9px; padding: 14px 16px 16px; }
.fe-slider-inputs { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.fe-slider-inputs input {
    width: 76px; height: 34px; border: 1.5px solid #e5e7eb; border-radius: 8px;
    text-align: center; font-size: 13.5px; font-family: inherit; -moz-appearance: textfield;
}
.fe-slider-inputs input::-webkit-outer-spin-button,
.fe-slider-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fe-slider-track-wrap { position: relative; height: 20px; display: flex; align-items: center; }
.fe-slider-rail { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: #e5e7eb; }
.fe-slider-fill { position: absolute; height: 4px; border-radius: 4px; background: var(--red, #e53935); }
.fe-slider-thumb {
    position: absolute; top: 50%; width: 18px; height: 18px; margin-left: -9px;
    background: #fff; border: 3px solid var(--red, #e53935); border-radius: 50%;
    transform: translateY(-50%); cursor: grab; box-shadow: 0 1px 4px rgba(0,0,0,.2); touch-action: none;
}
.fe-slider-thumb:active { cursor: grabbing; }

/* ───────────────── ADVANCED PANEL — bố cục nhiều hàng 4 cột (Chuyển nhượng / Cho thuê) ───────────────── */
/* KHÔNG override max-height:none ở đây — base .fe-advanced (max-height:0, overflow:hidden) phải giữ nguyên
   để panel thật sự thu gọn về 0 chiều cao khi đóng, tránh để lại khoảng trắng vô hình như bản trước. */
.fe-adv-row {
    display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important;
    margin-bottom: 18px;
}
.fe-adv-row .fe-adv-field label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 8px; }
.fe-adv-row .fe-adv-field select {
    width: 100%; height: 42px; padding: 0 14px; border: 1.5px solid #e5e7eb; border-radius: 9px;
    font-size: 13.5px; font-family: inherit; background: #fff; cursor: pointer;
}
@media (max-width: 1100px) { .fe-adv-row { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px)  { .fe-adv-row { grid-template-columns: 1fr !important; } }

.fe-adv-quick-row { margin-bottom: 16px; }
.fe-adv-quick-row label.fe-adv-quick-label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 8px; }
.fe-adv-quick-row select {
    width: 100%; max-width: 360px; height: 42px; padding: 0 14px; border: 1.5px solid #e5e7eb; border-radius: 9px;
    font-size: 13.5px; font-family: inherit; background: #fff; cursor: pointer; margin-bottom: 14px;
}
.fe-adv-checks-row { display: flex; flex-wrap: wrap; gap: 22px; }
.fe-adv-checks-row label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #333; cursor: pointer; }
.fe-adv-checks-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--red, #e53935); }

.fe-adv-footer { display: flex; justify-content: center; gap: 10px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.fe-adv-reset-btn {
    display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px;
    border: 1.5px solid #e5e7eb; border-radius: 9px; background: #fff; color: #555;
    font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.fe-adv-reset-btn:hover { border-color: #bbb; }
.fe-adv-apply-btn {
    display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 26px;
    border: none; border-radius: 9px; background: var(--red, #e53935); color: #fff;
    font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.fe-adv-apply-btn:hover { opacity: .9; }

/* ───────────────── PROJECTS: toolbar luôn hiện, lưới 3 cột x 2 hàng (không cần nút "Lọc nâng cao") ─────────────────
   Dùng selector kép .fe-toolbar.fe-toolbar-6col (2 class) để LUÔN thắng .fe-toolbar (1 class)
   bất kể thứ tự khai báo trong file — lặp lại đúng fix đã áp dụng cho .fe-toolbar-4col trước đó. */
.fe-toolbar.fe-toolbar-6col {
    display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important;
    max-width: 100%; margin: 0 auto; padding: 0px; flex-wrap: initial !important;
}
.fe-toolbar.fe-toolbar-6col .fe-search,
.fe-toolbar.fe-toolbar-6col select.fe-select { width: 100%; min-width: 0; flex: initial !important; }
@media (max-width: 900px) { .fe-toolbar.fe-toolbar-6col { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .fe-toolbar.fe-toolbar-6col { grid-template-columns: 1fr !important; padding: 0 } }

/* ───────────────── TOOLBAR 5 CỘT — 5 ô lọc (tìm kiếm / loại hình / tỉnh / xã / lọc nâng cao)
   trên 1 hàng, chia đều và thẳng hàng với lưới card bên dưới (.container: max-width 95%). ───────────────── */
.fe-toolbar.fe-toolbar-5col {
    display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 20px !important;
    max-width: 95%; margin: 0 auto; padding: 0 20px 0 0; align-items: stretch; flex-wrap: initial !important;
}
.fe-toolbar.fe-toolbar-5col .fe-search,
.fe-toolbar.fe-toolbar-5col select.fe-select,
.fe-toolbar.fe-toolbar-5col .fe-ms-cell,
.fe-toolbar.fe-toolbar-5col .fe-filter-toggle { width: 100%; min-width: 0; flex: initial !important; }
@media (max-width: 1100px) { .fe-toolbar.fe-toolbar-5col { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px)  { .fe-toolbar.fe-toolbar-5col { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px)  { .fe-toolbar.fe-toolbar-5col { grid-template-columns: 1fr !important; padding: 0 16px; } }

.fe-loc{
    max-width:100%;margin:0 auto;padding:0px;
}
/* ───────────────── TOOLBAR 4 CỘT — thẳng hàng với lưới card bên dưới (Dự án / Chuyển nhượng / Cho thuê) ─────────────────
   Dùng selector kép .fe-toolbar.fe-toolbar-4col (2 class) để LUÔN thắng .fe-toolbar (1 class)
   bất kể thứ tự khai báo trong file — tránh lặp lại lỗi bị đè mất layout grid như các bản trước. */
.fe-toolbar.fe-toolbar-4col {
    display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important;
    /* padding trùng .container (0 20px 40px 0) để thanh lọc thẳng hàng với lưới card bên dưới, không thụt trái. */
    max-width: 95%; margin: 0 auto; padding: 0 20px 0 0; align-items: stretch; flex-wrap: initial !important;
}
.fe-toolbar.fe-toolbar-4col .fe-search,
.fe-toolbar.fe-toolbar-4col select.fe-select,
.fe-toolbar.fe-toolbar-4col .fe-filter-toggle { width: 100%; min-width: 0; flex: initial !important; }
@media (max-width: 95%) { .fe-toolbar.fe-toolbar-4col { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px)  { .fe-toolbar.fe-toolbar-4col { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px)  { .fe-toolbar.fe-toolbar-4col { grid-template-columns: 1fr !important; padding: 0 16px; } }

/* ───────────────── TOOLBAR (1 hàng: tìm + 2-3 select + nút lọc nâng cao) ───────────────── */
.fe-toolbar-wrap { background: #fff; position: static !important; padding-bottom:15px }
.fe-toolbar {
    max-width: 95%; margin: 0 auto; padding: 0 24px;
    display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px;
}
.fe-search {
    display: flex; align-items: center; gap: 8px;
    border: 1.5px solid #e5e7eb; border-radius: 9px; padding: 0 14px; height: 44px;
    flex: 1 1 220px; min-width: 200px; background: #fff;
}
.fe-search svg { width: 16px; height: 16px; stroke: #aaa; fill: none; stroke-width: 2; flex-shrink: 0; }
.fe-search input { border: none; outline: none; background: transparent; font-size: 14px; width: 100%; font-family: inherit; }

select.fe-select {
    height: 44px; padding: 0 32px 0 14px; border: 1.5px solid #e5e7eb; border-radius: 9px;
    font-size: 14px; font-family: inherit; color: #333; background: #fff;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
    flex: 0 0 auto; min-width: 150px; cursor: pointer;
}
select.fe-select:focus { border-color: var(--red, #e53935); outline: none; }

.fe-filter-toggle {
    display: flex !important; align-items: center; gap: 6px;
    height: 44px; padding: 0 16px; border: 1.5px solid #e5e7eb; border-radius: 9px;
    background: #fff; color: #444; font-size: 13.5px; font-weight: 600; cursor: pointer;
    font-family: inherit; flex-shrink: 0; transition: all .15s;
}
.fe-filter-toggle:hover, .fe-filter-toggle.active { border-color: var(--red, #e53935); color: var(--red, #e53935); }
.fe-filter-toggle svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.fe-filter-toggle .chev { transition: transform .2s; }
.fe-filter-toggle.active .chev { transform: rotate(180deg); }

.fe-search-btn {
    height: 44px; padding: 0 22px; border: none; border-radius: 9px;
    background: var(--red, #e53935); color: #fff; font-size: 13.5px; font-weight: 700;
    cursor: pointer; display: flex !important; align-items: center; gap: 6px; font-family: inherit; flex-shrink: 0;
}
.fe-search-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.fe-clear-link { font-size: 13px; color: #999; text-decoration: underline; flex-shrink: 0; align-self: center; }

/* ───────────────── PANEL LỌC NÂNG CAO — 4 cột, THẲNG HÀNG với toolbar chính phía trên ───────────────── */
.fe-advanced {
    max-width: 95%; margin: 0 auto; padding: 0 24px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
}
.fe-advanced.open { max-height: 600px; opacity: 1; padding-top: 14px; }
.fe-advanced.open.fe-advanced-rich { max-height: 2400px; }
.fe-advanced-grid {
    display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important;
    border-top: 1px solid #f0f0f0; padding-top: 14px;
}
.fe-adv-field label { display: block; font-size: 12px; color: #888; margin-bottom: 5px; }
.fe-adv-field select, .fe-adv-field input {
    width: 100%; height: 40px; padding: 0 12px; border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: 13.5px; font-family: inherit; background: #fff;
}
.fe-adv-range { display: flex; align-items: center; gap: 6px; }
.fe-adv-range input { width: 100%; }
.fe-adv-range span { color: #ccc; flex-shrink: 0; }
.fe-adv-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 8px; }
.fe-adv-checks label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: #444; cursor: pointer; }
@media (max-width: 900px) { .fe-advanced-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) {
    .fe-advanced-grid { grid-template-columns: 1fr !important; }
    .fe-toolbar { flex-direction: column; align-items: stretch; }
    select.fe-select { width: 100%; }
}

/* ───────────────── PROJECTS: layout 2 cột (danh sách 3 cột + sidebar bán chạy) ───────────────── */
.proj-layout { display: grid !important; grid-template-columns: 1fr 300px !important; gap: 24px; align-items: start; }
.proj-main-col { min-width: 0; }
.pgrid-3col { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 20px; }
@media (max-width: 1200px) { .pgrid-3col { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px)  { .pgrid-3col { grid-template-columns: 1fr !important; } }

.proj-hot-sidebar { position: sticky; top: 84px; }
.phs-card { background: #fff; border: 1px solid #eee; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.phs-head {
    background: linear-gradient(135deg, var(--red, #b20707), var(--red-dark, #c62828));
    color: #fff; font-weight: 700; font-size: 13.5px;
    letter-spacing: .3px; text-transform: uppercase; padding: 14px 16px;
    display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center;
}
.phs-head-ico { font-size: 15px; line-height: 1; }
.phs-list { padding: 6px 0; margin: 0; }
.phs-list li { border-bottom: 1px solid #f2f2f2; list-style: none; }
.phs-list li:last-child { border-bottom: none; }
.phs-list a {
    display: block; padding: 11px 16px; font-size: 13px; font-weight: 500;
    color: #333; line-height: 1.4; transition: color .15s, background .15s;
}
.phs-list a:hover { color: var(--red, #e53935); background: #fff7f6; }
.phs-empty { padding: 14px 16px; font-size: 13px; color: #999; }

.phs-group { border-top: 1px solid #f0f0f0; }
.phs-group-title {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px 8px; font-size: 14px; font-weight: 700;
    color: var(--red, #e53935); text-transform: uppercase; letter-spacing: .3px;
}
.phs-group-title svg { width: 15px; height: 15px; flex-shrink: 0; }
.phs-group-title .phs-ico { font-size: 15px; line-height: 1; flex-shrink: 0; }
.phs-group .phs-list { padding-top: 0; }

@media (max-width: 991px) {
    .proj-layout { grid-template-columns: 1fr !important; }
    /* Mobile/tablet: đưa "Dự án đang hot" XUỐNG DƯỚI danh sách dự án (order dương,
       trong khi .proj-main-col mặc định order:0 nên đứng trước). */
    .proj-hot-sidebar { position: static; order: 1; }
}

/* ───────────────── LISTINGS: lưới 4 cột ───────────────── */
.listing-grid-4col { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px; }
@media (max-width: 1200px) { .listing-grid-4col { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px)  { .listing-grid-4col { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px)  { .listing-grid-4col { grid-template-columns: 1fr !important; } }
.listing-grid-4col.list-view { grid-template-columns: 1fr !important; }

/* ───────────────── CONTACT LEAD BOX (Liên hệ xem nhà) ───────────────── */
.cl-box {
    display: grid !important;
    grid-template-columns: 30% 1fr !important;
    border: 1px solid #eee; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* ── Cột trái: agent card ── */
.cl-agent {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #fff0f0 0%, #ffe4e4 100%);
    padding: 32px 24px 28px; display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: 0;
}
.cl-agent-bg-deco {
    position: absolute; top: -40px; right: -40px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(229,57,53,.08); pointer-events: none;
}
.cl-agent-avatar-wrap { margin-bottom: 14px; }
.cl-agent-avatar-circle {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--red, #e53935); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto;
    box-shadow: 0 4px 16px rgba(229,57,53,.35);
}
.cl-agent-label { font-size: var(--fs-sm); color: #aaa; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.cl-agent-name { font-size: 20px; font-weight: 700; color: var(--red, #e53935); margin-bottom: 10px; }
.cl-agent-desc { font-size: var(--fs-sm); color: #666; line-height: 1.6; margin-bottom: 20px; }

.cl-info-list { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.cl-info-item {
    display: flex; align-items: center; gap: 12px; text-align: left;
    background: #fff; border-radius: 10px; padding: 10px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cl-info-ic {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: rgba(229,57,53,.1); color: var(--red, #e53935);
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.cl-info-main { font-size: var(--fs-sm); font-weight: 600; color: #1a1a1a; }
.cl-info-sub  { font-size: var(--fs-sm); color: #aaa; margin-top: 1px; }

.cl-agent-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.cl-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 700;
    text-decoration: none; width: 100%;
}
.cl-btn-call { background: var(--red, #e53935); color: #fff; box-shadow: 0 3px 12px rgba(229,57,53,.3); }
.cl-btn-zalo { background: #0068ff; color: #fff; box-shadow: 0 3px 12px rgba(0,104,255,.25); }
.cl-btn:hover { opacity: .9; }

/* ── Cột phải: form ── */
.cl-form { background: #fff; padding: 28px 30px; }
.cl-form-head { margin-bottom: 22px; }
.cl-form-title {
    font-size: 20px; font-weight: 700; color: #1a1a1a;
    padding-left: 14px; border-left: 4px solid var(--red, #e53935);
    margin-bottom: 6px;
}
.cl-form-subtitle { font-size: 13.5px; color: #666; line-height: 1.5; }

.cl-form-row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 14px; margin-bottom: 14px; }
.cl-field-full { margin-bottom: 16px; }
.cl-field label { display: block; font-size: var(--fs-sm); font-weight: 600; color: #333; margin-bottom: 6px; }
.cl-field .req { color: var(--red, #e53935); }

/* Input với icon bên trong */
.cl-input-wrap { position: relative; }
.cl-fi {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--red, #e53935); font-size: 13px; pointer-events: none;
}
.cl-fi-top { top: 16px; transform: none; }
.cl-input-wrap input, .cl-input-wrap select, .cl-input-wrap textarea {
    width: 100%; padding: 10px 14px 10px 38px;
    border: 1px solid #e5e7eb; border-radius: 9px;
    font-size: var(--fs-sm); font-family: inherit; background: #fff; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.cl-input-wrap input:focus, .cl-input-wrap select:focus, .cl-input-wrap textarea:focus {
    border-color: var(--red, #e53935);
    box-shadow: 0 0 0 3px rgba(229,57,53,.07);
}
.cl-input-wrap input[readonly], .cl-input-wrap input[readonly]:focus {
    background: #fafafa; color: #555; border-color: #e5e7eb; box-shadow: none;
}
.cl-select-wrap select { padding-right: 32px; cursor: pointer; }
.cl-textarea-wrap textarea { padding-top: 12px; resize: vertical; min-height: 100px; line-height: 1.5; }

.cl-submit-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px; border: none; border-radius: 10px;
    background: var(--red, #e53935); color: #fff; font-size: 15px; font-weight: 700;
    cursor: pointer; box-shadow: 0 4px 14px rgba(229,57,53,.3);
    transition: opacity .15s; text-align: center; margin: 0 auto;
}
.cl-submit-btn:hover { opacity: .92; }
.cl-submit-btn:disabled { opacity: .55; cursor: not-allowed; }
.cl-privacy {
    text-align: center; font-size: var(--fs-xs); color: #aaa; margin-top: 12px;
}
.cl-privacy i { margin-right: 4px; }
.cl-form-msg { margin-top: 10px; font-size: 13px; text-align: center; }
.cl-form-msg.success { color: #0f5132; }
.cl-form-msg.error   { color: #dc2626; }

@media (max-width: 900px) {
    .cl-box { grid-template-columns: 1fr !important; }
    .cl-agent { padding: 24px 20px; }
    .cl-form  { padding: 22px 20px; }
    .cl-form-row { grid-template-columns: 1fr !important; }
}

.fe-notif{position:relative}
                .fe-notif-btn{position:relative;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:none;background:transparent;border-radius:50%;cursor:pointer;color:#374151;font-size:16px;transition:background .15s}
                .fe-notif-btn:hover{background:#f3f4f6}
                .fe-notif-badge{position:absolute;top:2px;right:2px;min-width:16px;height:16px;padding:0 3px;background:#e53935;color:#fff;font-size:10px;line-height:16px;font-weight:700;border-radius:8px;text-align:center}
                .fe-notif-dropdown{display:none;position:absolute;top:calc(100% + 10px);right:0;width:360px;max-width:90vw;background:#fff;border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.15);z-index:999;overflow:hidden}
                .fe-notif-dropdown.open{display:block}
                .fe-notif-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eef0f2;font-weight:700;font-size:14px}
                .fe-notif-readall{border:none;background:none;color:var(--red);font-size:12px;cursor:pointer;font-weight:600}
                .fe-notif-readall:hover{text-decoration:underline}
                .fe-notif-list{max-height:420px;overflow-y:auto}
                .fe-notif-empty{padding:32px 16px;text-align:center;color:#9ca3af;font-size:13px}
                .fe-notif-item{display:flex;gap:10px;padding:12px 16px;border-bottom:1px solid #f3f4f6;cursor:pointer;transition:background .12s;text-decoration:none;color:inherit}
                .fe-notif-item:hover{background:#f9fafb}
                .fe-notif-item.unread{background:#eff6ff}
                .fe-notif-item-icon{flex-shrink:0;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;background:#eef2ff;color:var(--red);}
                .fe-notif-item-body{min-width:0;flex:1}
                .fe-notif-item-title{font-size:13px;font-weight:600;color:#111827;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
                .fe-notif-item-sub{font-size:12px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
                .fe-notif-item-time{font-size:11px;color:#9ca3af;margin-top:3px}
                .fe-notif-item-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%;background:var(--red);margin-top:6px}
