/**
 * TDS Dashboard — property cards.
 */

#dashboard-properties.tds-properties {
--tds-card-border: #e7e5e1;
--tds-card-muted: #6f716f;
--tds-card-text: #232522;
--tds-card-soft: #f7f6f3;
--tds-card-accent: #9a6f42;
--tds-card-accent-soft: #f5eee6;
}

/* Usunięcie tabelarycznej prezentacji RealHomes. */

#dashboard-properties .dashboard-posts-list {
display: block;
margin: 0;
padding: 0;
background: transparent;
border: 0;
box-shadow: none;
}

#dashboard-properties .dashboard-posts-list-head {
display: none;
}

#dashboard-properties .tds-properties-grid {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 18px;
margin: 0;
padding: 0;
}

/* Główna karta. */

#dashboard-properties .post-column-wrap {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr) 250px;
gap: 0;
width: 100%;
min-width: 0;
margin: 0;
padding: 0;
overflow: hidden;
background: #fff;
border: 1px solid var(--tds-card-border);
border-radius: 16px;
box-shadow:
0 1px 2px rgba(25, 28, 25, 0.02),
0 8px 24px rgba(25, 28, 25, 0.035);
transition:
border-color 160ms ease,
box-shadow 160ms ease,
transform 160ms ease;
}

#dashboard-properties .post-column-wrap:hover {
border-color: #d8d4ce;
box-shadow:
0 2px 5px rgba(25, 28, 25, 0.035),
0 14px 32px rgba(25, 28, 25, 0.055);
transform: translateY(-1px);
}

/* Lewa część: zdjęcie + informacje. */

#dashboard-properties .large-column-wrap,
#dashboard-properties .tds-property-card-main {
display: grid;
grid-template-columns: 220px minmax(0, 1fr);
align-items: stretch;
min-width: 0;
width: auto;
padding: 18px;
gap: 20px;
border: 0;
}

#dashboard-properties .column {
float: none;
width: auto;
min-width: 0;
margin: 0;
padding: 0;
border: 0;
}

/* Zdjęcie. */

#dashboard-properties .column-thumbnail,
#dashboard-properties .tds-property-card-image {
width: auto;
min-width: 0;
}

#dashboard-properties .column-thumbnail figure {
position: relative;
width: 100%;
height: 100%;
min-height: 158px;
margin: 0;
overflow: hidden;
background: var(--tds-card-soft);
border-radius: 12px;
}

#dashboard-properties .column-thumbnail a {
display: block;
width: 100%;
height: 100%;
}

#dashboard-properties .column-thumbnail img {
display: block;
width: 100%;
height: 100%;
min-height: 158px;
object-fit: cover;
transition: transform 240ms ease;
}

#dashboard-properties .post-column-wrap:hover
.column-thumbnail img {
transform: scale(1.025);
}

/* Informacje. */

#dashboard-properties .column-info,
#dashboard-properties .tds-property-card-info {
display: flex;
min-width: 0;
align-items: stretch;
}

#dashboard-properties .property-info-wrap {
display: flex;
flex-direction: column;
align-items: flex-start;
width: 100%;
min-width: 0;
padding: 3px 0;
}

#dashboard-properties .property-title {
margin: 0 0 8px;
font-size: 18px;
line-height: 1.35;
font-weight: 650;
letter-spacing: -0.015em;
}

#dashboard-properties .property-title a {
color: var(--tds-card-text);
text-decoration: none;
}

#dashboard-properties .property-title a:hover {
color: var(--tds-card-accent);
}

#dashboard-properties .property-excerpt {
display: -webkit-box;
max-width: 660px;
margin: 0 0 18px;
overflow: hidden;
color: var(--tds-card-muted);
font-size: 13px;
line-height: 1.6;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}

/* Parametry oferty. */

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

#dashboard-properties .property-meta > li {
display: inline-flex;
align-items: center;
gap: 6px;
width: auto;
min-width: 0;
margin: 0;
padding: 7px 10px;
background: var(--tds-card-soft);
border: 1px solid transparent;
border-radius: 8px;
}

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

#dashboard-properties .property-meta-icon {
display: inline-flex;
align-items: center;
gap: 6px;
color: #535653;
font-size: 12px;
line-height: 1;
}

#dashboard-properties .property-meta-icon svg,
#dashboard-properties .property-meta-icon img {
width: 15px;
height: 15px;
margin: 0;
opacity: 0.68;
}

#dashboard-properties .property-meta .figure {
font-weight: 600;
}

#dashboard-properties .property-meta-postfix {
margin-left: -3px;
}

/* Prawa część karty. */

#dashboard-properties .small-column-wrap {
display: flex;
flex-direction: column;
width: auto;
min-width: 0;
padding: 20px;
background: #fbfaf8;
border-left: 1px solid var(--tds-card-border);
}

#dashboard-properties .small-column-wrap > .column {
width: 100%;
}

/* Data. */

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

#dashboard-properties .property-date {
display: block;
color: #8a8d89;
font-size: 11px;
line-height: 1.4;
}

/* Typ/status nieruchomości. */

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

#dashboard-properties .property-status {
display: inline-flex;
align-items: center;
min-height: 27px;
padding: 5px 9px;
color: #6f563a;
background: var(--tds-card-accent-soft);
border-radius: 999px;
font-size: 11px;
font-weight: 650;
line-height: 1.2;
}

/* Status publikacji. */

#dashboard-properties .column-status {
order: 2;
margin-bottom: 16px;
}

#dashboard-properties .tags-wrap {
display: flex;
flex-wrap: wrap;
gap: 6px;
}

#dashboard-properties .property-status-tag,
#dashboard-properties .property-featured-tag {
display: inline-flex;
align-items: center;
min-height: 25px;
padding: 5px 9px;
border: 0;
border-radius: 999px;
font-size: 10px;
font-weight: 650;
line-height: 1.2;
text-transform: none;
letter-spacing: 0;
}

#dashboard-properties .property-status-tag-publish {
color: #36714a;
background: #e9f5ed;
}

#dashboard-properties .property-status-tag-draft {
color: #6c6d6b;
background: #ececea;
}

#dashboard-properties .property-status-tag-pending {
color: #8a641f;
background: #fff3d6;
}

#dashboard-properties .property-status-tag-private {
color: #72528b;
background: #f1eaf7;
}

#dashboard-properties .property-featured-tag {
color: #80602d;
background: #f7ead1;
}

/* Cena. */

#dashboard-properties .column-price {
order: 0;
margin-bottom: 15px;
}

#dashboard-properties .property-price {
margin: 0;
color: var(--tds-card-text);
font-size: 18px;
font-weight: 700;
line-height: 1.3;
letter-spacing: -0.01em;
}

#dashboard-properties
.property-price-not-available {
font-size: 13px;
font-weight: 500;
color: var(--tds-card-muted);
}

/* Przełącznik aktywacji. */

#dashboard-properties .prop-activate-button {
margin-top: 12px;
}

#dashboard-properties .prop-activate-button h4 {
margin: 0 0 6px;
color: var(--tds-card-muted);
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}

/* Akcje. */

#dashboard-properties .post-actions-wrapper {
position: absolute;
right: 18px;
bottom: 16px;
z-index: 3;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 6px;
width: auto;
margin: 0;
padding: 0;
background: transparent;
border: 0;
}

#dashboard-properties .post-actions-wrapper > strong {
display: none;
}

#dashboard-properties .post-actions-wrapper > a {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
width: 32px;
height: 32px;
margin: 0;
padding: 0;
color: #5f625f;
background: #fff;
border: 1px solid #dfddd8;
border-radius: 8px;
text-decoration: none;
box-shadow: none;
transition:
color 150ms ease,
border-color 150ms ease,
background-color 150ms ease;
}

#dashboard-properties .post-actions-wrapper > a:hover {
color: var(--tds-card-accent);
background: var(--tds-card-accent-soft);
border-color: #d8c1aa;
}

#dashboard-properties .post-actions-wrapper > a.delete:hover {
color: #a94442;
background: #fff0ef;
border-color: #efcbc8;
}

#dashboard-properties .post-actions-wrapper i {
margin: 0;
font-size: 12px;
}

#dashboard-properties
.post-actions-wrapper
[class*="hide-text-"] {
font-size: 0;
}

#dashboard-properties
.post-actions-wrapper
[class*="hide-text-"] i {
font-size: 12px;
}

#dashboard-properties .confirmation {
position: absolute;
right: 0;
bottom: 40px;
display: flex;
gap: 6px;
padding: 8px;
background: #fff;
border: 1px solid var(--tds-card-border);
border-radius: 10px;
box-shadow: 0 12px 30px rgba(25, 28, 25, 0.12);
}

#dashboard-properties .confirmation.hide {
display: none;
}

#dashboard-properties .confirmation a {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 7px 10px;
border-radius: 7px;
font-size: 11px;
text-decoration: none;
}

/* Informacje o płatności. */

#dashboard-properties .property-payment-info:empty {
display: none;
}

#dashboard-properties .property-payment-info {
margin-top: 8px;
font-size: 11px;
}

/* Nawigacja nad i pod listą. */

#dashboard-properties .dashboard-posts-list + *,
#dashboard-properties .pagination {
margin-top: 22px;
}

/* Tablet. */

@media (max-width: 1180px) {
#dashboard-properties .post-column-wrap {
grid-template-columns: minmax(0, 1fr) 210px;
}

#dashboard-properties .large-column-wrap,
#dashboard-properties .tds-property-card-main {
grid-template-columns: 185px minmax(0, 1fr);
}
}

/* Mniejszy ekran. */

@media (max-width: 900px) {
#dashboard-properties .post-column-wrap {
grid-template-columns: minmax(0, 1fr);
}

#dashboard-properties .small-column-wrap {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px 16px;
padding: 15px 18px 62px;
border-top: 1px solid var(--tds-card-border);
border-left: 0;
}

#dashboard-properties .column-price,
#dashboard-properties .column-status,
#dashboard-properties .column-property-status,
#dashboard-properties .column-date {
margin: 0;
padding: 0;
}

#dashboard-properties .column-date {
align-self: end;
text-align: right;
}
}

/* Telefon. */

@media (max-width: 620px) {
#dashboard-properties .tds-properties-grid {
gap: 14px;
}

#dashboard-properties .large-column-wrap,
#dashboard-properties .tds-property-card-main {
grid-template-columns: minmax(0, 1fr);
padding: 14px;
gap: 15px;
}

#dashboard-properties .column-thumbnail figure,
#dashboard-properties .column-thumbnail img {
min-height: 210px;
max-height: 250px;
}

#dashboard-properties .small-column-wrap {
grid-template-columns: minmax(0, 1fr);
padding: 14px 14px 60px;
}

#dashboard-properties .column-date {
text-align: left;
}

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

#dashboard-properties .property-title {
font-size: 17px;
}
}


/* ==========================================================
   TDS POLISH v1
========================================================== */

/* większe zdjęcie */

#dashboard-properties .large-column-wrap,
#dashboard-properties .tds-property-card-main{
    grid-template-columns:320px minmax(0,1fr);
    gap:28px;
}

#dashboard-properties .column-thumbnail figure{
    min-height:210px;
}

#dashboard-properties .column-thumbnail img{
    min-height:210px;
}

/* węższa prawa kolumna */

#dashboard-properties .post-column-wrap{
    grid-template-columns:minmax(0,1fr) 205px;
}

/* więcej światła */

#dashboard-properties .property-info-wrap{
    padding-top:8px;
}

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

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

/* subtelniejsze meta */

#dashboard-properties .property-meta>li{
    padding:8px 12px;
}

/* cena */

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

/* przyciski */

#dashboard-properties .post-actions-wrapper>a{
    width:36px;
    height:36px;
    border-radius:10px;
}

