/* ================================================================
   listing.css — Chungcu.net Frontend
   Modern, clean, professional design
   ================================================================ */


/* ── Variables ───────────────────────────────────────────────── */

:root {
    --color-text: #232323;
    --primary: #003bfa;
    --primary-dark: #0038ed;
    --primary-light: #f4f5f6;
    --primary-mid: #f2f3f4;
    --accent: #003bfa;
    --accent-light: #eff6ff;
    --danger: #dc2626;
    --warning: #d97706;
    --muted: #6b7280;
    --muted-light: #9ca3af;
    --text: #2a2a33;
    --text-soft: #374151;
    --border: #e5e7eb;
    --border-focus: #003bfa;
    --bg: #f9fafb;
    --bg-button: #f3f4f6;
    --white: #ffffff;
    --font-scc24: 1.5rem;
    --font-scc20: 1.25rem;
    --font-scc: 1rem;
    --font-scc15: 0.9375rem;
    --font-sccl: 1.125rem;
    --font-sccm: 0.875rem;
    --font-sccs: 0.75rem;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow: 0 4px 12px rgba(0, 0, 0, .08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .1);
    --transition: .18s ease;
    --navy: #0c1a2e;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --gold-pale: #fdf6e3;
    --cream: #f8f5ef;
    --cream-dark: #ede8de;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --white: #fff;
    --green: #22c55e;
    --cl-verified: #00b341;
    --cl-verified-hover: #049e3c;
    --red: #ef4444;
    --vip3: #c9a84c;
    --vip2: #f97316;
    --vip1: #3b82f6;
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    background-color: #f8f5ef;
}


/* ── Reset & Base ─────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.wizard-page,
.my-listings-page,
.chat-view-page,
.chat-list-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}


/* ── Toast ────────────────────────────────────────────────── */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    max-width: 380px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    border-left: 4px solid #6b7280;
    font-size: 13.5px;
    color: #111;
    transform: translateX(120%);
    transition: transform .3s ease;
    pointer-events: auto;
}

.toast-item.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: #22c55e;
}

.toast-success i {
    color: #22c55e;
}

.toast-error {
    border-left-color: #dc2626;
}

.toast-error i {
    color: #dc2626;
}

.toast-info {
    border-left-color: #2563eb;
}

.toast-info i {
    color: #2563eb;
}

.toast-item i {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-item span {
    flex: 1;
}

.toast-item button {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}


/* ── Navbar ── */

.main-navbar {
    background: #fff;
    border-bottom: 1px solid var(--cream-dark);
    position: sticky;
    top: 0;
    z-index: 200;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, .06); */
}

.navbar-brand img {
    height: 24px;
}

.navbar-brand span {
    font-weight: 800;
    font-size: 1.15rem;
    color: #2563eb;
    letter-spacing: -.5px;
}

.nav-link-main {
    font-size: var(--font-sccm);
    font-weight: 600;
    color: var(--color-text);
    padding: 8px 14px;
    border-radius: 8px;
    transition: all .15s;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link-main:hover,
.nav-link-main.active {
    color: #2563eb;
    background: rgba(37, 99, 235, .07);
}

.nav-link-main .bi-chevron-down {
    font-size: 10px;
    opacity: .6;
    margin-left: 2px;
}


/* Mega / dropdown */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    min-width: 250px;
    padding: 8px 0;
    display: none;
    z-index: 300;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: background .15s;
}

.nav-dropdown-menu a:hover {
    background: #f9fafb;
    color: #2563eb;
}


/* User menu */

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 20px;
    cursor: pointer;
    background: #fafafa;
    transition: all .15s;
    text-decoration: none;
    color: var(--color-text);
}

.user-menu-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    min-width: 220px;
    padding: 8px 0;
    display: none;
    z-index: 300;
}

.user-menu-wrap:hover .user-dropdown {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    transition: background .15s;
}

.user-dropdown-item:hover {
    background: #f9fafb;
    color: #2563eb;
}

.user-dropdown-item.danger {
    color: #dc2626;
}

.user-dropdown-item.danger:hover {
    background: #fff5f5;
}

.dropdown-divider-sm {
    margin: 4px 0;
    border-top: 1px solid #f3f4f6;
}


/* ══ MEGA MENU DESKTOP ═════════════════════════════════════════ */

.main-navbar {
    position: relative;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: #374151;
    padding: 4px 8px;
    cursor: pointer;
    line-height: 1;
}


/* ── Mega dropdown container ──────────────────────────────────── */

.nav-mega {
    position: relative;
}

.nav-mega>.mega-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 650px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .05);
    z-index: 100;
    animation: megaSlide .2s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}

@keyframes megaSlide {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-mega:hover>.mega-panel {
    display: block;
}


/* Inner container */

.mega-inner {
    display: flex;
    padding: 10px 15px 15px;
    gap: 0;
}


/* Each column */

.mega-col {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
    border-right: 1px solid #f0f0f0;
}

.mega-col:first-child {
    padding-left: 0;
}

.mega-col:last-child {
    border-right: none;
    padding-right: 0;
}


/* Column title (cấp 2: Hà Nội, HCM...) */

.mega-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 12px;
    margin: 0 -12px 0;
    border-radius: 8px;
    transition: all .15s;
}

.mega-col-title:hover {
    background: var(--bg);
    color: var(--accent);
}

.mega-col-title i {
    font-size: 18px;
    color: #3b82f6;
    width: 24px;
    text-align: center;
}


/* Sub links (cấp 3: phường, quận...) */

.mega-links {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mega-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 0 -12px;
    font-size: 14px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 6px;
    transition: all .12s;
    line-height: 1.3;
}

.mega-links a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
    transition: all .15s;
}

.mega-links a:hover {
    background: #f9fafb;
    color: #111;
}

.mega-links a:hover::before {
    background: #3b82f6;
    width: 6px;
    height: 6px;
}


/* Mega panel top accent bar */

.mega-panel::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}


/* ── Dropdown menu (simple, không mega) ──────────────────────── */

.nav-dd-simple {
    position: relative;
}

.dd-simple-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    z-index: 100;
    animation: ddFadeIn .15s ease;
}

@keyframes ddFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dd-simple:hover>.dd-simple-panel {
    display: block;
}

.dd-simple-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: all .12s;
}

.dd-simple-item:hover {
    background: #f3f4f6;
    color: var(--primary);
    padding-left: 20px;
}

.dd-simple-item i {
    font-size: 15px;
    color: #9ca3af;
    width: 18px;
    text-align: center;
}

.dd-simple-item:hover i {
    color: var(--primary);
}


/* ══ MOBILE SLIDE MENU ═════════════════════════════════════════ */

.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 200;
    backdrop-filter: blur(2px);
}

.mob-overlay.show {
    display: block;
}

.mob-menu {
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    width: 300px;
    background: #fff;
    z-index: 201;
    transition: left .3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, .08);
}

.mob-menu.open {
    left: 0;
}

.mob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.mob-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
}


/* User section */

.mob-user {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #f9fafb;
}

.mob-auth-btns .btn {
    font-weight: 600;
    font-size: 14px;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    letter-spacing: .1px;
}

.mob-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.mob-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mob-username {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.mob-balance {
    font-size: 13px;
    color: #16a34a;
    font-weight: 600;
}

.mob-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mob-quick-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all .12s;
}

.mob-quick-links a:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.mob-quick-links a i {
    font-size: 15px;
    color: #6b7280;
}


/* Nav items */

.mob-nav {
    flex: 1;
    padding: 8px 0;
}

.mob-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: background .12s;
}

.mob-nav-link:hover {
    background: #f3f4f6;
    color: #111;
}

.mob-nav-link i {
    font-size: 17px;
    color: #6b7280;
    width: 22px;
    text-align: center;
}

.mob-nav-parent {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.mob-nav-parent i:first-child {
    font-size: 17px;
    color: #6b7280;
    width: 22px;
    text-align: center;
}

.mob-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #9ca3af;
    transition: transform .2s;
}

.mob-sub {
    padding-left: 16px;
    border-left: 2px solid #e5e7eb;
    margin-left: 30px;
}

.mob-sub a {
    display: block;
    padding: 10px 16px;
    font-size: 13.5px;
    color: #4b5563;
    text-decoration: none;
    transition: all .12s;
}

.mob-sub a:hover {
    color: #3b82f6;
    padding-left: 22px;
}

.mob-sub-parent {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.mob-sub-inner {
    padding-left: 12px;
}

.mob-sub-inner a {
    font-size: 13px;
    padding: 8px 16px;
}

.mob-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.mob-logout {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .12s;
}

.mob-logout:hover {
    background: #fee2e2;
}


/* Wallet balance in dropdown */

.wallet-info {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 4px;
}

.wallet-info .balance {
    font-size: 1rem;
    font-weight: bold;
    color: #003bfa;
}

.wallet-info .balance .currency {
    font-size: 14px;
    position: relative;
    top: -2px;
    margin-left: 1px;
    font-weight: 500;
}

.wallet-balance-amount .currency {
    font-size: 15px;
    position: relative;
    top: -3px;
    margin-left: 1px;
    font-weight: 600;
}


/* Notification badge */

.notif-badge {
    position: relative;
    display: inline-flex;
}

.notif-dot {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}


/* Lang switcher */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-scc);
    cursor: pointer;
    padding: 5px 10px;
    /* border: 1px solid var(--border);
    border-radius: var(--radius-xl); */
    background: #fff;
    color: var(--color-text);
    font-weight: 600;
    transition: all .15s;
}

.lang-switcher:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100%+6px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
    padding: 6px 0;
    z-index: 300;
    min-width: 140px;
    display: none;
}

.lang-wrap:hover .lang-menu {
    display: block;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    text-decoration: none;
    color: #374151;
}

.lang-menu a:hover {
    background: #f9fafb;
}


/* ══ HOMEPAGE ════════════════════════════════════════════════════ */


/* ── Hero ──────────────────────────────────────────────────────── */

.hp-hero {
    position: relative;
    margin: 5px auto 30px;
    min-height: 350px;
    background: linear-gradient(rgb(0 26 89 / 45%), rgb(0 0 0 / 55%)), url('../image/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 40px 0;
    color: #fff;
}

.hp-hero-inner {
    max-width: 600px;
    padding: 0 16px;
}

.hp-hero-title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hp-hero-sub {
    font-size: 16px;
    opacity: .9;
    margin-bottom: 24px;
    max-width: 480px;
}

.hp-hero-search {
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    display: flex;
    gap: 0;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.hp-hero-search input {
    border: none;
    outline: none;
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    background: transparent;
    font-family: inherit;
}

.hp-hero-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    flex-shrink: 0;
}

.hp-hero-search button:hover {
    background: var(--primary-dark);
}

.hp-hero-quick {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.hp-hero-quick a {
    padding: 7px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.hp-hero-quick a:hover {
    background: rgba(255, 255, 255, .35);
    color: #fff;
}


/* ── Section headings ──────────────────────────────────────────── */

.hp-section {
    padding: 16px 0 40px;
}

.hp-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    gap: 12px;
}

.hp-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 3px;
    letter-spacing: -.015em;
}

.hp-section-sub {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.hp-see-all {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hp-see-all:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}


/* ── Scroll row ────────────────────────────────────────────────── */

.hp-scroll-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    scrollbar-width: none;
}

.hp-scroll-row::-webkit-scrollbar {
    display: none;
}

.hp-card-wrap {
    flex: 0 0 calc(25% - 11px);
    min-width: 220px;
    scroll-snap-align: start;
}


/* ── Listing card ──────────────────────────────────────────────── */

.hp-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}

.hp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.hp-card-img {
    position: relative;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.hp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.hp-card:hover .hp-card-img img {
    transform: scale(1.04);
}

.hp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #d1d5db;
    font-size: 2rem;
}

.hp-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fbbf24;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: .02em;
}

.hp-tag-vip3 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.hp-tag-vip2 {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
}

.hp-tag-vip1 {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}

.hp-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 15px;
    cursor: pointer;
    transition: all .15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    z-index: 3;
}

.hp-fav-btn>i {
    padding-top: 3px;
}

.hp-fav-btn .bi-heart::before {
    font-weight: 800 !important;
}

.hp-fav-btn:hover {
    color: #ef4444;
}

.hp-fav-btn.saved {
    color: #ef4444;
}

.hp-card-body {
    padding: 8px;
}

.hp-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.01em;
}

.hp-card-title {
    font-size: var(--font-scc15);
    color: var(--text-soft, #374151);
    line-height: 1.4;
    margin: 4px 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-card-meta {
    font-size: var(--font-sccm);
    color: var(--muted);
    margin: 3px 0 5px 0;
    display: flex;
    gap: 8px;
}

.hp-card-meta span {
    display: flex;
    align-items: center;
}

.hp-card-meta span svg {
    margin-right: 5px;
}

.hp-card-meta span::after {
    content: " ·";
    margin-left: 5px;
    color: #d1d5db;
}

.hp-card-meta span:last-child::after {
    content: "";
}

.hp-card-addr {
    font-size: 13px;
    color: var(--muted-light, #9ca3af);
    line-height: 1.4;
}


/* ── Homepage card: specs (PN, WC, m²) ───────────────────────── */

.hp-card-specs {
    display: flex;
    gap: 10px;
    margin: 6px 0;
    flex-wrap: wrap;
}

.hp-card-specs span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.hp-card-specs svg {
    color: var(--muted);
    flex-shrink: 0;
}


/* ── Homepage card: rent tags (amenities + phí DV) ───────────── */

.hp-card-rent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0 2px;
}

.hp-rent-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #0369a1;
    background: #e0f2fe;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.hp-rent-tag i {
    font-size: 10px;
}


/* ── Homepage card: location ─────────────────────────────────── */

.hp-card-loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.hp-card-loc svg {
    flex-shrink: 0;
}


/* ── Action cards ──────────────────────────────────────────────── */

.hp-actions {
    padding: 8px 0 48px;
}

.hp-action-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: border-color .15s, transform .2s;
}

.hp-action-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    color: inherit;
}

.hp-action-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.hp-i-buy {
    background: #fef3c7;
    color: #d97706;
}

.hp-i-rent {
    background: #fee2e2;
    color: #ef4444;
}

.hp-i-sell {
    background: #dbeafe;
    color: var(--primary);
}

.hp-action-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hp-action-card p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.55;
    flex: 1;
}

.hp-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 13.5px;
    font-weight: 600;
}


/* ── Project cards ─────────────────────────────────────────────── */

.hp-card-project {
    min-width: 260px;
    flex: 0 0 calc(33.33% - 10px);
}

.hp-project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.hp-project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.hp-project-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: var(--radius);
}

.hp-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hp-project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #d1d5db;
}

.hp-project-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
}

.hp-project-body {
    padding: 12px 2px 4px;
}

.hp-project-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.hp-project-addr {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 4px;
}

.hp-project-price {
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
}


/* ── Province grid ─────────────────────────────────────────────── */

.hp-province-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.hp-province-card {
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    border-radius: var(--radius);
    padding: 24px 20px;
    color: #fff;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    align-items: flex-end;
    min-height: 100px;
}

.hp-province-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.hp-province-lg {
    grid-column: span 2;
    min-height: 140px;
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
}

.hp-province-name {
    font-size: 17px;
    font-weight: 700;
}

.hp-province-count {
    font-size: 12px;
    opacity: .75;
    margin-top: 2px;
}


/* ── Mobile ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .hp-hero {
        min-height: 280px;
        padding: 36px 0;
        margin: 16px auto 32px;
    }
    .hp-hero-title {
        font-size: 30px;
    }
    .hp-hero-sub {
        font-size: 14px;
    }
    .hp-section-title {
        font-size: 19px;
    }
    .hp-section-head {
        flex-wrap: wrap;
    }
    .hp-card-wrap {
        flex: 0 0 calc(50% - 7px);
        min-width: 170px;
    }
    .hp-card-project {
        flex: 0 0 calc(75% - 7px);
        min-width: 240px;
    }
    .hp-province-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hp-province-lg {
        grid-column: span 1;
        min-height: 100px;
    }
    .hp-action-card {
        padding: 22px 18px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 20px;
        padding-left: 0;
        margin-left: 0;
        vertical-align: initial;
        position: absolute;
        left: -100px;
    }
    .hp-hero-inner {
        padding: 0;
    }
    .hp-hero-title {
        font-size: 26px;
    }
    .hp-hero {
        padding: 28px 0;
        border-radius: var(--radius);
        margin: 12px auto 24px;
    }
    .hp-card-wrap {
        flex: 0 0 calc(100% - 7px);
        min-width: 170px;
    }
    .hp-hero-quick a {
        font-size: 12px;
        padding: 6px 12px;
    }
    .hp-card-price {
        font-size: 15px;
    }
}


/* Footer */

footer {
    background: var(--white);
    color: var(--text-soft);
    padding: 25px 0 20px;
    border-top: 1px solid #f0f0f0;
}

.container-footer {
    max-width: 1140px;
}

footer h6 {
    color: var(--text-soft);
    font-weight: 600;
    margin-bottom: 12px;
}

footer a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 13px;
    line-height: 2;
}

footer a:hover {
    color: var(--text-soft);
}

footer .footer-bottom {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    margin-top: 24px;
    font-size: 12px;
}


/* Chat view */

.chat-messages {
    height: calc(100vh - 280px);
    min-height: 320px;
    overflow-y: auto;
    padding: 12px 0;
}

.chat-msg {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.chat-msg.mine {
    align-items: flex-end;
}

.chat-msg.theirs {
    align-items: flex-start;
}

.chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.chat-msg.mine .chat-bubble {
    background: #2563eb;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg.theirs .chat-bubble {
    background: #f3f4f6;
    color: #111827;
    border-bottom-left-radius: 4px;
}

.chat-time {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 3px;
    padding: 0 4px;
}

.chat-input-bar {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.chat-input-bar textarea {
    flex: 1;
    border-radius: 12px;
    resize: none;
    padding: 10px 14px;
    font-size: 14px;
}

.chat-input-bar .btn {
    border-radius: 12px;
    height: 42px;
    width: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Conv list */

.conv-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all .15s;
}

.conv-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.conv-unread {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.conv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}


/* 5 items chia đều */

.mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0 4px;
    text-decoration: none;
    color: #6b7280;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .01em;
    position: relative;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
}

.mbn-item:hover,
.mbn-item:active {
    color: #111;
}

.mbn-item.active {
    color: var(--primary);
}

.mbn-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 2px;
    position: relative;
}


/* Badge thông báo */

.mbn-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 8px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.mbn-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}


/* ── Nút Đăng tin (giữa, nổi lên) ─────────────────────────── */

.mbn-item.mbn-post {
    position: relative;
    color: #fff;
}

.mbn-post-btn {
    position: absolute;
    top: -20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    border: 3px solid #fff;
    transition: transform .2s, box-shadow .2s;
}

.mbn-item.mbn-post:active .mbn-post-btn {
    transform: scale(.92);
    box-shadow: 0 2px 8px rgba(220, 38, 38, .3);
}

.mbn-item.mbn-post .mbn-label {
    margin-top: 28px;
    color: #6b7280;
    font-weight: 600;
}


/* ── Page layout ──────────────────────────────────────────────── */

.wizard-page {
    padding-top: 32px;
    padding-bottom: 48px;
}


/* ── Wizard Step Progress Bar ─────────────────────────────────── */

.wizard-progress {
    margin-bottom: 28px;
}

.wizard-progress>div {
    align-items: flex-start !important;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: default;
}

.step-icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--muted-light);
    transition: all var(--transition);
    z-index: 1;
}

.step-item.active .step-icon {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 5px rgba(22, 163, 74, .15);
    transform: scale(1.08);
}

.step-item.done .step-icon {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.step-item.pending .step-icon {
    background: var(--white);
    border-color: var(--border);
    color: var(--muted-light);
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted-light);
    text-align: center;
    letter-spacing: -.1px;
    white-space: nowrap;
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step-item.done .step-label {
    color: var(--primary);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-top: 20px;
    /* half of icon height */
    transition: background var(--transition);
    position: relative;
}

.step-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform .4s ease;
}

.step-line.done::after {
    transform: scaleX(1);
}

.step-line.done {
    background: var(--primary-mid);
}

.project-picker {}

.project-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.project-option {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background .12s;
}

.project-option:last-child {
    border-bottom: none;
}

.project-option:hover {
    background: #f3f4f6;
}

.project-option.active {
    position: relative;
    background: var(--bg-button);
    border-left: 3px solid var(--border-focus);
}

.project-option.active::after {
    content: "\F26E";
    /* bootstrap icon check-circle-fill */
    font-family: "bootstrap-icons";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    color: var(--accent);
}

.project-option-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.project-option-addr {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}


/* ── Wizard Card ──────────────────────────────────────────────── */

.wizard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, .05);
    overflow: hidden;
}

.wizard-card .card,
.wizard-page .card {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow) !important;
    border: 1px solid rgba(0, 0, 0, .05) !important;
}

.wizard-card-header {
    padding: 24px 28px 0;
}

.wizard-card-body {
    padding: 24px 28px 28px;
}

.wizard-page .card-body {
    padding: 28px 32px !important;
}

.wizard-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.wizard-step-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}


/* ── Deal Type Selector ───────────────────────────────────────── */

.deal-option {
    cursor: pointer;
    display: block;
    margin: 0;
    user-select: none;
}

.deal-option input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.deal-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px 18px;
    text-align: center;
    transition: all var(--transition);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.deal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.deal-card i {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 0px;
    color: var(--muted-light);
    transition: color var(--transition), transform var(--transition);
}

.deal-card span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-soft);
    transition: color var(--transition);
    position: relative;
}


/* Check mark */

.deal-card .check-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    /* background: var(--primary); */
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.deal-option:hover .deal-card {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.deal-option:hover .deal-card::before {
    opacity: .5;
}

.deal-option:hover .deal-card i {
    color: var(--primary);
    transform: scale(1.1);
}

.deal-option:hover .deal-card span {
    color: var(--primary);
}

.deal-option.selected .deal-card {
    border-color: var(--primary);
    background: var(--primary-light);
    /* box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); */
    transform: translateY(-2px);
}

.deal-option.selected .deal-card::before {
    opacity: 0;
}

.deal-option.selected .deal-card i {
    color: var(--primary);
    transform: scale(1.05);
}

.deal-option.selected .deal-card span {
    color: var(--primary);
}

.deal-option.selected .deal-card .check-mark {
    display: flex;
}


/* ── Category Selector ────────────────────────────────────────── */

.cat-group {
    margin-bottom: 20px;
}

.cat-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted-light);
    padding: 0 2px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-group-title::before,
.cat-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.cat-option {
    display: block;
    cursor: pointer;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition);
    background: var(--white);
    color: var(--text-soft);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-option input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cat-option:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(22, 163, 74, .04);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.cat-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    /* box-shadow: 0 0 0 2px rgba(22, 163, 74, .15); */
}


/* ── Form Controls ────────────────────────────────────────────── */

.form-control,
.form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    transition: all var(--transition);
    line-height: 1.5;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
    outline: none;
    background: var(--white);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.form-text {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}


/* Input group */

.input-group .form-control {
    border-radius: var(--radius-sm);
}

.input-group .input-group-text {
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}


/* ── Buttons ──────────────────────────────────────────────────── */


/* Primary — green */

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    letter-spacing: .1px;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(22, 163, 74, .35);
    transform: translateY(-1px);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}


/* Outline secondary — cancel */

.btn-outline-secondary {
    border: 1.5px solid var(--border);
    color: var(--text-soft);
    background: var(--white);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    border-color: #9ca3af;
    background: var(--bg);
    color: var(--text);
    box-shadow: none;
}


/* Success */

.btn-success {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-success:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(22, 163, 74, .3);
    transform: translateY(-1px);
}


/* Outline primary */

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}


/* Outline success */

.btn-outline-success {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-outline-success:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}


/* Danger */

.btn-outline-danger {
    border: 1.5px solid #fca5a5;
    color: var(--danger);
    background: transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-outline-danger:hover {
    background: #fef2f2;
    border-color: var(--danger);
    color: var(--danger);
}


/* Wizard nav buttons row */

.wizard-btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

.btn-next {
    background: var(--primary);
    border: none;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    padding: 11px 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: .1px;
}

.btn-next:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(22, 163, 74, .35);
    transform: translateY(-1px);
}

.btn-next:active {
    transform: translateY(0);
}

.btn-next i {
    font-size: 15px;
}

.btn-back {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-soft);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-back:hover {
    border-color: #9ca3af;
    background: var(--bg);
    color: var(--text);
}


/* ══ STEP 2: Chi tiết BĐS ═══════════════════════════════════════ */

.section-label {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    padding-bottom: 8px;
    margin-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}


/* ── Price hint ──────────────────────────────────────────────────── */

.price-hint {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    min-height: 20px;
}

.price-hint:empty {
    display: none;
}


/* ── Amenity Grid ────────────────────────────────────────────────── */

.amenity-toolbar {
    display: flex;
    gap: 8px;
}

.amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

.amenity-item:hover {
    border-color: #93c5fd;
}

.amenity-item.checked {
    border-color: var(--border);
    background: #fff;
    position: relative;
}

.amenity-item.checked::after {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00a879;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.amenity-item input[type="checkbox"] {
    display: none;
}

.amenity-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6b7280;
    flex-shrink: 0;
}

.amenity-item.checked .amenity-icon {
    background: #dbeafe;
    color: #2563eb;
}

.amenity-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
}

@media (max-width: 576px) {
    .amenity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .amenity-item {
        padding: 8px 10px;
        gap: 8px;
    }
    .amenity-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .amenity-label {
        font-size: 12px;
    }
}


/* ── Upload Zone ──────────────────────────────────────────────── */

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 36px 20px;
    text-align: center;
    transition: all var(--transition);
    background: var(--bg);
    cursor: pointer;
    position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(22, 163, 74, .03);
}

.upload-zone .upload-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
    transition: transform var(--transition);
}

.upload-zone:hover .upload-icon {
    transform: scale(1.08);
}

.upload-placeholder p {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 4px;
}

.upload-placeholder .sub {
    color: var(--muted);
    font-size: 12px;
}


/* ── Media Grid ───────────────────────────────────────────────── */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.media-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid transparent;
    transition: border-color var(--transition), transform var(--transition);
    cursor: pointer;
}

.media-item:hover {
    transform: scale(1.02);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-item.is-cover {
    border-color: var(--warning);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, .2);
}

.media-actions {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--transition);
    backdrop-filter: blur(2px);
}

.media-item:hover .media-actions {
    opacity: 1;
}

.media-actions button {
    background: rgba(255, 255, 255, .95);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text);
}

.media-actions button:hover {
    background: #fff;
    transform: scale(1.1);
}

.btn-del-media {
    color: var(--danger) !important;
}

.btn-cover {
    color: #92400e !important;
}

.cover-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(217, 119, 6, .9);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    padding: 3px 0;
    letter-spacing: .3px;
}


/* ── Summary box (step 4) ─────────────────────────────────────── */

.summary-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.summary-box .summary-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-box .summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.summary-box .summary-row {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.summary-box .summary-key {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.summary-box .summary-val {
    color: var(--text);
    font-weight: 500;
}


/* Terms checkbox */

.terms-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition);
}

.terms-check:hover {
    border-color: var(--primary);
}

.terms-check input[type=checkbox] {
    margin-top: 2px;
    accent-color: var(--primary);
    transform: scale(1.15);
}

.terms-check label {
    font-size: 13px;
    color: var(--text-soft);
    cursor: pointer;
}


/* ── User Sidebar ─────────────────────────────────────────────── */

.user-sidebar {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: none;
    /* border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: var(--shadow); */
    background: var(--white);
}

.sidebar-profile {
    padding: 28px 20px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(22, 163, 74, .04) 0%, var(--white) 100%);
}

.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #1a1ece 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 10px;
    /* box-shadow: 0 4px 12px rgba(22, 163, 74, .3); */
}

.avatar-circle {
    display: inline-block;
}

.sidebar-username {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.sidebar-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.wallet-balance-box {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.wallet-balance-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.wallet-balance-amount {
    font-size: 1.135rem;
    font-weight: bold;
    color: var(--primary);
    margin: 2px 0 10px;
}

.btn-topup {
    display: block;
    width: 100%;
    padding: 9px 16px;
    background: transparent;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition);
    margin-bottom: 8px;
}

.btn-topup:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-post-new {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(22, 163, 74, .25);
}

.btn-post-new:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(22, 163, 74, .35);
    color: var(--white);
    transform: translateY(-1px);
}

.sidebar-menu {
    padding: 8px 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 14px;
    color: var(--text-soft);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
}

.sidebar-menu-item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    color: var(--muted-light);
    transition: color var(--transition);
}

.sidebar-menu-item:hover {
    background: var(--bg);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-menu-item:hover i {
    color: var(--primary);
}

.sidebar-menu-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-menu-item.active i {
    color: var(--primary);
}

.sidebar-menu-item.danger {
    color: var(--danger);
}

.sidebar-menu-item.danger i {
    color: #fca5a5;
}

.sidebar-menu-item.danger:hover {
    background: #fef2f2;
    border-left-color: var(--danger);
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.sidebar-menu-item .menu-label {
    flex: 1;
    min-width: 0;
}

.sidebar-menu-item .menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    background: #dc2626;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 10px;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .15);
}

.sidebar-menu-item.active .menu-badge {
    background: #fff;
    color: #dc2626;
    font-size: 12px;
    box-shadow: none;
}


/* ── My Listings Page ─────────────────────────────────────────── */

.status-tabs {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.status-tabs::-webkit-scrollbar {
    height: 3px;
}

.status-tabs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}


/* Status tab buttons */

.status-tabs .btn {
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    padding: 6px 14px;
    white-space: nowrap;
}

.listing-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border) !important;
    transition: box-shadow var(--transition), transform var(--transition);
    background: var(--white);
}

.listing-card:hover {
    box-shadow: var(--shadow) !important;
    transform: translateY(-1px);
}

.listing-card.expired {
    border-left: 3px solid var(--danger) !important;
}

.listing-card .card-body {
    padding: 16px 18px !important;
}

.listing-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
}

.listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-location {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 4px;
}

.listing-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}

.listing-actions .btn {
    padding: 5px 10px;
    font-size: 12px;
}

.listing-views {
    font-size: 12px;
    color: var(--muted);
}

.listing-expiry {
    font-size: 11.5px;
    margin-top: 2px;
}


/* Status badges */

.badge-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.badge-active {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-mid);
}

.badge-expired {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fca5a5;
}

.badge-hidden {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.badge-rejected {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fca5a5;
}


/* Empty state */

.empty-state {
    padding: 48px 24px;
    text-align: center;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: #d1d5db;
    margin-bottom: 12px;
    display: block;
}

.empty-state p {
    color: var(--muted);
    font-size: 14px;
}


/* ── Chat ─────────────────────────────────────────────────────── */

.chat-messages {
    height: calc(100vh - 260px);
    min-height: 320px;
    overflow-y: auto;
    padding: 8px 0;
    scroll-behavior: smooth;
}

.chat-msg {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.chat-msg.mine {
    align-items: flex-end;
}

.chat-msg.theirs {
    align-items: flex-start;
}

.chat-bubble {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}

.chat-msg.mine .chat-bubble {
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-msg.theirs .chat-bubble {
    background: #f3f4f6;
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat-time {
    font-size: 10px;
    color: var(--muted-light);
    margin-top: 3px;
    padding: 0 4px;
}

.chat-input-bar {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.chat-input-bar textarea {
    flex: 1;
    border-radius: var(--radius);
    resize: none;
    border: 1.5px solid var(--border);
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color var(--transition);
    max-height: 120px;
    overflow-y: auto;
}

.chat-input-bar textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .1);
    outline: none;
}

.chat-input-bar .btn-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--transition);
}

.chat-input-bar .btn-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(22, 163, 74, .3);
}

.conv-item {
    background: var(--white);
    border: 1px solid var(--border);
    transition: all var(--transition);
    border-radius: var(--radius);
}

.conv-item:hover {
    background: var(--bg);
    border-color: #d1d5db;
    box-shadow: var(--shadow-sm);
}

.conv-unread {
    background: var(--accent-light);
    border-color: #bfdbfe;
}

.conv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #059669);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}


/* ── Error messages ───────────────────────────────────────────── */

.field-error {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--danger);
    margin-top: 5px;
}

.field-error::before {
    content: '\F335';
    /* bi-exclamation-circle */
    font-family: 'bootstrap-icons';
}


/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 768px) {
    .wizard-page .card-body {
        padding: 15px 10px !important;
    }
    .wizard-page {
        padding-top: 20px;
        padding-bottom: 80px;
    }
    .wizard-page .card {
        box-shadow: none !important;
    }
    .wizard-btn-row .btn-next {
        padding: 11px 22px;
    }
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    .step-label {
        font-size: 10px;
    }
    .step-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .chat-bubble {
        max-width: 85%;
    }
    .my-listings-page .col-lg-3 {
        display: none;
    }
}

@media (max-width: 576px) {
    .deal-card {
        padding: 14px 10px;
    }
    .deal-card i {
        font-size: 1.6rem;
    }
    .cat-option {
        font-size: 12.5px;
        padding: 7px 10px;
    }
    .step-label {
        display: none;
    }
    .wizard-page {
        padding-left: 0px;
        padding-right: 0px;
    }
}


/* ── Mobile bottom nav ────────────────────────────────────────── */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
    padding: 6px 0 env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 4px 6px;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    gap: 3px;
    position: relative;
    transition: color var(--transition);
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: var(--primary);
}

.mobile-bottom-nav i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom));
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}


/* ── Char counter ─────────────────────────────────────────────── */

.char-count {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
    transition: color var(--transition);
}

.char-count.warn {
    color: var(--warning);
}

.char-count.limit {
    color: var(--danger);
    font-weight: 600;
}


/* ── Price display ────────────────────────────────────────────── */

.price-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
    min-height: 28px;
}


/* ── Alert / Info box ────────────────────────────────────────────*/

.info-box {
    background: var(--accent-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box i {
    flex-shrink: 0;
    margin-top: 1px;
}


/* ── Loading spinner ──────────────────────────────────────────── */

.btn-loading {
    pointer-events: none;
    opacity: .75;
}


/* ── Menu icon wrapper ─────────────────────────────────────────── */

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
    color: var(--muted-light);
    transition: color var(--transition);
}

.sidebar-menu-item:hover .menu-icon,
.sidebar-menu-item.active .menu-icon {
    color: var(--primary);
}

.sidebar-menu-item.danger .menu-icon {
    color: #fca5a5;
}

.sidebar-menu-item.danger:hover .menu-icon {
    color: var(--danger);
}


/* ── Step number ───────────────────────────────────────────────── */

.step-number {
    font-weight: 700;
    opacity: .7;
}


/* ── Media Manager ─────────────────────────────────────────────── */

.media-manager {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 4px;
}


/* Type tabs */

.media-type-tabs {
    display: flex;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 12px;
    gap: 2px;
    overflow-x: auto;
}

.media-type-tabs .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    padding: 10px 14px;
    border: none;
    border-bottom: 2.5px solid transparent;
    border-radius: 0;
    white-space: nowrap;
    transition: all .15s;
    background: none;
}

.media-type-tabs .nav-link:hover {
    color: var(--primary);
}

.media-type-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--border);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    margin-left: 4px;
    transition: all .15s;
}

.nav-link.active .tab-badge {
    background: var(--primary);
    color: #fff;
}


/* Room filter bar */

.room-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.room-filter-btn {
    font-size: 12.5px;
    padding: 4px 12px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    color: var(--text-soft);
    cursor: pointer;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.room-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.room-filter-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.room-count {
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}


/* Add buttons bar */

.media-add-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.add-media-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-soft);
    cursor: pointer;
    line-height: 1;
    transition: all .15s;
}

.add-media-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}


/* Stats bar */

.media-stats-bar {
    padding: 7px 14px;
    font-size: 12.5px;
    color: var(--muted);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.media-stats-bar b {
    color: var(--text);
}


/* Upload drop zone (compact) */

.upload-zone-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px dashed var(--border);
    border-radius: 0;
    cursor: pointer;
    transition: all .15s;
    background: var(--white);
}

.upload-zone-sm:hover,
.upload-zone-sm.drag-over {
    border-color: var(--primary);
    background: rgba(22, 163, 74, .03);
}


/* Media grid full */

.media-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 14px;
    min-height: 120px;
}


/* Media card */

.media-card {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--white);
    transition: border-color .15s, transform .15s;
    position: relative;
}

.media-card:hover {
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.media-card.is-cover {
    border-color: var(--warning);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, .15);
}

.media-card-thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg);
}

.media-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 2rem;
}

.media-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--bg);
    color: var(--muted);
}

.media-card-placeholder i {
    font-size: 1.8rem;
    opacity: .4;
}

.media-card-placeholder span {
    font-size: 11px;
    margin-top: 4px;
}

.cover-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(217, 119, 6, .9);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    padding: 3px 0;
}

.media-card-meta {
    padding: 5px 6px;
    border-top: 1px solid var(--border);
}

.room-select {
    font-size: 11px !important;
    padding: 2px 6px !important;
    border-color: var(--border) !important;
}

.media-card-actions {
    display: flex;
    border-top: 1px solid var(--border);
}

.mc-btn {
    flex: 1;
    padding: 6px;
    border: none;
    border-right: 1px solid var(--border);
    background: var(--white);
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-btn:last-child {
    border-right: none;
}

.mc-btn:hover {
    background: var(--bg);
}

.btn-del-mc:hover {
    color: var(--danger);
    background: #fef2f2;
}

.btn-cover-mc:hover {
    color: var(--warning);
}


/* Empty state */

.media-empty {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--muted);
}


/* ── Modals ─────────────────────────────────────────────────────── */

.mm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    backdrop-filter: blur(2px);
}

.mm-modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 16px;
}

.mm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 15px;
}

.mm-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.mm-modal-close:hover {
    color: var(--text);
}

.mm-modal-body {
    padding: 20px;
}

.mm-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* ── Search Tags Widget (step1, step3) ─────────────────────────── */

.search-tags-box {
    background: #fff;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 8px;
}

.search-tags-title {
    font-size: 12.5px;
    color: var(--muted, #6b7280);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-tags-title strong {
    color: var(--text, #111827);
}

.search-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid var(--border, #e5e7eb);
    background: #fff;
    color: var(--text-soft, #374151);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

.search-tag:hover {
    border-color: var(--primary, #16a34a);
    color: var(--primary, #16a34a);
    background: rgba(22, 163, 74, .05);
}

.search-tag.selected {
    border-color: var(--primary, #16a34a);
    background: var(--primary-light, #dcfce7);
    color: var(--primary, #16a34a);
    font-weight: 600;
}

.search-tag .tag-label-bold {
    font-weight: 700;
}

.search-tags-hint {
    font-size: 11.5px;
    color: var(--muted, #6b7280);
    margin-top: 10px;
    font-style: italic;
}


/* ── Upload zone drag-over state ────────────────────────────────── */

.upload-zone-sm.drag-over {
    background: rgba(22, 163, 74, .06);
    border-color: var(--primary, #16a34a);
}

@media (max-width:576px) {
    .media-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    .media-add-bar .add-media-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}


/* ── Search Tags Widget ────────────────────────────────────────── */

.search-tags-box {
    background: #fff;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 4px;
}

.search-tags-title {
    font-size: 13px;
    color: var(--muted, #6b7280);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.search-tags-title strong {
    color: var(--text, #111827);
}

.search-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1.5px solid var(--border, #e5e7eb);
    background: #fff;
    color: var(--text-soft, #374151);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
    white-space: nowrap;
}

.search-tag:hover {
    border-color: var(--primary, #16a34a);
    color: var(--primary, #16a34a);
    background: rgba(22, 163, 74, .05);
}

.search-tag.selected {
    border-color: var(--primary, #16a34a);
    background: var(--primary-light, #dcfce7);
    color: var(--primary, #16a34a);
}

.tag-label-bold {
    font-weight: 700;
}

.tag-label-rest {
    font-weight: 400;
    margin-left: 1px;
}

.search-tags-hint {
    font-size: 11.5px;
    color: var(--muted, #6b7280);
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border, #e5e7eb);
    font-style: italic;
}


/* ── Media manager add-bar icons (override) ─────────────────────── */

.add-media-btn i,
.add-media-btn svg,
.add-media-btn img {
    width: 16px;
    height: 16px;
    display: block;
    /* tránh lệch baseline */
    flex-shrink: 0;
    line-height: 16px;
}


/* ── Upload zone drag-over state ────────────────────────────────── */

.upload-zone-sm.drag-over {
    background: rgba(22, 163, 74, .06);
    border-color: var(--primary, #16a34a);
}


/* ── Saved + History card ──────────────────────────────────────── */

.saved-card,
.history-card {
    border-radius: 10px !important;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
    border-color: var(--border, #e5e7eb) !important;
}

.saved-card:hover,
.history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08) !important;
}

.saved-card-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f3f4f6;
}

.saved-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.saved-card:hover .saved-card-thumb img,
.history-card:hover .saved-card-thumb img {
    transform: scale(1.04);
}

.saved-card-thumb .no-thumb {
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: #d1d5db;
}

.saved-card-title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}


/* VIP badge */

.badge-vip {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}


/* Heart unsave / save button */

.btn-unsave {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .95);
    color: #dc2626;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    z-index: 3;
}

.btn-unsave:hover {
    transform: scale(1.1);
    background: #fff;
}

.btn-unsave:not(.is-saved) {
    color: #9ca3af;
}

.btn-unsave.is-saved,
.btn-unsave .bi-heart-fill {
    color: #dc2626;
}


/* Empty state */

.empty-state {
    background: #fff;
    border-radius: 12px;
    border: 1px dashed var(--border, #e5e7eb);
}


/* Stretched link phải thấp hơn action buttons */

.saved-card .stretched-link,
.history-card .stretched-link {
    z-index: 1;
}


/* ══ LISTING CARD PRO (my/index.php) ══════════════════════════════ */


/* Status tabs - pill style */

.status-tabs .status-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 20px;
    border: 1.5px solid var(--border, #e5e7eb);
    background: #fff;
    color: var(--muted, #6b7280);
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
}

.status-tabs .status-tab:hover {
    border-color: #9ca3af;
    color: #374151;
}

.status-tabs .status-tab.active {
    color: #fff;
    font-weight: 600;
    border-color: transparent;
}

.status-tab.active-warning {
    background: #f59e0b;
}

.status-tab.active-success {
    background: #16a34a;
}

.status-tab.active-danger {
    background: #dc2626;
}

.status-tab.active-secondary {
    background: #6b7280;
}

.status-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    background: rgba(255, 255, 255, .2);
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 700;
}

.status-tab:not(.active) .tab-count {
    background: var(--border, #e5e7eb);
    color: var(--muted, #6b7280);
}


/* ── Listing Card Pro ──────────────────────────────────────────── */

.listing-card-pro {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow .15s, border-color .15s;
}

.listing-card-pro:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    border-color: #d1d5db;
}

.listing-card-pro.is-expired {
    border-color: rgba(220, 38, 38, .3);
    background: #fef2f2;
}

.lcp-body {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 16px;
    padding: 14px;
    align-items: start;
}


/* Thumbnail */

.lcp-thumb {
    position: relative;
    width: 150px;
    height: 112px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.lcp-thumb img {
    width: 150px;
    height: 112px;
    object-fit: cover;
    display: block;
}

.lcp-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #d1d5db;
}

.lcp-photo-count {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lcp-vip-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}


/* Info col */

.lcp-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.lcp-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11.5px;
}

.deal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .2px;
}

.deal-badge.deal-sell {
    background: #dbeafe;
    color: #1e40af;
}

.deal-badge.deal-rent {
    background: #fef3c7;
    color: #92400e;
}

.listing-id {
    color: #9ca3af;
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 11.5px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 11px;
}

.status-badge.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-success {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.status-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.lcp-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin: 2px 0;
    color: #111827;
}

.lcp-title a:hover {
    color: #16a34a;
}

.lcp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: var(--muted, #6b7280);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


/* Price */

.lcp-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 2px;
}

.price-main {
    color: #003bfa;
    font-weight: 700;
    font-size: 16px;
}

.price-per-m2 {
    color: var(--muted, #6b7280);
    font-size: 12px;
    font-weight: 500;
}


/* Dates row - full width, dưới ảnh */

.lcp-dates-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--muted, #6b7280);
    border-top: 1px dashed var(--border, #e5e7eb);
}

.lcp-dates-row .date-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lcp-dates-row .date-item strong {
    color: #374151;
    font-weight: 600;
}

.lcp-dates-row .date-item.text-danger strong {
    color: #dc2626;
}


/* Dates + stats row */

.lcp-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11.5px;
    color: var(--muted, #6b7280);
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px dashed var(--border, #e5e7eb);
}

.date-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


/* Actions col */

.lcp-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.lcp-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid var(--border, #e5e7eb);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    transition: all .15s;
    text-decoration: none;
}

.lcp-btn:hover {
    transform: translateY(-1px);
}

.lcp-btn-edit:hover {
    border-color: #16a34a;
    color: #16a34a;
    background: #f0fdf4;
}

.lcp-btn-hide:hover,
.lcp-btn-show:hover {
    border-color: #6b7280;
    color: #374151;
    background: #f9fafb;
}

.lcp-btn-delete:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}


/* Upgrade VIP bar */

.lcp-upgrade-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
    border-top: 1px solid #fde68a;
    font-size: 12.5px;
    color: #713f12;
    flex-wrap: wrap;
}

.upgrade-text strong {
    color: #92400e;
}

.btn-upgrade-vip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-weight: 600;
    font-size: 12.5px;
    border-radius: 6px;
    text-decoration: none;
    transition: all .15s;
    box-shadow: 0 2px 6px rgba(217, 119, 6, .25);
}

.btn-upgrade-vip:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(217, 119, 6, .35);
}


/* Responsive: stack columns on mobile */


/* Responsive: stack columns on mobile */

@media (max-width: 768px) {
    .lcp-body {
        grid-template-columns: 110px 1fr;
        gap: 10px;
        padding: 10px;
    }
    .lcp-thumb {
        width: 110px;
        height: 82px;
    }
    .lcp-thumb img {
        width: 110px;
        height: 82px;
    }
    /* Thông tin main col — gọn hơn */
    .lcp-info {
        gap: 4px;
    }
    .lcp-meta-top {
        gap: 5px;
        font-size: 11px;
    }
    .lcp-meta-top .deal-badge,
    .lcp-meta-top .status-badge {
        padding: 2px 7px;
        font-size: 10.5px;
    }
    .listing-id {
        font-size: 10.5px;
    }
    .lcp-title {
        font-size: 13.5px;
        line-height: 1.3;
        margin: 2px 0 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .lcp-meta {
        flex-direction: column;
        gap: 2px;
        font-size: 11.5px;
    }
    .meta-item {
        line-height: 1.4;
    }
    /* Giá — 1 dòng, không wrap */
    .lcp-price {
        display: flex;
        align-items: baseline;
        gap: 6px;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: hidden;
        margin-top: 2px;
    }
    .price-main {
        font-size: 15px;
        white-space: nowrap;
    }
    .price-per-m2 {
        font-size: 11px;
        white-space: nowrap;
        opacity: .9;
    }
    /* Actions — compact row ngay dưới info, không cần border-top */
    .lcp-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
        gap: 6px;
        padding-top: 8px;
        margin-top: 4px;
        border-top: 1px dashed var(--border, #e5e7eb);
    }
    .lcp-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    /* Dates row — wrap đều */
    .lcp-dates-row {
        padding: 8px 10px;
        gap: 10px 14px;
        font-size: 11.5px;
    }
    .lcp-dates-row .date-item {
        flex: 0 0 auto;
    }
    /* Upgrade bar — gọn + button rõ */
    .lcp-upgrade-bar {
        padding: 8px 10px;
        font-size: 11.5px;
        gap: 8px;
    }
    .upgrade-text {
        flex: 1;
        min-width: 0;
        line-height: 1.3;
    }
    .btn-upgrade-vip {
        padding: 6px 12px;
        font-size: 11.5px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}


/* Tablet nhỏ: giữ 2 cột nhưng compact hơn */

@media (max-width: 480px) {
    .lcp-dates-row {
        flex-direction: column;
        gap: 4px;
        padding: 8px 10px;
    }
    .lcp-upgrade-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .btn-upgrade-vip {
        justify-content: center;
    }
}


/* ── VIP info row (listing card pro) ───────────────────────────── */

.lcp-vip-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 8px 14px;
    font-size: 12px;
    color: #6b7280;
    background: color-mix(in srgb, var(--vip-color, #d97706) 6%, #fff);
    border-top: 1px solid color-mix(in srgb, var(--vip-color, #d97706) 15%, transparent);
}

.lcp-vip-info-row .vip-info-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lcp-vip-info-row .vip-info-item i {
    color: var(--vip-color, #d97706);
    font-size: 13px;
}

.lcp-vip-info-row .vip-info-item strong {
    color: var(--vip-color, #d97706);
}

.lcp-vip-info-row .vip-info-item.text-danger i,
.lcp-vip-info-row .vip-info-item.text-danger strong {
    color: #dc2626;
}


/* ── Language flags ─────────────────────────────────────────────── */

.lang-flags {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
}

.lang-flag {
    font-size: 14px;
    line-height: 1;
    opacity: .85;
    cursor: default;
}

.flag-icon {
    display: inline-block;
    vertical-align: middle;
    border-radius: 3px;
    object-fit: cover;
    /* box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); */
}

.flag-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}


/* ── Mobile: VIP info row stacks ────────────────────────────────── */

@media (max-width: 576px) {
    .lcp-vip-info-row {
        flex-direction: column;
        gap: 4px;
        padding: 8px 10px;
        font-size: 11.5px;
    }
}


/* ── Media icons overlay (thumbnail listing card) ──────────────── */

.lcp-media-icons {
    position: absolute;
    bottom: 6px;
    left: 6px;
    display: flex;
    gap: 4px;
}

.media-icon-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.3;
    backdrop-filter: blur(2px);
}

.media-icon-item i {
    font-size: 11px;
}


/* ── Partner Badge Pro (sidebar) ───────────────────────────────── */

.partner-badge-pro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 16px 6px 8px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    transition: transform .15s;
}

.partner-badge-pro:hover {
    transform: scale(1.03);
}

.partner-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}


/* ── Silver ── */

.partner-badge-pro.badge-silver {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(100, 116, 139, .15);
}

.badge-silver .partner-badge-icon {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
    box-shadow: 0 2px 4px rgba(100, 116, 139, .25);
}


/* ── Gold ── */

.partner-badge-pro.badge-gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1.5px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .2);
}

.badge-gold .partner-badge-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 4px rgba(217, 119, 6, .3);
}

.partner-badge-name {
    line-height: 1;
}

.btn-soft-danger {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}


/* ── Language switcher active state ────────────────────────────── */

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: background .15s;
}

.lang-menu a:hover {
    background: #f3f4f6;
}

.lang-menu a.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.lang-menu a .bi-check2 {
    color: var(--accent);
    font-size: 14px;
}


/* ══ NOTIFICATION PAGE ═══════════════════════════════════════════ */


/* Category tabs */

.notif-category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.notif-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 20px;
    border: 1.5px solid var(--border, #e5e7eb);
    background: #fff;
    color: var(--muted, #6b7280);
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
}

.notif-cat-tab:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.notif-cat-tab.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    font-weight: 600;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 16px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
}

.notif-cat-tab.active .cat-badge {
    background: rgba(255, 255, 255, .3);
}


/* Notification list */

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all .2s;
    cursor: default;
    position: relative;
}

.notif-item:hover {
    background: #f9fafb;
    border-color: var(--border, #e5e7eb);
}

.notif-item.is-unread {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
}


/* Icon */

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}


/* Content */

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notif-new-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .5;
        transform: scale(1.3);
    }
}

.notif-body {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 6px;
}

.notif-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    color: #9ca3af;
}

.notif-cat-label {
    padding: 1px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-weight: 500;
}


/* Actions */

.notif-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity .15s;
}

.notif-item:hover .notif-actions {
    opacity: 1;
}

.notif-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border, #e5e7eb);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    font-size: 13px;
    transition: all .15s;
    text-decoration: none;
}

.notif-action-btn:hover {
    background: #f3f4f6;
}

.notif-action-btn.btn-view:hover {
    color: #3b82f6;
    border-color: #3b82f6;
}

.notif-action-btn.btn-mark:hover {
    color: #16a34a;
    border-color: #16a34a;
}

.notif-action-btn.btn-delete:hover {
    color: #dc2626;
    border-color: #dc2626;
}


/* Mobile: always show actions */

@media (max-width: 768px) {
    .notif-actions {
        opacity: 1;
    }
    .notif-item {
        padding: 12px;
        gap: 10px;
    }
    .notif-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .notif-title {
        font-size: 13px;
    }
    .notif-body {
        font-size: 12px;
    }
}

.btn-login-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn-login-modern .btn-content {
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.btn-login-modern .btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}


/* Hover effect */

.btn-login-modern>i {
    margin-right: 5px;
}

.btn-login-modern:hover {
    color: var(--color-text);
    /* background: var(--main-color);
    border-color: var(--main-color);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25); */
    transform: translateY(-1px);
}


/* Icon animation */

.btn-login-modern:hover .btn-icon {
    transform: translateX(3px);
}


/* Active click */

.btn-login-modern:active {
    transform: scale(0.97);
}


/* ══ SEARCH PAGE ═════════════════════════════════════════════════ */


/* ── Filter bar ────────────────────────────────────────────────── */

.filter-bar-wrap {
    background: #fff;
    border-bottom: 1px solid var(--cream-dark);
    /* position: sticky;
    top: 60px; */
    z-index: 100;
}

.filter-bar-wrap>.container {
    max-width: 1140px;
}

.filter-bar-wrap.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* Search suggest trong filter bar (mobile) */

.filter-bar-wrap .sg-wrap {
    max-width: 100%;
    padding-top: 10px;
}

.filter-bar-wrap .sg-input-wrap {
    border-radius: 8px;
}

.filter-bar-wrap .sg-input {
    padding: 10px 12px;
    font-size: 14px;
}

.filter-bar-wrap .sg-btn {
    width: 44px;
}

.filter-bar-wrap .sg-input-wrap {
    box-shadow: none;
    border: 1.5px solid var(--border);
}

.filter-bar-wrap .sg-btn {
    background: transparent;
    color: #c7c7c7;
}

.filter-bar-wrap .sg-btn:hover {
    background: transparent;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    overflow: visible;
}


/* Deal toggle */

.deal-toggle {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 5px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.deal-toggle input[type="radio"] {
    display: none;
}

.deal-toggle label {
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--color-text);
    font-size: var(--font-sccm);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.deal-toggle input:checked+label {
    background: var(--bg-button);
    color: var(--accent);
    /* box-shadow: 0 1px 4px rgba(0, 0, 0, .18); */
}


/* Filter button */

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--color-text);
    font-size: var(--font-sccm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    position: relative;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--bg-button);
}

.filter-btn.active {
    background: var(--white);
    border-color: var(--border);
    color: var(--accent);
}

.filter-btn .arrow {
    font-size: 14px;
    color: var(--color-text);
    transition: transform .2s;
}

.filter-btn.open .arrow {
    transform: rotate(180deg);
}

.filter-btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-size: 13px;
    color: #dc2626;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 20px;
    transition: background .15s;
}

.filter-btn-clear:hover {
    background: #fef2f2;
    color: #dc2626;
}


/* ══ SEARCH: Rooms Filter Dropdown (PN + WC gộp) ═══════════════ */

.dd-rooms-panel {
    width: 320px;
}

.dd-rooms-body {
    padding: 16px;
}

.dd-rooms-section {
    margin-bottom: 14px;
}

.dd-rooms-section:last-child {
    margin-bottom: 0;
}

.dd-rooms-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.dd-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.dd-btn-option {
    flex: 1;
    min-width: 46px;
    padding: 9px 4px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: var(--color-text);
    font-size: var(--font-sccm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    margin-left: -1.5px;
}

.dd-btn-option:first-child {
    border-radius: 8px 0 0 8px;
    margin-left: 0;
}

.dd-btn-option:last-child {
    border-radius: 0 8px 8px 0;
}

.dd-btn-option:hover {
    background: #f3f4f6;
    z-index: 1;
}

.dd-btn-option.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    z-index: 2;
}


/* ── Suggest Tags Bar ────────────────────────────────────────────── */

.suggest-tags-wrapper {
    position: relative;
}

.scroll-right-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-right-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}


/* fade effect bên phải (đẹp hơn) */

.suggest-tags-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    pointer-events: none;
}

.suggest-tags-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.suggest-tags-bar::-webkit-scrollbar {
    display: none;
}

.suggest-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    background: #fff;
    transition: all .15s;
}

.suggest-tag:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.suggest-tag.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    font-weight: 600;
}

.search-page-title {
    font-size: 22px;
    font-weight: bold;
    padding-top: 15px;
}


/* ── Sidebar Quick Filter (thay thế Loại hình + Khu vực) ─────── */

.sidebar-link.active {
    color: var(--accent);
    font-weight: bold;
}

.sidebar-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.sidebar-filter-btn {
    flex: 1;
    min-width: 40px;
    padding: 8px 2px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all .15s;
    margin-left: -1.5px;
}

.sidebar-filter-btn:first-child {
    border-radius: 8px 0 0 8px;
    margin-left: 0;
}

.sidebar-filter-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.sidebar-filter-btn:hover {
    background: #f9fafb;
    color: #374151;
    z-index: 1;
}

.sidebar-filter-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    z-index: 2;
}

@media (max-width: 768px) {
    .suggest-tags-bar {
        padding: 0;
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .suggest-tag {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 12px;
        padding: 5px 12px;
    }
    .dd-rooms-panel {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }
}


/* ── Dropdown panel ────────────────────────────────────────────── */

.dd-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: none;
    background: transparent;
}

.dd-overlay.show {
    display: block;
}

.dd-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 200;
    background: #fff;
    border: 0px;
    border-radius: 12px;
    width: 330px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    display: none;
    flex-direction: column;
    overflow: hidden;
    max-height: 420px;
}

.dd-panel.show {
    display: flex;
}

.dd-panel.dd-narrow {
    width: 220px;
}

.dd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
}

.dd-title {
    font-weight: 600;
    font-size: 14px;
    color: #111;
}

.dd-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #9ca3af;
    line-height: 1;
}

.dd-list {
    overflow-y: auto;
    max-height: 320px;
    padding: 4px 0;
    scrollbar-width: thin;
}

.dd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: var(--font-sccm);
    color: var(--color-text);
    transition: background .1s;
}

.dd-item:hover {
    background: #f9fafb;
}

.dd-item.selected {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.dd-chevron {
    font-size: 10px;
    color: #d1d5db;
    margin-left: auto;
}

.dd-group-title {
    padding: 10px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.dd-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: #d1d5db;
}


/* 2 column (province/district) */

.dd-location {
    width: 440px;
}

.dd-body-2col {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.dd-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dd-col:first-child {
    border-right: 1px solid #f0f0f0;
}

.dd-col-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 8px 12px;
    background: #fafafa;
    border-bottom: 1px solid #f5f5f5;
}

.dd-col .dd-list {
    max-height: 280px;
}

.dd-col .dd-item {
    padding: 9px 12px;
    font-size: 14px;
}

.dd-footer {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-dd-reset {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.btn-dd-apply {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-dd-apply:hover {
    background: var(--primary-dark);
}


/* ── Search Results ────────────────────────────────────────────── */

.search-results-count {
    font-size: 14px;
    color: #6b7280;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* ── VIP Card (gallery) ────────────────────────────────────────── */

.sr-card-vip {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.sr-card-vip:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.sr-card-vip.vip-3 {
    border-color: #e5e7eb;
}

.sr-card-vip.vip-2 {
    border-color: #e5e7eb;
}

.sr-card-vip.vip-1 {
    border-color: #e5e7eb;
}


/* VIP Gallery grid */

.sr-vip-gallery {
    position: relative;
}

.vip-gallery-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 130px 130px;
    gap: 3px;
    overflow: hidden;
}


/* .vip-gallery-grid.g-5 {
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
} */

.vip-gallery-item.main {
    grid-row: span 2;
}

.vip-gallery-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.vip-gallery-grid.g-5 .vip-gallery-item.main {
    grid-row: 1 / -1;
}

.vip-gallery-grid.g-4 {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.vip-gallery-grid.g-4 .vip-gallery-item.main {
    grid-row: 1 / -1;
}

.vip-gallery-single {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 260px;
    overflow: hidden;
}

.vip-gallery-single img,
.vip-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.sr-card-vip:hover .vip-gallery-item.main img {
    transform: scale(1.03);
}

.sr-badge-row {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.sr-vip-label {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.sr-vip-label.vip-3 {
    background: rgba(0, 0, 0, .6);
}

.sr-vip-label.vip-2 {
    background: rgba(139, 92, 246, .85);
}

.sr-vip-label.vip-1 {
    background: rgba(249, 115, 22, .85);
}

.sr-media-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.sr-media-count span,
.sr-media-count-sm span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}


/* ── Normal Card (horizontal) ──────────────────────────────────── */

.sr-card-normal {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.sr-card-normal:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.sr-thumb {
    position: relative;
    aspect-ratio: 0/3;
    overflow: hidden;
    background: #f3f4f6;
}

.sr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sr-media-count-sm {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    gap: 3px;
}

.sr-time-label {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 4px;
}

.sr-no-image,
.sr-no-image-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f9fafb;
    color: #d1d5db;
    font-size: 2.5rem;
}

.sr-no-image-sm {
    font-size: 1.8rem;
}


/* ── Info block (shared) ───────────────────────────────────────── */

.sr-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sr-title {
    font-size: var(--font-sccl);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.sr-title a {
    color: var(--text);
    text-decoration: none;
}

.sr-title a:hover {
    color: var(--accent);
}

.sr-card-vip .sr-title {
    font-size: var(--font-sccl);
}

.sr-meta-line {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
}

.sr-cat {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
}

.sr-price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sr-price {
    font-size: var(--font-sccl);
    font-weight: 700;
    color: var(--text);
}

.sr-ppm2 {
    font-size: 13px;
    color: #6b7280;
}

.sr-card-normal .sr-price {
    font-size: 18px;
}

.sr-location {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.sr-location i {
    margin-right: 2px;
}

.sr-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 2px;
}

.sr-time {
    font-size: 12px;
    color: #9ca3af;
}

.sr-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #6b7280;
}

.sr-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.sr-heart {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    background: none;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
    transition: color .15s;
}

.sr-heart:hover {
    color: #dc2626;
}

.sr-heart.saved {
    color: #dc2626;
}


/* ── Sidebar ───────────────────────────────────────────────────── */

.sidebar-box {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 12px;
}

.sidebar-link {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    color: var(--color-text);
    text-decoration: none;
}

.sidebar-link:hover {
    color: var(--accent);
}


/* ── Sidebar: Districts ──────────────────────────────────── */

.dt-sidebar-box {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.dt-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.sb-district-list {
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.sb-district-list::-webkit-scrollbar {
    width: 3px;
}

.sb-district-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.sb-district-list::-webkit-scrollbar-track {
    background: transparent;
}

.sb-district-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: var(--text-soft, #374151);
    font-size: 13px;
    transition: all .12s;
}

.sb-district-item:last-child {
    border-bottom: none;
}

.sb-district-item:hover {
    color: var(--primary);
}

.sb-district-item.active {
    color: var(--primary);
    font-weight: 700;
    /* background: var(--accent-light, #eff6ff);
    border-left: 3px solid var(--primary);
    padding-left: 9px; */
}

.sb-district-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-district-count {
    flex-shrink: 0;
    min-width: 20px;
    font-size: 11px;
    color: var(--muted);
    background: #f3f4f6;
    padding: 2px;
    text-align: center;
    font-weight: normal;
    border-radius: 24px;
}

.sb-district-item:hover .sb-district-count,
.sb-district-item.active .sb-district-count {
    background: var(--cream-dark);
    color: var(--muted);
}


/* ── Mobile ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .filter-bar-wrap {
        top: 0;
    }
    .filter-bar {
        gap: 6px;
        padding: 8px 0;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .filter-bar::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        font-size: 13px;
        padding: 6px 10px;
    }
    .btn-loc-tong,
    .deal-toggle label {
        font-size: 13px;
    }
    .dd-panel,
    .dd-panel.dd-location {
        position: fixed !important;
        top: auto !important;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        border: none;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, .15);
        z-index: 300;
        /* Mobile: slide-up animation */
        display: flex !important;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform .3s cubic-bezier(.32, .72, 0, 1);
        pointer-events: none;
    }
    .dd-panel::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 10px auto 2px;
        flex-shrink: 0;
    }
    .dd-panel.show {
        transform: translateY(0);
        pointer-events: auto;
    }
    .dd-overlay.show {
        background: rgba(0, 0, 0, .35);
        z-index: 250;
    }
    .sr-card-normal {
        grid-template-columns: 180px 1fr;
    }
    .sr-card-vip .sr-title {
        font-size: 15px;
    }
    .sr-price {
        font-size: 14px;
    }
    .vip-gallery-grid {
        aspect-ratio: 1.8;
    }
}

@media (max-width: 576px) {
    .sr-card-normal {
        grid-template-columns: 1fr;
    }
    .sr-card-normal .sr-thumb {
        aspect-ratio: 16/9;
        max-height: 180px;
        width: 100%;
    }
}

.search-empty {
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #e5e7eb;
}


/* Filter dropdown container must be relative for absolute dd-panel */

.filter-dropdown {
    position: relative;
    flex-shrink: 0;
}


/* ══ NÚT LỌC TỔNG ═══════════════════════════════════════════════ */

.btn-loc-tong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text);
    font-size: var(--font-sccm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all .15s;
    flex-shrink: 0;
}

.btn-loc-tong:hover {
    border-color: var(--border);
}

.btn-loc-tong.has-filter {
    /* background: var(--bg-button); */
    border-color: var(--border);
    color: var(--accent);
}

.btn-loc-tong svg {
    flex-shrink: 0;
}

.loc-tong-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: var(--primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 9px;
    padding: 0 5px;
}


/* ══ FILTER MODAL (LỌC TỔNG) ════════════════════════════════════ */

.filter-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 500;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
}

.filter-modal-overlay.show {
    display: flex;
}

.filter-modal-panel {
    background: #fff;
    width: 100%;
    max-width: 460px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    animation: slideInRight .28s cubic-bezier(.32, .72, 0, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, .1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.filter-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
    padding: 4px;
    border-radius: 50%;
    transition: background .15s;
}

.filter-modal-close:hover {
    background: #f3f4f6;
}

.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.fm-section {
    margin-bottom: 24px;
}

.fm-label {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.fm-options {
    display: flex;
    gap: 8px;
}

.fm-options.fm-wrap {
    flex-wrap: wrap;
}

.fm-radio,
.fm-check {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

.fm-radio input,
.fm-check input {
    display: none;
}

.fm-radio:hover,
.fm-check:hover {
    border-color: var(--border-focus);
}

.fm-radio.active,
.fm-check.active {
    background: #f0fdf4;
    border-color: var(--border-focus);
    color: var(--accent);
    font-weight: 600;
}

.filter-modal-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.btn-fm-reset {
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.btn-fm-reset:hover {
    background: #f3f4f6;
}

.btn-fm-apply {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-fm-apply:hover {
    background: var(--primary-dark);
}


/* Mobile: full width panel */

@media (max-width: 768px) {
    .filter-modal-panel {
        max-width: 100%;
    }
}


/* ══ LISTING DETAIL PAGE ═════════════════════════════════════════ */


/* ── Hero Gallery ──────────────────────────────────────────────── */

.hero-gallery {
    position: relative;
    background: var(--bg);
    max-height: 480px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: 3px;
    margin-top: 6px;
    max-height: 480px;
}

.hero-grid-5 {
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.hero-grid-5 .hero-img-link:first-child {
    grid-row: 1 / -1;
}

.hero-grid-3 {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.hero-grid-3 .hero-img-link:first-child {
    grid-row: 1 / -1;
}

.hero-img-link {
    display: block;
    overflow: hidden;
    cursor: pointer;
}

.hero-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.hero-img-link:hover img {
    transform: scale(1.03);
}

.hero-single {
    max-height: 480px;
    overflow: hidden;
}

.hero-single img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.hero-empty {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #374151;
    background: #1f2937;
}


/* Overlay badges */

.hero-overlay-top {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-vip-badge {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.hero-vip-badge.vip-3 {
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
}

.hero-vip-badge.vip-2 {
    background: rgba(139, 92, 246, .85);
}

.hero-vip-badge.vip-1 {
    background: rgba(249, 115, 22, .85);
}

.hero-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
    padding: 40px 16px 12px;
    z-index: 3;
}

.hero-media-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.hero-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .2);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}

.hero-tab:hover,
.hero-tab.active {
    background: rgba(255, 255, 255, .3);
    color: #fff;
}

.hero-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(4px);
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .15s;
}

.hero-action-btn:hover {
    background: #fff;
}

.hero-action-btn.saved {
    color: #dc2626;
}

.hero-action-btn.saved .bi-heart-fill {
    color: #dc2626;
}


/* ── Detail Header ─────────────────────────────────────────────── */

.main-content .listing-detail-page {
    background: #fff;
}

.main-content .listing-detail-page .container {
    max-width: 1140px;
}

.detail-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

h1.detail-title-post {
    font-size: 1.6rem;
    font-weight: bold;
}

.deal-label {
    font-size: 13px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 6px;
}

.deal-label.sell {
    background: #dbeafe;
    color: #1e40af;
}

.deal-label.rent {
    background: #fef3c7;
    color: #92400e;
}

.detail-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text);
    line-height: 1.1;
}

.detail-specs {
    display: flex;
    gap: 20px;
}

.spec-item {
    text-align: center;
}

.spec-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.spec-label {
    font-size: 14px;
}

.detail-location {
    font-size: 14px;
    padding-top: 12px;
    font-weight: normal;
}


/* ══ DETAIL: Props grid v2 + Amenity box ═══════════════════════ */

.props-grid .prop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--primary-light);
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.props-grid .prop-item i {
    font-size: 20px;
    color: #6b7280;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.props-grid .prop-item .prop-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .4px;
    line-height: 1;
}

.props-grid .prop-item .prop-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 2px;
}


/* Amenity detail grid */

.amenity-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.amenity-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.amenity-detail-item i {
    font-size: 18px;
    color: var(--muted);
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .amenity-detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .amenity-detail-item {
        padding: 10px 12px;
        font-size: 12.5px;
        gap: 8px;
    }
    .amenity-detail-item i {
        font-size: 15px;
    }
}


/* ── Detail breadcrumb ───────────────────────────────────────── */

.detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.detail-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color .12s;
}

.detail-breadcrumb a:hover {
    color: var(--primary);
}

.detail-breadcrumb i {
    font-size: 12px;
}

.detail-breadcrumb span {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 576px) {
    .detail-breadcrumb {
        font-size: 12px;
        gap: 4px;
    }
}


/* ── Detail: Project info card ───────────────────────────────── */

.project-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: all .15s;
}

.project-info-card:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: inherit;
}

.project-info-name {
    font-size: 16px;
    font-weight: 700;
    color: #0369a1;
}

.project-info-count {
    font-size: 13px;
    color: var(--muted);
    margin-top: 3px;
}

.project-info-card>i {
    font-size: 18px;
    color: #93c5fd;
}


/* ── Detail: Rent info grid ──────────────────────────────────── */

.rent-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.rent-info-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
    background: var(--primary-light);
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-sm);
}

.rent-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.rent-info-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.rent-info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-top: 1px;
}

@media (max-width: 768px) {
    .rent-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .rent-info-grid {
        grid-template-columns: 1fr;
    }
}


/* ── Detail: Map ─────────────────────────────────────────────── */

.map-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 576px) {
    .map-container {
        aspect-ratio: 4/3;
    }
}


/* ── Detail: Related listings slider ─────────────────────────── */

.detail-related {
    position: relative;
}

.related-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.related-slider::-webkit-scrollbar {
    display: none;
}

.related-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: inherit;
}

.related-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.related-card:hover .related-img img {
    transform: scale(1.04);
}

.related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #d1d5db;
    font-size: 1.5rem;
}

.related-vip {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(139, 92, 246, .9);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.related-body {
    padding: 10px 12px 12px;
}

.related-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--danger);
}

.related-meta {
    font-size: 12px;
    color: var(--muted);
    margin: 3px 0;
    display: flex;
    gap: 6px;
}

.related-meta span::after {
    content: "·";
    margin-left: 5px;
    color: #d1d5db;
}

.related-meta span:last-child::after {
    content: "";
}

.related-addr {
    font-size: 12px;
    color: var(--muted-light, #9ca3af);
}

.related-nav {
    position: absolute;
    top: -12px;
    right: 0;
    transform: translateY(10px);
    display: flex;
    gap: 6px;
}

.related-prev,
.related-next {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--muted);
    transition: all .15s;
}

.related-prev:hover,
.related-next:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 576px) {
    .related-card {
        flex: 0 0 170px;
    }
    .related-price {
        font-size: 13px;
    }
    .related-nav {
        display: none;
    }
}


/* ── Props grid ────────────────────────────────────────────────── */

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.prop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.prop-item i {
    font-size: 18px;
    color: #6b7280;
}

.prop-label {
    font-size: 12px;
    color: #9ca3af;
    display: block;
}

.prop-value {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}


/* ── Tags ──────────────────────────────────────────────────────── */

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tag {
    padding: 6px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: #fff;
    text-transform: uppercase;
    letter-spacing: .3px;
    font-weight: 500;
}


/* ── Description ───────────────────────────────────────────────── */

.desc-content {
    font-size: var(--font-sccm);
    line-height: 1.7;
    color: var(--text);
    /* white-space: pre-wrap; */
}

.desc-content.collapsed {
    max-height: 150px;
    overflow: hidden;
    mask-image: linear-gradient(#000 60%, transparent);
    -webkit-mask-image: linear-gradient(#000 60%, transparent);
}

.btn-show-more {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0px;
    padding: 8px 0;
    border: none;
    background: none;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}


/* ── Photo gallery by room ─────────────────────────────────────── */

.room-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.room-tab {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    font-weight: 500;
}

.room-tab:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.room-tab.active {
    background: var(--primary);
    border-color: var(--border-focus);
    color: #fff;
    font-weight: 600;
}

.room-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .1);
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    margin-left: 4px;
}

.room-tab.active .room-tab-count {
    background: rgba(255, 255, 255, .3);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.photo-grid-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f3f4f6;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.photo-grid-item:hover img {
    transform: scale(1.04);
}

.photo-room-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 10px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.video-embed {
    border-radius: 12px;
    overflow: hidden;
}

.tour-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    color: #0369a1;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}

.tour-link:hover {
    background: #e0f2fe;
    color: #0369a1;
}


/* ── Photo Gallery — Masonry Pro Layout ─────────────────────────── */

.pg-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 6px;
}


/* Large item: spans 2 cols × 2 rows */

.pg-item.pg-large {
    grid-column: span 2;
    grid-row: span 2;
}


/* Small item: 1 col × 1 row */

.pg-item.pg-small {
    grid-column: span 1;
    grid-row: span 1;
}

.pg-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.pg-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.pg-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s cubic-bezier(.25, .8, .25, 1), filter .3s;
}

.pg-item:hover .pg-link img {
    transform: scale(1.06);
}


/* ── Stats ─────────────────────────────────────────────────────── */

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--color-text);
}


/* ── Sidebar ───────────────────────────────────────────────────── */

.detail-sidebar {
    position: sticky;
    top: 5px;
}

.agent-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.agent-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.bottom-agent-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.agent-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

.btn-contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    font-weight: 700;
    font-size: var(--font-scc);
    text-decoration: none;
    transition: background .15s;
    margin-bottom: 10px;
}

.btn-contact-phone:hover {
    background: var(--primary-dark);
    color: #fff;
}


/* ── Sidebar: Dự án khu vực ──────────────────────────────── */

.dt-project-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dt-project-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: padding-left .12s;
}

.dt-project-item:last-child {
    border-bottom: none;
}

.dt-project-item:hover {
    padding-left: 4px;
}

.dt-proj-img {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.dt-proj-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dt-proj-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 18px;
}

.dt-proj-info {
    min-width: 0;
    flex: 1;
}

.dt-proj-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-project-item:hover .dt-proj-name {
    color: var(--primary);
}

.dt-proj-loc {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 1px;
}

.dt-proj-price {
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    margin-top: 2px;
}


/* ── Agent socials (Zalo + WhatsApp) ─────────────────────────── */

.agent-socials {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.agent-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s;
    border: 1.5px solid;
}

.agent-zalo {
    color: #0068ff;
    border-color: #0068ff;
}

.agent-zalo:hover {
    background: #0068ff;
    color: #fff;
}

.agent-zalo svg {
    flex-shrink: 0;
}

.agent-whatsapp {
    color: #25d366;
    border-color: #25d366;
}

.agent-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.btn-contact-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .15s;
}

.btn-contact-chat:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.quick-actions {
    display: flex;
    gap: 8px;
}

.qa-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font-size: 14px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

.qa-btn:hover {
    border-color: #9ca3af;
}

.qa-btn.saved {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}


/* ── Mobile bottom bar ─────────────────────────────────────────── */

.detail-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--cream-dark);
    padding: 8px 15px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
}

.bottom-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}

.bottom-actions {
    display: flex;
    gap: 8px;
}

.bottom-btn-phone,
.bottom-btn-chat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.bottom-btn-phone {
    background: var(--primary);
    color: #fff;
}

.bottom-btn-phone:hover {
    background: var(--primary-dark);
    color: #fff;
}

.bottom-btn-chat {
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--cream-dark);
}


/* ── Mobile responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
    .hero-gallery {
        max-height: 300px;
    }
    .hero-grid {
        max-height: 300px;
    }
    .hero-single img {
        height: 300px;
    }
    .hero-grid-5 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .hero-grid-5 .hero-img-link:first-child {
        grid-row: 1 / -1;
    }
    .hero-grid-5 .hero-img-link:nth-child(n+4) {
        display: none;
    }
    .hero-action-btn span {
        display: none;
    }
    .hero-action-btn {
        padding: 8px 10px;
    }
    .detail-price {
        font-size: 1.25rem;
    }
    .detail-price .detail-location {
        padding-top: 9px;
    }
    .detail-specs {
        gap: 14px;
    }
    .spec-value {
        font-size: 1.1rem;
    }
    .props-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .detail-sidebar {
        position: static;
    }
    .agent-card {
        margin-top: 20px;
    }
    /* Space for bottom bar */
    .listing-detail-page {
        padding-bottom: 20px;
    }
    h1.detail-title-post {
        font-size: 1.25rem;
    }
}


/* Wrapper layout */

.search-layout {
    display: flex;
    align-items: flex-start;
}


/* Sidebar */

.search-sidebar {
    position: sticky;
    top: 0px;
    width: 100px;
    height: calc(100vh - 0px);
    background: #fafafa;
    border-right: 1px solid #e5e7eb;
    flex: 0 0 100px;
}


/* Scroll bên trong */

.sidebar-inner {
    height: 100%;
    overflow-y: auto;
    padding-top: 10px;
    /* chiều cao header + filter */
    padding-left: 10px;
    padding-right: 10px;
}


/* Content đẩy sang phải */

.search-content {
    flex: 1;
}

.search-content>.container {
    max-width: 1140px;
}

.search-content .container.py-4>.row {
    display: flex;
    flex-wrap: nowrap;
}

.content-inner {
    max-width: 980px;
    /* giống container-xl */
    margin: 0 auto;
    padding: 0;
}


/* ── 2. Sidebar sticky + scroll ────────────────────────────────── */

.search-content .col-lg-3 {
    position: sticky;
    top: 10px;
    margin-top: 15px;
    /* max-height: calc(100vh - 76px);
    overflow-y: auto;
    align-self: flex-start;
    padding-right: 20px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent; */
}

.search-content .col-lg-3::-webkit-scrollbar {
    width: 3px;
}

.search-content .col-lg-3::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.search-content .col-lg-3::-webkit-scrollbar-track {
    background: transparent;
}


/* ── 3. Sort dropdown ẩn trong filter-bar (desktop) ────────────── */

@media (min-width: 992px) {
    #fd-sort.in-filter {
        display: none;
    }
}


/* ── Search: Description ─────────────────────────────────────── */

.sr-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0px 0 0px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sr-card-normal .sr-desc {
    -webkit-line-clamp: 2;
    margin: 0;
}


/* ── Search: Poster info ─────────────────────────────────────── */

.sr-poster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.sr-poster-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sr-poster-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sr-poster-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-verified {
    color: var(--cl-verified);
}

.badge-verified-user {
    color: #0ece54;
    font-size: 14px;
}

.sr-poster-count {
    font-size: 12px;
    color: var(--muted);
}


/* Partner badge */

.sr-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.sr-partner-badge i {
    font-size: 10px;
}


/* ── Search: Specs (area, bedrooms, bathrooms) ───────────────── */

.sr-spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    /* background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 6px; */
}

.sr-spec i {
    font-size: 14px;
    color: var(--muted);
}

.sr-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 3px 0;
}


/* ── Search: Rent extras (amenities + service fee) ───────────── */

.sr-rent-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0 4px;
}

.sr-rent-tag {
    display: inline-block;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--accent);
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.sr-rent-tag i {
    font-size: 12px;
}


/* Normal card: compact */

.sr-card-normal .sr-spec {
    font-size: 14px;
    padding: 0 3px;
}

.sr-card-normal .sr-rent-extras {
    margin: 4px 0 2px;
}

.sr-card-normal .sr-rent-tag {
    font-size: 12px;
    padding: 1px 6px;
}

.sr-rent-tag-green {
    background: #dcfce7;
    color: #166534;
}


/* ── Listing expired notice ──────────────────────────────────── */

.listing-expired-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
}

.expired-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.expired-title {
    font-size: 15px;
    font-weight: 700;
    color: #991b1b;
}

.expired-desc {
    font-size: 13px;
    color: #b91c1c;
    margin-top: 2px;
}


/* ── 4. Sort hiện cạnh suggest tags ────────────────────────────── */

.suggest-tags-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggest-tags-bar {
    flex: 1;
    min-width: 0;
}

#fd-sort.in-suggest {
    flex-shrink: 0;
    position: relative;
}

#fd-sort.in-suggest .filter-btn {
    padding: 7px 14px;
    font-size: 13px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: var(--white);
}

#fd-sort.in-suggest .dd-panel {
    right: 0;
    left: auto;
}


/* ── 5. Mobile: sidebar dưới, sort trở lại filter-bar ──────────── */

@media (max-width: 991px) {
    .search-content .container.py-4>.row {
        flex-wrap: wrap;
    }
    .search-content .col-lg-3 {
        order: 1;
        position: static;
        max-height: none;
        overflow-y: visible;
        padding-right: 12px;
    }
    #fd-sort.in-suggest {
        display: none;
    }
    #fd-sort.in-filter {
        display: block !important;
    }
}


/* ══ GALLERY MODAL (Full-screen) ═══════════════════════════════ */

.gm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 20, 30, .97);
    display: flex;
    flex-direction: column;
    animation: gmFadeIn .2s ease;
}

@keyframes gmFadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}


/* ── Top bar ──────────────────────────────────────────────────── */

.gm-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 50px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.gm-tabs {
    display: flex;
    gap: 0;
}

.gm-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .15s;
    font-family: inherit;
}

.gm-tab:hover {
    color: rgba(255, 255, 255, .85);
}

.gm-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

.gm-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gm-action-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gm-action-btn:hover {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.gm-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .7);
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
    margin-left: 8px;
    transition: color .15s;
}

.gm-close:hover {
    color: #fff;
}


/* ── Room tabs ────────────────────────────────────────────────── */

.gm-room-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    overflow-x: auto;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    scrollbar-width: none;
}

.gm-room-tabs::-webkit-scrollbar {
    display: none;
}

.gm-room-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .12s;
    font-family: inherit;
}

.gm-room-tab:hover {
    color: rgba(255, 255, 255, .8);
}

.gm-room-tab.active {
    color: #fff;
    border-bottom-color: var(--primary);
}

.gm-room-count {
    font-weight: 400;
    opacity: .7;
    margin-left: 2px;
}


/* ── Body: viewer + sidebar ───────────────────────────────────── */

.gm-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}


/* ── Viewer (left) ────────────────────────────────────────────── */

.gm-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px 16px;
}

.gm-main-img {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #0a0e16;
    user-select: none;
}

.gm-main-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity .2s;
}


/* Nav arrows */

.gm-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.gm-nav:hover {
    background: rgba(0, 0, 0, .75);
    border-color: rgba(255, 255, 255, .3);
}

.gm-nav-prev {
    left: 16px;
}

.gm-nav-next {
    right: 16px;
}


/* Overlays on image */

.gm-img-overlay-top {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 6px;
}

.gm-project-badge {
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.gm-img-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 40px 20px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}

.gm-room-label {
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    font-weight: 600;
}

.gm-price-label {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.gm-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}


/* ── Thumbnails ───────────────────────────────────────────────── */

.gm-thumbs {
    display: flex;
    gap: 6px;
    padding: 10px 0 4px;
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
}

.gm-thumbs::-webkit-scrollbar {
    display: none;
}

.gm-thumb {
    flex: 0 0 80px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .5;
    transition: all .15s;
}

.gm-thumb:hover {
    opacity: .8;
}

.gm-thumb.active {
    opacity: 1;
    border-color: #fff;
}

.gm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ── Sidebar (right) ──────────────────────────────────────────── */

.gm-sidebar {
    width: 360px;
    flex-shrink: 0;
    background: #fff;
    color: var(--text);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}


/* Agent card */

.gm-agent {
    display: flex;
    gap: 14px;
    padding: 20px 20px 16px;
    align-items: center;
}

.gm-agent-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gm-agent-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.gm-verified {
    color: #16a34a;
    font-size: 12px;
    font-weight: 600;
}

.gm-verified i {
    margin-right: 2px;
}

.gm-agent-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
    color: var(--muted);
}


/* Contact form */

.gm-contact-form {
    padding: 0 20px 20px;
    flex: 1;
}

.gm-form-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.gm-field {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    transition: border-color .15s;
}

.gm-field:focus-within {
    border-color: var(--primary);
}

.gm-field i {
    color: var(--muted);
    font-size: 16px;
    flex-shrink: 0;
}

.gm-field input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    background: transparent;
}

.gm-field input::placeholder {
    color: var(--muted-light, #9ca3af);
}

.gm-field-phone {
    gap: 0;
    padding: 0;
}

.gm-phone-prefix {
    padding: 10px 12px;
    border-right: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

.gm-phone-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    flex: 1;
}

.gm-textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    color: var(--text);
    font-family: inherit;
    resize: none;
    min-height: 80px;
    line-height: 1.5;
    transition: border-color .15s;
    margin-bottom: 12px;
}

.gm-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.gm-submit-btn {
    width: 100%;
    padding: 13px;
    background: #d4a843;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}

.gm-submit-btn:hover {
    background: #c49a3a;
}

.gm-submit-btn.sent {
    background: #16a34a;
}

.gm-quick-contact {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.gm-btn-call,
.gm-btn-zalo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s;
}

.gm-btn-call {
    color: var(--text);
}

.gm-btn-call:hover {
    border-color: #16a34a;
    color: #16a34a;
}

.gm-btn-zalo {
    color: #0068ff;
    border-color: #0068ff;
}

.gm-btn-zalo:hover {
    background: #0068ff;
    color: #fff;
}

.gm-checkboxes {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gm-checkboxes label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    cursor: pointer;
}

.gm-checkboxes input {
    margin-top: 2px;
    accent-color: var(--primary);
}


/* ── Mobile gallery modal ─────────────────────────────────────── */

@media (max-width: 992px) {
    .gm-body {
        flex-direction: column;
        overflow-y: auto;
    }
    .gm-sidebar {
        width: 100%;
        flex-shrink: 0;
    }
    .gm-viewer {
        padding: 6px 10px;
    }
    .gm-topbar {
        padding: 0 12px;
        height: 44px;
    }
    .gm-action-btn span {
        display: none;
    }
    .gm-action-btn {
        padding: 6px 10px;
    }
    .gm-tab {
        font-size: 13px;
        padding: 10px 12px;
    }
    .gm-room-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    .gm-nav {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .gm-nav-prev {
        left: 8px;
    }
    .gm-nav-next {
        right: 8px;
    }
    .gm-thumb {
        flex: 0 0 64px;
        height: 44px;
    }
}

@media (max-width: 576px) {
    .gm-actions .gm-action-btn {
        display: none;
    }
    .gm-topbar .gm-tabs {
        flex: 1;
    }
}


/* ── Gallery Modal: Panel switching ────────────────────────────── */

.gm-panel {
    display: none;
    flex: 1;
    min-width: 0;
}

.gm-panel.active {
    display: flex;
    flex-direction: column;
}

.gm-embed-wrap {
    flex: 1;
    position: relative;
    padding: 10px 16px;
    min-height: 0;
}

.gm-embed-wrap iframe {
    position: absolute;
    inset: 10px 16px;
    width: calc(100% - 32px);
    height: calc(100% - 20px);
}


/* Map address bar */

.gm-map-addr {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(6px);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

@media (max-width: 992px) {
    .gm-embed-wrap {
        padding: 6px 10px;
    }
    .gm-embed-wrap iframe {
        position: absolute;
        inset: 6px 10px;
        width: calc(100% - 20px);
        height: calc(100% - 12px);
    }
    .gm-map-addr {
        font-size: 11px;
        padding: 8px 14px;
        bottom: 14px;
    }
}


/* ── Search Breadcrumb (silo) ────────────────────────────────── */

.search-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 0 0;
    font-size: var(--font-sccm);
    color: var(--muted);
}

.search-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color .12s;
}

.search-breadcrumb a:hover {
    color: var(--primary);
}

.search-breadcrumb a:last-of-type {
    color: var(--text);
    font-weight: 600;
}

.search-breadcrumb i {
    font-size: 12px;
    color: var(--color-text);
}

@media (max-width: 576px) {
    .search-breadcrumb {
        font-size: 12px;
        gap: 4px;
        padding: 10px 0 0;
    }
}


/* ── Sidebar: Project list ───────────────────────────────────── */

.sidebar-project-list {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.sidebar-project-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-project-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.sidebar-project-list::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: var(--text-soft, #374151);
    font-size: 13px;
    transition: all .12s;
}

.sidebar-project-item:last-child {
    border-bottom: none;
}

.sidebar-project-item:hover {
    /* background: var(--accent-light, #eff6ff); */
    color: var(--primary);
    /* padding-left: 16px; */
}

.sidebar-project-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.sidebar-project-count {
    flex-shrink: 0;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 24px;
    font-size: 11px;
    font-weight: normal;
    color: var(--muted);
}

.sidebar-project-item:hover .sidebar-project-count {
    background: var(--primary);
    color: #fff;
}


/* ══ PROJECT MODULE ═══════════════════════════════════════════ */


/* ── List page ─────────────────────────────────────────────── */

.pj-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 0 0;
    font-size: 13px;
    color: var(--muted)
}

.pj-breadcrumb a {
    color: var(--muted);
    text-decoration: none
}

.pj-breadcrumb a:hover {
    color: var(--primary)
}

.pj-breadcrumb i {
    font-size: 9px;
    color: #d1d5db
}

.pj-breadcrumb span {
    color: var(--text);
    font-weight: 600
}

.pj-page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin: 12px 0 16px
}

.pj-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px
}

.pj-filters .form-select,
.pj-filters .form-control {
    max-width: 200px
}

.pj-count {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px
}

.pj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

@media(max-width:992px) {
    .pj-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:576px) {
    .pj-grid {
        grid-template-columns: 1fr
    }
}

.pj-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s
}

.pj-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: inherit
}

.pj-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6
}

.pj-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s
}

.pj-card:hover .pj-card-img img {
    transform: scale(1.04)
}

.pj-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #d1d5db
}

.pj-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff
}

.pj-card-img .pj-status-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px)
}

.pj-status-1 {
    background: #0ea5e9
}

.pj-status-2 {
    background: #22c55e
}

.pj-status-3 {
    background: #f59e0b
}

.pj-status-4 {
    background: #6b7280
}

.pj-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fbbf24;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px
}

.pj-listing-count {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px
}

.pj-card-body {
    padding: 14px 16px
}

.pj-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3
}

.pj-card-addr {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 6px
}

.pj-card-specs {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-soft, #374151);
    margin-bottom: 6px
}

.pj-card-specs span {
    display: inline-flex;
    align-items: center;
    gap: 3px
}

.pj-card-specs i {
    font-size: 13px;
    color: var(--muted)
}

.pj-card-price {
    font-size: 15px;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 4px
}

.pj-card-investor {
    font-size: 12px;
    color: var(--muted)
}


/* ── Detail page ───────────────────────────────────────────── */

.pj-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 16px;
    max-height: 420px
}

.pj-hero-main {
    overflow: hidden
}

.pj-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s
}

.pj-hero:hover .pj-hero-main img {
    transform: scale(1.03)
}

.pj-hero-side {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 6px
}

.pj-hero-thumb {
    position: relative;
    overflow: hidden
}

.pj-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.pj-hero-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700
}

.pj-hero-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600
}

.pj-hero {
    position: relative
}

@media(max-width:768px) {
    .pj-hero {
        grid-template-columns: 1fr;
        max-height: 280px
    }
    .pj-hero-side {
        display: none
    }
}

.pj-header {
    margin-bottom: 20px
}

.pj-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin: 8px 0 6px;
    line-height: 1.2
}

.pj-address {
    font-size: 14px;
    color: var(--muted)
}

.pj-key-specs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden
}

.pj-spec {
    flex: 1;
    min-width: 120px;
    padding: 16px;
    text-align: center;
    border-right: 1px solid var(--border)
}

.pj-spec:last-child {
    border-right: none
}

.pj-spec-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--text)
}

.pj-spec-label {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px
}

.pj-spec-price .pj-spec-val {
    color: #dc2626
}

@media(max-width:576px) {
    .pj-spec {
        min-width: 33%;
        padding: 12px 8px
    }
    .pj-spec-val {
        font-size: 15px
    }
}

.pj-tabs {
    margin-bottom: 0
}

.pj-tab-content {
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 24px;
    margin-bottom: 20px
}

.pj-content {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-soft, #374151)
}

.pj-content p {
    margin-bottom: 12px
}


/* Amenities grid */

.pj-amenity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px
}

.pj-amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text)
}

.pj-amenity-item i {
    font-size: 16px;
    color: var(--primary)
}

@media(max-width:576px) {
    .pj-amenity-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}


/* Unit table */

.pj-unit-table thead {
    background: #f9fafb
}

.pj-unit-table th {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted)
}

.pj-unit-table td {
    font-size: 14px;
    vertical-align: middle
}


/* Timeline */

.pj-timeline {
    position: relative;
    padding-left: 28px
}

.pj-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb
}

.pj-timeline-item {
    position: relative;
    margin-bottom: 24px
}

.pj-timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb
}

.pj-timeline-dot.done {
    background: #22c55e;
    box-shadow: 0 0 0 2px #bbf7d0
}

.pj-timeline-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text)
}

.pj-timeline-date {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0
}

.pj-timeline-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin: 6px 0;
    max-width: 200px;
    position: relative
}

.pj-timeline-bar div {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 3px
}

.pj-timeline-bar span {
    position: absolute;
    right: -40px;
    top: -2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text)
}

.pj-timeline-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0 0
}


/* Listings scroll */

.pj-listing-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px
}

.pj-listing-scroll::-webkit-scrollbar {
    display: none
}

.pj-listing-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform .2s
}

.pj-listing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: inherit
}

.pj-lst-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f3f4f6
}

.pj-lst-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.pj-lst-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 1.5rem
}

.pj-lst-body {
    padding: 10px 12px
}

.pj-lst-price {
    font-size: 15px;
    font-weight: 800;
    color: #dc2626
}

.pj-lst-title {
    font-size: 12.5px;
    color: var(--text-soft, #374151);
    margin: 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.pj-lst-specs {
    font-size: 11.5px;
    color: var(--muted);
    display: flex;
    gap: 6px
}

.pj-lst-specs span::after {
    content: "·";
    margin-left: 5px;
    color: #d1d5db
}

.pj-lst-specs span:last-child::after {
    content: ""
}


/* Sidebar */

.pj-sidebar-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px
}

.pj-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border)
}

.pj-investor {
    text-align: center
}

.pj-investor-logo {
    max-height: 48px;
    margin-bottom: 8px
}

.pj-investor-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text)
}

.pj-investor-web {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-top: 4px
}

.pj-info-table {
    width: 100%
}

.pj-info-table td {
    padding: 6px 0;
    font-size: 13.5px;
    border-bottom: 1px solid #f3f4f6
}

.pj-info-table td:first-child {
    color: var(--muted);
    width: 45%
}

.pj-info-table td:last-child {
    font-weight: 600;
    color: var(--text)
}

.pj-sidebar-map iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 8px
}


/* Gallery modal */

.pj-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .95);
    display: flex;
    flex-direction: column
}

.pj-gm-topbar {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    color: #fff
}

.pj-gm-counter {
    font-size: 14px;
    font-weight: 600
}

.pj-gm-topbar button {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer
}

.pj-gm-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 60px
}

.pj-gm-body img {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain
}

.pj-gm-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center
}

.pj-gm-nav:hover {
    background: rgba(255, 255, 255, .3)
}

.pj-gm-prev {
    left: 12px
}

.pj-gm-next {
    right: 12px
}

.avatar-upload-wrap {
    text-align: center;
}

.avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-letter {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

.avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all .15s;
}

.avatar-upload-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* ── SEO Content Block ───────────────────────────────────────── */

.seo-desc-block {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 5px;
    padding: 0;
}

.seo-content-block {
    margin-top: 40px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.seo-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}

.seo-body {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-soft, #374151);
    max-height: 160px;
    overflow: hidden;
    position: relative;
    transition: max-height .4s ease;
}

.seo-body.expanded {
    max-height: 5000px;
}

.seo-body:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--bg, #fff));
    pointer-events: none;
}

.seo-body h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 15px 0 8px;
}

.seo-body h3,
.seo-body h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 16px 0 8px;
}

.seo-body table {
    width: 100%;
}

.seo-body table tr td {
    padding: 10px;
    border: 1px solid var(--border);
}

.seo-body table tr td p {
    margin: 0;
}

.seo-body ul {
    padding-left: 20px;
    margin: 8px 0;
}

.seo-body li {
    margin-bottom: 4px;
}

.seo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 18px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

.seo-toggle:hover {
    border-color: var(--primary);
    background: var(--accent-light);
}

.seo-toggle i {
    transition: transform .3s;
    font-size: 12px;
}

.seo-toggle.expanded i {
    transform: rotate(180deg);
}


/* ══ ARTICLE FRONTEND ════════════════════════════════════════ */


/* ── Breadcrumb ──────────────────────────────────────────── */

.art-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 0;
    font-size: 13px;
    color: var(--muted)
}

.art-breadcrumb a {
    color: var(--muted);
    text-decoration: none
}

.art-breadcrumb a:hover {
    color: var(--primary)
}

.art-breadcrumb i {
    font-size: 9px;
    color: #d1d5db
}

.art-breadcrumb span {
    color: var(--text);
    font-weight: 600
}


/* ── Hero featured ───────────────────────────────────────── */

.art-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    overflow: hidden
}

.art-hero-main {
    position: relative;
    min-height: 380px;
    overflow: hidden
}

.art-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s
}

.art-hero-main:hover img {
    transform: scale(1.03)
}

.art-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: #fff
}

.art-hero-overlay h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 8px 0 4px;
    line-height: 1.25
}

.art-hero-overlay p {
    font-size: 14px;
    opacity: .85;
    margin: 0
}

.art-cat-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700
}

.art-hero-side {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 8px
}

.art-hero-sm {
    position: relative;
    overflow: hidden;
    text-decoration: none
}

.art-hero-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s
}

.art-hero-sm:hover img {
    transform: scale(1.04)
}

.art-hero-sm-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    color: #fff
}

.art-cat-badge-sm {
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, .2);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px
}

.art-hero-sm-overlay h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3
}

@media(max-width:768px) {
    .art-hero {
        grid-template-columns: 1fr
    }
    .art-hero-side {
        display: none
    }
    .art-hero-main {
        min-height: 240px
    }
}

.art-page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 20px
}


/* ── Category pills ──────────────────────────────────────── */

.art-cat-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.art-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap
}

.art-pill:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.art-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.art-pill-count {
    font-size: 11px;
    opacity: .6
}

.art-pill.active .art-pill-count {
    opacity: .8
}


/* ── Article list cards ──────────────────────────────────── */

.art-list {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.art-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: transform .2s, box-shadow .2s
}

.art-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: inherit
}

.art-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10
}

.art-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s
}

.art-card:hover .art-card-img img {
    transform: scale(1.04)
}

.art-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #d1d5db;
    font-size: 2rem
}

.art-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px)
}

.art-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.art-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.art-card-excerpt {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.art-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted)
}

.art-author-av {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0
}

.art-author-letter {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.art-author-name {
    font-weight: 600;
    color: var(--text)
}

.art-meta-sep {
    color: #d1d5db
}

@media(max-width:576px) {
    .art-card {
        grid-template-columns: 1fr
    }
    .art-card-img {
        aspect-ratio: 16/9
    }
}


/* ── Detail page ─────────────────────────────────────────── */

.art-detail-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 8px;
    max-height: 480px
}

.art-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

@media(max-width:768px) {
    .art-detail-cover {
        border-radius: 0;
        margin-left: calc(-1*var(--bs-gutter-x, 12px));
        margin-right: calc(-1*var(--bs-gutter-x, 12px));
        max-height: 280px
    }
}

.art-detail-header {
    margin-bottom: 28px
}

.art-detail-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 6px;
    background: var(--accent-light, #eff6ff);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 12px;
    transition: background .15s
}

.art-detail-cat:hover {
    background: var(--primary);
    color: #fff
}

.art-detail-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 12px
}

@media(max-width:576px) {
    .art-detail-title {
        font-size: 24px
    }
}

.art-detail-excerpt {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 16px;
    font-style: italic;
    border-left: 4px solid var(--primary);
    padding-left: 16px
}

.art-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border)
}

.art-detail-author {
    display: flex;
    align-items: center;
    gap: 10px
}

.art-detail-author .art-author-av {
    width: 40px;
    height: 40px
}

.art-detail-author .art-author-letter {
    width: 40px;
    height: 40px;
    font-size: 16px
}

.art-author-info {
    display: flex;
    flex-direction: column
}

.art-author-info .art-author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text)
}

.art-meta-date {
    font-size: 12.5px;
    color: var(--muted)
}

.art-detail-actions {
    display: flex;
    gap: 6px
}

.art-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 15px;
    transition: all .15s
}

.art-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary)
}


/* Content typography */

.art-detail-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-soft, #374151);
    margin-bottom: 28px
}

.art-detail-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 32px 0 12px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-light, #eff6ff)
}

.art-detail-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 8px;
    color: var(--text)
}

.art-detail-content p {
    margin-bottom: 14px
}

.art-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 16px 0
}

.art-detail-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--accent-light, #eff6ff);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: #374151
}

.art-detail-content ul,
.art-detail-content ol {
    padding-left: 24px;
    margin-bottom: 14px
}

.art-detail-content li {
    margin-bottom: 6px
}

.art-detail-content a {
    color: var(--primary);
    text-decoration: underline
}

.art-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0
}

.art-detail-content table th,
.art-detail-content table td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    font-size: 14px
}

.art-detail-content table th {
    background: #f9fafb;
    font-weight: 700
}


/* Tags */

.art-detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border)
}

.art-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    background: #f3f4f6;
    color: var(--text-soft, #374151);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s
}

.art-tag:hover,
.art-tag.active {
    background: var(--primary);
    color: #fff
}

.art-tag span {
    font-size: 11px;
    opacity: .6;
    margin-left: 2px
}


/* Share bar */

.art-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border)
}

.art-share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted)
}

.art-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: transform .15s
}

.art-share-btn:hover {
    transform: scale(1.1)
}

.art-share-fb {
    background: #1877f2
}

.art-share-tw {
    background: #0f1419
}

.art-share-li {
    background: #0a66c2
}

.art-share-copy {
    background: #6b7280;
    border: 1.5px solid var(--border);
    color: var(--text)
}

.art-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 28px
}


/* Related */

.art-related {
    margin-bottom: 32px
}

.art-related-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text)
}

.art-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px
}

@media(max-width:576px) {
    .art-related-grid {
        grid-template-columns: 1fr
    }
}

.art-related-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s
}

.art-related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: inherit
}

.art-related-img {
    aspect-ratio: 16/10;
    overflow: hidden
}

.art-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s
}

.art-related-card:hover .art-related-img img {
    transform: scale(1.04)
}

.art-related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #d1d5db;
    font-size: 1.5rem
}

.art-related-body {
    padding: 14px 16px
}

.art-related-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase
}

.art-related-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.art-related-date {
    font-size: 12px;
    color: var(--muted)
}


/* Sidebar */

.art-sidebar-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px
}

.art-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border)
}

.art-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.art-sidebar-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: var(--text-soft, #374151);
    text-decoration: none;
    transition: all .12s
}

.art-sidebar-cat:last-child {
    border-bottom: none
}

.art-sidebar-cat:hover,
.art-sidebar-cat.active {
    color: var(--primary);
    padding-left: 16px;
    background: var(--accent-light, #eff6ff)
}

.art-sidebar-cnt {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--muted)
}

.art-sidebar-cat:hover .art-sidebar-cnt,
.art-sidebar-cat.active .art-sidebar-cnt {
    background: var(--primary);
    color: #fff
}


/* Author card sidebar */

.art-author-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px
}

.art-author-card-av {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover
}

.art-author-card-letter {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center
}

.art-author-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text)
}

.art-author-card-role {
    font-size: 12px;
    color: var(--muted)
}

.art-author-card-bio {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0
}


/* TOC */

.art-toc-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.art-toc-list li {
    margin-bottom: 0
}

.art-toc-list li a {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--text-soft, #374151);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all .12s
}

.art-toc-list li a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--accent-light, #eff6ff)
}

.art-toc-sub a {
    padding-left: 24px;
    font-size: 12.5px;
    color: var(--muted)
}


/* ══ AGENCY / BROKER MODULE ══════════════════════════════════ */


/* ── List page ───────────────────────────────────────────── */

.ag-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px
}

.ag-type-tabs {
    display: flex;
    gap: 4px
}

.ag-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: all .15s
}

.ag-type-tab:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.ag-type-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.ag-filter {
    display: flex;
    gap: 6px;
    align-items: center
}

.ag-filter .form-select,
.ag-filter .form-control {
    max-width: 180px
}

.ag-count {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px
}

.ag-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

@media(max-width:992px) {
    .ag-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:576px) {
    .ag-grid {
        grid-template-columns: 1fr
    }
}

.ag-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s
}

.ag-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: inherit
}

.ag-card-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px
}

.ag-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center
}

.ag-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.ag-avatar span {
    color: #fff;
    font-size: 20px;
    font-weight: 700
}

.ag-verified-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #2563eb
}

.ag-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text)
}

.ag-card-title-role {
    font-size: 12.5px;
    color: var(--primary);
    font-weight: 600
}

.ag-card-agency {
    font-size: 12px;
    color: var(--muted)
}

.ag-card-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.ag-card-stats {
    display: flex;
    gap: 0;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px
}

.ag-stat {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-right: 1px solid #f3f4f6
}

.ag-stat:last-child {
    border-right: none
}

.ag-stat-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--text)
}

.ag-stat-lbl {
    font-size: 10.5px;
    color: var(--muted)
}

.ag-card-bottom {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted)
}

.ag-card-bottom span {
    display: inline-flex;
    align-items: center;
    gap: 3px
}

.ag-card-loc {
    color: var(--text-soft, #374151)
}

.ag-card-exp {
    color: var(--primary)
}


/* Company card */

.ag-company-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border)
}

.ag-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px
}

.ag-company-logo i {
    font-size: 24px;
    color: #d1d5db
}


/* ── Agent detail ────────────────────────────────────────── */

.ag-profile-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg)
}

.ag-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
    position: relative;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

.ag-profile-avatar img,
.ag-profile-letter {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover overflow: hidden;
}

.ag-profile-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 36px;
    font-weight: 700
}

.ag-profile-verified {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #2563eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1) z-index: 2;
}

.ag-profile-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.ag-level-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block
}

.ag-profile-title {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px
}

.ag-profile-slogan {
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 6px
}

.ag-profile-agency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 8px
}

.ag-profile-agency:hover {
    color: var(--primary)
}

.ag-agency-logo-sm {
    height: 20px;
    width: auto;
    border-radius: 3px
}

.ag-profile-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted)
}

.ag-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px
}

@media(max-width:576px) {
    .ag-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center
    }
    .ag-profile-meta {
        justify-content: center
    }
}

.ag-stats-bar {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px
}

.ag-stat-item {
    flex: 1;
    text-align: center;
    padding: 16px;
    border-right: 1px solid var(--border)
}

.ag-stat-item:last-child {
    border-right: none
}

.ag-stat-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--text)
}

.ag-stat-txt {
    font-size: 11.5px;
    color: var(--muted)
}

.ag-section {
    margin-bottom: 28px
}

.ag-section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-light, #eff6ff)
}

.ag-bio {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-soft, #374151)
}

.ag-spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.ag-spec-tag {
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text)
}

.ag-area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.ag-area-item {
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text)
}

.ag-area-item.primary {
    background: var(--accent-light, #eff6ff);
    color: var(--primary);
    font-weight: 600;
    border: 1.5px solid #bfdbfe
}

.ag-cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
}

.ag-cert-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px
}

.ag-cert-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0
}

.ag-cert-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text)
}

.ag-listing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
}

.ag-listing-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s
}

.ag-listing-card:hover {
    box-shadow: var(--shadow);
    color: inherit
}

.ag-lst-img {
    overflow: hidden
}

.ag-lst-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.ag-lst-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #d1d5db
}

.ag-lst-body {
    padding: 10px 12px
}

.ag-lst-price {
    font-size: 14px;
    font-weight: 800;
    color: #dc2626
}

.ag-lst-title {
    font-size: 12.5px;
    color: var(--text-soft, #374151);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.ag-lst-meta {
    font-size: 11.5px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    margin-top: 2px
}

@media(max-width:576px) {
    .ag-listing-grid {
        grid-template-columns: 1fr
    }
}


/* Reviews */

.ag-review-list {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.ag-review-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius)
}

.ag-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap
}

.ag-review-name {
    font-weight: 700;
    color: var(--text)
}

.ag-review-stars {
    display: flex;
    gap: 1px;
    font-size: 13px
}

.ag-review-date {
    font-size: 12px;
    color: var(--muted);
    margin-left: auto
}

.ag-review-text {
    font-size: 14px;
    color: var(--text-soft, #374151);
    margin: 0;
    line-height: 1.6
}

.ag-review-details {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6
}


/* Contact sidebar */

.ag-contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    position: sticky;
    top: 5px;
}

.ag-contact-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px
}

.ag-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s;
    margin-bottom: 10px
}

.ag-btn-phone {
    background: #22c55e;
    color: #fff
}

.ag-btn-phone:hover {
    background: #16a34a;
    color: #fff
}

.ag-contact-socials {
    display: flex;
    gap: 6px
}

.ag-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: all .15s
}

.ag-social-btn:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.ag-zalo {
    color: #0068ff;
    border-color: #0068ff
}

.ag-zalo:hover {
    background: #0068ff;
    color: #fff
}

.ag-whatsapp {
    color: #25d366;
    border-color: #25d366
}

.ag-whatsapp:hover {
    background: #25d366;
    color: #fff
}

.ag-sidebar-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px
}

.ag-agency-card-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text)
}

.ag-agency-card-link:hover {
    color: var(--primary)
}

.ag-agency-card-logo {
    height: 36px;
    width: auto;
    border-radius: 4px
}

.ag-agency-card-name {
    font-size: 15px;
    font-weight: 700
}


/* ── Agency detail ───────────────────────────────────────── */

.acy-header {
    margin-bottom: 24px
}

.acy-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 280px;
    margin-bottom: -50px
}

.acy-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.acy-header-inner {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    padding: 0 24px
}

.acy-logo-wrap {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.acy-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px
}

.acy-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    font-size: 2.5rem;
    color: #d1d5db
}

.acy-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.acy-slogan {
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
    margin: 0 0 6px
}

.acy-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted)
}

.acy-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px
}

@media(max-width:576px) {
    .acy-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0
    }
    .acy-meta {
        justify-content: center
    }
    .acy-cover {
        max-height: 180px;
        margin-bottom: -30px
    }
    .acy-logo-wrap {
        width: 80px;
        height: 80px
    }
}

.acy-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px
}

.acy-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3
}

.acy-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s
}

.acy-gallery-item:hover img {
    transform: scale(1.05)
}

@media(max-width:576px) {
    .acy-gallery {
        grid-template-columns: repeat(2, 1fr)
    }
}

.acy-agent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
}

.acy-agent-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: all .15s
}

.acy-agent-card:hover {
    box-shadow: var(--shadow);
    color: inherit;
    transform: translateY(-2px)
}

.acy-agent-av {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

.acy-agent-av img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.acy-agent-av span {
    color: #fff;
    font-size: 18px;
    font-weight: 700
}

.acy-agent-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text)
}

.acy-agent-role {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600
}

.acy-agent-stats {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px
}

@media(max-width:576px) {
    .acy-agent-grid {
        grid-template-columns: 1fr
    }
}


/* ── Call button in listing card ─────────────────────────── */

.sr-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    background: var(--cl-verified);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.sr-call-btn:hover {
    background: var(--cl-verified-hover);
    color: #fff;
}

.sr-call-btn i {
    font-size: 16px;
}


/* ── Contact Modal ───────────────────────────────────────── */

.ct-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ct-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    animation: ctSlideUp .25s ease;
}

@keyframes ctSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ct-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.ct-modal-close:hover {
    background: #e5e7eb;
}

.ct-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    text-align: center;
    margin: 0 0 8px;
}

.ct-modal-desc {
    font-size: 13.5px;
    color: #6b7280;
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.5;
}

.ct-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111;
    margin-bottom: 10px;
    transition: border-color .15s;
    outline: none;
    font-family: inherit;
}

.ct-input:focus {
    border-color: var(--primary);
}

.ct-input::placeholder {
    color: #9ca3af;
}

.ct-phone-row {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
}

.ct-phone-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border: 1.5px solid #e5e7eb;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
    white-space: nowrap;
}

.ct-phone-input {
    border-radius: 0 10px 10px 0;
    margin-bottom: 0;
    flex: 1;
}

.ct-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #6b7280;
    margin: 12px 0 16px;
    cursor: pointer;
}

.ct-checkbox input {
    margin-top: 2px;
    accent-color: var(--primary);
}

.ct-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: opacity .15s;
}

.ct-submit:hover {
    opacity: .9;
}

.ct-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.ct-footer {
    text-align: center;
    margin-top: 12px;
}

.ct-policy {
    font-size: 11.5px;
    color: #9ca3af;
}

.ct-policy a {
    color: var(--primary);
    font-weight: 600;
}

.ct-login-hint {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    font-size: 14px;
    color: #6b7280;
}

.ct-login-hint a {
    color: #ea580c;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid #ea580c;
    padding: 6px 18px;
    border-radius: 8px;
    margin-left: 8px;
}

.ct-login-hint a:hover {
    background: #ea580c;
    color: #fff;
}

.ct-input.error {
    border-color: #dc2626;
    animation: ctShake .3s ease;
}

@keyframes ctShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}


/* ══════════════════════════════════════════════════════════════
   POPUP CAMPAIGN SYSTEM
   ══════════════════════════════════════════════════════════════ */


/* ── Overlay ──────────────────────────────────────────────── */

.pp-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.pp-overlay.show {
    opacity: 1;
    pointer-events: auto;
}


/* Modal style — dark backdrop */

.pp-style-modal {
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
}


/* Slide-in — no backdrop */

.pp-style-slide_in {
    background: none;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.pp-style-slide_in.show {
    pointer-events: auto;
}

.pp-style-slide_in .pp-popup {
    pointer-events: auto;
    max-width: 360px;
    margin: 0 20px 20px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
}


/* Bottom bar */

.pp-style-bottom_bar {
    background: none;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.pp-style-bottom_bar.show {
    pointer-events: auto;
}

.pp-style-bottom_bar .pp-popup {
    pointer-events: auto;
    max-width: 100%;
    width: 100%;
    border-radius: 16px 16px 0 0;
    margin: 0;
    padding: 20px 24px;
}


/* Fullscreen */

.pp-style-fullscreen .pp-popup {
    max-width: 520px;
    width: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Position variants */

.pp-pos-bottom_right {
    align-items: flex-end;
    justify-content: flex-end;
}

.pp-pos-bottom_left {
    align-items: flex-end;
    justify-content: flex-start;
}

.pp-pos-top {
    align-items: flex-start;
}


/* ── Popup card ───────────────────────────────────────────── */

.pp-popup {
    position: relative;
    max-width: 420px;
    width: 100%;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    text-align: center;
    transform: translateY(20px) scale(.95);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.pp-overlay.show .pp-popup {
    transform: translateY(0) scale(1);
}


/* Slide-in animation */

.pp-style-slide_in .pp-popup {
    transform: translateX(120%);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.pp-style-slide_in.show .pp-popup {
    transform: translateX(0);
}


/* Bottom bar animation */

.pp-style-bottom_bar .pp-popup {
    transform: translateY(100%);
    transition: transform .3s ease;
}

.pp-style-bottom_bar.show .pp-popup {
    transform: translateY(0);
}


/* ── Close button ─────────────────────────────────────────── */

.pp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .06);
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    z-index: 2;
}

.pp-close:hover {
    background: rgba(0, 0, 0, .12);
    color: #111;
}


/* ── Image ────────────────────────────────────────────────── */

.pp-image {
    width: calc(100% + 64px);
    margin: -32px -32px 20px;
    border-radius: 20px 20px 0 0;
    max-height: 200px;
    object-fit: cover;
    display: block;
}


/* ── Typography ───────────────────────────────────────────── */

.pp-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.3;
}

.pp-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 18px;
    line-height: 1.5;
}

.pp-desc {
    font-size: 13.5px;
    color: #374151;
    margin: 0 0 18px;
    line-height: 1.6;
    text-align: left;
}


/* ── Form ─────────────────────────────────────────────────── */

.pp-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pp-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111;
    outline: none;
    font-family: inherit;
    transition: border-color .15s;
    -webkit-appearance: none;
    background: #fff;
}

.pp-input:focus {
    border-color: var(--primary, #003bfa);
}

.pp-input::placeholder {
    color: #9ca3af;
}

select.pp-input {
    cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat right 12px center;
    padding-right: 36px;
}

textarea.pp-input {
    resize: none;
}


/* Shake animation */

.pp-shake {
    border-color: #ef4444 !important;
    animation: ppShake .4s ease;
}

@keyframes ppShake {
    0%,
    100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-6px);
    }
    40% {
        transform: translateX(6px);
    }
    60% {
        transform: translateX(-4px);
    }
    80% {
        transform: translateX(4px);
    }
}


/* ── CTA Button ───────────────────────────────────────────── */

.pp-cta {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}

.pp-cta:hover {
    opacity: .9;
    transform: translateY(-1px);
    color: #fff;
}

.pp-cta:active {
    transform: translateY(0);
}

.pp-cta:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}


/* ── Success screen ───────────────────────────────────────── */

.pp-success {
    padding: 40px 20px;
    text-align: center;
}

.pp-success-icon {
    font-size: 56px;
    color: #22c55e;
    margin-bottom: 16px;
    animation: ppBounce .5s ease;
}

@keyframes ppBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.pp-success .pp-title {
    color: #166534;
}


/* ── Mobile responsive ────────────────────────────────────── */

@media (max-width: 576px) {
    .pp-popup {
        max-width: 100%;
        padding: 24px 20px;
        border-radius: 16px;
        margin: 10px;
    }
    .pp-image {
        width: calc(100% + 40px);
        margin: -24px -20px 16px;
        border-radius: 16px 16px 0 0;
    }
    .pp-title {
        font-size: 18px;
    }
    .pp-style-slide_in .pp-popup {
        max-width: 100%;
        margin: 0 10px 10px;
    }
    .pp-overlay {
        padding: 10px;
    }
}


/* ══ SEARCH SUGGEST AUTOCOMPLETE ═══════════════════════════ */

.sg-wrap {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    z-index: 100;
}

.sg-input-wrap {
    display: flex;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
    transition: box-shadow .2s;
}

.sg-input-wrap:focus-within {
    box-shadow: 0 6px 28px rgba(0, 0, 0, .18);
}

.sg-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-size: 15px;
    color: #111;
    background: transparent;
    font-family: inherit;
}

.sg-input::placeholder {
    color: #9ca3af;
}

.sg-btn {
    width: 52px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}

.sg-btn:hover {
    background: #1d4ed8;
}


/* ── Dropdown ─────────────────────────────────────────────── */

.sg-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
    max-height: 420px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.sg-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sg-dropdown::-webkit-scrollbar {
    width: 4px;
}

.sg-dropdown::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}


/* ── Group header ─────────────────────────────────────────── */

.sg-group {
    padding: 10px 18px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9ca3af;
}

.sg-group:not(:first-child) {
    border-top: 1px solid #f3f4f6;
    margin-top: 4px;
    padding-top: 12px;
}


/* ── Item ─────────────────────────────────────────────────── */

.sg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background .1s;
}

.sg-item:hover,
.sg-item.active {
    background: #f0f5ff;
}

.sg-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all .15s;
}

.sg-item:hover .sg-item-icon,
.sg-item.active .sg-item-icon {
    background: #dbeafe;
    color: #2563eb;
}

.sg-item-body {
    flex: 1;
    min-width: 0;
}

.sg-item-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-item-label mark {
    background: #fef3c7;
    color: #92400e;
    border-radius: 2px;
    padding: 0 1px;
}

.sg-item-sub {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 1px;
}

.sg-item-arrow {
    font-size: 12px;
    color: #d1d5db;
    flex-shrink: 0;
    transition: transform .15s, color .15s;
}

.sg-item:hover .sg-item-arrow,
.sg-item.active .sg-item-arrow {
    color: #2563eb;
    transform: translateX(3px);
}


/* ── Mobile ───────────────────────────────────────────────── */

@media (max-width: 576px) {
    .sg-wrap {
        max-width: 100%;
    }
    .sg-input {
        padding: 14px 16px;
        font-size: 14px;
    }
    .sg-btn {
        width: 46px;
    }
    .sg-dropdown {
        max-height: 360px;
        border-radius: 12px;
    }
    .sg-item {
        padding: 10px 14px;
        gap: 10px;
    }
    .sg-item-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}


/* ── Google Login Button ─────────────────────────────────── */

.btn-google-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all .15s;
    cursor: pointer;
}

.btn-google-login:hover {
    border-color: #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, .2);
    color: #374151;
}