.ihpl-main {
    background: #f6f7f8;
    color: #1f2328;
}

.ihpl-listing-wrap,
.ihpl-detail {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.ihpl-page-head,
.ihpl-detail-head {
    margin-bottom: 28px;
}

.ihpl-eyebrow {
    margin: 0 0 8px;
    color: #9b1111;
    font-family: Oswald, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ihpl-page-head h1,
.ihpl-detail-head h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.35;
}

.ihpl-page-head p {
    margin: 0;
}

.ihpl-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: #555;
    font-weight: 700;
}

.ihpl-property-list {
    display: grid;
    gap: 18px;
}

.ihpl-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.ihpl-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    background: #e9ecef;
    color: #777;
    font-weight: 700;
    text-decoration: none;
}

.ihpl-card-image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.ihpl-card-body {
    padding: 22px;
}

.ihpl-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    color: #666;
    font-size: 13px;
}

.ihpl-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    background: #9b1111;
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
}

.ihpl-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.45;
}

.ihpl-card h2 a,
.ihpl-back-link a {
    color: inherit;
    text-decoration: none;
}

.ihpl-card-price {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 14px;
}

.ihpl-card-price strong {
    color: #b00000;
    font-size: 25px;
    line-height: 1.2;
}

.ihpl-card-price span {
    color: #555;
}

.ihpl-card-specs,
.ihpl-detail-table {
    display: grid;
    margin: 0;
    border-top: 1px solid #e5e5e5;
}

.ihpl-card-specs div,
.ihpl-detail-table div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    border-bottom: 1px solid #e5e5e5;
}

.ihpl-card-specs dt,
.ihpl-detail-table dt {
    padding: 9px 10px;
    background: #f1f2f3;
    color: #555;
    font-weight: 700;
}

.ihpl-card-specs dd,
.ihpl-detail-table dd {
    min-width: 0;
    margin: 0;
    padding: 9px 10px;
}

.ihpl-card-copy {
    margin: 14px 0 0;
    color: #333;
}

.ihpl-detail-link,
.ihpl-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 18px;
    padding: 0 22px;
    background: #111;
    color: #fff !important;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.ihpl-empty {
    padding: 28px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.ihpl-detail-pricebar {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.15fr 1.25fr;
    margin: 0 0 12px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-bottom: 2px solid #cfcfcf;
}

.ihpl-detail-pricebar div {
    min-width: 0;
    padding: 10px 14px;
    border-right: 1px solid #e3e3e3;
}

.ihpl-detail-pricebar div:last-child {
    border-right: 0;
}

.ihpl-detail-pricebar dt {
    margin-bottom: 3px;
    color: #555;
    font-size: 12px;
    font-weight: 700;
}

.ihpl-detail-pricebar dd {
    min-width: 0;
    margin: 0;
    color: #222;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.ihpl-detail-pricebar .is-rent dd {
    color: #b00000;
    font-size: 25px;
}

.ihpl-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(360px, 1fr);
    gap: 14px;
    align-items: start;
}

.ihpl-detail-gallery {
    display: grid;
    gap: 8px;
    align-self: start;
}

.ihpl-detail-main-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    overflow: hidden;
    background: #e9ecef;
    color: #777;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    font-weight: 700;
}

.ihpl-detail-main-photo img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.ihpl-detail-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.ihpl-detail-thumbs a {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e9ecef;
    border: 1px solid #ddd;
    border-radius: 0;
}

.ihpl-detail-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ihpl-detail-summary {
    padding: 0;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 0;
}

.ihpl-detail-copy {
    margin: 0;
    padding: 11px 13px;
    background: #fff8ed;
    border-bottom: 1px solid #e2d2ba;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.ihpl-detail-table div {
    grid-template-columns: 112px minmax(0, 1fr);
}

.ihpl-detail-table dt,
.ihpl-detail-table-full dt {
    padding: 8px 10px;
    background: #f3f3f3;
    color: #444;
    font-size: 12px;
}

.ihpl-detail-table dd,
.ihpl-detail-table-full dd {
    padding: 8px 10px;
    color: #222;
    font-size: 13px;
    line-height: 1.6;
}

.ihpl-detail-summary .ihpl-contact-link {
    display: flex;
    min-height: 48px;
    margin: 12px;
    background: #f39800;
    border-radius: 0;
}

.ihpl-detail-section {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #d8d8d8;
}

.ihpl-detail-section h2 {
    margin: 0;
    padding: 10px 14px;
    background: #f39800;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
}

.ihpl-detail-table-full {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.ihpl-detail-table-full div {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    border-bottom: 1px solid #e5e5e5;
}

.ihpl-detail-table-full div:nth-child(odd) {
    border-right: 1px solid #e5e5e5;
}

.ihpl-detail-content {
    margin-top: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 0;
}

.ihpl-back-link {
    margin: 24px 0 0;
}

@media (max-width: 900px) {
    .ihpl-card,
    .ihpl-detail-layout {
        grid-template-columns: 1fr;
    }

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

    .ihpl-detail-pricebar div:nth-child(2) {
        border-right: 0;
    }

    .ihpl-detail-pricebar div:nth-child(-n+2) {
        border-bottom: 1px solid #e3e3e3;
    }

    .ihpl-detail-table-full {
        grid-template-columns: 1fr;
    }

    .ihpl-detail-table-full div:nth-child(odd) {
        border-right: 0;
    }

    .ihpl-card-image,
    .ihpl-card-image img,
    .ihpl-detail-main-photo,
    .ihpl-detail-main-photo img {
        min-height: 260px;
    }
}

@media (max-width: 560px) {
    .ihpl-listing-wrap,
    .ihpl-detail {
        width: min(100% - 20px, 1120px);
        padding: 36px 0;
    }

    .ihpl-page-head h1,
    .ihpl-detail-head h1 {
        font-size: 26px;
    }

    .ihpl-card-body,
    .ihpl-detail-content {
        padding: 18px;
    }

    .ihpl-detail-pricebar {
        grid-template-columns: 1fr;
    }

    .ihpl-detail-pricebar div {
        border-right: 0;
        border-bottom: 1px solid #e3e3e3;
    }

    .ihpl-detail-pricebar div:last-child {
        border-bottom: 0;
    }

    .ihpl-card-specs div,
    .ihpl-detail-table div,
    .ihpl-detail-table-full div {
        grid-template-columns: 1fr;
    }
}
