/* Paluch Asari Sync – styl listy ofert
   Skopiowany dokładnie ze stylów Zbyszka z oryginalnej wtyczki Webist WP Asari CRM
*/

/* Siatka 3-kolumnowa – każda oferta w .nieruchomosci-card */
.nieruchomosci-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: start; /* karty nie rozciągają się do wysokości wiersza */
}

/* Karta = wrapper na thumbnail + opis (nowa struktura) */
.nieruchomosci-card {
    display: flex;
    flex-direction: column;
}

/* Thumbnail */
.nieruchomosci-post-thumbnail {
    border-radius: 12px 12px 12px 12px;
    background-size: cover !important;
    min-height: 350px;
}

/* Opis pod zdjęciem */
.nieruchomosci-property {
    background: #fafafa;
    padding: 20px 25px;
    border-radius: 0px 12px 12px 0px;
}

/* Tytuł */
.nieruchomosci-title {
    font-size: 20px;
}

.nieruchomosci-title-link {
    color: #002E6C;
    word-wrap: break-word;
    text-decoration: none;
}

/* Szczegóły (cena, lokalizacja, powierzchnia) */
.nieruchomosci-property-details {
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
}

.nieruchomosci-property-single-detail {
    margin-top: 4px;
    color: #333;
}

/* Ikony ukryte (jak u Zbyszka) */
.nieruchomosci-property-single-detail i {
    color: #289dcf;
    display: none;
}

/* Przycisk "Pokaż więcej" */
.nieruchomosci-see-more-button {
    font-family: "Poppins", Sans-serif;
    font-weight: 500;
    text-align: center;
    display: block;
    border-radius: 12px;
    padding: 10px 15px;
    margin-top: 20px;
    background: #333;
    color: #fff;
    text-decoration: none;
}

.nieruchomosci-see-more-button:hover {
    background: #666;
    color: #fff;
}

/* Paginacja */
.nieruchomosci-pagination {
    margin-top: 30px;
    text-align: center;
    font-size: 16px;
    display: block;
}

.nieruchomosci-pagination a          { padding: 10px 20px; }
.nieruchomosci-pagination a.active   { background: #70b38c; color: #fff; }
.nieruchomosci-pagination a:hover    { background: #70b38c; color: #fff; }
.nieruchomosci-pagination a.skipper  { font-size: 21px; }

/* Etykieta statusu (SPRZEDANE / ZAREZERWOWANE / WYNAJĘTE) */
.nieruchomosci-post-thumbnail {
    position: relative;
}

.pas-status-label {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* Lekkie przyciemnienie karty zakończonej oferty */
.nieruchomosci-card--closed .nieruchomosci-post-thumbnail {
    opacity: 0.75;
}

/* Mobile */
@media only screen and (max-width: 670px) {
    .nieruchomosci-posts {
        display: grid;
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 10px;
    }

    .nieruchomosci-post-thumbnail {
        border-radius: 12px 12px 12px 12px !important;
    }

    .nieruchomosci-property {
        border-radius: 0px 0px 12px 12px;
        margin-bottom: 30px;
    }
}
