/**
 * TARG Design System — dashboard result card.
 *
 * Karta wzorowana na publicznej liście ofert TARG,
 * z dyskretną informacją administracyjną.
 */

/* ==========================================================
   WYŁĄCZENIE STAREGO UKŁADU REALHOMES
========================================================== */

#dashboard-properties .tds-property-result-card {
position: relative;
display: grid;
grid-template-columns: 330px minmax(0, 1fr);
gap: 0;
width: 100%;
min-height: 220px;
margin: 0;
padding: 0;
overflow: hidden;
background: #ffffff;
border: 1px solid var(--targ-border, #e5e2dc);
border-radius: 15px;
box-shadow:
0 1px 2px rgba(29, 31, 28, 0.025),
0 8px 24px rgba(29, 31, 28, 0.035);
transition:
border-color 160ms ease,
box-shadow 160ms ease,
transform 160ms ease;
}

#dashboard-properties .tds-property-result-card:hover {
border-color: var(--targ-border-strong, #d9d4cc);
box-shadow:
0 2px 4px rgba(29, 31, 28, 0.035),
0 14px 32px rgba(29, 31, 28, 0.055);
transform: translateY(-1px);
}

/* Usuwamy wpływ starych selektorów karty. */

#dashboard-properties
.tds-property-result-card
.large-column-wrap,

#dashboard-properties
.tds-property-result-card
.small-column-wrap {
display: contents;
}

/* ==========================================================
   ZDJĘCIE
========================================================== */

#dashboard-properties .tds-property-result-card__media {
min-width: 0;
padding: 18px 0 18px 18px;
}

#dashboard-properties
.tds-property-result-card__media
.column-thumbnail {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}

#dashboard-properties
.tds-property-result-card__media
figure {
width: 100%;
height: 184px !important;
min-height: 184px !important;
max-height: 184px !important;
margin: 0;
overflow: hidden;
background: #f1efe9;
border-radius: 11px;
}

#dashboard-properties
.tds-property-result-card__media
a {
display: block;
width: 100%;
height: 100%;
}

#dashboard-properties
.tds-property-result-card__media
img {
display: block;
width: 100%;
height: 100% !important;
min-height: 0 !important;
max-height: none !important;
object-fit: cover;
transition: transform 220ms ease;
}

#dashboard-properties
.tds-property-result-card:hover
.tds-property-result-card__media
img {
transform: scale(1.018);
}

/* ==========================================================
   TREŚĆ
========================================================== */

#dashboard-properties .tds-property-result-card__content {
min-width: 0;
}

#dashboard-properties .tds-property-result-card__body {
display: flex;
flex-direction: column;
min-height: 220px;
padding: 23px 24px 19px 28px;
}

/* ==========================================================
   TYTUŁ I CENA
========================================================== */

#dashboard-properties .tds-property-result-card__header {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: start;
gap: 30px;
}

#dashboard-properties .tds-property-result-card__heading {
min-width: 0;
}

#dashboard-properties .tds-property-result-card__title {
margin: 0;
font-size: 18px;
line-height: 1.38;
font-weight: 700;
letter-spacing: -0.025em;
}

#dashboard-properties .tds-property-result-card__title a {
display: block;
overflow: hidden;
color: var(--targ-graphite, #262824);
text-decoration: none;
text-overflow: ellipsis;
white-space: nowrap;
}

#dashboard-properties .tds-property-result-card__title a:hover {
color: var(--targ-gold, #9a6f42);
}

#dashboard-properties .tds-property-result-card__address {
margin: 6px 0 0;
overflow: hidden;
color: #858781;
font-size: 12px;
line-height: 1.4;
text-overflow: ellipsis;
white-space: nowrap;
}

#dashboard-properties .tds-property-result-card__price {
min-width: 150px;
color: var(--targ-graphite, #262824);
font-size: 19px;
font-weight: 750;
line-height: 1.3;
letter-spacing: -0.025em;
text-align: right;
white-space: nowrap;
}

#dashboard-properties
.tds-property-result-card__price
.property-price {
margin: 0;
color: inherit;
font: inherit;
}

#dashboard-properties
.tds-property-result-card__price-empty {
color: #777a75;
font-size: 13px;
font-weight: 600;
}

/* ==========================================================
   OPIS
========================================================== */

#dashboard-properties .tds-property-result-card__excerpt {
display: -webkit-box;
max-width: 690px;
margin: 11px 0 0;
overflow: hidden;
color: #777a75;
font-size: 13px;
line-height: 1.55;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}

/* ==========================================================
   PARAMETRY
========================================================== */

#dashboard-properties
.tds-property-result-card
.tds-property-card-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
width: 100%;
margin: 17px 0 0 !important;
padding: 0;
list-style: none;
}

#dashboard-properties
.tds-property-result-card
.tds-property-card-meta > li {
display: inline-flex;
align-items: center;
width: auto;
min-height: 34px;
margin: 0;
padding: 6px 10px;
background: #f8f7f3;
border: 1px solid #ece9e2;
border-radius: 8px;
}

#dashboard-properties
.tds-property-result-card
.property-meta-label {
display: none;
}

#dashboard-properties
.tds-property-result-card
.property-meta-icon {
display: inline-flex;
align-items: center;
gap: 7px;
color: #4e514c;
}

#dashboard-properties
.tds-property-result-card
.property-meta-icon svg,

#dashboard-properties
.tds-property-result-card
.property-meta-icon img {
width: 16px;
height: 16px;
margin: 0;
opacity: 0.72 !important;
filter:
grayscale(1)
contrast(1.25)
brightness(0.72);
}

#dashboard-properties
.tds-property-result-card
.property-meta .figure {
color: var(--targ-graphite, #262824);
font-size: 12px;
font-weight: 700;
}

#dashboard-properties
.tds-property-result-card
.property-meta-postfix {
color: #777a75;
font-size: 10px;
}

/* ==========================================================
   DOLNY WIERSZ — STATUSY I DATA
========================================================== */

#dashboard-properties .tds-property-result-card__footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
margin-top: auto;
padding-top: 16px;
}

#dashboard-properties .tds-property-result-card__statuses {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 7px;
}

#dashboard-properties .tds-property-result-card__badge {
display: inline-flex;
align-items: center;
min-height: 25px;
padding: 5px 9px;
border: 1px solid transparent;
border-radius: 999px;
font-size: 10px;
font-weight: 700;
line-height: 1.2;
}

#dashboard-properties
.tds-property-result-card__badge--offer {
color: #775632;
background: #f8f0e5;
border-color: #ecddca;
}

#dashboard-properties
.tds-property-result-card__badge--publish {
color: #356c4a;
background: #eaf4ed;
border-color: #d9eadd;
}

#dashboard-properties
.tds-property-result-card__badge--draft {
color: #666963;
background: #efefec;
border-color: #e3e3de;
}

#dashboard-properties
.tds-property-result-card__badge--pending {
color: #80601f;
background: #fff3d7;
border-color: #f3e2b8;
}

#dashboard-properties
.tds-property-result-card__badge--private {
color: #705683;
background: #f1ebf5;
border-color: #e6dced;
}

#dashboard-properties
.tds-property-result-card__badge--featured {
color: #765128;
background: #f4e8d8;
border-color: #e8d3b8;
}

#dashboard-properties .tds-property-result-card__date {
flex: 0 0 auto;
color: #92948f;
font-size: 11px;
line-height: 1.3;
white-space: nowrap;
}

/* ==========================================================
   UKRYCIE POZOSTAŁOŚCI STAREGO UKŁADU
========================================================== */

#dashboard-properties
.tds-property-result-card
.post-actions-wrapper,

#dashboard-properties
.tds-property-result-card
.small-column-wrap,

#dashboard-properties
.tds-property-result-card
.column-price,

#dashboard-properties
.tds-property-result-card
.column-status,

#dashboard-properties
.tds-property-result-card
.column-date,

#dashboard-properties
.tds-property-result-card
.column-property-status {
display: none !important;
}

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

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

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

@media (max-width: 1180px) {
#dashboard-properties .tds-property-result-card {
grid-template-columns: 285px minmax(0, 1fr);
}

#dashboard-properties
.tds-property-result-card__header {
gap: 18px;
}

#dashboard-properties
.tds-property-result-card__price {
min-width: 130px;
font-size: 17px;
}
}

@media (max-width: 850px) {
#dashboard-properties .tds-property-result-card {
grid-template-columns: 240px minmax(0, 1fr);
}

#dashboard-properties
.tds-property-result-card__header {
grid-template-columns: minmax(0, 1fr);
gap: 9px;
}

#dashboard-properties
.tds-property-result-card__price {
min-width: 0;
text-align: left;
}
}

@media (max-width: 680px) {
#dashboard-properties .tds-property-result-card {
grid-template-columns: minmax(0, 1fr);
}

#dashboard-properties
.tds-property-result-card__media {
padding: 14px 14px 0;
}

#dashboard-properties
.tds-property-result-card__media
figure {
height: 220px !important;
min-height: 220px !important;
max-height: 220px !important;
}

#dashboard-properties
.tds-property-result-card__body {
min-height: 0;
padding: 18px 16px 16px;
}

#dashboard-properties
.tds-property-result-card__footer {
align-items: flex-start;
flex-direction: column;
gap: 10px;
}
}
