/* EM5 — nowoczesna karta oferty na listach wyników (wariant 1). */
.property-result-card {
    display: grid;
    grid-template-columns: minmax(260px, 31%) minmax(0, 1fr);
    height: 210px;
    min-height: 210px;
    max-height: 210px;
    overflow: hidden;
    border: 1px solid #e5e5e2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(23, 26, 29, .02);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.property-result-link {
    display: block;
    height: 210px;
    color: inherit;
    text-decoration: none;
}

.property-result-link:hover {
    color: inherit;
}

.property-result-link:hover .property-result-card {
    border-color: #d7d1cd;
    box-shadow: 0 12px 32px rgba(31, 34, 38, .08);
    transform: translateY(-1px);
}

.property-result-card__media {
    position: relative;
    min-width: 0;
    height: 210px;
    min-height: 210px;
    max-height: 210px;
    overflow: hidden;
    background: #efefed;
}

.property-result-card__media .slick-offer-list,
.property-result-card__media .slick-list,
.property-result-card__media .slick-track,
.property-result-card__media figure,
.property-result-card__media picture {
    height: 100%;
}

.property-result-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform .35s ease;
}

.property-result-link:hover .property-result-card__media img {
    transform: scale(1.025);
}

.property-result-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(.9rem, 1.15vw, 1.15rem);
}

.property-result-card__topline {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .65rem;
    margin-bottom: .55rem;
}

.property-result-card__type {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: .28rem .55rem;
    border-radius: 6px;
    background: #bf291b;
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.15;
}

.property-result-card__location {
    min-width: 0;
    overflow: hidden;
    color: #6d6d69;
    font-size: .94rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-result-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 .55rem;
    color: #20252b;
    font-size: clamp(1.08rem, 1.18vw, 1.26rem);
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -.015em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.property-result-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 0;
    margin: 0;
    padding: 0;
    color: #4f5356;
    font-size: .91rem;
    line-height: 1.45;
    list-style: none;
}

.property-result-card__detail {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.property-result-card__detail:not(:last-child)::after {
    content: "·";
    display: inline-block;
    margin: 0 .58rem;
    color: #c2bbb6;
    font-weight: 700;
}

.property-result-card__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: .65rem;
}

.property-result-card__price-wrap {
    min-width: 0;
}

.property-result-card__price-label {
    display: block;
    margin-bottom: .15rem;
    color: #8a8986;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.property-result-card__price {
    display: block;
    color: #bf291b;
    font-size: clamp(1.5rem, 1.85vw, 1.95rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.property-result-card__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding-bottom: .12rem;
    color: #bf291b;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
}

.property-result-card__cta-arrow {
    transition: transform .2s ease;
}

.property-result-link:hover .property-result-card__cta-arrow {
    transform: translateX(3px);
}

/* Karty wyników w ListView. Pozostałe typy kart homepage pozostają bez zmian. */
.offer-list-searched .offers-list > .list-view > div[data-key],
.agent-profile-results__list .offers-list > .list-view > div[data-key] {
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .property-result-link {
        height: 205px;
    }

    .property-result-card {
        grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
        height: 205px;
        min-height: 205px;
        max-height: 205px;
    }

    .property-result-card__media {
        height: 205px;
        min-height: 205px;
        max-height: 205px;
    }

    .property-result-card__content {
        padding: 1.15rem;
    }

    .property-result-card__footer {
        padding-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .property-result-link {
        height: auto;
    }

    .property-result-card {
        display: block;
        height: auto;
        min-height: 0;
        max-height: none;
        border-radius: 14px;
    }

    .property-result-card__media {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 10;
    }

    .property-result-card__content {
        padding: 1rem 1rem 1.05rem;
    }

    .property-result-card__topline {
        align-items: flex-start;
        margin-bottom: .7rem;
    }

    .property-result-card__type {
        font-size: .7rem;
    }

    .property-result-card__location {
        padding-top: .12rem;
        font-size: .85rem;
    }

    .property-result-card__title {
        margin-bottom: .75rem;
        font-size: 1.08rem;
    }

    .property-result-card__details {
        font-size: .84rem;
    }

    .property-result-card__detail:not(:last-child)::after {
        margin: 0 .43rem;
    }

    .property-result-card__footer {
        align-items: center;
        padding-top: 1rem;
    }

    .property-result-card__price-label {
        display: none;
    }

    .property-result-card__price {
        font-size: 1.45rem;
    }

    .property-result-card__cta {
        font-size: .82rem;
    }
}

@media (max-width: 420px) {
    .property-result-card__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: .65rem;
    }
}

/* EM5 — pionowe karty ofert (homepage, biura i sekcje rekomendacyjne). */
.property-home-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.property-home-card-link:hover {
    color: inherit;
}

.property-home-card {
    display: flex;
    height: 100%;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e5e2;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(23, 26, 29, .02);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.property-home-card-link:hover .property-home-card {
    border-color: #d7d1cd;
    box-shadow: 0 12px 30px rgba(31, 34, 38, .075);
    transform: translateY(-2px);
}

.property-home-card__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #efefed;
}

.property-home-card--compact .property-home-card__media {
    aspect-ratio: 4 / 2.95;
}

.property-home-card--featured .property-home-card__media {
    aspect-ratio: 16 / 9;
}

.property-home-card__media .slick-list,
.property-home-card__media .slick-track,
.property-home-card__media figure,
.property-home-card__media picture {
    height: 100%;
}

.property-home-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform .35s ease;
}

.property-home-card-link:hover .property-home-card__media img {
    transform: scale(1.025);
}

.property-home-card__body {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.1rem 1.08rem 1.12rem;
}

.property-home-card--featured .property-home-card__body {
    padding: 1.45rem 1.5rem 1.48rem;
}

.property-home-card__topline {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .55rem;
    margin-bottom: .8rem;
}

.property-home-card__type {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: .28rem .56rem;
    border-radius: 5px;
    background: #bf291b;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.1;
}

.property-home-card--featured .property-home-card__type {
    min-height: 27px;
    padding: .36rem .74rem;
    font-size: .8rem;
}

.property-home-card__location {
    min-width: 0;
    overflow: hidden;
    color: #70716e;
    font-size: .84rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-home-card--featured .property-home-card__location {
    font-size: 1.02rem;
}

.property-home-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.8em;
    margin: 0 0 .85rem;
    color: #20252b;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.012em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.property-home-card--featured .property-home-card__title {
    min-height: 2.65em;
    margin-bottom: 1.1rem;
    font-size: clamp(1.36rem, 1.58vw, 1.58rem);
    line-height: 1.24;
}

.property-home-card__details {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: .38rem .78rem;
    min-height: 3.05em;
    margin: 0;
    padding: 0;
    color: #555a5d;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.42;
    list-style: none;
}

.property-home-card--featured .property-home-card__details {
    gap: .5rem 1.08rem;
    min-height: 3.35em;
    font-size: 1.05rem;
    line-height: 1.45;
}

.property-home-card--featured .property-home-card__detail {
    gap: .45rem;
}

.property-home-card--featured .property-home-card__detail::before {
    width: 8px;
    height: 8px;
    opacity: .95;
}

.property-home-card__detail {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    white-space: nowrap;
}

.property-home-card__detail::before,
.property-result-card__detail::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #bf291b;
    opacity: .55;
}

.property-home-card__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: .8rem;
    margin-top: auto;
    padding-top: 1.05rem;
}

.property-home-card__price {
    color: #bf291b;
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.property-home-card--featured .property-home-card__price {
    font-size: clamp(1.78rem, 2.15vw, 2.18rem);
}

.property-home-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e4dcda;
    border-radius: 50%;
    color: #bf291b;
    font-size: .98rem;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.property-home-card-link:hover .property-home-card__arrow {
    border-color: #bf291b;
    background: #fff7f5;
    transform: translateX(2px);
}

/* Lżejszy separator parametrów w poziomej karcie zamiast ciężkich czerwonych kropek. */
.property-result-card__details {
    gap: .35rem .8rem;
}

.property-result-card__detail {
    gap: .4rem;
}

.property-result-card__detail:not(:last-child)::after {
    content: none;
}

/* Slick opakowuje karty w dodatkowe divy — wysokość musi przejść do samej karty. */
.home-carousel--promotion .slick-slide > div,
.home-carousel--promotion .slick-slide > div > .offer,
.home-carousel--promotion .slick-slide > div > .offer > .property-home-card-link,
.home-carousel--last-added .slick-slide > div,
.home-carousel--last-added .slick-slide > div > .offer,
.home-carousel--last-added .slick-slide > div > .offer > .property-home-card-link {
    height: 100%;
}

.home-carousel--promotion .slick-track,
.home-carousel--last-added .slick-track {
    display: flex;
}

.home-carousel--promotion .slick-slide,
.home-carousel--last-added .slick-slide {
    height: inherit !important;
}

.home-carousel--promotion .slick-slide > div > .offer,
.home-carousel--last-added .slick-slide > div > .offer {
    display: flex;
    height: 100%;
}

@media (max-width: 767.98px) {
    .property-home-card__body,
    .property-home-card--featured .property-home-card__body {
        padding: 1rem;
    }

    .property-home-card--compact .property-home-card__media,
    .property-home-card--featured .property-home-card__media {
        aspect-ratio: 16 / 10;
    }

    .property-home-card__type,
    .property-home-card--featured .property-home-card__type {
        font-size: .69rem;
    }

    .property-home-card__location,
    .property-home-card--featured .property-home-card__location {
        font-size: .82rem;
    }

    .property-home-card__title {
        min-height: 0;
        font-size: 1.08rem;
    }

    .property-home-card--featured .property-home-card__title {
        min-height: 0;
        font-size: 1.18rem;
    }

    .property-home-card__details {
        min-height: 0;
        font-size: .83rem;
    }

    .property-home-card--featured .property-home-card__details {
        min-height: 0;
        font-size: .9rem;
    }
}

/* Zachowanie wysokości w kartach używanych poza homepage. */
.special-curated-offer > .property-home-card-link {
    flex: 1 1 auto;
    height: auto;
}

.office-location-offer > .property-home-card-link {
    height: 100%;
}

/* v58 — Gorące oferty na desktopie: nadal wyróżnione, ale nie dominują nad resztą homepage. */
@media (min-width: 992px) {
    .home-promotions-section {
        max-width: 1360px;
    }

    .home-promotions-section .property-home-card--featured .property-home-card__media {
        aspect-ratio: 16 / 8.35;
    }

    .home-promotions-section .property-home-card--featured .property-home-card__body {
        padding: 1.12rem 1.2rem 1.2rem;
    }

    .home-promotions-section .property-home-card--featured .property-home-card__type {
        min-height: 25px;
        padding: .3rem .62rem;
        font-size: .73rem;
    }

    .home-promotions-section .property-home-card--featured .property-home-card__location {
        font-size: .9rem;
    }

    .home-promotions-section .property-home-card--featured .property-home-card__title {
        min-height: 2.55em;
        margin-bottom: .8rem;
        font-size: clamp(1.2rem, 1.3vw, 1.38rem);
    }

    .home-promotions-section .property-home-card--featured .property-home-card__details {
        gap: .42rem .82rem;
        min-height: 2.95em;
        font-size: .9rem;
    }

    .home-promotions-section .property-home-card--featured .property-home-card__detail::before {
        width: 6px;
        height: 6px;
    }

    .home-promotions-section .property-home-card--featured .property-home-card__footer {
        padding-top: .8rem;
    }

    .home-promotions-section .property-home-card--featured .property-home-card__price {
        font-size: clamp(1.55rem, 1.7vw, 1.82rem);
    }
}

/* v59 — Gorące oferty: bardziej kompaktowe wyłącznie na desktopie. */
@media (min-width: 992px) {
    .container-xxl.home-promotions-section {
        max-width: 1320px !important;
    }

    .home-promotions-section .home-section-heading,
    .home-promotions-section .home-carousel--promotion {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .home-carousel--promotion .property-home-card--featured .property-home-card__media {
        aspect-ratio: auto;
        height: clamp(250px, 15.5vw, 280px);
    }

    .home-carousel--promotion .property-home-card--featured .property-home-card__body {
        padding: .95rem 1.15rem 1.02rem;
    }

    .home-carousel--promotion .property-home-card--featured .property-home-card__topline {
        gap: .46rem;
        margin-bottom: .58rem;
    }

    .home-carousel--promotion .property-home-card--featured .property-home-card__type {
        min-height: 24px;
        padding: .28rem .58rem;
        font-size: .72rem;
    }

    .home-carousel--promotion .property-home-card--featured .property-home-card__location {
        font-size: .86rem;
    }

    .home-carousel--promotion .property-home-card--featured .property-home-card__title {
        min-height: 2.38em;
        margin-bottom: .65rem;
        font-size: clamp(1.16rem, 1.22vw, 1.32rem);
        line-height: 1.2;
    }

    .home-carousel--promotion .property-home-card--featured .property-home-card__details {
        gap: .34rem .72rem;
        min-height: 2.55em;
        font-size: .86rem;
        line-height: 1.34;
    }

    .home-carousel--promotion .property-home-card--featured .property-home-card__detail {
        gap: .3rem;
    }

    .home-carousel--promotion .property-home-card--featured .property-home-card__detail::before {
        width: 5px;
        height: 5px;
    }

    .home-carousel--promotion .property-home-card__footer {
        padding-top: .62rem;
    }

    .home-carousel--promotion .property-home-card--featured .property-home-card__price {
        font-size: clamp(1.45rem, 1.55vw, 1.68rem);
    }

    .home-carousel--promotion .property-home-card__arrow {
        width: 28px;
        height: 28px;
    }
}

