.tba-ps {
	--tba-ps-purple: #60278b;
	--tba-ps-panel: #f3f3f3;
	--tba-ps-dot: #e6d2de;
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-radius: 40px;
	overflow: hidden;
	background: var(--tba-ps-panel);
	color: var(--tba-ps-purple);
	margin-block: 2rem;
}

.tba-ps__photo { position: relative; min-height: 420px; background: #d9d9de; }
.tba-ps__photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.tba-ps__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 2rem clamp(1rem, 5vw, 4.5rem);
}
.tba-ps__heading {
	margin: 0 0 1.5rem;
	text-align: center;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: .02em;
	color: var(--tba-ps-purple);
}
.tba-ps__slider { width: 100%; max-width: 380px; margin-inline: auto; min-width: 0; }
.tba-ps__swiper { overflow: hidden; border-radius: 36px; }
.tba-ps .swiper-slide { height: auto; }

/* Card */
.tba-ps__card { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 36px; overflow: hidden; }
.tba-ps__media { position: relative; aspect-ratio: 16 / 9; background: #e7e3ea; }
.tba-ps__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tba-ps__heart {
	position: absolute; top: 20px; left: 16px;
	width: 34px; height: 34px; border-radius: 50%;
	background: #fff; display: grid; place-items: center;
}
.tba-ps__heart svg { width: 20px; height: 20px; fill: var(--tba-ps-purple); }

.tba-ps__body { display: flex; flex-direction: column; gap: .6rem; flex: 1; padding: 1.5rem 1.5rem 1.25rem; }
.tba-ps__title { margin: 0; font-size: .9rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3; color: var(--tba-ps-purple); }
.tba-ps__location { margin: 0 0 .9rem; font-size: .9rem; letter-spacing: .02em; color: var(--tba-ps-purple); }

.tba-ps__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tba-ps__prices { display: flex; align-items: baseline; gap: 1.25rem; flex-wrap: wrap; }
.tba-ps__was { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.tba-ps__now { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; }
.tba-ps__now-price { text-decoration: underline; text-underline-offset: 3px; }

.tba-ps__go {
	flex: none; width: 52px; height: 52px; border-radius: 50%;
	background: var(--tba-ps-purple); color: #fff;
	display: grid; place-items: center; margin-left: auto;
}
.tba-ps__go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Whole card is clickable via the arrow link */
.tba-ps__go::after { content: ""; position: absolute; inset: 0; }
.tba-ps__go:focus-visible { outline: 3px solid var(--tba-ps-purple); outline-offset: 3px; }

/* Dots */
.tba-ps__dots { display: flex; justify-content: center; gap: 14px; margin-top: 1.5rem; min-height: 8px; }
.tba-ps__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--tba-ps-dot); cursor: pointer; }
.tba-ps__dot.is-active { background: #111; }
.tba-ps__dot:focus-visible { outline: 2px solid var(--tba-ps-purple); outline-offset: 3px; }
.tba-ps__dots.is-locked { display: none; }

@media ( max-width: 800px ) {
	.tba-ps { grid-template-columns: 1fr; border-radius: 28px; }
	.tba-ps__photo { min-height: 240px; }
	.tba-ps__panel { padding: 1.75rem 1rem 2rem; }
}
