.pt-waavo-offers {
	display: grid;
	gap: 1.5rem;
	margin: 1.5rem 0;
}
.pt-waavo-offers--grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pt-waavo-offers--list { grid-template-columns: 1fr; }
.pt-waavo-offers--cols-1 { grid-template-columns: 1fr; }
.pt-waavo-offers--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-waavo-offers--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pt-waavo-offers--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pt-waavo-offers--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pt-waavo-offers--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pt-waavo-offers--cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pt-waavo-offers--cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }

@media (max-width: 1400px) {
	.pt-waavo-offers--cols-7,
	.pt-waavo-offers--cols-8 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
	.pt-waavo-offers--cols-5,
	.pt-waavo-offers--cols-6,
	.pt-waavo-offers--cols-7,
	.pt-waavo-offers--cols-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.pt-waavo-offers--cols-4,
	.pt-waavo-offers--cols-5,
	.pt-waavo-offers--cols-6,
	.pt-waavo-offers--cols-7,
	.pt-waavo-offers--cols-8 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.pt-waavo-offers--cols-2,
	.pt-waavo-offers--cols-3,
	.pt-waavo-offers--cols-4,
	.pt-waavo-offers--cols-5,
	.pt-waavo-offers--cols-6,
	.pt-waavo-offers--cols-7,
	.pt-waavo-offers--cols-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.pt-waavo-offers--cols-2,
	.pt-waavo-offers--cols-3,
	.pt-waavo-offers--cols-4,
	.pt-waavo-offers--cols-5,
	.pt-waavo-offers--cols-6,
	.pt-waavo-offers--cols-7,
	.pt-waavo-offers--cols-8 { grid-template-columns: 1fr; }
}

/* Full-width grid layout for [primetour_offers_grid] — breaks out of theme content width. */
.pt-waavo-offers-wrap--fullgrid {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	padding: 1rem 2vw;
	box-sizing: border-box;
}
.pt-waavo-offers-wrap--fullgrid .pt-waavo-offers {
	max-width: none;
	gap: 1rem;
}
/* Dense full-width grid: slightly smaller serif title. */
.pt-waavo-offers-wrap--fullgrid .pt-waavo-offer__title { font-size: 1.15rem !important; line-height: 1.2; }

/* ── Offer card (primetour brand design) ──────────────────────────────────
   The card itself is transparent — the visual structure comes from the rounded
   image + the floating white price-box (both styled inline in Renderer.php).
   These rules only add behaviour (hover lift) and layout for the list variant,
   and explicitly neutralise the old white-box / orange-button styling so the
   inline design wins regardless of theme CSS. */
.pt-waavo-offer {
	display: flex;
	flex-direction: column;
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
	transition: transform .18s ease;
}
.pt-waavo-offer:hover { transform: translateY(-3px); }
.pt-waavo-offer:hover .pt-waavo-offer__media { box-shadow: 0 16px 36px rgba(0,0,0,.18); }

/* List layout: image left, content right. */
.pt-waavo-offers--list .pt-waavo-offer { flex-direction: row; gap: 1.25rem; align-items: flex-start; }
.pt-waavo-offers--list .pt-waavo-offer__media { flex: 0 0 280px; }
.pt-waavo-offers--list .pt-waavo-offer__body { justify-content: center; }

.pt-waavo-offer__media {
	display: block;
	border-radius: 18px;
	overflow: hidden;
	transition: box-shadow .18s ease;
}
.pt-waavo-offer__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pt-waavo-offer__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}
.pt-waavo-offer__title a:hover { text-decoration: underline; }

/* CTA is an inline gold underline link (styled inline). Neutralise any leftover
   button styling from older versions, and — importantly — suppress the theme's
   default link-hover decoration (a dark-orange underline) so only our own gold
   bottom-border shows. !important is required to beat aggressive theme a:hover rules. */
.pt-waavo-offer__button,
.pt-waavo-offer__button:link,
.pt-waavo-offer__button:visited,
.pt-waavo-offer__button:hover,
.pt-waavo-offer__button:focus,
.pt-waavo-offer__button:active {
	background: transparent !important;
	box-shadow: none !important;
	text-decoration: none !important;
	color: #c79a5b !important;
	border-top: 0;
	border-left: 0;
	border-right: 0;
	border-radius: 0;
}
.pt-waavo-offer__button:hover,
.pt-waavo-offer__button:focus { opacity: .7; }

.pt-waavo-offers__more {
	text-align: center;
	margin: 1.5rem 0;
}
.pt-waavo-offers__more[hidden] { display: none; }
.pt-waavo-offers__more-btn {
	display: inline-block;
	padding: .75rem 1.5rem;
	background: #fff;
	color: #111827;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	font-size: 1rem;
}
.pt-waavo-offers__more-btn:hover,
.pt-waavo-offers__more-btn:focus {
	background: #f9fafb;
	border-color: #9ca3af;
}
.pt-waavo-offers__more-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}
.pt-waavo-offers__more-status {
	display: inline-block;
	margin-left: .75em;
	color: #6b7280;
}

/* ───── Carousel ───── */
.pt-waavo-carousel {
	position: relative;
	margin: 1.5rem 0;
}
.pt-waavo-offers--carousel {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding: 4px 4px 16px;
	margin: 0;
	grid-template-columns: none;
}
.pt-waavo-offers--carousel::-webkit-scrollbar { height: 8px; }
.pt-waavo-offers--carousel::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 4px; }
.pt-waavo-offers--carousel::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.pt-waavo-offers--carousel::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

.pt-waavo-offers--carousel .pt-waavo-offer {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: calc((100% - 4rem) / 5);
	min-width: 220px;
	max-width: 320px;
}
.pt-waavo-offers--visible-1 .pt-waavo-offer { width: 100%; }
.pt-waavo-offers--visible-2 .pt-waavo-offer { width: calc((100% - 1rem) / 2); }
.pt-waavo-offers--visible-3 .pt-waavo-offer { width: calc((100% - 2rem) / 3); }
.pt-waavo-offers--visible-4 .pt-waavo-offer { width: calc((100% - 3rem) / 4); }
.pt-waavo-offers--visible-5 .pt-waavo-offer { width: calc((100% - 4rem) / 5); }
.pt-waavo-offers--visible-6 .pt-waavo-offer { width: calc((100% - 5rem) / 6); }

@media (max-width: 1100px) {
	.pt-waavo-offers--carousel .pt-waavo-offer { width: calc((100% - 3rem) / 4); }
}
@media (max-width: 900px) {
	.pt-waavo-offers--carousel .pt-waavo-offer { width: calc((100% - 2rem) / 3); }
}
@media (max-width: 700px) {
	.pt-waavo-offers--carousel .pt-waavo-offer { width: calc((100% - 1rem) / 2); }
}
@media (max-width: 500px) {
	.pt-waavo-offers--carousel .pt-waavo-offer { width: 85%; }
}

/* Nav buttons */
.pt-waavo-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #d1d5db;
	background: rgba(255, 255, 255, 0.95);
	color: #111827;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	transition: background .15s, transform .15s;
	padding: 0;
}
.pt-waavo-carousel__nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.pt-waavo-carousel__nav:focus { outline: 2px solid #2563eb; outline-offset: 2px; }
.pt-waavo-carousel__nav:disabled { opacity: .35; cursor: default; transform: translateY(-50%); }
.pt-waavo-carousel__nav--prev { left: -8px; }
.pt-waavo-carousel__nav--next { right: -8px; }

@media (max-width: 700px) {
	.pt-waavo-carousel__nav { display: none; } /* on touch devices, native scroll is enough */
}

/* Image polish for all templates */
.pt-waavo-offer__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #f3f4f6 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="%23d1d5db" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>') no-repeat center / 48px;
	overflow: hidden;
}
.pt-waavo-offer__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
