.txp-wrap, .txp-single {
	--txp-blue: #1a4c96;
	--txp-blue-dark: #123a75;
	--txp-yellow: #f5c518;
	--txp-text: #1f2933;
	--txp-muted: #5f6b7a;
	--txp-border: #e3e7ec;
	--txp-bg: #f6f8fb;
	color: var(--txp-text);
}
.txp-wrap *, .txp-single * { box-sizing: border-box; }

/* Full-width property page */
.txp-fullwidth { float: none; width: 100%; max-width: 1100px; margin: 0 auto; padding-top: 30px; padding-bottom: 50px; }
.txp-back { margin: 0 0 10px; font-size: 15px; }
.txp-back a { text-decoration: none; }
.txp-h1 { font-size: 32px; line-height: 1.25; margin: 0 0 20px; }
@media (max-width: 600px) { .txp-h1 { font-size: 25px; } .txp-fullwidth { padding-top: 16px; } }

/* Search box */
.txp-search {
	background: var(--txp-bg); border: 1px solid var(--txp-border); border-radius: 10px;
	padding: 18px 20px; margin: 0 0 24px;
}
.txp-search .txp-filter { margin-bottom: 16px; }
.txp-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.txp-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 700; color: var(--txp-text); margin: 0; }
.txp-fields select, .txp-fields input {
	width: 100%; height: 44px; padding: 0 12px; font-size: 15px; font-weight: 400; color: var(--txp-text);
	background: #fff; border: 1px solid #c3cad3; border-radius: 6px; margin: 0; box-shadow: none;
}
.txp-fields select:focus, .txp-fields input:focus { outline: 2px solid var(--txp-blue); outline-offset: 0; border-color: var(--txp-blue); }
.txp-search-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.txp-results { font-weight: 700; color: var(--txp-blue); }
.txp-reset { background: none; border: 0; padding: 4px 0; color: var(--txp-blue); text-decoration: underline; cursor: pointer; font-size: 15px; }
.txp-nomatch { background: #fff8e5; border-left: 4px solid var(--txp-yellow); padding: 16px 18px; border-radius: 6px; }
@media (max-width: 900px) { .txp-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .txp-fields { grid-template-columns: 1fr; } .txp-search { padding: 16px; } }

/* Filter */
.txp-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.txp-filter button {
	border: 1px solid var(--txp-blue); background: #fff; color: var(--txp-blue);
	padding: 8px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 15px;
}
.txp-filter button.is-active { background: var(--txp-blue); color: #fff; }

/* Grid of cards */
.txp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.txp-card {
	background: #fff; border: 1px solid var(--txp-border); border-radius: 10px; overflow: hidden;
	display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.txp-card:hover { box-shadow: 0 8px 24px rgba(18, 58, 117, .12); transform: translateY(-2px); }
.txp-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--txp-bg); overflow: hidden; }
.txp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.txp-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--txp-muted); }
.txp-badge {
	display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 13px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .03em;
}
.txp-card-img .txp-badge { position: absolute; top: 12px; left: 12px; }
.txp-badge-sale { background: var(--txp-blue); color: #fff; }
.txp-badge-rent { background: var(--txp-yellow); color: #1f2933; }
.txp-count {
	position: absolute; bottom: 10px; right: 10px; background: rgba(0, 0, 0, .6); color: #fff;
	font-size: 13px; padding: 3px 8px; border-radius: 4px;
}
.txp-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.txp-price { font-size: 21px; font-weight: 800; color: var(--txp-blue); }
.txp-title { font-size: 17px; line-height: 1.3; margin: 0; }
.txp-title a { color: var(--txp-text); text-decoration: none; }
.txp-town { color: var(--txp-muted); font-size: 15px; }
.txp-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.txp-facts li { background: var(--txp-bg); border: 1px solid var(--txp-border); border-radius: 4px; padding: 3px 9px; font-size: 14px; margin: 0; }
.txp-btn {
	display: inline-block; margin-top: auto; align-self: flex-start; background: var(--txp-blue); color: #fff !important;
	padding: 10px 18px; border-radius: 4px; font-weight: 700; text-decoration: none !important; font-size: 15px;
}
.txp-card .txp-btn { margin-top: 12px; }
.txp-btn:hover { background: var(--txp-blue-dark); }
.txp-btn-yellow { background: var(--txp-yellow); color: #1f2933 !important; }
.txp-btn-yellow:hover { background: #e2b40f; }
.txp-btn-outline { background: #fff; color: var(--txp-blue) !important; border: 2px solid var(--txp-blue); }
.txp-btn-outline:hover { background: var(--txp-bg); }
.txp-empty { background: var(--txp-bg); padding: 22px; border-radius: 8px; }

/* Call to action */
.txp-cta {
	margin-top: 36px; background: var(--txp-bg); border-left: 5px solid var(--txp-yellow);
	padding: 22px 24px; border-radius: 8px; display: flex; flex-direction: column; gap: 8px;
}
.txp-cta strong { font-size: 19px; }
.txp-cta .txp-btn { margin-top: 6px; }

/* Single property */
.txp-gallery { margin-bottom: 24px; }
.txp-main { position: relative; aspect-ratio: 3 / 2; background: #111; border-radius: 10px; overflow: hidden; }
.txp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; }
.txp-slide.is-active { opacity: 1; pointer-events: auto; }
.txp-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.txp-nav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
	border: 0; background: rgba(255, 255, 255, .9); color: var(--txp-blue); font-size: 30px; line-height: 1;
	cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px;
}
.txp-prev { left: 12px; }
.txp-next { right: 12px; }
.txp-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0, 0, 0, .6); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 14px; }
.txp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; }
.txp-thumb { flex: 0 0 auto; width: 90px; height: 66px; padding: 0; border: 3px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .65; }
.txp-thumb.is-active { border-color: var(--txp-blue); opacity: 1; }
.txp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.txp-summary { display: flex; flex-direction: column; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--txp-border); margin-bottom: 18px; }
.txp-summary .txp-badge { align-self: flex-start; }
.txp-price-big { font-size: 30px; }
.txp-ref { color: var(--txp-muted); font-size: 14px; }
.txp-desc h2, .txp-contact h2 { font-size: 24px; font-weight: 800; margin: 0 0 10px; color: var(--txp-blue) !important; }
.txp-contact p { color: var(--txp-text) !important; }
.txp-contact { margin-top: 28px; background: var(--txp-bg); padding: 22px 24px; border-radius: 10px; border-left: 5px solid var(--txp-blue); }
.txp-contact-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.txp-contact-btns .txp-btn { margin-top: 0; }

@media (max-width: 600px) {
	.txp-grid { grid-template-columns: 1fr; gap: 18px; }
	.txp-main { aspect-ratio: 4 / 3; }
	.txp-nav { width: 38px; height: 38px; font-size: 24px; }
	.txp-price-big { font-size: 25px; }
	.txp-cta, .txp-contact { padding: 18px 16px; }
}
