/*
 * Style 1 — trang chi tiết bất động sản.
 * Mọi quy tắc đều bị giới hạn trong body.property-portal-detail-page;
 * các selector có thêm .hz-portal để thắng CSS cũ dùng body.property-premium-detail-page.
 */
body.property-portal-detail-page .hz-portal {
    --portal-canvas: #f6f3f2;
    --portal-card: #ffffff;
    --portal-ink: #1b1c1c;
    --portal-muted: #5b403c;
    --portal-primary: #b51b17;
    --portal-secondary: #0b58c7;
    --portal-tertiary: #006a42;
    --portal-surface: #f0eded;
    --portal-line: #e4e2e1;
    --portal-outline: #8f706b;
    --portal-shadow: 0 1px 2px rgb(0 0 0 / 5%);

    width: 100%;
    background: var(--portal-canvas);
    color: var(--portal-ink);
    font-family: Inter, var(--font-ui, Arial, sans-serif);
    line-height: 1.5;
}

body.property-portal-detail-page .hz-portal,
body.property-portal-detail-page .hz-portal * {
    box-sizing: border-box;
}

body.property-portal-detail-page .hz-portal img,
body.property-portal-detail-page .hz-portal iframe,
body.property-portal-detail-page .hz-portal video,
body.property-portal-detail-page .hz-portal svg {
    max-width: 100%;
}

body.property-portal-detail-page .hz-portal button,
body.property-portal-detail-page .hz-portal input,
body.property-portal-detail-page .hz-portal select,
body.property-portal-detail-page .hz-portal textarea {
    font: inherit;
}

body.property-portal-detail-page .hz-portal a {
    color: inherit;
    text-decoration: none;
}

body.property-portal-detail-page .hz-portal__container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

body.property-portal-detail-page .hz-portal .hz-portal__section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__section-heading .hz-portal__section-title {
    margin-bottom: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__section-heading > a,
body.property-portal-detail-page .hz-portal .hz-portal__report {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--portal-secondary);
    font-size: 12px;
}

body.property-portal-detail-page .hz-portal .hz-portal__form-heading {
    margin-top: 16px;
    padding: 16px;
    border-radius: 4px;
    background: var(--portal-canvas);
}

body.property-portal-detail-page .hz-portal .hz-portal__form-heading h3 {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 20px;
}

body.property-portal-detail-page .hz-portal .hz-portal__agent-label {
    display: block;
    color: var(--portal-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.property-portal-detail-page .hz-portal .hz-portal__related-image {
    display: flex;
    flex: 0 0 80px;
    align-items: center;
    justify-content: center;
    height: 64px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--portal-surface);
}

body.property-portal-detail-page .hz-portal .hz-portal__related-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    line-height: 16px;
    color: var(--portal-muted);
    overflow-wrap: anywhere;
}

body.property-portal-detail-page .hz-portal .hz-portal__related-copy strong {
    color: var(--portal-ink);
    font-size: 12px;
    line-height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal__related-price {
    color: var(--portal-primary);
    font-weight: 700;
}

/* Breadcrumbs, metadata and page heading */
body.property-portal-detail-page .hz-portal .hz-portal__breadcrumb-bar {
    border-bottom: 1px solid var(--portal-line);
    background: var(--portal-card);
}

body.property-portal-detail-page .hz-portal .hz-portal__breadcrumb-inner {
    max-width: 1200px;
    margin-inline: auto;
    padding: 8px 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
    margin: 0;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__breadcrumbs svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
}

body.property-portal-detail-page .hz-portal .hz-portal__breadcrumbs a {
    color: var(--portal-muted);
    transition: color 160ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal__breadcrumbs a:hover {
    color: var(--portal-primary);
}

body.property-portal-detail-page .hz-portal .hz-portal__header {
    margin-bottom: 16px;
    padding: 16px;
    border: 0;
    border-radius: 8px;
    background: var(--portal-card);
    box-shadow: var(--portal-shadow);
}

body.property-portal-detail-page .hz-portal .hz-portal__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid var(--portal-line);
    border-radius: 999px;
    background: var(--portal-surface);
    color: var(--portal-ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__badge--featured {
    border-color: rgb(181 27 23 / 18%);
    background: rgb(181 27 23 / 7%);
    color: var(--portal-primary);
}

body.property-portal-detail-page .hz-portal .hz-portal__badge--verified {
    border-color: rgb(0 106 66 / 18%);
    background: rgb(0 106 66 / 8%);
    color: var(--portal-tertiary);
}

body.property-portal-detail-page .hz-portal .hz-portal__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

body.property-portal-detail-page .hz-portal .hz-portal__actions > a,
body.property-portal-detail-page .hz-portal .hz-portal__actions > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 30px;
    padding: 6px 12px;
    border: 0;
    border-radius: 4px;
    background: var(--portal-surface);
    color: var(--portal-ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal__actions svg {
    width: 18px;
    height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal__actions .hz-portal__report-action {
    background: transparent;
    color: var(--portal-muted);
    font-size: 11px;
}

body.property-portal-detail-page .hz-portal .hz-portal__actions > a:hover,
body.property-portal-detail-page .hz-portal .hz-portal__actions > button:hover {
    border-color: var(--portal-outline);
    background: var(--portal-surface);
}

body.property-portal-detail-page .hz-portal .hz-portal__header h1 {
    margin: 8px 0 0;
    color: var(--portal-ink);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 32px;
    overflow-wrap: anywhere;
}

body.property-portal-detail-page .hz-portal .hz-portal__location {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 22px;
}

/* 7/5 gallery: the inner media area is 460px high on desktop. */
body.property-portal-detail-page .hz-portal .hz-portal__gallery {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 6px;
    height: 472px;
    margin-bottom: 24px;
    padding: 6px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: var(--portal-card);
}

body.property-portal-detail-page .hz-portal .hz-portal__gallery--single {
    grid-template-columns: minmax(0, 1fr);
}

body.property-portal-detail-page .hz-portal .hz-portal__photo,
body.property-portal-detail-page .hz-portal .hz-portal__thumbnails {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 4px;
}

body.property-portal-detail-page .hz-portal .hz-portal__photo {
    position: relative;
    display: block;
    background: var(--portal-surface);
}
body.property-portal-detail-page .hz-portal .hz-portal__photo--hidden {
    display: none;
}

body.property-portal-detail-page .hz-portal .hz-portal__photo img,
body.property-portal-detail-page .hz-portal .hz-portal__thumbnails img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal__photo:hover img {
    transform: scale(1.025);
}

body.property-portal-detail-page .hz-portal .hz-portal__thumbnails {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

body.property-portal-detail-page .hz-portal .hz-portal__thumbnails .hz-portal__photo {
    min-height: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__photo-count,
body.property-portal-detail-page .hz-portal .hz-portal__photo-more {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal__photo-count {
    top: 12px;
    left: 12px;
    background: rgb(27 28 28 / 78%);
}

body.property-portal-detail-page .hz-portal .hz-portal__photo-more {
    inset: 0;
    flex-direction: column;
    border-radius: 0;
    background: rgb(27 28 28 / 60%);
    font-size: 14px;
    font-weight: 700;
}

/* Main content and contact sidebar */
body.property-portal-detail-page .hz-portal .hz-portal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

body.property-portal-detail-page .hz-portal .hz-portal__content,
body.property-portal-detail-page .hz-portal .hz-portal__sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__card {
    min-width: 0;
    padding: 24px;
    border: 0;
    border-radius: 8px;
    background: var(--portal-card);
    box-shadow: var(--portal-shadow);
}

body.property-portal-detail-page .hz-portal .hz-portal__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--portal-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
}

body.property-portal-detail-page .hz-portal .hz-portal__section-title::before {
    flex: 0 0 6px;
    width: 6px;
    height: 20px;
    border-radius: 2px;
    background: var(--portal-primary);
    content: "";
}

body.property-portal-detail-page .hz-portal .hz-portal__description {
    color: var(--portal-ink);
    font-size: 14px;
    line-height: 22px;
    overflow-wrap: anywhere;
}

body.property-portal-detail-page .hz-portal .hz-portal__description > :first-child {
    margin-top: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__description > :last-child {
    margin-bottom: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__description p,
body.property-portal-detail-page .hz-portal .hz-portal__description li {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

body.property-portal-detail-page .hz-portal .hz-portal__description-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 3px solid var(--portal-primary);
    border-radius: 6px;
    background: var(--portal-canvas);
    color: var(--portal-ink);
    font-size: 14px;
    line-height: 20px;
}

body.property-portal-detail-page .hz-portal .hz-portal__description-cta-text {
    font-weight: 600;
    color: var(--portal-ink);
}

body.property-portal-detail-page .hz-portal .hz-portal__description-cta-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.property-portal-detail-page .hz-portal .hz-portal__description-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
    white-space: nowrap;
}

body.property-portal-detail-page .hz-portal .hz-portal__description-cta-btn svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal__description-cta-btn--zalo {
    border: 1px solid var(--portal-secondary, #0b58c7);
    background: #ffffff;
    color: var(--portal-secondary, #0b58c7);
}

body.property-portal-detail-page .hz-portal .hz-portal__description-cta-btn--zalo:hover {
    background: rgb(11 88 199 / 8%);
    color: var(--portal-secondary, #0b58c7);
}

body.property-portal-detail-page .hz-portal .hz-portal__description-cta-btn--phone {
    border: 1px solid var(--portal-primary, #b51b17);
    background: var(--portal-primary, #b51b17);
    color: #ffffff;
}

body.property-portal-detail-page .hz-portal .hz-portal__description-cta-btn--phone:hover {
    border-color: #981511;
    background: #981511;
    color: #ffffff;
}

@media (max-width: 640px) {
    body.property-portal-detail-page .hz-portal .hz-portal__description-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__description-cta-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__description-cta-btn {
        width: 100%;
        min-height: 44px;
        padding: 8px 10px;
        font-size: 13px;
    }
}

body.property-portal-detail-page .hz-portal .hz-portal__metrics {
    display: grid;
    grid-template-columns: repeat(var(--hz-metrics-cols, 4), minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    body.property-portal-detail-page .hz-portal .hz-portal__metrics .hz-portal__metric:not(:first-child) {
        border-left: 1px solid var(--portal-line);
        padding-left: 24px;
    }
}

body.property-portal-detail-page .hz-portal .hz-portal__metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__metric dt {
    color: var(--portal-muted);
    margin: 0;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal__metric-value {
    color: var(--portal-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    overflow-wrap: anywhere;
}

body.property-portal-detail-page .hz-portal .hz-portal__metric.is-price .hz-portal__metric-value {
    color: var(--portal-primary);
}

body.property-portal-detail-page .hz-portal .hz-portal__metric dd {
    margin: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__metric-value--numeric {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 4px;
}

body.property-portal-detail-page .hz-portal .hz-portal__metric-number {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.02em;
}

body.property-portal-detail-page .hz-portal .hz-portal__metric-unit {
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
}

body.property-portal-detail-page .hz-portal .hz-portal__attributes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 32px;
    margin: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__attributes > div,
body.property-portal-detail-page .hz-portal .hz-portal__attribute {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px;
    border-radius: 2px;
    background: rgb(246 243 242 / 50%);
}

body.property-portal-detail-page .hz-portal .hz-portal__attributes dt {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 22px;
}

body.property-portal-detail-page .hz-portal .hz-portal__attributes dt svg,
body.property-portal-detail-page .hz-portal .hz-portal__attributes dt .icon,
body.property-portal-detail-page .hz-portal .hz-portal__attributes dt [class*="icon-"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--portal-muted);
}

body.property-portal-detail-page .hz-portal .hz-portal__attributes dd {
    margin: 0;
    color: var(--portal-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    text-align: right;
    overflow-wrap: anywhere;
}

body.property-portal-detail-page .hz-portal .hz-portal__attributes .is-price dd {
    color: var(--portal-primary);
}

body.property-portal-detail-page .hz-portal .hz-portal__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.property-portal-detail-page .hz-portal .hz-portal__features > li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    border-radius: 4px;
    background: var(--portal-canvas);
    color: var(--portal-ink);
    font-size: 12px;
    line-height: 18px;
    overflow-wrap: anywhere;
}

body.property-portal-detail-page .hz-portal .hz-portal__features svg,
body.property-portal-detail-page .hz-portal .hz-portal__features .icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--portal-primary);
}

body.property-portal-detail-page .hz-portal .hz-portal__project-body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

body.property-portal-detail-page .hz-portal .hz-portal__project-body--no-media {
    grid-template-columns: minmax(0, 1fr);
}
body.property-portal-detail-page .hz-portal .hz-portal__project-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--portal-surface);
}

body.property-portal-detail-page .hz-portal .hz-portal__project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal__project-media:hover img {
    transform: scale(1.035);
}

body.property-portal-detail-page .hz-portal .hz-portal__project-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--portal-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__project-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__project-address {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal__project-address svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: var(--portal-primary);
}

body.property-portal-detail-page .hz-portal .hz-portal__project-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 6px;
    background: var(--portal-canvas);
}

body.property-portal-detail-page .hz-portal .hz-portal__project-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__project-stat-item dt {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__project-stat-item dt svg {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    color: var(--portal-muted);
}

body.property-portal-detail-page .hz-portal .hz-portal__project-stat-item dd {
    margin: 0;
    color: var(--portal-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.property-portal-detail-page .hz-portal .hz-portal__project-desc {
    margin: 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.property-portal-detail-page .hz-portal .hz-portal__project-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    background: var(--portal-canvas);
}

@media (max-width: 767px) {
    body.property-portal-detail-page .hz-portal .hz-portal__project-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__project-media {
        aspect-ratio: 16 / 9;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__project-stats-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}
body.property-portal-detail-page .hz-portal .hz-portal__project-stats > * {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__project-stats strong {
    color: var(--portal-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    overflow-wrap: anywhere;
}

body.property-portal-detail-page .hz-portal .hz-portal__project-stats span {
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 16px;
}

/* Map: override the legacy inline 400px minimum only inside this portal widget. */
body.property-portal-detail-page .hz-portal .hz-portal__map.single-property-map,
body.property-portal-detail-page .hz-portal .hz-portal__map .single-property-map {
    min-width: 0;
    margin: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__map [data-bb-toggle="detail-map"],
body.property-portal-detail-page .hz-portal .hz-portal__map #map,
body.property-portal-detail-page .hz-portal .hz-portal__map iframe,
body.property-portal-detail-page .hz-portal .hz-portal__map .leaflet-container {
    display: block;
    width: 100%;
    height: 288px;
    min-height: 288px !important;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

body.property-portal-detail-page .hz-portal .hz-portal__map .single-property-map-image {
    margin: 0 0 12px;
    overflow: hidden;
    border-radius: 8px;
}

body.property-portal-detail-page .hz-portal .hz-portal__map .single-property-map-image img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

body.property-portal-detail-page .hz-portal .hz-portal__map .info-map {
    margin: 12px 0 0;
    padding: 12px;
    border-radius: 4px;
    background: var(--portal-canvas);
    list-style: none;
}

body.property-portal-detail-page .hz-portal .hz-portal__map .info-map a {
    color: var(--portal-secondary);
    overflow-wrap: anywhere;
}

/* Existing video / virtual-tour partial. */
body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.property-portal-detail-page .hz-portal .hz-portal__video.hk-property-media {
    width: 100%;
    min-width: 0;
    margin: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__eyebrow,
body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--portal-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__lead,
body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__lead {
    max-width: 60ch;
    margin: 6px 0 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 20px;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__switch,
body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__switch-btn,
body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--portal-line);
    border-radius: 4px;
    background: var(--portal-card);
    color: var(--portal-ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    text-align: left;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__switch-btn:hover,
body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__tab:hover {
    border-color: var(--portal-primary);
    background: rgb(181 27 23 / 5%);
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__switch-btn.is-active,
body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__tab.is-active {
    border-color: var(--portal-primary);
    background: var(--portal-primary);
    color: #ffffff;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__video,
body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__tour {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 288px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #1b1c1c;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__poster {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    transition: transform 240ms ease, filter 240ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__video:hover .hk-property-media__poster {
    transform: scale(1.02);
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 16px;
    border: 0;
    background: rgb(27 28 28 / 20%);
    color: #ffffff;
    cursor: pointer;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__play-core {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--portal-primary);
    color: #ffffff;
    transition: transform 160ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__play:hover .hk-property-media__play-core {
    transform: scale(1.05);
}

body.property-portal-detail-page .hz-portal .hk-property-media__frame,
body.property-portal-detail-page .hz-portal .hk-property-media__tour-placeholder {
    position: relative;
    min-height: 288px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__frame iframe,
body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__tour iframe,
body.property-portal-detail-page .hz-portal .hz-portal__video .virtual-tour-embed__iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 288px;
    border: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__tour-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(180deg, rgb(27 28 28 / 20%), rgb(27 28 28 / 76%));
    color: #ffffff;
    text-align: center;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__tour-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--portal-tertiary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__tour-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    background: #ffffff;
    color: var(--portal-ink);
    cursor: pointer;
    font-weight: 600;
}

body.property-portal-detail-page .hz-portal .hk-property-media__panel[hidden],
body.property-portal-detail-page .hz-portal .hk-property-media__frame[hidden],
body.property-portal-detail-page .hz-portal .hk-floor-plans__panel[hidden] {
    display: none !important;
}

body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__tour.is-loaded .hk-property-media__tour-placeholder {
    display: none;
}

/* Existing floor-plan partial. */
body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.property-portal-detail-page .hz-portal .hz-portal__floor-plans.hk-floor-plans {
    width: 100%;
    min-width: 0;
    margin: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__count {
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid var(--portal-line);
    border-radius: 999px;
    background: var(--portal-canvas);
    color: var(--portal-muted);
    font-size: 12px;
    font-weight: 600;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__tab {
    justify-content: flex-start;
    max-width: 100%;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__tab-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__tab-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--portal-surface);
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 700;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 12px;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__meta-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__kind-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--portal-surface);
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 600;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__kind-badge--site {
    background: rgb(11 88 199 / 8%);
    color: var(--portal-secondary);
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__meta h3 {
    margin: 0;
    color: var(--portal-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__specs li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--portal-canvas);
    color: var(--portal-muted);
    font-size: 12px;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__desc {
    margin: 0 0 12px;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 22px;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__stage {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    background: var(--portal-canvas);
    cursor: zoom-in;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__stage-media {
    display: block;
    min-height: 240px;
    padding: 16px;
    aspect-ratio: 4 / 3;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__stage img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    transition: transform 220ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__stage:hover img {
    transform: scale(1.015);
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgb(27 28 28 / 86%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px;
    border: 1px dashed var(--portal-outline);
    border-radius: 8px;
    background: var(--portal-canvas);
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__empty strong,
body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__empty p {
    margin: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__empty-cta,
body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--portal-primary);
    border-radius: 4px;
    background: var(--portal-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--portal-line);
}

body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__footer-note {
    max-width: 54ch;
    margin: 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 20px;
}

/* Contact card, form and related listings */
body.property-portal-detail-page .hz-portal .hz-portal__contact {
    min-width: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__agent {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--portal-line);
}

body.property-portal-detail-page .hz-portal .hz-portal__agent img,
body.property-portal-detail-page .hz-portal .hz-portal__agent-avatar {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--portal-surface);
    object-fit: cover;
}

body.property-portal-detail-page .hz-portal .hz-portal__agent-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal__agent-copy > :first-child {
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__agent-copy > :nth-child(2) {
    color: var(--portal-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    overflow-wrap: anywhere;
}

body.property-portal-detail-page .hz-portal .hz-portal__channels {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 0 0 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__channels a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--portal-primary);
    border-radius: 4px;
    background: var(--portal-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal__channels a[href*="zalo"],
body.property-portal-detail-page .hz-portal .hz-portal__channels .hz-portal__channel--zalo {
    border-color: var(--portal-secondary);
    background: var(--portal-card);
    color: var(--portal-secondary);
}

body.property-portal-detail-page .hz-portal .hz-portal__channels a[href*="zalo"]:hover,
body.property-portal-detail-page .hz-portal .hz-portal__channels .hz-portal__channel--zalo:hover {
    background: rgb(11 88 199 / 6%);
}

body.property-portal-detail-page .hz-portal .hz-portal__channels a[href^="tel:"]:hover,
body.property-portal-detail-page .hz-portal .hz-portal__channels .hz-portal__channel--primary:hover {
    border-color: #981511;
    background: #981511;
}

body.property-portal-detail-page .hz-portal .hz-portal__channels svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

body.property-portal-detail-page .hz-portal .hz-portal__channels .hz-portal__channel--email {
    border-color: var(--portal-line);
    background: var(--portal-card);
    color: var(--portal-muted);
    overflow-wrap: anywhere;
}

body.property-portal-detail-page .hz-portal .hz-portal-consult-form,
body.property-portal-detail-page .hz-portal .hz-portal__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

body.property-portal-detail-page .hz-portal .hz-portal__field,
body.property-portal-detail-page .hz-portal .hz-portal-consult-form > .mb-3 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

/* Bootstrap's important utility must not add spacing to the form gap. */
body.property-portal-detail-page .hz-portal .hz-portal-consult-form > .mb-3 {
    margin-bottom: 0 !important;
}

body.property-portal-detail-page .hz-portal .hz-portal__field label,
body.property-portal-detail-page .hz-portal .hz-portal-consult-form > .mb-3 > label {
    color: var(--portal-ink);
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.consult-honeypot),
body.property-portal-detail-page .hz-portal .hz-portal__field select,
body.property-portal-detail-page .hz-portal .hz-portal__field textarea,
body.property-portal-detail-page .hz-portal .hz-portal-consult-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.consult-honeypot),
body.property-portal-detail-page .hz-portal .hz-portal-consult-form select,
body.property-portal-detail-page .hz-portal .hz-portal-consult-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--portal-line);
    border-radius: 4px;
    background: var(--portal-card);
    color: var(--portal-ink);
    font-size: 14px;
    line-height: 20px;
}

body.property-portal-detail-page .hz-portal .hz-portal__field textarea,
body.property-portal-detail-page .hz-portal .hz-portal-consult-form textarea {
    min-height: 96px;
    resize: vertical;
}

body.property-portal-detail-page .hz-portal .hz-portal-consult-form textarea[name="content"] {
    height: 96px;
}

body.property-portal-detail-page .hz-portal .hz-portal__field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.consult-honeypot):focus,
body.property-portal-detail-page .hz-portal .hz-portal__field select:focus,
body.property-portal-detail-page .hz-portal .hz-portal__field textarea:focus,
body.property-portal-detail-page .hz-portal .hz-portal-consult-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.consult-honeypot):focus,
body.property-portal-detail-page .hz-portal .hz-portal-consult-form select:focus,
body.property-portal-detail-page .hz-portal .hz-portal-consult-form textarea:focus {
    border-color: var(--portal-primary);
    outline: 2px solid rgb(181 27 23 / 18%);
    outline-offset: 1px;
}

body.property-portal-detail-page .hz-portal .hz-portal__field:has(.consult-honeypot) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
}

body.property-portal-detail-page .hz-portal .hz-portal-consult-form .form-check-label {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 12px;
    line-height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal__submit,
body.property-portal-detail-page .hz-portal .hz-portal-consult-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--portal-ink);
    border-radius: 4px;
    background: var(--portal-ink);
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    transition: background-color 160ms ease, border-color 160ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal__submit:hover,
body.property-portal-detail-page .hz-portal .hz-portal-consult-form button[type="submit"]:hover {
    border-color: #303030;
    background: #303030;
}

body.property-portal-detail-page .hz-portal .hz-portal__advisory {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 8px;
    border-radius: 4px;
    background: var(--portal-card);
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal__advisory svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--portal-secondary);
}

body.property-portal-detail-page .hz-portal .hz-portal__social-sharing,
body.property-portal-detail-page .hz-portal .hz-portal__social-sharing ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.property-portal-detail-page .hz-portal .hz-portal__social-sharing {
    justify-content: space-between;
    color: var(--portal-muted);
    font-size: 12px;
}

body.property-portal-detail-page .hz-portal .hz-portal__social-sharing a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--portal-line);
    border-radius: 4px;
    background: var(--portal-surface);
    color: var(--portal-ink);
}

body.property-portal-detail-page .hz-portal .hz-portal__social-sharing svg {
    width: 18px;
    height: 18px;
}


body.property-portal-detail-page .hz-portal .hz-portal__related-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.property-portal-detail-page .hz-portal .hz-portal__related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 80px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 160ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal__related-item:hover {
    background: var(--portal-canvas);
}

body.property-portal-detail-page .hz-portal .hz-portal__related-item img {
    flex: 0 0 80px;
    width: 80px;
    height: 64px;
    border-radius: 4px;
    background: var(--portal-surface);
    object-fit: cover;
}

body.property-portal-detail-page .hz-portal .hz-portal__related-item > :not(img) {
    min-width: 0;
}


/* Comments, ads and status hooks remain neutral and contained by the portal. */
body.property-portal-detail-page .hz-portal .hz-portal__ad,
body.property-portal-detail-page .hz-portal .hz-portal__comments {
    min-width: 0;
}

body.property-portal-detail-page .hz-portal [data-portal-status] {
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 18px;
}

body.property-portal-detail-page .hz-portal [data-portal-share] {
    cursor: pointer;
}

@media (max-width: 1023px) {
    body.property-portal-detail-page .hz-portal .hz-portal__metric.is-price .hz-portal__metric-number {
        font-size: 26px;
        line-height: 34px;
    }
}

/* Sidebar pins only the contact card, never the whole sidebar. */
@media (min-width: 1024px) {
    body.property-portal-detail-page .hz-portal .hz-portal__grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    body.property-portal-detail-page .hz-portal .hz-portal__content {
        grid-column: span 8;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__sidebar {
        grid-column: span 4;
        align-self: stretch;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__contact {
        position: static;
        align-self: start;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    body.property-portal-detail-page .hz-portal .hz-portal__gallery {
        height: 372px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__contact {
        position: static;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__attributes {
        gap: 12px 20px;
    }

}

@media (max-width: 767px) {
    body.property-portal-detail-page .hz-portal__container {
        padding: 12px 16px 100px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__header,
    body.property-portal-detail-page .hz-portal .hz-portal__card {
        padding: 16px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__header h1 {
        font-size: 24px;
        line-height: 32px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__actions {
        width: 100%;
        margin-left: 0;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__actions > a,
    body.property-portal-detail-page .hz-portal .hz-portal__actions > button {
        flex: 1 1 auto;
        min-height: 44px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__gallery {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 260px 130px;
        gap: 6px;
        height: auto;
        margin-bottom: 16px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__gallery--single {
        grid-template-rows: 260px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__thumbnails {
        height: 130px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__metrics,
    body.property-portal-detail-page .hz-portal .hz-portal__project-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
        margin-bottom: 16px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__metrics .hz-portal__metric {
        border-left: 0;
        padding-left: 0;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__metrics .hz-portal__metric-number {
        font-size: 24px;
        line-height: 32px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__metrics .hz-portal__metric-unit {
        font-size: 14px;
        line-height: 20px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__attributes {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__tab {
        flex: 1 1 100%;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__stage-media {
        min-height: 200px;
        padding: 10px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__footer {
        align-items: stretch;
        flex-direction: column;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__cta,
    body.property-portal-detail-page .hz-portal .hz-portal__floor-plans .hk-floor-plans__empty-cta {
        width: 100%;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__video,
    body.property-portal-detail-page .hz-portal .hz-portal__video .hk-property-media__tour,
    body.property-portal-detail-page .hz-portal .hk-property-media__frame,
    body.property-portal-detail-page .hz-portal .hk-property-media__tour-placeholder {
        min-height: 260px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__related-item {
        padding-inline: 0;
    }
}

@media (max-width: 420px) {
    body.property-portal-detail-page .hz-portal .hz-portal__attributes > div,
    body.property-portal-detail-page .hz-portal .hz-portal__attribute {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__attributes dd {
        text-align: left;
    }

    body.property-portal-detail-page .hz-portal .hz-portal__project-stats {
        gap: 10px;
        padding: 12px;
    }
}

/* Reuse the existing mobile CTA partial; never add a second fixed bar. */
body.property-portal-detail-page .sticky-mobile-cta-bar {
    display: none;
}

body.property-portal-detail-page .sticky-mobile-cta-bar__btn {
    min-width: 0;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: Inter, var(--font-ui, Arial, sans-serif);
    font-size: 14px;
    line-height: 20px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.property-portal-detail-page .sticky-mobile-cta-bar__btn--call,
body.property-portal-detail-page .sticky-mobile-cta-bar__btn--primary {
    border-color: var(--portal-primary, #b51b17);
    background: var(--portal-primary, #b51b17);
    color: #ffffff !important;
}

body.property-portal-detail-page .sticky-mobile-cta-bar__btn--zalo {
    border-color: var(--portal-secondary, #0b58c7);
    background: #ffffff;
    color: var(--portal-secondary, #0b58c7) !important;
}

body.property-portal-detail-page .sticky-mobile-cta-bar__btn--schedule {
    border-color: var(--portal-secondary, #0b58c7);
    background: #ffffff;
    color: var(--portal-secondary, #0b58c7) !important;
}

body.property-portal-detail-page .sticky-mobile-cta-bar__btn--call:hover,
body.property-portal-detail-page .sticky-mobile-cta-bar__btn--primary:hover {
    background: #981511;
}

body.property-portal-detail-page .sticky-mobile-cta-bar__btn--zalo:hover,
body.property-portal-detail-page .sticky-mobile-cta-bar__btn--schedule:hover {
    background: rgb(11 88 199 / 6%);
}

@media (max-width: 767px) {
    body.property-portal-detail-page .sticky-mobile-cta-bar {
        display: flex;
        align-items: stretch;
        gap: 8px;
        padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--portal-line, #e4e2e1);
        background: rgb(255 255 255 / 97%);
        box-shadow: 0 -2px 10px rgb(0 0 0 / 6%);
        backdrop-filter: blur(12px);
    }

    body.property-portal-detail-page .sticky-mobile-cta-bar__btn {
        flex: 1 1 0;
    }
}

body.property-portal-detail-page .hz-portal :focus-visible,
body.property-portal-detail-page .sticky-mobile-cta-bar :focus-visible {
    outline: 3px solid rgb(181 27 23 / 58%);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    body.property-portal-detail-page .hz-portal *,
    body.property-portal-detail-page .sticky-mobile-cta-bar * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Style 1 discovery collections use the same cards for recommendations and history. */
body.property-portal-detail-page .hz-portal .hz-portal-listing-section {
    width: 100%;
    min-width: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-section__more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-section__more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    background: var(--portal-card);
    color: var(--portal-ink);
    box-shadow: var(--portal-shadow);
    font: 600 14px/20px Inter, var(--font-ui, Arial, sans-serif);
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-section__more-button:hover:not(:disabled) {
    border-color: var(--portal-primary);
    background: var(--portal-canvas);
    color: var(--portal-primary);
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-section__more-button:active:not(:disabled) {
    background: var(--portal-surface);
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-section__more-button:disabled {
    color: var(--portal-muted);
    cursor: wait;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-section__more-button svg {
    width: 18px;
    height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-section__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--portal-line);
    border-top-color: var(--portal-primary);
    border-radius: 50%;
    animation: portal-more-spin 800ms linear infinite;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-section__more[hidden],
body.property-portal-detail-page .hz-portal .hz-portal-listing-section__more-button [hidden] {
    display: none !important;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-section__load-status {
    margin: 12px 0 0;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-section__load-status:empty {
    display: none;
}

@keyframes portal-more-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    body.property-portal-detail-page .hz-portal .hz-portal-listing-section__more-button {
        transition: none;
    }

    body.property-portal-detail-page .hz-portal .hz-portal-listing-section__spinner {
        animation: none;
    }
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-grid[hidden],
body.property-portal-detail-page .hz-portal .hz-portal-listing-section__empty[hidden] {
    display: none !important;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-section__empty {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    background: var(--portal-card);
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 22px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    background: var(--portal-card);
    box-shadow: var(--portal-shadow);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card:hover {
    border-color: var(--portal-outline);
    box-shadow: 0 2px 8px rgb(0 0 0 / 4%), 0 4px 16px rgb(0 0 0 / 3%);
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__image {
    position: relative;
    display: block;
    width: 100%;
    height: 192px;
    overflow: hidden;
    background: var(--portal-surface);
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card:hover .hz-portal-listing-card__image img {
    transform: scale(1.03);
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    height: 100%;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__image-placeholder svg {
    width: 24px;
    height: 24px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    min-width: 0;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--portal-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__title-link {
    color: inherit;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__title-link:hover {
    color: var(--portal-primary);
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 24px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__price,
body.property-portal-detail-page .hz-portal .hz-portal-listing-card__area {
    color: var(--portal-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__price {
    overflow-wrap: anywhere;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__separator {
    color: var(--portal-outline);
    font-weight: 400;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__specs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__specs li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__specs svg,
body.property-portal-detail-page .hz-portal .hz-portal-listing-card__location svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__specs li span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__location {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    margin: 0;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__location svg {
    flex: 0 0 16px;
    color: var(--portal-outline);
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__location span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--portal-line);
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__time {
    min-width: 0;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 18px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__favorite {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--portal-outline);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__favorite:hover,
body.property-portal-detail-page .hz-portal .hz-portal-listing-card__favorite.active {
    background: var(--portal-surface);
    color: var(--portal-primary);
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__favorite svg {
    width: 18px;
    height: 18px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__favorite.active svg {
    fill: currentColor;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__favorite:focus-visible {
    outline: 3px solid rgb(181 27 23 / 58%);
    outline-offset: 2px;
}

body.property-portal-detail-page .hz-portal .hz-portal-listing-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--portal-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
}

@media (max-width: 767px) {
    body.property-portal-detail-page .hz-portal .hz-portal-listing-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
