/**
 * Promo banner — podpultové nabídky pro anonymní návštěvníky /prodeje/.
 * Pro přihlášené (.re-podp-foryou) se zobrazí inline preview karet místo banneru.
 */

/* ============================================
   Pro přihlášené — inline karty podpultovek
   ============================================ */
.re-podp-foryou {
	margin-top: var(--space-m);
	margin-bottom: var(--space-l);
	padding: 2.4rem 2.8rem 2.8rem;
	background: linear-gradient(135deg, #0E1C39 0%, #16294F 60%, #1F3868 100%);
	border-radius: calc(var(--radius) + 0.4rem);
	box-shadow: 0 12px 32px rgba(14, 28, 57, 0.18);
	color: var(--white);
}

.re-podp-foryou__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-m);
	margin-bottom: var(--space-m);
}

.re-podp-foryou__heading {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
}

.re-podp-foryou__eyebrow {
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--secondary);
}

.re-podp-foryou__title {
	margin: 0;
	font-size: clamp(1.8rem, 0.8rem + 1.2vw, 2.4rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--white);
}

.re-podp-foryou__lead {
	margin: 0;
	font-size: var(--text-s);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.78);
	max-width: 56rem;
}

.re-podp-foryou__all {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.9rem 1.6rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 5rem;
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--white);
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
	white-space: nowrap;
}

.re-podp-foryou__all:hover,
.re-podp-foryou__all:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--secondary);
	color: var(--secondary);
	outline: none;
}

.re-podp-foryou__all .re-btn__arrow {
	transition: transform 0.18s ease;
}

.re-podp-foryou__all:hover .re-btn__arrow {
	transform: translateX(2px);
}

/* Karty (kn-property) jsou navrhnuté na světlé pozadí — uvnitř foryou bloku
   je pozadí navy. Vlastní grid (3-col preview) bez ohledu na map-top/split
   katalog layout. */
.re-podp-foryou .kn-stage__grid,
.pcv2[data-pcv2-layout="split"] .re-podp-foryou .kn-stage__grid,
.pcv2[data-pcv2-layout="map-top"] .re-podp-foryou .kn-stage__grid {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

@media (max-width: 1080px) {
	.re-podp-foryou .kn-stage__grid,
	.pcv2[data-pcv2-layout="split"] .re-podp-foryou .kn-stage__grid,
	.pcv2[data-pcv2-layout="map-top"] .re-podp-foryou .kn-stage__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.re-podp-foryou .kn-stage__grid,
	.pcv2[data-pcv2-layout="split"] .re-podp-foryou .kn-stage__grid,
	.pcv2[data-pcv2-layout="map-top"] .re-podp-foryou .kn-stage__grid {
		grid-template-columns: 1fr;
	}
}

/* Decentní bílý outline kolem karet, aby se odlišily od dark backdrop */
.re-podp-foryou .kn-property {
	box-shadow: 0 4px 16px rgba(14, 28, 57, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* For-you preview: vždy column-orientovaná karta (3-col grid), nezávisle na
   split/map-top layoutu katalogu. */
.re-podp-foryou .kn-property,
.pcv2[data-pcv2-layout="split"] .re-podp-foryou .kn-property {
	flex-direction: column;
}

.re-podp-foryou .kn-property__media,
.pcv2[data-pcv2-layout="split"] .re-podp-foryou .kn-property__media {
	width: 100%;
	aspect-ratio: 4 / 3;
}

.re-podp-foryou .kn-property__body,
.pcv2[data-pcv2-layout="split"] .re-podp-foryou .kn-property__body {
	flex: 1 1 auto;
	min-width: 0;
}

@media (max-width: 720px) {
	.re-podp-foryou {
		padding: 2rem 1.8rem 2.2rem;
	}

	.re-podp-foryou__head {
		flex-direction: column;
		align-items: stretch;
		gap: 1.2rem;
	}

	.re-podp-foryou__all {
		align-self: flex-start;
	}
}

/* ============================================
   Promo banner — podpultové nabídky pro anonymní návštěvníky /prodeje/.
   ============================================ */

.re-podp-banner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(20rem, 28rem) 1fr auto;
	gap: var(--space-l);
	align-items: center;
	padding: 2rem 5.6rem 2rem 0;
	margin-top: var(--space-m);
	margin-bottom: var(--space-l);
	background: linear-gradient(135deg, #0E1C39 0%, #16294F 60%, #1F3868 100%);
	border-radius: calc(var(--radius) + 0.4rem);
	overflow: hidden;
	color: var(--white);
	box-shadow: 0 12px 32px rgba(14, 28, 57, 0.18);
	isolation: isolate;
}

.re-podp-banner[hidden] {
	display: none;
}

.re-podp-banner.is-dismissing {
	opacity: 0;
	transform: translateY(-0.6rem);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

/* ---------- Media ---------- */
.re-podp-banner__media {
	position: relative;
	height: 100%;
	min-height: 14rem;
	overflow: hidden;
}

.re-podp-banner__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.re-podp-banner__media-fade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		transparent 0%,
		transparent 55%,
		rgba(14, 28, 57, 0.55) 80%,
		rgba(14, 28, 57, 0.95) 100%
	);
}

/* ---------- Content ---------- */
.re-podp-banner__content {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	min-width: 0;
	padding-left: 0;
}

.re-podp-banner__eyebrow {
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--secondary);
}

.re-podp-banner__title {
	margin: 0;
	font-size: clamp(1.8rem, 0.8rem + 1.2vw, 2.4rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--white);
	text-wrap: balance;
}

.re-podp-banner__lead {
	margin: 0;
	font-size: var(--text-s);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.78);
	max-width: 56rem;
}

/* ---------- Actions ---------- */
.re-podp-banner__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.8rem;
	flex: 0 0 auto;
}

.re-podp-banner__cta {
	white-space: nowrap;
}

.re-podp-banner__login {
	font-size: var(--text-xs);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	text-align: center;
	transition: color 0.18s ease;
}

.re-podp-banner__login:hover {
	color: var(--secondary);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* ---------- Close button ---------- */
.re-podp-banner__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.2rem;
	height: 3.2rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.78);
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
	z-index: 2;
}

.re-podp-banner__close:hover,
.re-podp-banner__close:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	color: var(--white);
	outline: none;
}

.re-podp-banner__close svg {
	width: 1.6rem;
	height: 1.6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.re-podp-banner {
		grid-template-columns: 18rem 1fr;
		grid-template-areas:
			"media content"
			"media actions";
		padding-right: 5.6rem;
	}

	.re-podp-banner__media { grid-area: media; }
	.re-podp-banner__content { grid-area: content; }
	.re-podp-banner__actions { grid-area: actions; flex-direction: row; align-items: center; flex-wrap: wrap; }
	.re-podp-banner__login { text-align: left; }
}

@media (max-width: 720px) {
	.re-podp-banner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"content"
			"actions";
		padding: 0 0 1.8rem 0;
		gap: 1.4rem;
	}

	.re-podp-banner__media {
		min-height: 12rem;
		max-height: 14rem;
	}

	.re-podp-banner__media-fade {
		background: linear-gradient(
			180deg,
			transparent 0%,
			transparent 35%,
			rgba(14, 28, 57, 0.7) 80%,
			rgba(14, 28, 57, 0.95) 100%
		);
	}

	.re-podp-banner__content,
	.re-podp-banner__actions {
		padding: 0 1.8rem;
	}

	.re-podp-banner__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.re-podp-banner__login {
		text-align: center;
	}
}
