/* Wrapper */
.recent-offers-wrapper {
	margin: 2rem 0;
	overflow-x: auto;
}

/* Table */
.recent-offers-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 14px;
	background: #ffffff;
	border: 2px solid #e0e0e0;
}

/* Header */
.recent-offers-table thead th {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 2px solid #e0e0e0;
	background: #f5f5f7;
	font-weight: 600;
	white-space: nowrap;
}

/* Cells */
.recent-offers-table tbody td {
	padding: 9px 12px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: top;
}

/* Zebra striping */
.recent-offers-table tbody tr:nth-child(even) {
	background-color: #fafafa;
}

/* Hover */
.recent-offers-table tbody tr:hover {
	background-color: #f0f4ff;
}

/* Load more button */
.recent-offers-actions {
	margin-top: 1rem;
	text-align: center;
}

.recent-offers-load-more {
	border-radius: 30px 30px 30px 30px;
	padding: 15px 30px 15px 30px;
	background-color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
	font-size: var(--e-global-typography-primary-font-size);
	font-weight: var(--e-global-typography-primary-font-weight);
	color: #FFFFFF;
	display: inline-block;
	line-height: 1;
	fill: #fff;
	text-align: center;
	transition: all .3s;
	border: none;
}

.recent-offers-load-more:hover {
	background: #1e55b8;
	border-color: #1e55b8;
}

.recent-offers-load-more:active {
	transform: translateY(1px);
}

.recent-offers-load-more[disabled],
.recent-offers-load-more:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
}

/* Mobile tweaks */
@media (max-width: 600px) {
	.recent-offers-table {
		font-size: 13px;
	}

	.recent-offers-table thead th,
	.recent-offers-table tbody td {
		padding: 8px 10px;
	}
}


/* ============================= */
/* Carousel styles               */
/* ============================= */

/* Carousel wrapper */
.recent-offer-carousel {
	position: relative;
	background: #f7f7fb;
	padding: 24px 24px 32px;
	border-radius: 16px;
}

/* Header with nav buttons in top-right */
.recent-offer-carousel-header {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 16px;
}

.recent-offer-carousel-nav button {
	border: none;
	border-radius: 999px;
	padding: 6px 14px;
	margin-left: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	background: #7b3fe4; /* purple */
	color: #ffffff;
}

.recent-offer-carousel-nav button:disabled {
	opacity: 0.4;
	cursor: default;
}

/* Viewport hides overflow */
.recent-offer-carousel-viewport {
	overflow: hidden;
}

/* Ensure the track aligns all cards */
.recent-offer-carousel-track {
	display: flex;
	align-items: stretch; /* NEW: force all cards to equal height */
	transition: transform 0.35s ease;
}

/* 4 cards per view */
.recent-offer-card {
	flex: 0 0 25%;
	box-sizing: border-box;
	padding: 0 10px 24px;
	display: flex;
	flex-direction: column;
	height: 100%;              /* full-height card */
}

/* Fixed-height image wrapper */
.recent-offer-card-image-wrapper {
	position: relative;
	border-radius: 16px 16px 0 0;
	overflow: hidden;
	flex-shrink: 0;            /* prevents collapsing */
}

/* Image fills wrapper */
.recent-offer-card-image,
.recent-offer-card-image.placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Price badge */
.recent-offer-price-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #ffffff;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #000000;
}

/* Date badge (bottom-right) */
.recent-offer-date-badge {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(0,0,0,0.75);
	color: #ffffff;
	font-size: 11px;
	font-weight: 500;
	padding: 4px 8px;
	border-radius: 6px;
}

/* Body expands to fill vertical space */
.recent-offer-card-body {
	flex: 1 1 auto;             /* NEW: stretch evenly */
	display: flex;              /* allow inner elements to align */
	flex-direction: column;
	justify-content: flex-start;
	background: #ffffff;
	padding: 16px 16px 25px 16px;
	border-left: 1px solid #ececf5;
	border-right: 1px solid #ececf5;
	border-bottom: 1px solid #ececf5;
	border-radius: 0 0 16px 16px;
	min-height: 140px; 
	position: relative;
}

/* ID styling */
.recent-offer-id {
	font-weight: 700;
	font-size: 18px;
	color: #7b3fe4;
	margin-bottom: 4px;
}

/* Resort name */
.recent-offer-name {
	font-size: 16px;
	font-weight: 600;
	color: #222222;
	line-height: 1.3;
	flex-grow: 1;               /* NEW: balances height across cards */
}


/* ============================= */
/* Responsive Carousel Breakpoints */
/* ============================= */

/* TABLET — 2 cards per view */
@media (max-width: 1024px) {
	.recent-offer-card {
		flex: 0 0 50%; /* 2 cards per row */
	}
}

/* MOBILE — 1 card per view */
@media (max-width: 600px) {
	.recent-offer-card {
		flex: 0 0 100%; /* 1 card per row */
	}

	/* Add a little spacing to nav buttons if needed */
	.recent-offer-carousel-header {
		margin-bottom: 12px;
	}
}
