/* Kidszone Listing Hero – Issue #12
 * Aktiv nur unter body.kz-hero-active (= Test-Listing).
 */

/* ─────────────────────────────────────────────────────────────────────
 * 1) Standard-HivePress-Hero ausblenden (wird durch .kz-hero ersetzt).
 *    Title, Galerie und primäre Attribute werden vom neuen Hero
 *    abgedeckt – die Sidebar (Buchungsbox) bleibt vollständig sichtbar.
 * ───────────────────────────────────────────────────────────────────── */
body.kz-hero-active .hp-listing__title,
body.kz-hero-active .hp-listing__images,
body.kz-hero-active .hp-page__content > .hp-listing__image,
body.kz-hero-active .hp-listing__attributes--primary,
body.kz-hero-active .hp-listing__categories,
body.kz-hero-active .hp-page__content > .hp-listing__category,
body.kz-hero-active .hp-page__content > .hp-listing__details--primary {
	display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────
 * 2) Hero-Container.
 * ───────────────────────────────────────────────────────────────────── */
.kz-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	background: #fff;
	border-radius: 18px;
	padding: 1.25rem;
	margin: 0 0 1.5rem;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

@media (min-width: 768px) {
	.kz-hero {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: 2rem;
		padding: 1.5rem;
	}
}

/* ─────────────────────────────────────────────────────────────────────
 * 3) Hero-Media (Bild + Badge).
 * ───────────────────────────────────────────────────────────────────── */
.kz-hero__media {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #f1f5f9;
	aspect-ratio: 16 / 10;
}

.kz-hero__image,
.kz-hero__image--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kz-hero__image--placeholder {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.kz-hero__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #ffffff;
	color: #047857;
	font-weight: 600;
	font-size: 0.85rem;
	line-height: 1;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.kz-hero__badge-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	color: #047857;
}

.kz-hero__badge-icon svg {
	width: 100%;
	height: 100%;
}

/* ─────────────────────────────────────────────────────────────────────
 * 4) Hero-Body (Text-Spalte).
 * ───────────────────────────────────────────────────────────────────── */
.kz-hero__body {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-width: 0;
}

.kz-hero__category {
	display: inline-block;
	width: max-content;
	max-width: 100%;
	background: #fef3c7;
	color: #92400e;
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
}

.kz-hero__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem);
	line-height: 1.2;
	color: #0f172a;
	font-weight: 700;
}

/* Rating */
.kz-hero__meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.kz-hero__rating {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #0f172a;
	text-decoration: none;
	font-size: 0.95rem;
}

.kz-hero__rating:hover .kz-hero__rating-count {
	text-decoration: underline;
}

.kz-hero__rating-stars {
	display: inline-flex;
	width: 18px;
	height: 18px;
	color: #f59e0b;
}

.kz-hero__rating-stars svg {
	width: 100%;
	height: 100%;
}

.kz-hero__rating-value {
	font-weight: 700;
	color: #0f172a;
}

.kz-hero__rating-count {
	color: #475569;
	font-size: 0.85rem;
}

/* Facts */
.kz-hero__facts {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1rem;
}

@media (min-width: 480px) {
	.kz-hero__facts {
		grid-template-columns: 1fr 1fr;
	}
}

.kz-hero__fact {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.93rem;
	color: #1e293b;
	line-height: 1.3;
}

.kz-hero__fact-icon {
	font-size: 1.1rem;
	line-height: 1;
	flex-shrink: 0;
}

.kz-hero__fact-text {
	min-width: 0;
}

/* CTA */
.kz-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: #f97316;
	color: #ffffff !important;
	font-weight: 700;
	font-size: 1rem;
	padding: 0.85rem 1.4rem;
	border-radius: 12px;
	text-decoration: none;
	margin-top: 0.5rem;
	transition: background 0.15s ease, transform 0.15s ease;
	box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.kz-hero__cta:hover,
.kz-hero__cta:focus-visible {
	background: #ea580c;
	color: #ffffff;
	transform: translateY(-1px);
}

.kz-hero__cta:focus-visible {
	outline: 3px solid #fed7aa;
	outline-offset: 2px;
}

.kz-hero__cta-arrow {
	display: inline-flex;
	width: 18px;
	height: 18px;
}

.kz-hero__cta-arrow svg {
	width: 100%;
	height: 100%;
}

/* Mobile: CTA volle Breite, damit's auf Touch leicht trifft. */
@media (max-width: 767px) {
	.kz-hero__cta {
		width: 100%;
	}
}

/* ─────────────────────────────────────────────────────────────────────
 * 5) Booking-Card – HivePress-Buchungsbox in der Sidebar als
 *    Entscheidungskarte stylen, ohne Form-Funktion zu brechen.
 *    Targeting: HivePress rendert die Buchungsbox als
 *    .hp-listing__buttons / .hp-form--booking-make in der Sidebar.
 * ───────────────────────────────────────────────────────────────────── */
body.kz-hero-active .hp-page__sidebar .widget,
body.kz-hero-active .hp-page__sidebar .hp-widget {
	background: #ffffff;
	border-radius: 16px;
	padding: 1.25rem;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
	border: 1px solid rgba(15, 23, 42, 0.06);
}

body.kz-hero-active .hp-page__sidebar .widget + .widget,
body.kz-hero-active .hp-page__sidebar .hp-widget + .hp-widget {
	margin-top: 1rem;
}

/* Buttons in der Buchungsbox prominent. */
body.kz-hero-active .hp-page__sidebar .hp-form--booking-make .hp-form__button,
body.kz-hero-active .hp-page__sidebar .hp-form--booking-make button[type="submit"],
body.kz-hero-active .hp-page__sidebar .hp-form--booking-make input[type="submit"] {
	background: #f97316;
	border-color: #f97316;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	padding: 0.9rem 1.2rem;
	border-radius: 12px;
	width: 100%;
	transition: background 0.15s ease, transform 0.15s ease;
	box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

body.kz-hero-active .hp-page__sidebar .hp-form--booking-make .hp-form__button:hover,
body.kz-hero-active .hp-page__sidebar .hp-form--booking-make button[type="submit"]:hover {
	background: #ea580c;
	border-color: #ea580c;
	transform: translateY(-1px);
}
