/* Objekt-Cards: einzige Quelle für Angebot-, Landing-, Karten- und Lesezeichen-Cards. */
.offers-grid,
.home-offers,
.ars-app .list {
	--object-card-grid-columns: 4;
	--object-card-grid-gap: 16px;
	display: grid;
	grid-template-columns: repeat(var(--object-card-grid-columns), minmax(0, 1fr));
	gap: var(--object-card-grid-gap);
}

.home-offers {
	--object-card-grid-gap: 18px;
}

.offer-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	position: relative;
	transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.offer-card:hover {
	border-color: var(--border-2);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.offer-card:focus-visible {
	outline: none;
	border-color: var(--border);
	box-shadow: var(--focus-ring-soft), 0 12px 30px rgba(0, 0, 0, .18);
}

.offer-card.is-clicked {
	transform: translateY(-1px) scale(.995);
}

.offer-media {
	position: relative;
	aspect-ratio: 16 / 9.8;
	background: var(--surface-3);
	overflow: hidden;
	border-bottom: 1px solid var(--border);
	contain: paint;
	isolation: isolate;
}

.offer-media img,
.offer-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.offer-img {
	opacity: 0;
	transition: opacity .25s ease, transform .45s ease;
	transform-origin: center center;
	backface-visibility: hidden;
	will-change: transform;
}

.offer-img.is-loaded {
	opacity: 1;
}

.offer-card:hover .offer-img,
.offer-card:focus-visible .offer-img {
	transform: scale(1.035);
}

.offer-img-loading,
.offer-img-skeleton {
	position: absolute;
	inset: 0;
	border-radius: 0;
}

.offer-media.is-loading .offer-img-loading {
	display: block;
}

.offer-media .offer-img-loading {
	display: none;
}

.price-badge,
.offer-price-badge {
	--offer-price-badge-default-border: color-mix(in srgb, var(--text) 8%, transparent);
	--offer-price-badge-default-bg: color-mix(in srgb, #111316 92%, transparent);
	--offer-price-badge-default-color: #fff;
	--offer-price-badge-default-shadow: 0 8px 20px rgba(0, 0, 0, .22);
	position: absolute;
	right: 10px;
	bottom: 10px;
	min-height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--offer-price-badge-default-border);
	background: var(--offer-price-badge-default-bg);
	color: var(--offer-price-badge-default-color);
	font-size: 14px;
	line-height: 1;
	font-weight: 800;
	box-shadow: var(--offer-price-badge-default-shadow);
	white-space: nowrap;
}

.offer-card.offer-price-badge-top-left .price-badge,
.offer-card.offer-price-badge-top-left .offer-price-badge {
	inset: 10px auto auto 10px;
}

.offer-card.offer-price-badge-top-right .price-badge,
.offer-card.offer-price-badge-top-right .offer-price-badge {
	inset: 10px 10px auto auto;
}

.offer-card.offer-price-badge-bottom-left .price-badge,
.offer-card.offer-price-badge-bottom-left .offer-price-badge {
	inset: auto auto 10px 10px;
}

.offer-card.offer-price-badge-bottom-right .price-badge,
.offer-card.offer-price-badge-bottom-right .offer-price-badge {
	inset: auto 10px 10px auto;
}

.offer-card.offer-price-badge-edge .price-badge,
.offer-card.offer-price-badge-edge .offer-price-badge {
	min-height: 38px;
	padding: 0 13px;
	border-color: var(--offer-price-badge-default-border);
	background: var(--offer-price-badge-default-bg);
	color: var(--offer-price-badge-default-color);
	box-shadow: var(--offer-price-badge-default-shadow);
}

.offer-card.offer-price-badge-edge.offer-price-badge-top-left .price-badge,
.offer-card.offer-price-badge-edge.offer-price-badge-top-left .offer-price-badge {
	inset: 10px auto auto 0;
	border-left: 0;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.offer-card.offer-price-badge-edge.offer-price-badge-top-right .price-badge,
.offer-card.offer-price-badge-edge.offer-price-badge-top-right .offer-price-badge {
	inset: 10px 0 auto auto;
	border-right: 0;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.offer-card.offer-price-badge-edge.offer-price-badge-bottom-left .price-badge,
.offer-card.offer-price-badge-edge.offer-price-badge-bottom-left .offer-price-badge {
	inset: auto auto 0 0;
	border-left: 0;
	border-bottom: 0;
	border-radius: 0 var(--radius-sm) 0 0;
}

.offer-card.offer-price-badge-edge.offer-price-badge-bottom-right .price-badge,
.offer-card.offer-price-badge-edge.offer-price-badge-bottom-right .offer-price-badge {
	inset: auto 0 0 auto;
	border-right: 0;
	border-bottom: 0;
	border-radius: var(--radius-sm) 0 0 0;
}

.offer-card.offer-price-badge-color-orange .price-badge,
.offer-card.offer-price-badge-color-orange .offer-price-badge {
	background: var(--surface);
	color: #e38508;
	border-color: color-mix(in srgb, #e38508 36%, var(--border));
}

html[data-theme="dark"] .offer-card.offer-price-badge-color-orange .price-badge,
html[data-theme="dark"] .offer-card.offer-price-badge-color-orange .offer-price-badge {
	background: var(--surface-2);
	color: #e38508;
}

.offer-card.offer-price-badge-color-blue .price-badge,
.offer-card.offer-price-badge-color-blue .offer-price-badge {
	background: var(--btn-primary-bg);
	color: var(--btn-primary-text);
	border-color: var(--btn-primary-border);
}

.offer-body {
	padding: 10px 12px 9px;
	display: grid;
	gap: 5px;
	min-width: 0;
}

.offer-title {
	margin: 0;
	color: var(--text);
	font-size: 16px;
	line-height: 1.25;
	font-weight: 850;
	letter-spacing: -.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.offer-country,
.offer-location {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.25;
}

.offer-country {
	min-height: 18px;
}

[data-role="offer-flag"] {
	width: 24px;
	height: 16px;
	min-width: 24px;
	max-width: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	line-height: 0;
	overflow: hidden;
	border-radius: 4px;
	background: var(--surface-2);
}

[data-role="offer-country-label"] {
	min-width: 0;
	display: block;
	flex: 0 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 16px;
}

.offer-rating {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1px;
	margin-left: auto;
	color: var(--illustration-accent, #e38508);
	flex: 0 0 auto;
	line-height: 0;
}

.offer-rating[hidden] {
	display: none;
}

.offer-rating-star {
	width: 12px;
	height: 12px;
	min-width: 12px;
	max-width: 12px;
	display: block;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1.8;
}

.offer-flag,
.offer-flag svg,
[data-role="offer-flag"] svg,
.offer-flag-text {
	width: 24px;
	height: 16px;
	min-width: 24px;
	max-width: 24px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	object-fit: cover;
	background: transparent;
	font-size: 10px;
	font-weight: 800;
	line-height: 16px;
	vertical-align: top;
}

.offer-region-place,
.offer-location {
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.offer-specs {
	display: grid;
	grid-template-columns: repeat(var(--offer-spec-count, 4), minmax(0, 1fr));
	gap: 0;
	margin-top: 2px;
	padding-top: 5px;
	align-items: stretch;
	border-top: 1px solid color-mix(in srgb, var(--border) 62%, transparent);
}

.offer-spec,
.offer-specs > span {
	position: relative;
	min-width: 0;
	display: grid;
	grid-template-rows: 18px auto auto;
	justify-items: center;
	align-content: center;
	gap: 2px;
	min-height: 46px;
	padding: 0 4px;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.15;
	font-weight: 400;
	text-align: center;
}

.offer-spec > span,
.offer-specs > span > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 400;
	max-width: 100%;
}

.offer-spec-value {
	color: var(--text);
	font-size: 12px;
	line-height: 1.05;
}

.offer-spec-label {
	color: var(--muted);
	font-size: 9px;
	line-height: 1.05;
	font-weight: 400;
}

.offer-specs > .offer-spec:not([hidden]):not(.hidden) ~ .offer-spec:not([hidden]):not(.hidden)::before,
.offer-specs > span:not([hidden]):not(.hidden) ~ span:not([hidden]):not(.hidden)::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--muted) 54%, transparent);
	transform: translate(-2px, -50%);
}

.offer-card-separator-line .offer-specs > .offer-spec:not([hidden]):not(.hidden) ~ .offer-spec:not([hidden]):not(.hidden)::before,
.offer-card-separator-line .offer-specs > span:not([hidden]):not(.hidden) ~ span:not([hidden]):not(.hidden)::before {
	top: 0;
	bottom: 0;
	width: 1px;
	height: auto;
	border-radius: 0;
	background: color-mix(in srgb, var(--border) 78%, transparent);
	transform: none;
}

.offer-meta-icon,
.offer-spec svg {
	width: 17px;
	height: 17px;
	min-width: 17px;
	max-width: 17px;
	flex: 0 0 auto;
	display: block;
	fill: currentColor;
	color: var(--muted);
	stroke-width: 1.9;
}

.offer-card-skeleton .offer-price-badge {
	display: none;
}

.offer-line {
	height: 12px;
	border-radius: 999px;
}

.offer-line-title {
	height: 18px;
	width: 74%;
	margin-bottom: 10px;
}

.offer-line-meta {
	width: 88%;
	margin-bottom: 8px;
}

.offer-line-meta.short {
	width: 58%;
}

@keyframes offerEnter {
	from { opacity: .45; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes offerUpdated {
	from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 18%, transparent); }
	to { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent-2) 0%, transparent); }
}

@keyframes offerLeave {
	from { opacity: 1; transform: translateY(0) scale(1); }
	to { opacity: 0; transform: translateY(6px) scale(.985); }
}

.offer-card.is-enter {
	animation: offerEnter .24s ease;
}

.offer-card.is-updated {
	animation: offerUpdated .24s ease;
}

.offer-card.is-leave {
	animation: offerLeave .24s ease forwards;
	pointer-events: none;
}

.object-map-offer-card {
	width: 100%;
	min-width: 0;
}

.object-map-offer-card:hover,
.object-map-offer-card:focus-visible {
	transform: none;
	box-shadow: none;
	border-color: var(--border);
}

.object-map-offer-card::after {
	display: none;
}

.object-map-list-offer-card {
	width: 100%;
	min-width: 0;
	height: max-content;
	min-height: 0;
	flex: 0 0 auto;
	cursor: pointer;
}

.object-map-list-offer-card .offer-media,
.object-map-list-offer-card .object-map-popup-media {
	position: relative;
	width: 100%;
	height: auto;
	min-height: 0;
	flex: 0 0 auto;
	aspect-ratio: 16 / 9;
}

.object-map-list-offer-card .offer-media > .offer-img,
.object-map-list-offer-card .object-map-popup-media > .offer-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.object-map-list-offer-card.is-active {
	border-color: #e38508;
	box-shadow: 0 0 0 2px color-mix(in srgb, #e38508 28%, transparent);
}

.object-map-list-offer-card.is-same-spot {
	width: calc(100% - 10px);
	margin-left: 10px;
}

.bookmark-offer-card {
	height: 100%;
	min-height: 0;
}

.bookmark-offer-card .offer-img.is-missing {
	opacity: 0;
}

.bookmark-offer-card .offer-media.is-missing::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--surface) 90%, var(--btn-primary-bg) 10%), color-mix(in srgb, var(--surface) 84%, var(--text) 16%));
}

@media (max-width: 700px) {
	.offer-media {
		aspect-ratio: 16 / 9;
	}

	.price-badge,
	.offer-price-badge {
		min-height: 36px;
		font-size: 14px;
		right: 9px;
		bottom: 9px;
	}

	.offer-specs {
		grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
		margin-top: 1px;
		padding-top: 5px;
	}

	.offer-body {
		padding: 9px 11px 8px;
		gap: 5px;
	}
}

@media (max-width: 1180px) {
	.offers-grid,
	.home-offers,
	.ars-app .list {
		--object-card-grid-columns: 3;
	}
}

@media (max-width: 980px) {
	.offers-grid,
	.home-offers,
	.ars-app .list {
		--object-card-grid-columns: 2;
	}
}

@media (max-width: 700px) {
	.offers-grid,
	.home-offers,
	.ars-app .list {
		--object-card-grid-columns: 1;
	}

}
