@font-face {
    font-family: Estate;
    src: url('../fonts/be-vietnam-pro-latin-400-normal.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
}
@font-face {
    font-family: Estate;
    src: url('../fonts/be-vietnam-pro-vietnamese-400-normal.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: Estate;
    src: url('../fonts/be-vietnam-pro-latin-700-normal.woff2') format('woff2');
    font-display: swap;
    font-weight: 700;
}
@font-face {
    font-family: Estate;
    src: url('../fonts/be-vietnam-pro-vietnamese-700-normal.woff2') format('woff2');
    font-display: swap;
    font-weight: 700;
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

.estate {
    --brand: #D92D20;
    --brand-dark: #B42318;
    --brand-deep: #912018;
    --brand-soft: #FFF3F2;
    --brand-soft-2: #FEE4E2;
    --brand-border: #F5C2BE;
    --ink: #18181B;
    --ink-soft: #3F3F46;
    --muted: #52525B;
    --placeholder: #5C5855;
    --line: #E6E4E1;
    --line-strong: #D4D0CB;
    --paper: #FFFFFF;
    --background: #F6F6F7;
    --up: #15803D;
    --up-soft: #ECFDF3;
    --amber: #9A3412;
    --amber-soft: #FEF3C7;
    --slate: #27272A;
    --shadow-elevated: 0 12px 32px -12px rgba(24, 24, 27, 0.12), 0 2px 8px -2px rgba(24, 24, 27, 0.05);
    --shadow-hover: 0 14px 28px -14px rgba(24, 24, 27, 0.18), 0 4px 10px -4px rgba(24, 24, 27, 0.06);
    --font: Estate, system-ui, -apple-system, "Segoe UI", sans-serif;

    --bs-primary: #D92D20;
    --bs-primary-rgb: 217, 45, 32;
    --bs-link-color: #B42318;
    --bs-link-color-rgb: 180, 35, 24;
    --bs-link-hover-color: #912018;
    --bs-link-hover-color-rgb: 145, 32, 24;
    --bs-body-font-family: var(--font);
    --bs-font-sans-serif: var(--font);
    --bs-body-color: #18181B;
    --bs-body-bg: #F6F6F7;
    --bs-border-color: #E6E4E1;
    --bs-secondary-color: #52525B;

    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    font-family: var(--font);
    background: var(--background);
    color: var(--ink);
    line-height: 1.58;
    scrollbar-color: #C7C2BC transparent;
    scrollbar-width: thin;
}

.estate ::selection {
    background: rgba(217, 45, 32, 0.14);
    color: var(--ink);
}

.estate input,
.estate textarea,
.estate select {
    caret-color: var(--brand);
}

.estate > .estate-main-shell {
    flex: 1 0 auto;
}

.estate :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

@scope (.estate) to (.estate-inner) {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    a {
        color: inherit;
        text-decoration: none;
        text-underline-offset: 3px;
        transition: color 0.16s ease;
    }

    a:hover {
        color: var(--brand-dark);
    }

    img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    p,
    h1,
    h2,
    h3 {
        margin: 0;
    }

    h1,
    h2,
    h3 {
        line-height: 1.28;
        overflow-wrap: anywhere;
        color: var(--ink);
    }

    h1 {
        font-size: clamp(1.55rem, 2.3vw, 2.05rem);
        font-weight: 700;
        letter-spacing: -0.025em;
        text-wrap: balance;
    }

    h2 {
        font-size: 1.08rem;
        font-weight: 700;
    }

    h3 {
        font-size: 0.98rem;
        font-weight: 700;
    }
}

.estate .wrap {
    width: min(1220px, calc(100% - 40px));
    margin-inline: auto;
}

.estate .skip,
.estate .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.estate .skip:focus {
    z-index: 50;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    clip-path: none;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-elevated);
}

.estate .estate-widgets:empty {
    display: none;
}

/* Header & Navigation */
.estate-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px -8px rgba(24, 24, 27, 0.16);
}

.estate-topbar .utility {
    background: #FAFAFA;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
}

.estate-topbar .utility .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 7px;
}

.estate-topbar .utility-links {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.estate-topbar .utility-links a {
    color: var(--muted);
    font-weight: 400;
}

.estate-topbar .utility-links a:hover {
    color: var(--brand);
}

.estate-header .masthead {
    display: grid;
    grid-template-columns: auto minmax(18rem, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding-block: 10px;
}

.estate-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--brand);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-decoration: none;
}

.estate-header .brand:hover {
    color: var(--brand-dark);
}

.estate-header .brand svg {
    width: 38px;
    height: 38px;
    flex: none;
}

.estate-header .brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.estate-header .search {
    display: flex;
    max-width: 560px;
    width: 100%;
    justify-self: center;
    min-width: 0;
}

.estate-header .search input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid var(--line-strong);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: var(--background);
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.estate-header .search input::placeholder {
    color: var(--placeholder);
    opacity: 1;
}

.estate-header .search input:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--paper);
}

.estate-header .search button {
    display: grid;
    place-items: center;
    min-height: 38px;
    padding-inline: 14px;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: var(--brand);
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.16s ease;
}

.estate-header .search button:hover {
    background: var(--brand-dark);
}

.estate-header .masthead-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.estate-header .action-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 9px;
    border-radius: 9px;
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.estate-header .action-icon-link:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.estate-header .account-menu {
    position: relative;
}

.estate-header .account-menu-trigger {
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
}

.estate-header .account-menu-panel {
    position: absolute;
    inset-block-start: calc(100% + 6px);
    inset-inline-end: 0;
    z-index: 50;
    inline-size: max-content;
    min-inline-size: 220px;
    max-inline-size: calc(100vw - 32px);
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow-elevated);
}

.estate-header .account-menu-panel[hidden] {
    display: none;
}

.estate-header .account-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.estate-header .account-menu-panel a:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.estate-header .account-menu-sep {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.estate-caret {
    flex: 0 0 auto;
    transition: transform 0.16s ease;
}

[aria-expanded="true"] > .estate-caret {
    transform: rotate(180deg);
}

.estate-header .data-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 9px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.estate-header .data-link:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #FFFFFF;
}

.estate-header .data-link-outline {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--line-strong);
}

.estate-header .data-link-outline:hover {
    background: var(--brand-soft);
    border-color: var(--brand-border);
    color: var(--brand-dark);
}

.estate-header .rule {
    border-top: 1px solid var(--line);
}

.estate-nav-bar {
    background: transparent;
}

.estate-nav {
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.84rem;
}

.estate-nav-slot {
    display: flex;
    align-items: center;
    width: 100%;
}

.estate-nav-slot:empty {
    display: none;
}

.estate-nav-mobile-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.estate-nav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.estate-nav-item {
    position: relative;
}

.estate-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.estate-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: var(--ink-soft);
    white-space: nowrap;
    text-decoration: none;
}

.estate-nav-link:hover,
.estate-nav-item.is-open > .estate-nav-trigger > .estate-nav-link {
    color: var(--brand);
}

.estate-nav-link[aria-current="page"] {
    color: var(--brand);
}

.estate-nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5px;
    border-radius: 2px 2px 0 0;
    background: var(--brand);
}

.estate-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.estate-nav-toggle:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.estate-submenu {
    position: absolute;
    inset-block-start: calc(100% + 2px);
    inset-inline-start: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: minmax(220px, 1fr);
    gap: 2px;
    inline-size: max-content;
    max-inline-size: calc(100vw - 32px);
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow-elevated);
}

.estate-submenu::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 100%;
    block-size: 8px;
}

.estate-submenu[hidden] {
    display: none;
}

.estate-submenu.is-wide {
    grid-template-columns: repeat(2, minmax(240px, max-content));
    gap: 2px 10px;
}

.estate-nav-item:nth-last-child(-n+2) .estate-submenu {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.estate-submenu a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.estate-submenu a:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.estate-submenu a[aria-current="page"] {
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .estate-caret,
    .estate-submenu a,
    .estate-header .account-menu-panel a {
        transition: none;
    }
}

/* Market Ticker */
.estate-subbar {
    background: #FCFCFD;
    border-bottom: 1px solid var(--line);
}

.ticker-bar {
    background: #FCFCFD;
}

.estate-subbar .ticker {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding-block: 6px;
    font-size: 0.82rem;
}

.estate-subbar .ticker > strong {
    flex: none;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--brand);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, #000 0%, #000 95%, transparent 100%);
}

.estate-subbar .ticker ul {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 4px 16px 4px 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.estate-subbar .ticker ul::-webkit-scrollbar {
    display: none;
}

.estate-subbar .ticker li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
}

.estate-subbar .ticker li b {
    color: var(--ink);
}

.estate .up,
.estate .down,
.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.estate .up {
    color: var(--up);
}

.estate .down {
    color: var(--brand);
}

/* Breadcrumbs */
.estate .site-breadcrumbs {
    background: transparent !important;
    border: 0 !important;
    padding-block: 18px 6px;
}

.estate .site-breadcrumbs > .container {
    width: min(1220px, calc(100% - 40px));
    max-width: none;
    padding-inline: 0;
    margin-inline: auto;
}

.estate .site-breadcrumbs-list {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.estate .site-breadcrumbs-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.estate .site-breadcrumbs-item > a > i {
    color: #4A4744;
    font-size: 0.95em;
}

.estate .site-breadcrumbs {
    --nv-breadcrumbs-gap: 0.65rem;
    --nv-breadcrumbs-divider-color: #9a9692;
}

.estate .site-breadcrumbs-item a,
.estate .site-breadcrumbs-text {
    color: #4A4744;
}

.estate .site-breadcrumbs-item a:hover .site-breadcrumbs-text {
    color: var(--brand);
}

.estate .site-breadcrumbs-item.is-current .site-breadcrumbs-text {
    color: var(--ink);
    font-weight: 700;
}

/* Main Content Shell */
main.wrap.estate-main-shell {
    padding-block: 24px 48px;
}

.estate .main-content.estate-main-shell {
    padding-block: 4px 36px;
}

.estate .main-content.estate-main-shell > .container {
    width: min(1220px, calc(100% - 40px));
    max-width: none;
    padding-inline: 0;
    margin-inline: auto;
}

.estate-layout-row:not(:has(.estate-sidebar-slot .nv-block)) {
    margin-inline: 0;
}

.estate-layout-row:not(:has(.estate-sidebar-slot .nv-block)) > .estate-sidebar-slot,
.estate-sidebar-slot:has(.vstack-blocks:empty) {
    display: none;
}

.estate-layout-row:not(:has(.estate-sidebar-slot .nv-block)) > main {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding-inline: 0;
}

/* Hero Editorial Lead */
.lead-card {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow-elevated);
}

.lead {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.lead-feature {
    min-width: 0;
}

.hero-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #EAE8E5;
}

.hero-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.lead-feature:hover .hero-image img {
    transform: scale(1.025);
}

.hero-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--brand);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lead-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-block: 12px 6px;
    font-size: 0.78rem;
    color: var(--muted);
}

.lead-meta .category {
    margin: 0;
}

.lead-feature h1 a {
    color: var(--ink);
    text-decoration: none;
}

.lead-feature h1 a:hover {
    color: var(--brand);
}

.category {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.category span {
    margin-left: 3px;
    color: var(--muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.summary,
.muted,
.news-card-desc,
.project-card-desc,
.latest-desc,
.estate-page-desc {
    color: var(--muted);
    text-wrap: pretty;
}

.lead-feature .summary {
    margin-top: 9px;
    font-size: 0.94rem;
    line-height: 1.6;
}

/* Briefs Stack */
.briefs {
    display: grid;
    align-content: start;
    gap: 14px;
}

.brief-item + .brief-item {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.brief-item a {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    text-decoration: none;
}

.brief-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 9px;
    background: #EAE8E5;
}

.brief-thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.brief-item:hover .brief-thumb img {
    transform: scale(1.04);
}

.brief-copy .category {
    margin-bottom: 4px;
}

.brief-copy h2 {
    font-size: 0.95rem;
    line-height: 1.38;
    color: var(--ink);
    text-wrap: balance;
    transition: color 0.16s ease;
}

.brief-item a:hover .brief-copy h2 {
    color: var(--brand);
}

/* Two-Column Content Grid */
.columns {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(300px, 1fr);
    gap: 24px;
    align-items: start;
}

.sections {
    display: grid;
    align-content: start;
    gap: 22px;
    min-width: 0;
}

.panel,
.story {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    min-width: 0;
    scroll-margin-block-start: 64px;
}

.section-band {
    min-width: 0;
    padding-block: 4px;
    scroll-margin-block-start: 64px;
}

.section-band .section-head {
    border-bottom-color: var(--line-strong);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.section-head h2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
}

.section-head h2::before {
    content: "";
    width: 4px;
    height: 1.05em;
    border-radius: 2px;
    background: var(--brand);
    flex: none;
}

.section-sub {
    color: var(--muted);
    font-size: 0.82rem;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-dark);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.section-more:hover {
    color: var(--brand-deep);
}

/* Region Filter Pills */
.filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filters a,
.filters button,
.estate-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 5px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.filters a:hover,
.filters button:hover,
.estate-chip:hover {
    border-color: var(--brand-border);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.filters [aria-current],
.filters [aria-pressed="true"],
.estate-chip[aria-current="true"] {
    background: var(--brand);
    border-color: var(--brand);
    color: #FFFFFF;
}

.market-cards-wrap {
    transition: opacity 0.16s ease;
}

.market-cards-wrap[aria-busy="true"] {
    opacity: 0.55;
    pointer-events: none;
}

.market-error {
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.84rem;
}

/* Market News Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.news-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #EAE8E5;
}

.card-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover .card-media img {
    transform: scale(1.04);
}

.news-card-body {
    padding-top: 10px;
}

.news-card-body .category {
    margin-bottom: 4px;
}

.news-card-body h3 {
    font-size: 0.96rem;
    line-height: 1.38;
    color: var(--ink);
    text-wrap: balance;
    transition: color 0.16s ease;
}

.news-card:hover .news-card-body h3 {
    color: var(--brand);
}

.news-card-desc {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.48;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: clip;
}

/* Project Cards (Shared Homepage & Archive & Related) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    overflow: clip;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:has(.project-card-link:hover),
.project-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-hover);
}

.project-card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    background: #EFECE8;
    overflow: hidden;
}

.project-card-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card-media img {
    transform: scale(1.04);
}

.project-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #F3F1EE 0%, #E7E3DD 100%);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.project-placeholder-lg {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

.project-badges {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    pointer-events: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    background: var(--slate);
    color: #FFFFFF;
}

.status-pill.status-planned {
    background: var(--amber-soft);
    color: var(--amber);
}

.status-pill.status-building {
    background: #1F2937;
    color: #FFFFFF;
}

.status-pill.status-completed {
    background: var(--up-soft);
    color: var(--up);
}

.status-pill.status-featured {
    background: var(--brand);
    color: #FFFFFF;
}

.project-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 14px;
    gap: 7px;
}

.project-card-body h2,
.project-card-body h3 {
    font-size: 0.98rem;
    line-height: 1.35;
    text-wrap: balance;
}

.project-card-link {
    color: var(--ink);
    text-decoration: none;
}

.project-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.project-card-link:hover {
    color: var(--brand);
}

.project-card-loc {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.project-card-loc svg {
    flex: none;
    margin-top: 2px;
    color: var(--brand);
}

.project-card-desc,
.project-card-dev {
    font-size: 0.8rem;
    line-height: 1.48;
    color: var(--muted);
}

.project-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: clip;
}

.project-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.project-price {
    color: var(--brand-dark);
    font-size: 0.88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.project-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--background);
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
}

/* Location Bento Grid (Batdongsan-inspired) */
.location-bento {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 168px 168px;
    gap: 14px;
}

.location-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 12px;
    overflow: clip;
    background: #27272A;
    color: #FFFFFF;
    text-decoration: none;
}

.location-card.is-lead {
    grid-row: span 2;
}

.location-card.is-wide {
    grid-column: span 2;
}

.location-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.location-card:hover img {
    transform: scale(1.05);
}

.location-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 16, 20, 0.14) 0%, rgba(16, 16, 20, 0.45) 45%, rgba(16, 16, 20, 0.88) 100%);
}

.location-info {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 15px 16px;
}

.location-info strong {
    color: #FFFFFF;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
}

.location-card.is-lead .location-info strong {
    font-size: 1.28rem;
}

.location-sub {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
}

.location-metrics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.location-price {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-weight: 700;
    white-space: nowrap;
}

.location-delta {
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.location-delta.is-up {
    background: #146C34;
    color: #FFFFFF;
}

.location-delta.is-down {
    background: #B42318;
    color: #FFFFFF;
}

/* Latest News Horizontal Feed */
.latest-feed {
    display: grid;
    gap: 16px;
}

.latest-item + .latest-item {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.latest-item a {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    text-decoration: none;
}

.latest-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #EAE8E5;
}

.latest-thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.latest-item:hover .latest-thumb img {
    transform: scale(1.04);
}

.latest-copy h3 {
    margin-top: 4px;
    font-size: 1.02rem;
    line-height: 1.38;
    color: var(--ink);
    transition: color 0.16s ease;
}

.latest-item:hover .latest-copy h3 {
    color: var(--brand);
}

.latest-desc {
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.52;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: clip;
}

/* Sidebar Widgets */
.popular {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: pop-rank;
}

.popular li {
    counter-increment: pop-rank;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding-block: 9px;
}

.popular li:first-child {
    padding-top: 2px;
}

.popular li:last-child {
    padding-bottom: 2px;
}

.popular li + li {
    border-top: 1px solid var(--line);
}

.popular li::before {
    content: counter(pop-rank);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.popular li:nth-child(-n+3)::before {
    color: var(--brand);
}

.popular a {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
    text-decoration: none;
}

.popular a:hover {
    color: var(--brand);
}

/* Regional Price Table */
.estate table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.83rem;
    font-variant-numeric: tabular-nums;
    text-align: left;
}

.estate caption {
    caption-side: bottom;
    padding-top: 10px;
    padding-bottom: 0;
    color: var(--muted);
    font-size: 0.76rem;
    text-align: left;
}

.estate th,
.estate td {
    padding: 8px 4px;
    border-bottom: 1px solid var(--line);
}

.estate thead th {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.estate td {
    text-align: right;
}

.estate thead th:not(:first-child) {
    text-align: right;
}

/* Price Chart SVG */
.price-chart {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.price-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.chart-grid {
    fill: none;
    stroke: var(--line);
}

.chart-labels {
    fill: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.chart-series {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-series-0 {
    stroke: var(--brand);
    color: var(--brand);
}

.chart-series-1 {
    stroke: var(--ink);
    color: var(--ink);
    stroke-dasharray: 5 3;
}

.chart-dot-0 {
    fill: var(--brand);
    stroke: var(--paper);
    stroke-width: 1.5;
}

.chart-dot-1 {
    fill: var(--ink);
    stroke: var(--paper);
    stroke-width: 1.5;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    list-style: none;
    padding: 0;
    margin: 8px 0 4px;
    color: var(--ink);
    font-weight: 700;
}

.chart-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-legend span {
    width: 18px;
    border-top: 2.5px solid currentColor;
}

.chart-legend .chart-series-1 {
    border-top-style: dashed;
}

.estate-disclosure {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--muted);
}

.estate-disclosure summary {
    padding-block: 6px;
    color: var(--brand-dark);
    font-weight: 700;
    cursor: pointer;
}

.estate-disclosure p {
    margin-block: 5px;
}

/* Loan Calculator (No Nested Card Borders) */
.estate-loan,
.loan-fields {
    display: grid;
    gap: 12px;
}

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

.loan-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.loan-label-row label {
    margin-bottom: 0;
}

.loan-presets {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.loan-presets button {
    min-height: 26px;
    padding: 2px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.loan-presets button:hover {
    border-color: var(--brand-border);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.loan-presets button[aria-pressed="true"] {
    border-color: var(--brand);
    background: var(--brand);
    color: #FFFFFF;
}

.estate-loan label,
.estate-loan legend {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
}

.estate-loan input[type="number"] {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
    font-variant-numeric: tabular-nums;
}

.estate-loan input[type="number"]:focus {
    outline: none;
    border-color: var(--brand);
}

.estate-loan input:user-invalid {
    border-color: var(--brand);
}

.estate-loan fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.estate-loan legend {
    float: none;
    width: auto;
}

.estate-loan fieldset label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    margin: 0;
    font-weight: 400;
    color: var(--ink-soft);
    cursor: pointer;
}

.estate-loan input[type="radio"] {
    flex: none;
    accent-color: var(--brand);
}

.loan-note {
    font-size: 0.77rem;
    color: var(--muted);
    text-wrap: pretty;
}

.loan-result {
    padding: 14px 15px;
    border-radius: 10px;
    background: var(--brand-soft);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.loan-result-kicker {
    color: var(--brand-deep);
    font-weight: 700;
    font-size: 0.78rem;
}

.loan-result strong {
    display: block;
    margin-top: 2px;
    color: var(--brand);
    font-size: 1.38rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.loan-result dl {
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--brand-border);
}

.loan-result dl div:not([hidden]) {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 5px;
}

.loan-result dt {
    color: var(--ink-soft);
    font-weight: 400;
}

.loan-result dd {
    margin: 0;
    font-weight: 700;
    color: var(--ink);
    text-align: right;
    overflow-wrap: anywhere;
}

/* Newsletter Band */
.estate-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 28px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #FFF5F4 0%, #FFE8E5 100%);
    scroll-margin-top: 70px;
}

.estate-newsletter-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.estate-newsletter-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand);
    color: #FFFFFF;
    flex: none;
}

.estate-newsletter h2 {
    font-size: 1.22rem;
    color: var(--ink);
}

.estate-newsletter-copy p {
    color: var(--ink-soft);
    font-size: 0.88rem;
    max-width: 48ch;
    text-wrap: pretty;
}

.estate-newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 8px;
    flex: 0 1 440px;
    min-width: 0;
}

.estate-newsletter-form :is(label, p) {
    grid-column: 1 / -1;
}

.estate-newsletter-form label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
}

.estate-newsletter-form input[type="email"],
.estate-newsletter-form button {
    min-height: 46px;
    padding: 8px 14px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.9rem;
}

.estate-newsletter-form input[type="email"] {
    min-width: 0;
    border: 1px solid #C8B4B1;
    background: var(--paper);
    color: var(--ink);
}

.estate-newsletter-form input[type="email"]::placeholder {
    color: var(--placeholder);
    opacity: 1;
}

.estate-newsletter-form button {
    border: 0;
    background: var(--brand);
    color: #FFFFFF;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.16s ease;
}

.estate-newsletter-form button:hover {
    background: var(--brand-dark);
}

#newsletter-consent {
    color: var(--ink-soft);
    font-size: 0.78rem;
    text-wrap: pretty;
}

.estate-newsletter-form .newsletter-message {
    font-weight: 700;
    color: var(--up);
}

.estate-newsletter-form .newsletter-message.is-error {
    color: var(--brand-dark);
}

/* Subpages: Bootstrap 5 Integration & Select Fix */
.estate .btn:not(.btn-link):not(.btn-close) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding-block: 6px;
    padding-inline: 15px;
    border-radius: 9px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.estate .btn-sm:not(.btn-link):not(.btn-close) {
    min-height: 34px;
    padding-block: 4px;
    padding-inline: 10px;
    border-radius: 8px;
    font-size: 0.8125rem;
}

.estate .btn-outline-secondary {
    --bs-btn-color: var(--ink-soft);
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: var(--background);
    --bs-btn-hover-border-color: var(--line-strong);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: var(--background);
    --bs-btn-active-border-color: var(--line-strong);
}

.estate .btn-primary {
    --bs-btn-bg: #D92D20;
    --bs-btn-border-color: #D92D20;
    --bs-btn-hover-bg: #B42318;
    --bs-btn-hover-border-color: #B42318;
    --bs-btn-active-bg: #912018;
    --bs-btn-active-border-color: #912018;
    --bs-btn-color: #FFFFFF;
    border-radius: 9px;
    font-weight: 600;
    min-height: 40px;
    padding-inline: 16px;
}

.estate .form-control,
.estate .form-select {
    min-height: 44px;
    border-radius: 10px;
    border-color: var(--line-strong);
    background-color: var(--paper);
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.4;
}

.estate .form-control::placeholder {
    color: var(--placeholder);
    opacity: 1;
}

.estate .form-control:focus,
.estate .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.14);
}

.estate select.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0.55rem 2.3rem 0.55rem 0.85rem;
}

.estate select.form-select::picker-icon {
    display: none;
}

.estate .pagination {
    --bs-pagination-active-bg: #D92D20;
    --bs-pagination-active-border-color: #D92D20;
    --bs-pagination-color: #B42318;
    --bs-pagination-hover-color: #912018;
    --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.16);
}

.estate input[type="radio"],
.estate input[type="checkbox"] {
    accent-color: var(--brand);
}

.estate .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.estate .form-check-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.16);
}

.estate .badge.bg-info,
.estate .badge.text-bg-primary {
    background-color: var(--brand-soft) !important;
    color: var(--brand-dark) !important;
    border: 1px solid var(--brand-border);
    font-weight: 700;
}

/* Projects Archive Page */
.estate-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 18px;
}

.estate-page-head h1 {
    margin-bottom: 6px;
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    font-weight: 700;
}

.estate-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.84rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.estate-filter-panel {
    margin-bottom: 22px;
}

.estate-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px 14px;
}

.estate-filter-field {
    min-width: 0;
}

.estate-filter-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.estate-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.estate-filter-reset {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--brand-dark);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.estate-filter-reset:hover {
    text-decoration: underline;
}

.estate-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.estate-empty-state {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
    padding: 40px 20px;
}

.estate-empty-state svg {
    color: var(--brand);
}

.estate-empty-state h2 {
    font-size: 1.15rem;
}

.estate-empty-state p {
    max-width: 44ch;
    color: var(--muted);
}

/* Project Detail Page */
.project-detail-head {
    margin-bottom: 20px;
}

.project-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.project-detail-head h1 {
    font-size: clamp(1.65rem, 2.7vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.project-detail-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.project-detail-loc svg {
    color: var(--brand);
    flex: none;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
    gap: 24px;
    align-items: start;
}

.project-detail-aside {
    position: sticky;
    top: 64px;
}

.project-detail-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 18px;
    border-radius: 12px;
    overflow: hidden;
    background: #EFECE8;
}

.project-detail-cover img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.project-detail-lead {
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.62;
    color: var(--ink);
    text-wrap: pretty;
    margin-bottom: 18px;
}

.project-quick-facts {
    padding: 16px 18px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: var(--brand-soft);
}

.project-quick-facts h2 {
    margin-bottom: 12px;
    color: var(--brand-deep);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 0;
}

.quick-facts-grid dt {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 400;
}

.quick-facts-grid dd {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
}

.quick-facts-grid dd.is-price {
    color: var(--brand);
}

.project-detail-body {
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.project-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.project-share-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.estate-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 5px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.estate-pill-btn:hover {
    border-color: var(--brand-border);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.project-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-dark);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.project-spec-list {
    margin: 0;
}

.project-spec-list > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-block: 9px;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}

.project-spec-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.project-spec-list dt {
    color: var(--muted);
    font-weight: 400;
    flex: none;
}

.project-spec-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.project-spec-list dd.is-price {
    color: var(--brand);
    font-size: 0.96rem;
}

.estate-cta-card {
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(145deg, #C4251A 0%, #8C1911 100%);
    color: #FFFFFF;
    box-shadow: var(--shadow-elevated);
}

.estate-cta-card h2 {
    color: #FFFFFF;
    font-size: 1.12rem;
    margin-bottom: 6px;
}

.estate-cta-card p {
    color: #FFFFFF;
    font-size: 0.86rem;
    line-height: 1.52;
    margin-bottom: 14px;
}

.estate-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.estate-cta-btn:hover {
    background: #FFF3F2;
    color: var(--brand-deep);
}

.project-related-panel {
    margin-top: 24px;
}

/* News Category & Article & Seek Pages */
.estate-cat-panel {
    padding: 24px;
}

.estate-cat-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-bottom: 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}

.estate-cat-panel-head h1,
.estate-cat-head h1 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.estate-cat-panel-head h1::before,
.estate-cat-head h1::before {
    content: "";
    width: 5px;
    height: 1.02em;
    border-radius: 3px;
    background: var(--brand);
    flex: none;
}

.estate-cat-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 18px;
}

.estate-cat-head-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.estate-cat-desc {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 68ch;
    text-wrap: pretty;
}

.estate-cat-thumb {
    width: 88px;
    height: 66px;
    object-fit: cover;
    border-radius: 10px;
    flex: none;
}

.estate-news-feed {
    padding: 0;
    overflow: clip;
}

.estate-news-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding-block: 18px;
}

.estate-news-feed .estate-news-row {
    padding-inline: 20px;
}

.estate-news-row:last-child {
    padding-bottom: 2px;
}

.estate-news-row.is-no-thumb {
    grid-template-columns: minmax(0, 1fr);
}

.estate-news-row + .estate-news-row {
    border-top: 1px solid var(--line);
}

.estate-news-top-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 6px;
    font-size: 0.76rem;
    color: var(--muted);
}

.estate-news-cat-label {
    color: var(--brand);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.estate-news-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #EAE8E5;
}

.estate-news-thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.estate-news-row:hover .estate-news-thumb img {
    transform: scale(1.04);
}

.estate-news-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.estate-news-title-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.estate-news-title {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.36;
    text-wrap: balance;
}

.estate-news-row.is-featured .estate-news-title {
    font-size: 1.24rem;
}

.estate-news-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.16s ease;
}

.estate-news-title a:hover {
    color: var(--brand);
}

.estate-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    vertical-align: middle;
}

.estate-news-excerpt {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.56;
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: clip;
}

.estate-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: auto;
    color: var(--muted);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.estate-news-meta-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.estate-news-meta-list li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.estate-news-admin {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.estate-news-others-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.estate-news-others-list li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}

.estate-news-others-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.estate-news-others-list a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.estate-news-others-list a:hover {
    color: var(--brand);
}

/* Sidebar Same-Category Stories */
.estate-sidebar-stories {
    display: grid;
    gap: 12px;
}

.estate-sidebar-story + .estate-sidebar-story {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.estate-sidebar-story a {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    text-decoration: none;
}

.estate-sidebar-thumb {
    display: block;
    overflow: clip;
    border-radius: 8px;
    background: #EAE8E5;
}

.estate-sidebar-thumb img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.estate-sidebar-story:hover .estate-sidebar-thumb img {
    transform: scale(1.05);
}

.estate-sidebar-story h3 {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.38;
    color: var(--ink);
    text-wrap: balance;
    transition: color 0.16s ease;
}

.estate-sidebar-story a:hover h3 {
    color: var(--brand);
}

/* Article Detail Editorial Layout */
.estate-article-panel {
    padding: clamp(20px, 3vw, 30px);
}

.estate-article-head h1 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -0.025em;
    color: var(--ink);
    text-wrap: balance;
}

.estate-article-deck {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.62;
    text-wrap: pretty;
}

.estate-article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    font-size: 0.84rem;
    color: var(--muted);
}

.estate-article-byline {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.estate-article-byline strong {
    color: var(--ink);
}

.estate-author-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #EAE8E5;
    color: var(--muted);
    flex: none;
}

.estate-article-tools .nv-font-size-btn {
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink-soft);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.78rem;
    font-weight: 700;
}

.estate-article-tools .nv-font-size-btn:hover {
    border-color: var(--brand-border);
    color: var(--brand-dark);
}

.estate-article-hero {
    margin: 0 0 22px;
}

.estate-article-hero img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.estate-article-hero figcaption {
    margin-top: 8px;
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
    font-style: italic;
}

.estate-article-prose {
    font-size: 1rem;
    line-height: 1.76;
    color: var(--ink);
}

.estate-article-prose p {
    margin-bottom: 1.1em;
    text-wrap: pretty;
}

.estate-article-prose h2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.6em 0 0.7em;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}

.estate-article-prose h2::before {
    content: "";
    width: 4px;
    height: 1.05em;
    border-radius: 2px;
    background: var(--brand);
    flex: none;
}

.estate-article-prose blockquote {
    margin: 1.4em 0;
    padding: 16px 20px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--ink);
}

.estate-article-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 16px;
}

.estate-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.estate-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--background);
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.estate-tag-pill:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.estate-article-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 4px;
}

.estate-article-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.estate-article-rating-label {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.estate-article-rating-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.estate-article-rating-pill:has(.news-rating:not(.disabled):hover) {
    border-color: #FCD34D;
    background: #FFFDF5;
}

.estate-article-rating .news-rating {
    position: relative;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    font-size: 0.98rem;
    line-height: 1;
    user-select: none;
}

.estate-article-rating .news-rating input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.estate-article-rating .news-rating label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    margin: 0;
    color: #D4D0CB;
    cursor: pointer;
    transition: color 0.14s ease;
}

.estate-article-rating .news-rating label i {
    display: block;
    transition: transform 0.14s ease;
}

.estate-article-rating .news-rating input:checked ~ label {
    color: #F59E0B;
}

.estate-article-rating .news-rating:not(.disabled):hover input:checked ~ label {
    color: #D4D0CB;
}

.estate-article-rating .news-rating:not(.disabled):hover label:hover,
.estate-article-rating .news-rating:not(.disabled):hover label:hover ~ label {
    color: #F59E0B;
}

.estate-article-rating .news-rating:not(.disabled) label:hover i {
    transform: scale(1.16);
}

.estate-article-rating .news-rating:not(.disabled) label:active i {
    transform: scale(0.94);
}

.estate-article-rating .news-rating input:focus-visible + label {
    outline: 2px solid #F59E0B;
    outline-offset: 1px;
    border-radius: 4px;
}

.estate-article-rating .news-rating.disabled label {
    pointer-events: none;
    cursor: default;
}

.estate-article-rating-score {
    display: inline-flex;
    align-items: baseline;
    padding-left: 8px;
    border-left: 1px solid var(--line);
    font-size: 0.8rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.estate-article-rating-score strong {
    color: var(--ink);
    font-weight: 700;
}

.estate-article-rating-outof {
    color: var(--muted);
    font-weight: 500;
}

.estate-article-rating-count {
    margin-left: 3px;
    color: var(--muted);
    font-weight: 500;
}

.estate-article-rating-tip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 9px);
    z-index: 10;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ink);
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    box-shadow: 0 8px 20px -6px rgba(24, 24, 27, 0.28);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease, background-color 0.14s ease;
}

.estate-article-rating-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 26px;
    border: 5px solid transparent;
    border-top-color: var(--ink);
    transition: border-top-color 0.14s ease;
}

.estate-article-rating-tip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.estate-article-rating-tip.is-success {
    background: var(--up);
}

.estate-article-rating-tip.is-success::after {
    border-top-color: var(--up);
}

@media (max-width: 767.98px) {
    .estate-article-rating {
        margin-left: 0;
    }

    .estate-article-rating-tip {
        right: auto;
        left: 0;
    }

    .estate-article-rating-tip::after {
        right: auto;
        left: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .estate-article-rating .news-rating label i,
    .estate-article-rating-tip {
        transition: none;
    }

    .estate-article-rating .news-rating:not(.disabled) label:hover i,
    .estate-article-rating .news-rating:not(.disabled) label:active i {
        transform: none;
    }
}

.estate-pill-btn.is-fb {
    color: #1461C7;
    border-color: #C7DCFA;
}

.estate-author-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--background);
}

.estate-author-box-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #E2DFDB;
    color: var(--muted);
    flex: none;
}

.estate-author-role {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.estate-author-name {
    margin: 2px 0;
    color: var(--ink);
    font-size: 0.96rem;
    font-weight: 700;
}

.estate-author-bio {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
    text-wrap: pretty;
}

/* Comments Section (Editorial Thread Style) */
.estate-article-comments {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.estate-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.estate-comment-header h2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.estate-comment-header h2::before {
    content: "";
    width: 4px;
    height: 1.05em;
    border-radius: 2px;
    background: var(--brand);
    flex: none;
}

.estate-comment-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.estate-comment-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink-soft);
    cursor: pointer;
}

.estate-comment-toggle:hover {
    border-color: var(--brand-border);
    color: var(--brand-dark);
}

.estate .estate-comment-sort {
    min-height: 36px;
    padding: 4px 2rem 4px 10px;
    font-size: 0.82rem;
    border-radius: 8px;
    width: auto;
}

.estate-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.estate-comment-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding-block: 16px;
}

.estate-comment-item:first-child {
    padding-top: 4px;
}

.estate-comment-item + .estate-comment-item {
    border-top: 1px solid var(--line);
}

.estate-comment-avatar img,
.estate-comment-initials {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #EAE8E5;
    color: #3F3F46;
    font-size: 0.82rem;
    font-weight: 700;
}

.estate-comment-body {
    min-width: 0;
}

.estate-comment-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 5px;
    font-size: 0.86rem;
}

.estate-comment-meta strong {
    color: var(--ink);
    font-weight: 700;
}

.estate-comment-meta time,
.estate-comment-email {
    color: var(--muted);
    font-size: 0.78rem;
}

.estate-comment-content {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.62;
    text-wrap: pretty;
}

.estate-comment-content p:last-child {
    margin-bottom: 0;
}

.estate-comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
    font-size: 0.8rem;
}

.estate-comment-reply {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: none;
}

.estate-comment-reply:hover {
    color: var(--brand-deep);
    text-decoration: underline;
}

.estate-comment-react {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    text-decoration: none;
}

.estate-comment-react:hover {
    color: var(--brand-dark);
}

.estate-react-count {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.estate-comment-delete {
    color: var(--brand-dark);
    text-decoration: none;
}

.estate-comment-children {
    margin-top: 12px;
    padding-top: 12px;
    padding-left: 16px;
    border-top: 1px solid var(--line);
    border-left: 2px solid var(--line);
}

.estate-comment-empty {
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--background);
    color: var(--muted);
    font-size: 0.88rem;
}

.estate-comment-thread:not(:empty) {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.estate-comment-form-wrap {
    margin-top: 0;
    padding-top: 0;
}

.estate-comment-item.is-replying {
    margin-inline: -12px;
    padding-inline: 12px;
    border-radius: 10px;
    background: var(--brand-soft);
}

.estate-comment-replying {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 8px 12px;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--ink);
    font-size: 0.84rem;
    line-height: 1.4;
}

.estate-comment-replying-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.estate-comment-replying-text i {
    color: var(--brand);
    flex: none;
}

.estate-comment-replying-text strong {
    color: var(--brand-dark);
    font-weight: 700;
}

.estate-comment-replying-cancel {
    padding: 3px 10px;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: var(--paper);
    color: var(--brand-dark);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    flex: none;
    transition: background-color 0.14s ease, border-color 0.14s ease;
}

.estate-comment-replying-cancel:hover {
    border-color: var(--brand);
    background: var(--brand-soft-2);
}

.estate-comment-form-title {
    margin: 0 0 4px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
}

.estate-comment-privacy {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.82rem;
}

.estate-comment-form {
    display: grid;
    gap: 14px;
}

.estate-comment-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.estate-comment-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 700;
}

.estate-comment-submit-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.estate-article-panel h1 {
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    font-weight: 700;
    line-height: 1.26;
}

.estate-article-panel .news-bodyhtml {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink);
}

.estate-related-panel {
    padding: 22px;
}

.seek-page.panel {
    padding: clamp(20px, 3vw, 28px);
}

/* Footer */
.estate-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.estate-footer .wrap {
    padding-block: 0;
}

.estate-footer-top:empty,
.estate-footer-extra:empty,
.estate-footer-menu:empty {
    display: none;
}

.estate-footer-menu:has(.nv-block, nav, .block-body) .estate-footer-fallback {
    display: none;
}

.estate .estate-footer .estate-footer-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1.55fr) repeat(3, minmax(150px, 1fr));
    align-items: start;
    justify-content: normal;
    gap: clamp(24px, 4vw, 52px);
    padding-block: 34px 28px;
}

.estate-footer-about,
.estate-footer-menu {
    min-width: 0;
}

.estate-footer-brand {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.estate-footer-brand:hover {
    color: var(--brand-dark);
}

.estate-footer-about p {
    max-width: 38ch;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.58;
    text-wrap: pretty;
}

.estate-footer-about p + p {
    margin-top: 6px;
}

.estate-footer-about p a {
    color: var(--ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.estate-footer-menu .nv-block-simple {
    margin: 0;
}

.estate-footer-menu .block-heading,
.estate-footer-fallback h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.estate-footer-menu .block-title,
.estate-footer-menu .block-heading :is(h2, h3, h4, h5, h6) {
    margin: 0;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.estate-footer-fallback ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.estate-footer-fallback a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--muted);
    font-size: 0.84rem;
    text-decoration: none;
}

.estate-footer-fallback a:hover {
    color: var(--brand);
}

.estate-footer-menu nav,
.estate-footer-menu .block-body {
    min-width: 0;
}

.estate-footer-menu .vert-menu,
.estate-footer-menu .vert-menu ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.estate-footer-menu .vert-menu .menu-item {
    display: block !important;
    border: 0 !important;
}

.estate-footer-menu .vert-menu a {
    display: block !important;
    min-height: 28px;
    padding: 4px 0 !important;
    color: var(--muted) !important;
    font-size: 0.84rem;
    line-height: 1.45;
}

.estate-footer-menu .vert-menu a:hover,
.estate-footer-menu .vert-menu a:focus-visible {
    color: var(--brand) !important;
}

.estate-footer-menu .vert-menu .collapse-caret {
    display: none;
}

.estate-footer-menu .vert-menu ul {
    padding-left: 12px !important;
}

.estate .estate-footer .estate-footer-extra:not(:empty) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-block: 16px;
    border-top: 1px solid var(--line);
}

.estate .estate-footer .estate-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 14px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
}

.estate-footer-copyright {
    min-width: 0;
}

.estate-footer-bottom > span {
    text-align: right;
}

/* Back-to-top button */
.estate-back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-elevated);
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.estate-back-top[hidden] {
    display: none;
}

.estate-back-top:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    background: var(--brand);
    color: #FFFFFF;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .lead,
    .columns,
    .project-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-detail-aside {
        position: static;
    }

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

    .brief-item + .brief-item {
        padding-top: 0;
        border-top: 0;
    }

    .estate-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .estate-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .estate-header .masthead {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
        padding-block: 10px;
    }

    .estate-header .search {
        grid-row: 2;
        grid-column: 1 / -1;
        max-width: none;
    }

    .estate-header .search input,
    .estate-header .search button {
        min-height: 38px;
    }

    .estate-header .action-icon-link {
        min-height: 38px;
        padding: 0 8px;
    }

    .estate-header .action-icon-link .action-label {
        display: none;
    }

    .estate-header .masthead-actions .data-link {
        min-height: 38px;
        padding-inline: 11px;
        font-size: 0.8rem;
    }
}

@media (max-width: 850px) {
    .estate .estate-footer .estate-footer-grid {
        grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    }

    .estate-footer-about {
        grid-row: span 2;
    }

    .estate-newsletter {
        display: grid;
        gap: 16px;
    }

    .estate-newsletter-form {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .cards,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .location-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 160px 160px;
    }

    .location-card.is-lead,
    .location-card.is-wide {
        grid-row: auto;
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .estate .wrap,
    .estate .site-breadcrumbs > .container,
    .estate .main-content.estate-main-shell > .container {
        width: calc(100% - 28px);
    }

    .estate-cat-panel {
        padding: 15px;
    }

    .estate-news-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding-block: 14px;
    }

    .estate-comment-row-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .estate-comment-children {
        padding-left: 12px;
    }

    .estate-news-title,
    .estate-news-row.is-featured .estate-news-title {
        font-size: 1.05rem;
    }

    .estate-topbar .utility-links,
    .estate-topbar .utility-sub {
        display: none;
    }

    .estate-header .brand small {
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .estate-header .masthead {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
        padding-block: 10px;
    }

    .estate-header .brand {
        font-size: 1.35rem;
    }

    .estate-header .brand svg {
        width: 36px;
        height: 36px;
    }

    .estate-header .action-icon-link {
        min-height: 38px;
        padding: 0 8px;
    }

    .estate-header .action-icon-link .action-label {
        display: none;
    }

    .estate-header .masthead-actions .data-link {
        min-height: 38px;
        padding-inline: 11px;
        font-size: 0.8rem;
    }

    .estate-header .search {
        grid-row: 2;
        grid-column: 1 / -1;
        max-width: none;
    }

    .estate-header .search input,
    .estate-header .search button {
        min-height: 38px;
    }

    .estate-nav-slot {
        flex-direction: column;
        align-items: stretch;
    }

    .estate-nav-mobile-toggle {
        display: inline-flex;
    }

    .estate-nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-bottom: 10px;
        border-top: 1px solid var(--line);
    }

    .estate-nav-list.is-mobile-open {
        display: flex;
    }

    .estate-nav-item {
        border-bottom: 1px solid var(--line);
    }

    .estate-nav-item:last-child {
        border-bottom: 0;
    }

    .estate-nav-trigger {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .estate-nav-link {
        flex: 1 1 auto;
        min-height: 42px;
        font-size: 0.88rem;
    }

    .estate-nav-link[aria-current="page"]::after {
        display: none;
    }

    .estate-nav-toggle {
        width: 40px;
        height: 40px;
    }

    .estate-submenu,
    .estate-submenu.is-wide {
        position: static;
        inline-size: auto;
        max-inline-size: none;
        grid-template-columns: 1fr;
        margin: 0 0 8px;
        padding: 4px 0 4px 12px;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .estate-submenu::before {
        display: none;
    }

    .estate-submenu a {
        white-space: normal;
        min-height: 36px;
        padding: 6px 10px;
    }

    main.wrap.estate-main-shell {
        padding-block: 16px 36px;
    }

    .lead-card,
    .panel {
        padding: 15px;
        border-radius: 12px;
    }

    .lead {
        gap: 16px;
    }

    .briefs,
    .cards,
    .project-grid,
    .estate-filter-form,
    .quick-facts-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .brief-item + .brief-item {
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .latest-item a {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 12px;
    }

    .latest-desc {
        display: none;
    }

    .location-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 152px 152px;
        gap: 10px;
    }

    .location-info {
        padding: 11px 12px;
    }

    .location-info strong {
        font-size: 0.96rem;
    }

    .location-metrics {
        font-size: 0.72rem;
        gap: 5px;
    }

    .location-price,
    .location-delta {
        padding: 2px 6px;
    }

    .estate .estate-footer .estate-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding-block: 24px;
    }

    .estate-footer-about {
        grid-row: auto;
    }

    .estate .estate-footer .estate-footer-bottom {
        display: grid;
        gap: 6px;
    }

    .estate-footer-bottom > span {
        text-align: left;
    }

    .estate-back-top {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* Marketplace listings, detail gallery, contact, inbox, member dashboard */
.estate .estate-purpose-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

.estate .estate-purpose-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.estate .estate-purpose-tab:hover {
    color: var(--ink);
}

.estate .estate-purpose-tab.is-active {
    background: var(--brand);
    color: #fff;
}

.estate .estate-listing-filter-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.estate .estate-advanced-filter {
    border-top: 1px dashed var(--line);
    padding-top: 12px;
}

.estate .estate-advanced-filter > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-dark);
    list-style: none;
}

.estate .estate-advanced-filter > summary::-webkit-details-marker {
    display: none;
}

.estate .estate-advanced-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.estate .estate-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.estate .estate-filter-sort {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.estate .estate-filter-sort label {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.estate .estate-filter-sort .form-select {
    width: auto;
    min-width: 220px;
}

.estate .estate-card-specs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.estate .status-pill.status-sale {
    background: rgba(217, 45, 32, 0.92);
    color: #fff;
}

.estate .status-pill.status-rent {
    background: rgba(21, 128, 61, 0.92);
    color: #fff;
}

.estate .estate-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.estate .estate-gallery .project-detail-cover {
    margin-bottom: 0;
}

.estate .estate-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
}

.estate .estate-gallery-thumb {
    position: relative;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--background);
    cursor: pointer;
    width: 100%;
    aspect-ratio: 4 / 3;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.estate .estate-gallery-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.estate .estate-gallery-thumb.is-active,
.estate .estate-gallery-thumb:hover {
    border-color: var(--brand);
}

.estate .estate-price-box .estate-price-label {
    margin: 0 0 4px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.estate .estate-price-box .estate-price-big {
    margin: 0 0 10px;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
}

.estate .estate-verified-note {
    margin: 0 0 12px;
    font-size: 0.84rem;
    opacity: 0.9;
}

.estate .estate-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.estate .estate-cta-btn.is-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

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

.estate .estate-narrow-page {
    max-width: 860px;
    margin-inline: auto;
}

/* Khung chung cho các trang khu vực thành viên: quản lý tin, hộp thư, hồ sơ, gói dịch vụ... */
.estate .estate-member-page {
    max-width: 68rem;
    margin-inline: auto;
}

.estate .estate-form-panel {
    padding: 24px;
}

.estate .estate-form-note {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: var(--muted);
}

.estate .estate-form-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.estate .estate-form-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 12px;
    padding-bottom: 0;
}

.estate .estate-form-section h2 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
}

.estate .estate-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.estate .estate-phone-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.estate .estate-radio-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.estate .estate-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.estate .estate-radio-pill:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.estate .estate-head-actions,
.estate .estate-action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.estate .estate-inbox-list,
.estate .estate-member-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.estate .estate-inbox-card,
.estate .estate-member-card {
    padding: 20px;
}

.estate .estate-inbox-head,
.estate .estate-member-card-top,
.estate .estate-preview-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.estate .estate-inbox-head h2,
.estate .estate-member-card-top h2 {
    margin: 6px 0 0;
    font-size: 1.08rem;
    font-weight: 700;
}

.estate .estate-inbox-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.estate .estate-inbox-time {
    font-size: 0.82rem;
    color: var(--muted);
}

.estate .estate-inbox-status-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.estate .estate-meta-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px 16px;
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--background);
}

.estate .estate-meta-strip dt {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}

.estate .estate-meta-strip dd {
    margin: 2px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.estate .estate-inbox-message {
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--background);
    border-radius: 10px;
    font-size: 0.94rem;
}

.estate .estate-member-stats {
    display: flex;
    gap: 12px;
}

.estate .estate-member-stats > div {
    min-width: 78px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--background);
    text-align: center;
}

.estate .estate-member-stats span {
    display: block;
    font-size: 0.74rem;
    color: var(--muted);
}

.estate .estate-member-stats strong {
    font-size: 1.05rem;
    color: var(--ink);
}

.estate .estate-member-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 14px 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--muted);
}

.estate .estate-member-reason {
    color: var(--amber);
}

.estate .estate-member-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.estate .estate-media-order-card {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--background);
}

.estate .estate-media-order-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 767.98px) {
    .estate .estate-advanced-grid,
    .estate .estate-related-grid {
        grid-template-columns: 1fr;
    }

    .estate .estate-member-stats {
        width: 100%;
    }

    .estate .estate-member-stats > div {
        flex: 1;
    }
}

/* Nút so sánh nằm trên lớp phủ liên kết của thẻ tin. */
.estate-compare-item {
    position: relative;
    z-index: 2;
}

/* Slider trang chủ kèm form tìm kiếm (kiểu batdongsan.com.vn). */
.estate .hero-slider {
    --hero-h: 460px;
    position: relative;
    width: 100%;
    height: var(--hero-h);
    overflow: hidden;
    background: radial-gradient(circle at 78% 58%, #881313 0%, #3d060a 48%, #140306 100%);
    color: #FFFFFF;
}

.estate .hero-slider-viewport,
.estate .hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.estate .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    display: flex;
    align-items: flex-end;
}

.estate .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.estate .hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.estate .hero-slide-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.estate .hero-slide-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 6, 8, 0.82) 0%, rgba(16, 6, 8, 0.56) 52%, rgba(16, 6, 8, 0.34) 100%);
    z-index: 1;
}

.estate .hero-slide-inner {
    position: relative;
    z-index: 2;
    padding-top: 64px;
    padding-bottom: 58px;
}

@media (min-width: 768px) and (max-width: 1380px) {
    .estate .hero-slide-inner {
        padding-inline: 52px;
    }
}

.estate .hero-slider.has-search .hero-slide-inner {
    padding-top: 210px;
}

.estate .hero-slide-copy {
    max-width: 620px;
}

.estate .hero-slide-kicker {
    margin: 0 0 8px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.86);
}

.estate .hero-slide-title {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
    font-weight: 700;
    line-height: 1.24;
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.estate .hero-slide-subtitle {
    margin: 0 0 18px;
    font-size: 0.96rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.estate .hero-slide-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 999px;
    background: var(--brand);
    color: #FFFFFF;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.estate .hero-slide-cta:hover {
    background: var(--brand-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Hộp tìm kiếm nổi phía trên slider */
.estate .hero-search-overlay {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    z-index: 5;
    pointer-events: none;
}

.estate .hero-search-box {
    pointer-events: auto;
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 20px 20px;
    border-radius: 12px;
    background: rgba(10, 10, 14, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
}

.estate .hero-search-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 360px;
    margin: 0 auto 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.estate .hero-search-tab {
    position: relative;
    flex: 1 1 0;
    padding: 8px 14px 10px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.estate .hero-search-tab:hover {
    color: #FFFFFF;
}

.estate .hero-search-tab.is-active {
    color: #FFFFFF;
    font-weight: 700;
}

.estate .hero-search-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--brand);
}

.estate .hero-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 6px 6px 6px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.estate .hero-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    flex-shrink: 0;
}

.estate .hero-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 0.96rem;
    padding: 8px 4px;
    outline: none;
}

.estate .hero-search-input:focus-visible {
    outline: none;
}

.estate .hero-search-form:focus-within {
    box-shadow: 0 0 0 2px var(--brand), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.estate .hero-search-input::placeholder {
    color: var(--placeholder);
}

.estate .hero-search-submit {
    flex-shrink: 0;
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #FFFFFF;
    font-size: 0.94rem;
    font-weight: 700;
    padding: 10px 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.estate .hero-search-submit:hover {
    background: var(--brand-dark);
}

/* Nút điều hướng trái / phải và dots */
.estate .hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.estate .hero-slider-nav:hover {
    background: #FFFFFF;
    transform: translateY(-50%) scale(1.04);
}

.estate .hero-slider-nav.is-prev {
    left: 16px;
}

.estate .hero-slider-nav.is-next {
    right: 16px;
}

.estate .hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
}

.estate .hero-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.estate .hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.78);
}

.estate .hero-slider-dot.is-active {
    width: 20px;
    background: #FFFFFF;
}

@media (max-width: 991.98px) {
    .estate .hero-slider {
        --hero-h: 420px;
    }

    .estate .hero-slider.has-search .hero-slide-inner {
        padding-top: 176px;
        padding-bottom: 50px;
    }

    .estate .hero-slider-nav {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 767.98px) {
    .estate .hero-slider {
        --hero-h: 390px;
    }

    .estate .hero-search-overlay {
        top: 16px;
    }

    .estate .hero-search-box {
        padding: 12px 12px 14px;
        border-radius: 10px;
    }

    .estate .hero-search-tab {
        padding: 6px 8px 8px;
        font-size: 0.88rem;
    }

    .estate .hero-search-form {
        padding: 5px 5px 5px 10px;
        gap: 6px;
    }

    .estate .hero-search-input {
        font-size: 0.9rem;
    }

    .estate .hero-search-submit {
        padding: 9px 14px;
        font-size: 0.86rem;
    }

    .estate .hero-slider.has-search .hero-slide-inner {
        padding-top: 170px;
        padding-bottom: 48px;
    }

    .estate .hero-slide-subtitle {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    .estate .hero-slider-nav {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .estate .hero-slide {
        transition: none;
    }
}

/* Bố cục 1 cột trang chủ (kiểu batdongsan.com.vn) */
.estate .home-single-col .project-grid,
.estate .home-single-col .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.estate .home-tools-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.estate .home-tools-col {
    display: grid;
    gap: 22px;
    min-width: 0;
}

@media (max-width: 1120px) {
    .estate .home-single-col .project-grid,
    .estate .home-single-col .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .estate .home-tools-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .estate .home-single-col .project-grid,
    .estate .home-single-col .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .estate .home-single-col .project-grid,
    .estate .home-single-col .cards {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Gallery Slider + Lightbox */
.estate .estate-slider-stage {
    position: relative;
    cursor: zoom-in;
}

.estate .estate-slider-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.52);
    color: #fff;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.estate .estate-slider-nav:hover {
    background: rgba(217, 45, 32, 0.9);
    transform: translateY(-50%) scale(1.06);
}

.estate .estate-slider-nav.is-prev {
    left: 14px;
}

.estate .estate-slider-nav.is-next {
    right: 14px;
}

.estate .estate-slider-badge {
    position: absolute;
    z-index: 3;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.68);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    pointer-events: none;
}

body.estate-lb-open {
    overflow: hidden;
}

.estate-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px 96px;
}

.estate-lightbox[hidden] {
    display: none;
}

.estate-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 16, 0.92);
    backdrop-filter: blur(10px);
}

.estate-lb-chrome {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    color: #fff;
}

.estate-lb-counter {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.estate-lb-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.16s ease;
}

.estate-lb-close:hover {
    background: #D92D20;
}

.estate-lb-stage {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: min(1160px, 90vw);
    max-height: calc(100vh - 170px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.estate-lb-stage img {
    max-width: 100%;
    max-height: calc(100vh - 210px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.estate-lb-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    text-align: center;
}

.estate-lb-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.16s ease;
}

.estate-lb-nav:hover {
    background: #D92D20;
}

.estate-lb-prev {
    left: 20px;
}

.estate-lb-next {
    right: 20px;
}

.estate-lb-thumbs {
    position: absolute;
    z-index: 3;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 92vw;
    overflow-x: auto;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(24, 24, 27, 0.72);
    backdrop-filter: blur(8px);
}

.estate-lb-thumb {
    flex: 0 0 auto;
    width: 68px;
    height: 48px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    opacity: 0.62;
    cursor: pointer;
    transition: opacity 0.16s ease, border-color 0.16s ease;
}

.estate-lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.estate-lb-thumb.is-active,
.estate-lb-thumb:hover {
    opacity: 1;
    border-color: #D92D20;
}

/* Homepage Promo Banner & Guide Card (fill whitespace with visual rhythm) */
.estate .estate-promo-banner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    padding: 28px 32px;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow-elevated);
}

.estate .estate-promo-bg,
.estate .estate-guide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.estate .estate-promo-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(24, 24, 27, 0.88) 0%, rgba(145, 32, 24, 0.78) 60%, rgba(24, 24, 27, 0.62) 100%);
}

.estate .estate-promo-content,
.estate .estate-promo-actions {
    position: relative;
    z-index: 2;
}

.estate .estate-promo-content {
    max-width: 620px;
}

.estate .estate-promo-kicker {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.estate .estate-promo-content h2 {
    margin: 0 0 8px;
    font-size: clamp(1.22rem, 2.2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.estate .estate-promo-content p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
}

.estate .estate-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.estate .estate-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.estate .estate-promo-btn:hover {
    transform: translateY(-1px);
}

.estate .estate-promo-btn.is-primary {
    background: #fff;
    color: var(--brand-dark);
}

.estate .estate-promo-btn.is-primary:hover {
    background: #FFF3F2;
    color: var(--brand-deep);
}

.estate .estate-promo-btn.is-ghost {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #fff;
}

.estate .estate-promo-btn.is-ghost:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.estate .estate-home-guide-card {
    position: relative;
    flex: 1 1 auto;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
}

.estate .estate-guide-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.28) 0%, rgba(24, 24, 27, 0.88) 70%);
}

.estate .estate-guide-inner {
    position: relative;
    z-index: 2;
}

.estate .estate-guide-inner h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.estate .estate-guide-inner p {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.88);
}

.estate .estate-guide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.estate .estate-guide-links a {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.16s ease;
}

.estate .estate-guide-links a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

@media (max-width: 767.98px) {
    .estate .estate-promo-banner {
        padding: 22px 20px;
    }

    .estate-lb-nav {
        width: 38px;
        height: 38px;
    }

    .estate-lb-prev {
        left: 10px;
    }

    .estate-lb-next {
        right: 10px;
    }
}


/* Project detail sections, amenities, timeline, and premium consultation card */
.estate .project-detail-section + .project-detail-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.estate .estate-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.estate .estate-amenities-grid li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--background);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.estate .estate-amenities-grid svg {
    flex: none;
    color: var(--up);
}

.estate .estate-progress-timeline {
    list-style: none;
    padding: 0 0 0 18px;
    margin: 0;
    border-left: 2px solid var(--brand-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.estate .estate-progress-timeline li {
    position: relative;
}

.estate .estate-progress-timeline li::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.estate .estate-progress-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.estate .estate-progress-timeline p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.estate .estate-consult-card {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #FFF9F8 0%, #FFFFFF 100%);
    box-shadow: 0 10px 28px -18px rgba(217, 45, 32, 0.28);
}

.estate .estate-consult-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.estate .estate-consult-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(217, 45, 32, 0.65);
}

.estate .estate-consult-head h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
}

.estate .estate-consult-head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.estate .estate-consult-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.estate .estate-consult-field.is-full {
    grid-column: 1 / -1;
}

.estate .estate-consult-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.estate .estate-consult-field .form-control {
    border-radius: 10px;
    border-color: var(--line-strong);
    padding: 10px 12px;
    background: #fff;
}

.estate .estate-consult-field .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.14);
}

.estate .estate-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 18px;
    font-size: 0.86rem;
    color: var(--ink-soft);
    cursor: pointer;
}

.estate .estate-consent-row input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
    flex: none;
}

.estate .estate-consult-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.estate .estate-consult-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 700;
}

.estate .estate-consult-privacy {
    font-size: 0.8rem;
    color: var(--muted);
}

@media (max-width: 767.98px) {
    .estate .estate-consult-card {
        padding: 18px;
    }

    .estate .estate-consult-grid {
        grid-template-columns: 1fr;
    }
}


/* Personal saved, compare, broker profile, packages, and policy pages */
.estate .estate-saved-list {
    display: flex;
    flex-direction: column;
}

.estate .estate-saved-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.estate .estate-saved-row:first-child {
    padding-top: 2px;
}

.estate .estate-saved-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.estate .estate-saved-row h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
}

.estate .estate-saved-meta {
    margin: 4px 0 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.estate .estate-saved-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.estate .estate-inline-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    background: var(--background);
    color: var(--muted);
}

.estate .estate-inline-empty svg {
    flex: none;
    color: var(--brand);
    opacity: 0.85;
}

.estate .estate-inline-empty strong {
    display: block;
    color: var(--ink);
    font-size: 0.94rem;
}

.estate .estate-inline-empty p {
    margin: 2px 0 0;
    font-size: 0.85rem;
}

.estate .estate-profile-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
}

.estate .estate-profile-avatar {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
}

.estate .estate-profile-info {
    flex: 1 1 260px;
}

.estate .estate-profile-info h1 {
    margin: 0 0 4px;
    font-size: 1.45rem;
    font-weight: 800;
}

.estate .estate-profile-company {
    margin: 0 0 10px;
    font-weight: 600;
    color: var(--muted);
}

.estate .estate-profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.estate .estate-profile-bio {
    margin: 0 0 10px;
    font-size: 0.94rem;
    color: var(--ink-soft);
}

.estate .estate-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.estate .estate-package-card {
    padding: 20px;
}

.estate .estate-package-card h2 {
    margin: 10px 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
}

.estate .estate-package-price {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand);
}

.estate .estate-doc-panel {
    padding: 28px;
}

.estate .estate-doc-panel h2 {
    margin: 22px 0 8px;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--ink);
}

.estate .estate-doc-panel h2:first-of-type {
    margin-top: 0;
}

.estate .estate-doc-panel ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}


/* Detail header action bar spacing */
.estate .estate-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin: -6px 0 22px;
}

.estate .estate-pill-btn.is-saved {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}


/* Listing compare floating badge on card image, compare bar, and compact horizontal save-search bar */
.estate .estate-compare-badge {
    position: absolute;
    z-index: 4;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(24, 24, 27, 0.14);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.estate .estate-compare-badge:hover {
    background: #fff;
    color: var(--brand-dark);
}

.estate .estate-compare-badge input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--brand);
}

.estate .estate-compare-badge:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.estate .estate-compare-badge:has(input:checked) input {
    accent-color: #fff;
}

.estate .estate-compare-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    margin-top: 20px;
    padding: 14px 20px;
}

.estate .estate-compare-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.estate .estate-compare-info svg {
    flex: none;
    color: var(--brand);
}

.estate .estate-save-search-bar {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.5fr);
    align-items: center;
    gap: 16px 22px;
    margin-top: 16px;
    padding: 18px 20px;
    background: linear-gradient(180deg, #FFF9F8 0%, #FFFFFF 100%);
    border-color: var(--brand-border);
}

.estate .estate-save-search-lead {
    display: flex;
    align-items: center;
    gap: 12px;
}

.estate .estate-save-search-icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft-2);
    color: var(--brand-dark);
}

.estate .estate-save-search-lead > div strong {
    display: block;
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--ink);
}

.estate .estate-save-search-lead > div span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

.estate .estate-save-search-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(165px, 0.85fr) auto;
    gap: 10px;
    align-items: center;
}

.estate .estate-save-search-guest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 20px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

@media (max-width: 991.98px) {
    .estate .estate-save-search-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639.98px) {
    .estate .estate-save-search-fields {
        grid-template-columns: 1fr;
    }
}

/* Chuyên mục Wiki BĐS dạng lưới icon và khối Thị trường theo khu vực */
.estate .estate-wiki-panel {
    margin-bottom: 20px;
}

.estate .estate-wiki-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
    padding: 8px 0 4px;
}

.estate .estate-wiki-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.estate .estate-wiki-card:hover {
    background: var(--brand-soft);
    border-color: var(--brand-border);
    color: var(--brand-dark);
    transform: translateY(-2px);
}

.estate .estate-wiki-card.is-active {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.estate .estate-wiki-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--brand-soft-2);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.estate .estate-wiki-card:hover .estate-wiki-icon,
.estate .estate-wiki-card.is-active .estate-wiki-icon {
    background: #FFD6D2;
    transform: scale(1.04);
}

.estate .estate-wiki-title {
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
}

.estate .estate-region-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.estate .estate-region-list li + li {
    border-top: 1px solid var(--line);
}

.estate .estate-region-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 4px;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.16s ease, padding-left 0.16s ease;
}

.estate .estate-region-list a:hover,
.estate .estate-region-list a.is-active {
    color: var(--brand-dark);
    padding-left: 6px;
}

.estate .estate-region-list svg {
    flex: none;
    color: var(--muted);
}

.estate .estate-region-list a:hover svg,
.estate .estate-region-list a.is-active svg {
    color: var(--brand-dark);
}

@media (max-width: 991.98px) {
    .estate .estate-wiki-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .estate .estate-wiki-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .estate .estate-wiki-icon {
        width: 68px;
        height: 68px;
    }
}

/* Category select: phân biệt nhóm cha / con */
.estate-filter-field select option { padding: 6px 10px; }
.estate-filter-field select option.estate-opt-parent { font-weight: 700; color: #1f2937; }
.estate-filter-field select option.estate-opt-child { font-weight: 400; color: #4b5563; }

/* Compare page */
.estate .estate-compare-panel { border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.estate .estate-compare-table { table-layout: fixed; min-width: 640px; font-size: 0.95rem; border-collapse: separate; border-spacing: 0; }
.estate .estate-compare-table th,
.estate .estate-compare-table td { text-align: left; padding: 16px 20px; vertical-align: middle; border-bottom: 1px solid var(--line); border-top: 0; }
.estate .estate-compare-table td + td,
.estate .estate-compare-table th + th { border-left: 1px solid var(--line); }
.estate .estate-compare-table tbody tr:last-child > * { border-bottom: 0; }
.estate .estate-compare-table thead th { background: #faf8f6; vertical-align: top; padding-block: 18px; }
.estate .estate-compare-table .estate-compare-label,
.estate .estate-compare-table tbody th { width: 150px; background: #faf8f6; color: #6b6762; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.estate .estate-compare-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.4; text-decoration: none; text-transform: none; letter-spacing: 0; }
.estate .estate-compare-title:hover { color: var(--brand); }
.estate .estate-compare-price { color: var(--brand); font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.estate .estate-compare-table tbody tr:hover > * { background-color: #fdf6f4; }
.estate .estate-compare-table,
.estate .estate-compare-table > :not(caption) > * > * { --bs-table-bg: #fff; --bs-table-hover-bg: #fff; --bs-table-accent-bg: transparent; background-color: #fff; }
.estate .estate-compare-table thead th,
.estate .estate-compare-table .estate-compare-label,
.estate .estate-compare-table tbody th { background-color: #fff; }
.estate .estate-compare-table tbody tr:hover > * { background-color: #fff; }
.estate .estate-compare-table tr > * + * { border-left: 1px solid var(--line); }
