/**
 * TARG Design System — compact property cards.
 *
 * Ostatnia warstwa korekt:
 * - mniejsza wysokość karty,
 * - parametry bezpośrednio pod opisem,
 * - czytelniejsze ikony,
 * - ukryta plakietka reCAPTCHA.
 */

/* ==========================================================
   KARTA — WYSOKOŚĆ I PROPORCJE
========================================================== */

#dashboard-properties .post-column-wrap {
align-items: stretch;
min-height: 0;
}

#dashboard-properties .large-column-wrap,
#dashboard-properties .tds-property-card-main {
align-items: start;
padding: 18px 20px;
}

/*
 * RealHomes nadawał figure wysokość 100%, przez co zdjęcie
 * rozciągało się razem z całą kartą. Ustalamy stałą wysokość.
 */

#dashboard-properties .column-thumbnail,
#dashboard-properties .tds-property-card-image {
align-self: start;
height: auto;
}

#dashboard-properties .column-thumbnail figure,
#dashboard-properties .tds-property-card-image figure {
width: 100%;
height: 205px !important;
min-height: 205px !important;
max-height: 205px !important;
margin: 0;
}

#dashboard-properties .column-thumbnail a,
#dashboard-properties .tds-property-card-image a {
height: 100%;
}

#dashboard-properties .column-thumbnail img,
#dashboard-properties .tds-property-card-image img {
width: 100%;
height: 100% !important;
min-height: 0 !important;
max-height: none !important;
object-fit: cover;
}

/* ==========================================================
   INFORMACJE — BEZ ROZCIĄGANIA W PIONIE
========================================================== */

#dashboard-properties .column-info,
#dashboard-properties .tds-property-card-info {
align-self: stretch;
}

#dashboard-properties .property-info-wrap {
display: flex;
flex-direction: column;
justify-content: flex-start;
min-height: 205px;
padding: 5px 0 0;
}

#dashboard-properties .property-title {
margin-bottom: 10px;
}

#dashboard-properties .property-excerpt {
margin-bottom: 0;
}

/*
 * Usuwamy wcześniejsze margin-top:auto, które spychało
 * parametry nieruchomości na sam dół karty.
 */

#dashboard-properties .property-meta,
#dashboard-properties .tds-property-card-meta {
margin: 18px 0 0 !important;
padding: 0;
}

/* ==========================================================
   PARAMETRY NIERUCHOMOŚCI
========================================================== */

#dashboard-properties .property-meta > li {
min-height: 36px;
padding: 7px 11px;
background: #f7f6f2;
border: 1px solid #ece9e3;
}

#dashboard-properties .property-meta-icon {
gap: 7px;
color: #454844;
}

/* Czytelniejsze ikony pokoi, łazienek i powierzchni. */

#dashboard-properties .property-meta-icon svg,
#dashboard-properties .property-meta-icon img {
width: 17px;
height: 17px;
margin: 0;
opacity: 0.72 !important;
filter:
grayscale(1)
contrast(1.35)
brightness(0.72);
}

#dashboard-properties .property-meta-icon svg {
color: #777a75;
fill: currentColor;
}

#dashboard-properties .property-meta .figure {
font-size: 13px;
font-weight: 700;
}

#dashboard-properties .property-meta-postfix {
color: #777a75;
font-size: 11px;
}

/* ==========================================================
   PRAWA KOLUMNA — MNIEJSZA WYSOKOŚĆ
========================================================== */

#dashboard-properties .small-column-wrap {
min-height: 0;
padding: 18px 20px 60px;
}

#dashboard-properties .column-price {
margin-bottom: 10px;
}

#dashboard-properties .property-price {
font-size: 19px;
}

#dashboard-properties .column-property-status {
margin-bottom: 8px;
}

#dashboard-properties .column-status {
margin-bottom: 10px;
}

#dashboard-properties .column-date {
padding-top: 10px;
}

/* ==========================================================
   PRZYCISKI AKCJI
========================================================== */

#dashboard-properties .post-actions-wrapper {
right: 16px;
bottom: 14px;
}

#dashboard-properties .post-actions-wrapper > a {
width: 34px;
height: 34px;
}

/* ==========================================================
   reCAPTCHA
========================================================== */

/*
 * Ukrywamy pływającą plakietkę reCAPTCHA.
 * Sam mechanizm reCAPTCHA pozostaje aktywny.
 */

.grecaptcha-badge {
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
}

/* ==========================================================
   RESPONSYWNOŚĆ
========================================================== */

@media (max-width: 1280px) {
#dashboard-properties .column-thumbnail figure,
#dashboard-properties .tds-property-card-image figure {
height: 190px !important;
min-height: 190px !important;
max-height: 190px !important;
}

#dashboard-properties .property-info-wrap {
min-height: 190px;
}
}

@media (max-width: 900px) {
#dashboard-properties .small-column-wrap {
padding: 15px 18px 58px;
}

#dashboard-properties .property-info-wrap {
min-height: 0;
}
}

@media (max-width: 680px) {
#dashboard-properties .column-thumbnail figure,
#dashboard-properties .tds-property-card-image figure {
height: 230px !important;
min-height: 230px !important;
max-height: 230px !important;
}

#dashboard-properties .property-meta,
#dashboard-properties .tds-property-card-meta {
margin-top: 15px !important;
}
}


/* ==========================================================
   TDS PROPERTY READ-ONLY
   Klient korzysta z tytułu lub zdjęcia jako linku do oferty.
========================================================== */

#dashboard-properties .post-actions-wrapper {
display: none !important;
}

#dashboard-properties .small-column-wrap {
padding-bottom: 18px;
}

/* Data nie musi już zostawiać miejsca na przyciski. */

#dashboard-properties .column-date {
margin-top: auto;
padding-top: 12px;
}
