* {
    box-sizing: border-box;
}

.hp-preview-body {
    margin: 0;
    background: #f7f5f2;
    color: #1c252a;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.hp-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.hp-preview-header {
    background: #fff;
    border-bottom: 1px solid #ded8d1;
}

.hp-preview-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hp-preview-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.hp-preview-header a {
    color: inherit;
}

.hp-brand {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.hp-page-hero {
    padding: 64px 0;
    background: #27353a;
    color: #fff;
}

.hp-page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.05;
}

.hp-page-hero p {
    max-width: 720px;
}

.hp-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    font-weight: 700;
}

.hp-listing-layout,
.hp-property-detail {
    padding-block: 48px 80px;
}

.hp-property-filters {
    padding: 24px;
    margin-bottom: 36px;
    background: #fff;
    border: 1px solid #ded8d1;
    border-radius: 16px;
}

.hp-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.hp-filter-grid label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.hp-filter-grid input,
.hp-filter-grid select {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #cfc6bc;
    border-radius: 8px;
    background: #fff;
}

.hp-filter-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
}

.hp-filter-actions button {
    min-height: 44px;
    padding: 8px 22px;
    border: 0;
    border-radius: 8px;
    background: #8d6a57;
    color: #fff;
    cursor: pointer;
}

.hp-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.hp-property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hp-property-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #ded8d1;
    border-radius: 16px;
}

.hp-property-card__image-link {
    display: block;
    aspect-ratio: 4 / 3;
    background: #ddd5cc;
}

.hp-property-card__image,
.hp-property-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-property-card__placeholder {
    display: grid;
    place-items: center;
}

.hp-property-card__content {
    padding: 20px;
}

.hp-property-card__content h2 {
    margin: 10px 0;
    font-size: 22px;
    line-height: 1.25;
}

.hp-property-card__content h2 a {
    color: inherit;
    text-decoration: none;
}

.hp-property-card__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hp-property-card__labels span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #ede7e0;
    font-size: 12px;
}

.hp-property-card__location {
    color: #5e676b;
}

.hp-property-card__price,
.hp-property-detail__price {
    font-size: 23px;
    font-weight: 700;
}

.hp-property-card__price small,
.hp-property-detail__price small {
    font-size: 13px;
    font-weight: 400;
}

.hp-property-card__facts,
.hp-detail-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hp-property-card__facts div,
.hp-detail-facts div {
    padding: 10px;
    background: #f5f2ee;
    border-radius: 8px;
}

.hp-property-card__facts dt,
.hp-detail-facts dt {
    font-size: 11px;
    text-transform: uppercase;
    color: #626b6f;
}

.hp-property-card__facts dd,
.hp-detail-facts dd {
    margin: 2px 0 0;
    font-weight: 700;
}

.hp-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.hp-empty-state {
    padding: 50px 24px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
}

.hp-property-detail__hero {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    border-radius: 18px;
}

.hp-property-detail__main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 40px;
    margin-top: 36px;
}

.hp-detail-facts {
    margin-block: 24px 36px;
}

.hp-detail-panel {
    padding: 22px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #ded8d1;
    border-radius: 14px;
}

.hp-detail-panel dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.hp-detail-panel dd {
    margin: 0;
    text-align: right;
}

.hp-broker img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}

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

.hp-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.hp-nearby-properties {
    margin-block: 60px;
}

.hp-ad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.hp-ad-grid a {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    background: #27353a;
}

.hp-ad-grid img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.hp-ad-grid span {
    position: relative;
    padding: 24px;
    font-size: 24px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .hp-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hp-property-detail__main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hp-preview-header__inner,
    .hp-results-header {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 16px;
    }

    .hp-filter-grid,
    .hp-property-grid,
    .hp-gallery,
    .hp-ad-grid,
    .hp-detail-facts,
    .hp-property-card__facts {
        grid-template-columns: 1fr;
    }
}
