/*============================================================================
   23-sales-listing.css — [tr_sales] výpis nemovitostí na prodej
   Plugin Toret Rooms nedodává CSS → stylujeme jeho výstup `.tr-sale-*` do podoby
   design karet (v duchu homepage .project-card / 09-sections.css).

   Markup pluginu (Sale\Sale.php):
     .toret-rooms.tr-sale-section
        h2.tr-sale-section-title
        .tr-sale-grid > a.tr-sale-card[.tr-sale-card--realized]
           .tr-sale-card-image ( img.tr-sale-card-img +
              .tr-sale-badge.tr-sale-badge--price | --realized )
           .tr-sale-card-body ( h3.tr-sale-card-title / .tr-sale-card-location /
              .tr-sale-card-area / p.tr-sale-card-excerpt )
     ( bez status atributu = 2 sekce pod sebou: Aktuálně na prodej + Realizované )

   Komponenta .tr-sale-* je samostatná; obalová sekce stránky = .nj-sales-section
   (sand-1, šířka řady na --container) → v kill-listu 13-divi-vb-fix.css.
============================================================================*/

/* ── obalová sekce (stránka /prodej-nemovitosti/) ─────────────────────────── */
.nj-sales-section { background: var(--sand-1); padding: 40px 0 84px; }
.nj-sales-section > .et_pb_row {
	max-width: var(--container) !important;
	width: 92% !important;
	margin: 0 auto !important;
	padding: 0 !important;
}

/* ── sekce + nadpis ───────────────────────────────────────────────────────── */
.tr-sale-section + .tr-sale-section { margin-top: 56px; }
.tr-sale-section-title {
	font-family: var(--font-serif);
	font-size: 1.9rem;
	color: var(--navy);
	margin: 0 0 1.5rem;
}

/* ── mřížka ───────────────────────────────────────────────────────────────── */
.tr-sale-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* ── karta (= odkaz na detail) ────────────────────────────────────────────── */
.tr-sale-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--r-card);
	overflow: hidden;
	box-shadow: var(--shadow);
	text-decoration: none;
	color: inherit;
	transition: transform .25s, box-shadow .25s;
}
.tr-sale-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }

/* obrázek 5:4 + badge */
.tr-sale-card-image {
	position: relative;
	aspect-ratio: 5 / 4;
	background: var(--sand-2);
	overflow: hidden;
}
.tr-sale-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tr-sale-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: .4rem .85rem;
	border-radius: var(--r-pill);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.tr-sale-badge--price { background: var(--accent); }
.tr-sale-badge--realized {
	background: rgba(91, 102, 114, .95);   /* muted */
	text-transform: uppercase;
	letter-spacing: .1em;
}

/* realizované karty decentně ztlumené */
.tr-sale-card--realized .tr-sale-card-img { filter: saturate(.85) brightness(.97); }

/* ── tělo karty ───────────────────────────────────────────────────────────── */
.tr-sale-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	padding: 22px;
}
.tr-sale-card-title {
	margin: 0;
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 1.35rem;
	line-height: 1.2;
	color: var(--navy);
}
.tr-sale-card-location,
.tr-sale-card-area {
	font-size: .85rem;
	color: var(--muted);
}
.tr-sale-card-area { font-weight: 600; color: var(--navy); }
.tr-sale-card-excerpt {
	margin: .3rem 0 0;
	font-size: .9rem;
	color: var(--muted);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 980px) { .tr-sale-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tr-sale-grid { grid-template-columns: 1fr; } }
