:root {
	--waoh-accent: #b42318;
	--waoh-accent-dark: #7a271a;
	--waoh-cream: #fff7ed;
	--waoh-border: #fed7aa;
	--waoh-ink: #431407;
	--waoh-muted: #6b7280;
}

.waoh-offers {
	clear: both;
	margin-block: 2rem 3rem;
}

.waoh-offers__header {
	max-width: 48rem;
	margin-block-end: 1.75rem;
}

.waoh-offers__eyebrow,
.waoh-card-badge,
.waoh-offer-panel__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--waoh-accent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.waoh-offers__eyebrow {
	margin-block-end: 0.65rem;
	padding: 0.55rem 0.8rem;
}

.waoh-offers__heading {
	margin: 0;
	font-size: clamp(1.65rem, 4vw, 2.4rem);
	line-height: 1.15;
}

.waoh-offers__intro {
	margin: 0.8rem 0 0;
	color: var(--waoh-muted);
	font-size: 1.05rem;
	line-height: 1.65;
}

.waoh-offers__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}

.waoh-offers__card {
	position: relative;
	min-width: 0;
	margin: 0;
}

.waoh-offers__card:focus-within {
	border-radius: 0.75rem;
	outline: 3px solid var(--waoh-accent);
	outline: 3px solid color-mix(in srgb, var(--waoh-accent) 45%, transparent);
	outline-offset: 4px;
}

/* Neutralize Bootstrap widths/floats emitted by the native WPRentals unit. */
.waoh-offers__card > .listing_wrapper,
.waoh-offers__card > [class*="listing_wrapper"] {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 100%;
	padding-inline: 0 !important;
}

.waoh-card-offer-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	margin: 0.7rem 0.85rem 0.85rem;
	border: 1px solid var(--waoh-border);
	border-radius: 0.6rem;
	background: var(--waoh-cream);
	padding: 0.7rem 0.8rem;
	color: var(--waoh-ink);
	line-height: 1.25;
}

/* A renamed theme title wrapper moves the summary below the native card. */
.waoh-offers__card > .waoh-card-offer-summary {
	margin-block-start: 0.65rem;
}

.waoh-card-offer-summary__dates,
.waoh-card-offer-summary__total {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.waoh-card-offer-summary__dates > span:first-child {
	flex-basis: 100%;
	color: #7a271a;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.waoh-card-offer-summary__dates time {
	font-size: 0.82rem;
	font-weight: 600;
}

.waoh-card-offer-summary__total {
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.1rem;
}

.waoh-card-offer-summary__total strong {
	color: var(--waoh-accent-dark);
	font-size: 1.05rem;
	line-height: 1;
	white-space: nowrap;
}

.waoh-card-offer-summary__total small {
	color: #6b4f45;
	font-size: 0.68rem;
	font-weight: 600;
	white-space: nowrap;
}

.waoh-card-badge {
	position: absolute;
	z-index: 25;
	inset-block-start: 0.85rem;
	inset-inline-start: 0.85rem;
	min-height: 1.9rem;
	padding: 0.5rem 0.75rem;
	box-shadow: 0 5px 16px rgb(67 20 7 / 25%);
	pointer-events: none;
}

.waoh-thumbnail-wrap {
	position: relative;
	display: block;
}

.waoh-thumbnail-wrap > img {
	display: block;
	width: 100%;
}

/* Second badge strategy for WPRentals variants that use post_class(). */
.waoh-has-offer {
	position: relative;
}

.waoh-has-offer::before {
	position: absolute;
	z-index: 25;
	inset-block-start: 0.85rem;
	inset-inline-start: 0.85rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 1.9rem;
	border-radius: 999px;
	background: var(--waoh-accent);
	box-shadow: 0 5px 16px rgb(67 20 7 / 25%);
	color: #fff;
	content: "Oferta";
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	padding: 0.5rem 0.75rem;
	pointer-events: none;
	text-transform: uppercase;
}

.waoh-has-offer:has(.waoh-card-badge)::before {
	display: none;
}

.waoh-offers__empty {
	margin: 0;
	border: 1px solid var(--waoh-border);
	border-radius: 0.75rem;
	background: var(--waoh-cream);
	color: var(--waoh-ink);
	padding: 1.25rem;
	line-height: 1.6;
}

.waoh-pagination {
	margin-block-start: 2rem;
}

.waoh-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.waoh-pagination a,
.waoh-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
	color: #1f2937;
	font-weight: 600;
	text-decoration: none;
}

.waoh-pagination a:hover,
.waoh-pagination a:focus-visible {
	border-color: var(--waoh-accent);
	color: var(--waoh-accent-dark);
}

.waoh-pagination .current {
	border-color: var(--waoh-accent);
	background: var(--waoh-accent);
	color: #fff;
}

.waoh-offer-panel {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem;
	margin-block: 0 1.75rem;
	border: 1px solid var(--waoh-border);
	border-inline-start: 5px solid var(--waoh-accent);
	border-radius: 0.85rem;
	background: linear-gradient(135deg, #fff 0%, var(--waoh-cream) 100%);
	box-shadow: 0 10px 28px rgb(67 20 7 / 8%);
	padding: 1.25rem;
	color: var(--waoh-ink);
}

.waoh-offer-panel__badge {
	align-self: start;
	padding: 0.58rem 0.8rem;
	white-space: nowrap;
}

.waoh-offer-panel__title {
	margin: 0;
	color: var(--waoh-ink);
	font-size: clamp(1.25rem, 3vw, 1.65rem);
	line-height: 1.25;
}

.waoh-offer-panel__copy {
	margin: 0.65rem 0 0;
	font-size: 1rem;
	line-height: 1.65;
}

.waoh-offer-panel__price {
	color: var(--waoh-accent-dark);
	font-size: 1.08em;
	white-space: nowrap;
}

.waoh-offer-panel__note {
	margin: 0.55rem 0 0;
	color: #6b4f45;
	font-size: 0.875rem;
	line-height: 1.5;
}

.waoh-fallback-card {
	height: 100%;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	background: #fff;
	box-shadow: 0 8px 24px rgb(17 24 39 / 8%);
}

.waoh-fallback-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	background: #f3f4f6;
}

.waoh-fallback-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.waoh-fallback-card__body {
	padding: 1rem;
}

.waoh-fallback-card__title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.35;
}

.waoh-fallback-card__title a {
	color: inherit;
	text-decoration: none;
}

.waoh-fallback-card__dates {
	margin: 0.65rem 0 0;
	color: var(--waoh-muted);
}

.waoh-fallback-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	margin: 0.35rem 0 0;
	color: var(--waoh-accent-dark);
}

.waoh-fallback-card__price strong {
	font-size: 1.2rem;
}

.waoh-fallback-card__price span {
	color: var(--waoh-muted);
	font-size: 0.75rem;
}

@media (max-width: 991px) {
	.waoh-offers__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.waoh-offers__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.15rem;
	}

	.waoh-offer-panel {
		grid-template-columns: minmax(0, 1fr);
		padding: 1rem;
	}

	.waoh-offer-panel__badge {
		justify-self: start;
		white-space: normal;
	}

	.waoh-card-offer-summary {
		align-items: flex-start;
		flex-direction: column;
	}

	.waoh-card-offer-summary__total {
		align-items: flex-start;
	}
}

@media (forced-colors: active) {
	.waoh-card-badge,
	.waoh-offers__eyebrow,
	.waoh-offer-panel__badge,
	.waoh-pagination .current {
		border: 1px solid ButtonText;
	}
}
