.tdl-grid {
	--tdl-green: #0f2a22;
	--tdl-gold: #c9a45c;
	display: grid;
	grid-template-columns: repeat(var(--tdl-cols, 3), minmax(0, 1fr));
	gap: 28px;
}
@media (max-width: 960px) { .tdl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tdl-grid { grid-template-columns: 1fr; } }

.tdl-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: rgba(15, 42, 34, 0.04);
	border: 1px solid rgba(201, 164, 92, 0.35);
	overflow: hidden;
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.tdl-card:hover, .tdl-card:focus-visible {
	transform: translateY(-4px);
	border-color: #c9a45c;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.tdl-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0f2a22; }
.tdl-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tdl-card:hover .tdl-card__media img { transform: scale(1.05); }
.tdl-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #0f2a22, #1d4a3b); }
.tdl-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.tdl-card__location { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #c9a45c; }
.tdl-card__title { font-size: 1.25rem; line-height: 1.3; }
.tdl-card__price { font-weight: 600; }
.tdl-card__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; opacity: .8; }
.tdl-card__more { margin-top: 8px; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #c9a45c; }

.tdl-badge {
	position: absolute; top: 14px; left: 14px;
	padding: 5px 12px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
	background: #0f2a22; color: #e8cf98; border: 1px solid #c9a45c;
}
.tdl-summary .tdl-badge { position: static; display: inline-block; }
.tdl-badge--sold, .tdl-badge--under-offer { background: #c9a45c; color: #0f2a22; }
.tdl-empty { opacity: .75; }

.tdl-single { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .tdl-single { grid-template-columns: 1fr; } }
.tdl-gallery__main img { width: 100%; height: auto; max-height: 620px; object-fit: cover; display: block; }
.tdl-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tdl-gallery__thumb { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.tdl-gallery__thumb img { width: 76px; height: 76px; object-fit: cover; display: block; }
.tdl-gallery__thumb:hover, .tdl-gallery__thumb.is-active { opacity: 1; border-color: #c9a45c; }

.tdl-summary { position: sticky; top: 24px; padding: 28px; border: 1px solid rgba(201, 164, 92, .45); background: rgba(15, 42, 34, .04); }
.tdl-summary__price { font-size: 1.6rem; margin: 14px 0 18px; }
.tdl-facts { margin: 0 0 24px; }
.tdl-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(201, 164, 92, .25); }
.tdl-facts dt { opacity: .7; }
.tdl-facts dd { margin: 0; font-weight: 600; text-align: right; }
.tdl-button {
	display: block; text-align: center; padding: 14px 20px;
	background: #0f2a22; color: #e8cf98; text-decoration: none;
	letter-spacing: .12em; text-transform: uppercase; font-size: .85rem;
	border: 1px solid #c9a45c; transition: background .3s, color .3s;
}
.tdl-button:hover { background: #c9a45c; color: #0f2a22; }
.tdl-description { grid-column: 1 / -1; }
