.ikosoffers-wrap {
	margin: 0 auto;
}
.ikosoffers-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 28px;
}
.ikosoffers-filter-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ikosoffers-filter-btn {
	background: #f2f2f2;
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 6px 16px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.ikosoffers-filter-btn:hover {
	background: #e0e0e0;
}
.ikosoffers-filter-btn.active {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}

/* Carousel */
.ikosoffers-carousel {
	position: relative;
}

.ikosoffers-grid {
	--ikosoffers-desktop-count: 4;
	--ikosoffers-deluxe-color: #b8965a;
	--ikosoffers-gap: 24px;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding-left: 4px;
	scroll-padding-right: 4px;
	gap: var(--ikosoffers-gap);
	padding: 4px 4px 12px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.ikosoffers-grid::-webkit-scrollbar {
	height: 6px;
}
.ikosoffers-grid::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 4px;
}
.ikosoffers-grid.ikosoffers-dragging {
	user-select: none;
}
.ikosoffers-grid.ikosoffers-dragging .ikosoffers-card {
	pointer-events: none;
}

.ikosoffers-card {
	scroll-snap-align: start;
	flex: 0 0 calc((100% - (var(--ikosoffers-gap) * (var(--ikosoffers-desktop-count) - 1))) / (var(--ikosoffers-desktop-count) - 0.5));
	background: #fff;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.ikosoffers-card.ikosoffers-hidden {
	display: none;
}

@media (max-width: 768px) {
	.ikosoffers-card {
		flex-basis: 78%;
	}
}

/* Prev / next nav buttons (desktop only — mobile relies on native swipe) */
.ikosoffers-nav {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 3;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: #fff;
	color: #333;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.ikosoffers-nav:hover {
	background: #f5f5f5;
}
.ikosoffers-nav-prev {
	left: -16px;
}
.ikosoffers-nav-next {
	right: -16px;
}
@media (max-width: 768px) {
	.ikosoffers-nav {
		display: none;
	}
}

/* Offers count line */
.ikosoffers-count {
	margin: 4px 0 0;
	font-size: 13px;
	color: #777;
}
.ikosoffers-count-number {
	font-weight: 700;
	color: #333;
}

/* Image + overlays
   Uses the classic padding-top spacer + absolutely-positioned image
   technique (instead of the CSS aspect-ratio property) specifically so
   the 3:4 ratio can't be silently overridden by a theme or page-builder
   stylesheet that resets "img { height: auto }" or similar. */
.ikosoffers-media {
	position: relative;
	background: #e8e4dc;
	overflow: hidden;
}
.ikosoffers-media::before {
	content: "";
	display: block;
	width: 100%;
	padding-top: var(--ikosoffers-ratio, 67.6471%);
}
.ikosoffers-media img {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	display: block;
	margin: 0 !important;
}
/* Clickable photo (1.8.31): covers the photo area, under the overlays. */
.ikosoffers-media-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	cursor: pointer;
	-webkit-user-drag: none;
	user-select: none;
}
.ikosoffers-media-link img {
	-webkit-user-drag: none;
}
/* Text overlays let clicks through to the photo link; the badge stays interactive. */
.ikosoffers-bookby,
.ikosoffers-property-label,
.ikosoffers-tag-label {
	pointer-events: none;
}
.ikosoffers-media::after {
	content: "";
	position: absolute;
	inset: 0;
	/* Same level as .ikosoffers-media-link (1.8.31) — comes later in the
	   page, so the gradient paints above the photo again (under the
	   overlays, which are z-index 2). Clicks pass through (pointer-events). */
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 40%);
	pointer-events: none;
}
.ikosoffers-bookby {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	text-align: right;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	line-height: 1.3;
}
.ikosoffers-bookby-label {
	display: block;
	font-size: 13px;
	font-weight: 400;
	opacity: 0.95;
}
.ikosoffers-bookby-date {
	display: block;
	font-size: 16px;
	font-weight: 700;
}
.ikosoffers-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #1a1a1a;
}
.ikosoffers-badge svg,
.ikosoffers-badge img {
	width: 16px;
	height: 16px;
	object-fit: contain;
}
.ikosoffers-badge-tooltip {
	display: none;
}
.ikosoffers-badge--has-tooltip {
	cursor: pointer;
}
.ikosoffers-badge.ikosoffers-badge-open .ikosoffers-badge-tooltip {
	display: block;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 6;
	width: max-content;
	max-width: 220px;
	white-space: normal;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	background: #2b2b2b;
	color: #fff;
	padding: 10px 12px;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.ikosoffers-property-label {
	position: absolute;
	bottom: 12px;
	left: 14px;
	z-index: 2;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.ikosoffers-tag-label {
	position: absolute;
	bottom: 12px;
	right: 14px;
	z-index: 2;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	text-align: right;
}

/* Date range bar */
.ikosoffers-daterange {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #ede6d8;
	color: #4a4a4a;
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 10px 16px;
}
.ikosoffers-daterange-icon {
	display: inline-flex;
	width: 14px;
	height: 14px;
	flex: none;
	color: #4a4a4a;
}
.ikosoffers-daterange-icon svg,
.ikosoffers-daterange-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.ikosoffers-card--deluxe .ikosoffers-daterange {
	background: var(--ikosoffers-deluxe-color);
	color: #fff;
}
.ikosoffers-card--deluxe .ikosoffers-daterange-icon {
	color: #fff;
}
.ikosoffers-card--deluxe .ikosoffers-body {
	background: #F6F5F1;
}

/* An offer assigned BOTH Deluxe and Non-Deluxe intentionally does not get
   the .ikosoffers-card--deluxe modifier (see ikos-offers.php) since it's
   ambiguous which look it should default to — but while the Deluxe filter
   is actually in effect, it should still look Deluxe. ".ikosoffers-filtered-deluxe"
   is added to .ikosoffers-wrap when the Deluxe filter button is clicked (or
   simulated via ?deluxe=1 on load); "body.ikosoffers-deluxe-forced" is added
   site-wide by ?deluxe=1 even on pages with no filter UI to click. */
.ikosoffers-wrap.ikosoffers-filtered-deluxe:not(.ikosoffers-deluxe-btn-off) .ikosoffers-card:not(.ikosoffers-card--deluxe) .ikosoffers-book,
body.ikosoffers-deluxe-forced .ikosoffers-wrap:not(.ikosoffers-deluxe-btn-off) .ikosoffers-card:not(.ikosoffers-card--deluxe) .ikosoffers-book {
	background: var(--ikosoffers-deluxe-color);
	color: #fff;
}
.ikosoffers-filtered-deluxe .ikosoffers-card:not(.ikosoffers-card--deluxe) .ikosoffers-daterange,
body.ikosoffers-deluxe-forced .ikosoffers-card:not(.ikosoffers-card--deluxe) .ikosoffers-daterange {
	background: var(--ikosoffers-deluxe-color);
	color: #fff;
}
.ikosoffers-filtered-deluxe .ikosoffers-card:not(.ikosoffers-card--deluxe) .ikosoffers-daterange-icon,
body.ikosoffers-deluxe-forced .ikosoffers-card:not(.ikosoffers-card--deluxe) .ikosoffers-daterange-icon {
	color: #fff;
}
.ikosoffers-filtered-deluxe .ikosoffers-card:not(.ikosoffers-card--deluxe) .ikosoffers-body,
body.ikosoffers-deluxe-forced .ikosoffers-card:not(.ikosoffers-card--deluxe) .ikosoffers-body {
	background: #F6F5F1;
}

/* Body */
.ikosoffers-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}
.ikosoffers-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.25;
	color: #262626;
}

.ikosoffers-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.ikosoffers-checklist li {
	position: relative;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.4;
	color: #555;
}
.ikosoffers-checklist li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	font-style: normal;
	color: #8a7a55;
}
.ikosoffers-checklist-accent li {
	color: #9c824e;
	font-style: italic;
}

.ikosoffers-book,
.ikosoffers-book:hover,
.ikosoffers-book:focus,
.ikosoffers-book:visited,
.ikosoffers-book:active {
	text-decoration: none !important;
}
.ikosoffers-book {
	margin-top: auto;
	display: block;
	text-align: center;
	background: #f2ede2;
	color: #262626;
	text-transform: uppercase;
	letter-spacing: 0.1em; /* "10%" per spec — CSS letter-spacing takes a length, not a percent */
	font-size: 11px;
	line-height: 24px;
	padding: 7px 14px;
	border-radius: 2px;
	transition: background 0.15s ease, color 0.15s ease;
}
.ikosoffers-book:hover {
	background: #e6ddc8;
	color: #262626;
}
.ikosoffers-wrap:not(.ikosoffers-deluxe-btn-off) .ikosoffers-card--deluxe .ikosoffers-book {
	background: var(--ikosoffers-deluxe-color);
	color: #fff;
}
.ikosoffers-wrap:not(.ikosoffers-deluxe-btn-off) .ikosoffers-card--deluxe .ikosoffers-book:hover {
	filter: brightness(0.92);
}

/* Tooltip term: Display Title above the Book Now button, with the
   Description as a hover tooltip (desktop) or tap-to-expand (touch). */
.ikosoffers-tooltip-trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	line-height: 1;
	color: #7a7a7a;
	cursor: default;
}
.ikosoffers-tooltip-icon-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ikosoffers-tooltip-icon {
	display: inline-flex;
	width: 13px;
	height: 13px;
	flex: none;
	color: #7a7a7a;
}
.ikosoffers-tooltip-icon svg,
.ikosoffers-tooltip-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.ikosoffers-tooltip-content {
	display: none;
}

/* 1024px and below: stack the icon+label row above the expanded content
   instead of squeezing both into the same row (icon-label and content are
   separate children of the trigger now, so this only affects that one). */
@media (max-width: 1024px) {
	.ikosoffers-tooltip-trigger {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Non-touch: float a small bubble above the trigger on hover/focus.
   min-width matches the 1024px breakpoint above and in frontend.js, so a
   resized-narrow desktop browser gets the tap-to-expand behavior only,
   never both at once. */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
	.ikosoffers-tooltip-trigger:hover .ikosoffers-tooltip-content,
	.ikosoffers-tooltip-trigger:focus-visible .ikosoffers-tooltip-content {
		display: block;
		position: absolute;
		bottom: calc(100% + 8px);
		left: 0;
		z-index: 5;
		width: max-content;
		max-width: 240px;
		background: #2b2b2b;
		color: #fff;
		font-size: 12px;
		line-height: 1.5;
		padding: 10px 12px;
		border-radius: 6px;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
	}
}

/* Touch: JS toggles this class on tap; the description expands in the
   normal document flow instead of floating, in a small minimal box so it
   still reads as distinct from the surrounding card text. */
.ikosoffers-tooltip-trigger.ikosoffers-tooltip-open .ikosoffers-tooltip-content {
	display: block;
	position: static;
	margin-top: 6px;
	max-width: none;
	background: #f7f5f0;
	border: 1px solid #e6e1d6;
	color: #565656;
	font-size: 12px;
	line-height: 1.5;
	padding: 10px 12px;
	border-radius: 6px;
	box-shadow: none;
}
.ikosoffers-tooltip-content p {
	margin: 0;
}
.ikosoffers-tooltip-close {
	display: none;
}
.ikosoffers-tooltip-trigger.ikosoffers-tooltip-open .ikosoffers-tooltip-close {
	display: inline-block;
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #8a8a8a;
	cursor: pointer;
}
.ikosoffers-tooltip-trigger.ikosoffers-tooltip-open .ikosoffers-tooltip-close:hover {
	color: #4a4a4a;
	text-decoration: underline;
}

.ikosoffers-empty {
	flex: 1 0 100%;
	color: #777;
}

.ikosoffers-no-results {
	display: none;
	margin: 16px 4px 0;
	color: #777;
	font-size: 14px;
}
.ikosoffers-carousel.ikosoffers-filtered-empty .ikosoffers-no-results {
	display: block;
}

/* Resort quick-links bar [ikosoffers_resort_bar]: every property link is
   hidden by default. An [ikosoffers] grid elsewhere on the page reveals its
   own Property's link (or every link, if that grid isn't scoped to one
   Property) via a small inline <style> override — see shortcode_offers()
   in ikos-offers.php. Scoped to .resort-sticky-bar (rather than matching
   "control-" anywhere on the page) so this can't hide unrelated elements
   elsewhere on the site that happen to share that naming pattern. */
.resort-sticky-bar [class*="control-"] {
	display: none;
}
