/* UA Offer Boxes - Frontend Styles - v1.5.2 */
/* Urlaubsagenten CI: Gelber Pricetag, Rote Streichpreise, UA-Blauer Preisbereich mit Schraffur */

.ua-offers, 
.ua-offers-swiper { 
	width: 100%; 
	margin: 20px 0;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.ua-offers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	max-width: 1400px;
	margin: 0 auto;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.ua-offer-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(0,0,0,.08);
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
	height: 100%;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.ua-offer-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0,0,0,.15);
}

.ua-offer-img {
	padding-top: 56%;
	background-size: cover;
	background-position: center;
	background-color: #f0f0f0;
	position: relative;
}

/* EMPFEHLUNGS-BADGE (oben rechts im Bild) */
.ua-recommendation-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(46, 125, 50, 0.95);
	color: #fff;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	z-index: 2;
}

/* WEISSER CONTENT-BEREICH */
.ua-offer-body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1;
}

/* HOTELNAME */
.ua-offer-title {
	font-weight: 700;
	font-size: 18px;
	line-height: 1.15;
	margin: 0;
	color: #1a1a1a;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	text-align: left;
}

/* (falls genutzt, aktuell eher nicht) */
.ua-offer-destination {
	font-size: 15px;
	font-weight: 600;
	color: #2e7d32;
	margin: 4px 0 8px 0;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	text-align: left;
	display: flex;
	align-items: center;
	gap: 4px;
}

/* ORT – quasi direkt wie <br> unter dem Hotelnamen */
.ua-offer-location {
	font-size: 14px;
	color: #666;
	margin: -2px 0 10px 0;
	line-height: 1.15;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	text-align: left;
}

/* zusätzliche Subheadline, falls benötigt */
.ua-offer-sub {
	color: #667085;
	font-size: 14px;
	margin: 0 0 8px 0;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	text-align: left;
}

/* Sterne + Verpflegung */
.ua-offer-meta {
	display: flex;
	gap: 6px;
	font-size: 13px;
	color: #555;
	flex-direction: column;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	text-align: left;
	align-items: flex-start;
	margin-bottom: 4px;
}

.ua-offer-meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Sterne-Icons */
.ua-offer-stars {
	font-size: 16px;
	line-height: 1;
	letter-spacing: 2px;
	display: inline-block;
}

/* Datum */
.ua-offer-date {
	font-size: 13px;
	color: #555;
	margin: 8px 0 0 0;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	line-height: 1.4;
	text-align: left;
}

/* Veranstalter-Logo – mit Luft zur Schraffur und einheitlicher Höhe */
.ua-offer-operator {
	margin: 10px 0 18px 0;
	display: flex;
	align-items: center;
	height: 36px;
}

.ua-offer-operator img {
	height: 26px;
	max-height: 26px;
	width: auto;
	object-fit: contain;
	object-position: left center;
	display: block;
}

/* ========================= */
/*  PREISBEREICH (UA)        */
/* ========================= */

.ua-offer-price-wrapper {
	margin-top: auto;
	border-top: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;

	margin-left: -18px;
	margin-right: -18px;

	padding: 10px 18px 14px;

	/* UA-Blau + Schraffur */
	position: relative;
	background: #2f4449;
	overflow: hidden;
	color: #ffffff;
}

/* Schraffur-Layer */
.ua-offer-price-wrapper::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.30;
	background-image: repeating-linear-gradient(
		135deg,
		rgba(255,255,255,0.16) 0px,
		rgba(255,255,255,0.16) 6px,
		rgba(255,255,255,0.00) 6px,
		rgba(255,255,255,0.00) 14px
	);
	z-index: 0;
}

/* Inhalt im Preisblock immer über der Schraffur */
.ua-offer-price-wrapper > * {
	position: relative;
	z-index: 1;
}

/* Streichpreis */
.ua-offer-price-strike {
	font-size: 15px;
	color: #ffc9cf;
	text-decoration: line-through;
	font-weight: 600;
	text-decoration-color: #ffc9cf;
	text-decoration-thickness: 2px;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	margin: 0;
}

/* Ersparnis-Badge, falls vorhanden */
.ua-price-save {
	display: inline-block;
	margin-left: 8px;
	margin-top: 2px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #fbe3e6;
	color: #2f4449;
	font-size: 12px;
	font-weight: 600;
}

/* PREISBOX - UA-GELB, rechts ausgerichtet */
.ua-offer-price {
	background: #FFC107;
	padding: 8px 14px;
	border-radius: 999px;
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	box-shadow: 0 6px 16px rgba(0,0,0,0.35);
	margin-left: auto;
}

.ua-price-label {
	font-size: 13px;
	font-weight: 500;
	color: #2f4449;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.ua-price-value {
	font-weight: 800;
	font-size: 21px;
	color: #2f4449;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* p.P. - klein und dezent nach dem € */
.ua-price-pp {
	font-size: 11px;
	font-weight: 500;
	color: #4a5c61;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	margin-left: -2px;
}

.ua-offer-link {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
}

/* Swiper-spezifische Styles */
.swiper {
	padding: 10px 50px !important;
}

.swiper-button-prev,
.swiper-button-next {
	color: #111;
	background: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0,0,0,.12);
	transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
	background: #FFC107;
	color: #333;
	transform: scale(1.1);
}

.swiper-button-prev:after,
.swiper-button-next:after {
	font-size: 18px;
	font-weight: bold;
}

.swiper-pagination {
	bottom: 0 !important;
}

.swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #ccc;
	opacity: 1;
	transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
	background: #FFC107;
	width: 24px;
	border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
	.swiper {
		padding: 10px 40px !important;
	}
	
	.swiper-button-prev,
	.swiper-button-next {
		width: 32px;
		height: 32px;
	}
	
	.swiper-button-prev:after,
	.swiper-button-next:after {
		font-size: 14px;
	}
	
	.ua-offer-title {
		font-size: 16px;
	}
	
	.ua-price-value {
		font-size: 20px;
	}
	
	.ua-recommendation-badge {
		font-size: 11px;
		padding: 4px 8px;
		top: 8px;
		right: 8px;
	}

	/* Preisbereich auf schmalen Screens etwas kompakter */
	.ua-offer-price-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
	
	.ua-offer-price {
		margin-left: 0;
	}
}

@media (max-width: 480px) {
	.ua-offers-grid {
		grid-template-columns: 1fr;
	}
	
	.swiper {
		padding: 10px 30px !important;
	}
}

/* Responsive Box-Limitierung */
/* Zwischen 897px und 1256px: Max 6 Boxen */
@media (max-width: 1256px) and (min-width: 897px) {
	.ua-offers-grid > .ua-offer-card:nth-child(n+7) {
		display: none !important;
	}
}

/* Unter 897px: Max 4 Boxen */
@media (max-width: 896px) {
	.ua-offers-grid > .ua-offer-card:nth-child(n+5) {
		display: none !important;
	}
}
