body.hg-luxury-home.hg-agent-detail-page main.hg-main {
    padding: 0;
    max-width: none;
    background: #f8fafc;
}

body.hg-agent-detail-page.hg-luxury-home {
    --lux-prop-btn: var(--lux-maroon, #c8102e);
    --lux-prop-btn-hover: var(--lux-maroon-hover, #a30d26);
}

body.hg-agent-detail-page .lux-prop-btn-primary,
body.hg-agent-detail-page .lux-agent-btn-primary,
body.hg-agent-detail-page .bg-brand,
body.hg-agent-detail-page button.bg-brand {
    background-color: var(--lux-prop-btn) !important;
    border-color: var(--lux-prop-btn) !important;
    color: #fff !important;
}

body.hg-agent-detail-page .lux-prop-btn-primary:hover,
body.hg-agent-detail-page .lux-agent-btn-primary:hover,
body.hg-agent-detail-page .bg-brand:hover,
body.hg-agent-detail-page button.bg-brand:hover {
    background-color: var(--lux-prop-btn-hover) !important;
    border-color: var(--lux-prop-btn-hover) !important;
    color: #fff !important;
}

body.hg-agent-detail-page .lux-agent-listing-card__btn--primary {
    background: var(--lux-prop-btn) !important;
    border-color: var(--lux-prop-btn) !important;
}

body.hg-agent-detail-page .lux-agent-listing-card__btn--primary:hover {
    background: var(--lux-prop-btn-hover) !important;
    border-color: var(--lux-prop-btn-hover) !important;
}

body.hg-agent-detail-page .lux-listing-filter.is-on {
    background: var(--lux-prop-btn) !important;
    border-color: var(--lux-prop-btn) !important;
}

body.hg-agent-detail-page .lux-agent-pages button.on {
    background: var(--lux-prop-btn) !important;
}

.lux-agent-detail {
    font-family: "Be Vietnam Pro", sans-serif;
}

.lux-agent-detail .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    vertical-align: middle;
}

/* —— Tabs —— */
.lux-agent-tabs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem;
    overflow-x: auto;
    scrollbar-width: thin;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.lux-agent-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lux-agent-tab__icon {
    font-size: 1rem !important;
    opacity: 0.85;
}

.lux-agent-tab__label em {
    font-style: normal;
    font-weight: 500;
    color: #94a3b8;
}

.lux-agent-tab:hover {
    color: #334155;
    background: #f8fafc;
}

.lux-agent-tab.is-on {
    border-color: rgba(200, 16, 46, 0.35);
    background: #fdf2f4;
    color: #c8102e;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(200, 16, 46, 0.06);
}

.lux-agent-tab.is-on .lux-agent-tab__icon {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
    opacity: 1;
}

.lux-agent-tab.is-on .lux-agent-tab__label em {
    color: #c8102e;
    opacity: 0.75;
}

/* —— Listing filters —— */
.lux-agent-listings-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lux-agent-listings-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
}

.lux-agent-listings-filter__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #94a3b8;
}

.lux-agent-listings-filter__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lux-listing-filter {
    padding: 0.35rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lux-listing-filter:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.lux-listing-filter.is-on {
    border-color: rgba(200, 16, 46, 0.45);
    background: #c8102e;
    color: #fff;
    box-shadow: 0 1px 2px rgba(200, 16, 46, 0.2);
}

.lux-agent-listings-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lux-agent-listings-pane {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* —— Listing card —— */
.lux-agent-listing-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

@media (min-width: 640px) {
    .lux-agent-listing-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
}

.lux-agent-listing-card:hover {
    border-color: rgba(200, 16, 46, 0.22);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.lux-agent-listing-card__media {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 10.5rem;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f5f9;
}

@media (min-width: 640px) {
    .lux-agent-listing-card__media {
        width: 15rem;
        height: 11rem;
    }
}

.lux-agent-listing-card__img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.lux-agent-listing-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.lux-agent-listing-card:hover .lux-agent-listing-card__img {
    transform: scale(1.03);
}

.lux-agent-listing-card__heart {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #94a3b8;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}

.lux-agent-listing-card__heart .material-symbols-outlined {
    font-size: 1.05rem;
}

.lux-agent-listing-card__heart:hover,
.lux-agent-listing-card__heart.is-on {
    color: #e11d48;
}

.lux-agent-listing-card__photos {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
}

.lux-agent-listing-card__photos .material-symbols-outlined {
    font-size: 0.75rem;
    color: #fcd34d;
}

.lux-agent-listing-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    padding: 0;
}

.lux-agent-listing-card__type {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #fdf2f4;
    color: #a30d26;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lux-agent-listing-card__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.lux-agent-listing-card__title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s;
}

.lux-agent-listing-card__title a:hover {
    color: #c8102e;
}

.lux-agent-listing-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin: 0.45rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.75rem;
    color: #64748b;
}

.lux-agent-listing-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.25;
}

.lux-agent-listing-card__meta .material-symbols-outlined {
    font-size: 0.875rem;
    line-height: 1;
    color: #94a3b8;
}

.lux-agent-listing-card__loc {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #64748b;
}

.lux-agent-listing-card__loc .material-symbols-outlined {
    flex-shrink: 0;
    margin-top: 0.1em;
    font-size: 0.875rem;
    line-height: 1;
    color: #94a3b8;
}

.lux-agent-listing-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #f1f5f9;
}

.lux-agent-listing-card__price {
    margin: 0;
    line-height: 1.2;
}

.lux-agent-listing-card__price-value {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #c8102e;
}

.lux-agent-listing-card__price-unit {
    margin-left: 0.15rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
}

.lux-agent-listing-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.lux-agent-listing-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lux-agent-listing-card__btn--ghost {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.lux-agent-listing-card__btn--ghost:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.lux-agent-listing-card__btn--primary {
    border: 1px solid #c8102e;
    background: #c8102e;
    color: #fff;
}

.lux-agent-listing-card__btn--primary:hover {
    background: #a30d26;
    border-color: #a30d26;
}

.lux-agent-office-map {
    position: relative;
    width: 100%;
    height: 9rem;
    overflow: hidden;
    border-radius: 12px;
    background: #e2e8f0;
}

.lux-agent-office-map__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.lux-agent-office-map__open {
    position: absolute;
    left: 0.625rem;
    bottom: 0.625rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    color: #1e293b;
    font-size: 0.625rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.lux-agent-office-map__open:hover {
    background: #fff;
}

.lux-agent-zalo-cta {
    background: var(--lux-maroon, #c8102e);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lux-agent-zalo-cta__btn {
    background: #fff;
    color: var(--lux-maroon, #c8102e);
    text-decoration: none;
}

.lux-agent-zalo-cta__btn:hover {
    background: #f8fafc;
    color: var(--lux-maroon-hover, #a30d26);
}

.lux-agent-pages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.lux-agent-pages button {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #1e293b;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.lux-agent-pages button.on {
    background: #c8102e;
    color: #fff;
}

.lux-agent-pages button:disabled {
    opacity: 0.35;
    cursor: default;
}

.lux-agent-pages span {
    color: #94a3b8;
}

.lux-agent-detail .ct-pill.is-on {
    background: #0f172a !important;
    color: #fff !important;
}

.lux-agent-detail .agent-review-list__item,
.lux-agent-detail .agent-review-list article {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
}

.lux-agent-btn-primary {
    background: var(--lux-maroon, #c8102e);
    border: 1px solid var(--lux-maroon, #c8102e);
    color: #fff;
    text-decoration: none;
}

.lux-agent-btn-primary:hover {
    background: var(--lux-maroon-hover, #a30d26);
    border-color: var(--lux-maroon-hover, #a30d26);
    color: #fff;
}

.lux-agent-follow.is-on {
    background: var(--lux-maroon, #c8102e);
    border-color: var(--lux-maroon, #c8102e);
    color: #fff;
}

.lux-agent-follow.is-on .material-symbols-outlined {
    color: #fff;
}

/* Profile name block: stay on white below cover (avatar overlap only) */
.lux-agent-avatar {
    line-height: 0;
}

.lux-agent-avatar__img,
.lux-agent-avatar__fallback {
    display: block;
}

.lux-agent-avatar__verified {
    line-height: 1;
}

.lux-agent-avatar__featured {
    line-height: 1.25;
    background: var(--lux-maroon, #c8102e);
    border-color: rgba(252, 211, 77, 0.35);
    color: #fde68a;
}

@media (max-width: 639px) {
    .lux-agent-profile-info {
        margin-top: 0.25rem;
    }
}
