.nxtads-slot { display: none; }
.nxtads-slot.is-filled { display: block; width: 100%; text-align: center; margin: 16px auto; line-height: 0; clear: both; }
.nxtads-slot--header.is-filled { margin: 10px auto; }
/* (the old text label above ads was replaced by the bottom-left pill) */
/* Creatives always span the full width of their spot; height follows the image's proportions */
.nxtads-link { display: block; width: 100%; }
.nxtads-link img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; border: 0; }

/* Several ads in one spot: cross-fade, the box eases to each creative's height */
.nxtads-rot { position: relative; }
.is-rotating .nxtads-rot { transition: height .45s ease; }
.is-rotating .nxtads-link {
	position: absolute; top: 0; left: 0; right: 0; display: block;
	/* the outgoing ad stays put underneath until the new one has fully faded in — no flash */
	opacity: 0; visibility: hidden; transition: opacity 0s linear .6s, visibility 0s linear .6s;
}
.is-rotating .nxtads-link.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; z-index: 1; }
.nxtads-widget:empty { display: none; }

/* ---------- Top drawer (full width, above the site header) ---------- */
.nxtads-drawer {
	position: relative; z-index: 1001; width: 100%;
	height: 0; overflow: hidden; background: transparent;
	transition: height .55s cubic-bezier(.22, .8, .24, 1);
}
.nxtads-drawer:empty { display: none; }
/* Curtain close: creative stays fixed, the header below rises over it */
.nxtads-drawer.is-closing { transition: height .75s cubic-bezier(.65, 0, .35, 1); }
.nxtads-curtain .nxtads-drawer + * { box-shadow: 0 -14px 30px rgba(0, 0, 0, .3); }
.nxtads-drawer__inner {
	position: absolute; top: 0; right: 0; bottom: 0; left: 0;
	transform: translateY(-24px); opacity: 0;
	transition: transform .55s cubic-bezier(.22, .8, .24, 1), opacity .4s ease;
}
.nxtads-drawer.is-open .nxtads-drawer__inner { transform: none; opacity: 1; }
.nxtads-drawer.is-closing .nxtads-drawer__inner { transform: none; opacity: 1; bottom: auto; transition: none; }

.nxtads-drawer__track { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; background: #0d0d12; }
.nxtads-drawer__slide {
	position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; overflow: hidden;
	/* the outgoing ad stays put underneath until the new one has fully faded in — no flash */
	opacity: 0; visibility: hidden; transition: opacity 0s linear .6s, visibility 0s linear .6s;
	-webkit-tap-highlight-color: transparent;
}
.nxtads-drawer__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .6s ease, visibility 0s; }
.nxtads-drawer__slide img {
	position: relative; display: block; width: 100%; height: 100%;
	object-fit: cover; border: 0; max-width: none; user-select: none;
}
/* Image taller than the cap: show it whole, fill the sides with a blurred copy */
.nxtads-drawer__slide.is-letterbox img { object-fit: contain; }
.nxtads-drawer__bg { display: none; }
.nxtads-drawer__slide.is-letterbox .nxtads-drawer__bg {
	display: block; position: absolute; top: -30px; right: -30px; bottom: -30px; left: -30px;
	background: center / cover no-repeat; filter: blur(24px) brightness(.7);
}

/* Bottom-left "Ad" pill, bottom-right close */
.nxtads-drawer__pill {
	position: absolute; z-index: 3; left: 12px; bottom: 10px;
	padding: 3px 10px; border-radius: 999px;
	background: rgba(0, 0, 0, .6); color: #fff;
	font: 600 11px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: .04em;
	pointer-events: none; backdrop-filter: blur(4px);
}
.nxtads-drawer__close {
	position: absolute; z-index: 4; right: 10px; bottom: 8px;
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer;
	backdrop-filter: blur(4px); transition: background .15s ease, transform .15s ease;
}
.nxtads-drawer__close:hover, .nxtads-drawer__close:focus-visible { background: rgba(0, 0, 0, .85); transform: scale(1.06); }

/* Auto-close countdown inside the close button; hover shows the ✕ */
.nxtads-drawer__ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.nxtads-drawer__ring circle { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 2.5; }
.nxtads-drawer__ring .nxtads-drawer__ring-fill { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.nxtads-drawer__count { position: relative; font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums; }
.nxtads-drawer__close.has-countdown .nxtads-drawer__x { position: absolute; opacity: 0; transition: opacity .15s ease; }
.nxtads-drawer__close.has-countdown:hover .nxtads-drawer__x, .nxtads-drawer__close.has-countdown:focus-visible .nxtads-drawer__x { opacity: 1; }
.nxtads-drawer__close.has-countdown:hover .nxtads-drawer__count, .nxtads-drawer__close.has-countdown:focus-visible .nxtads-drawer__count { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
	.nxtads-drawer, .nxtads-drawer__inner, .nxtads-drawer__slide, .is-rotating .nxtads-link { transition: none; }
}

/* "Ad" pill, bottom-left on every ad (same look as the top drawer) */
.nxtads-pill {
	position: absolute; z-index: 3; left: 8px; bottom: 8px;
	padding: 2px 9px; border-radius: 999px;
	background: rgba(0, 0, 0, .6); color: #fff;
	font: 600 11px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: .04em;
	pointer-events: none; backdrop-filter: blur(4px);
}

/* ---------- Empty spot: "Your ad here" ---------- */
.nxtads-ph {
	--ph-brand: #4f53a3;
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%;
	width: 100%; min-height: 110px; padding: 5% 6%; box-sizing: border-box; overflow: hidden; isolation: isolate;
	container-type: inline-size;
	border: 1.5px dashed rgba(79, 83, 163, .45); border-radius: 12px;
	background: linear-gradient(135deg, #f4f4fc 0%, #f9f3fa 55%, #f2f6fc 100%);
	color: var(--ph-brand) !important; text-decoration: none !important; text-align: center; line-height: 1.15;
	transition: border-color .25s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* soft moving sheen so the empty spot catches the eye */
.nxtads-ph::before {
	content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 50%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
	transform: skewX(-18deg); animation: nxtads-sheen 5.5s ease-in-out infinite;
}
/* faint diagonal stripes like an empty billboard */
.nxtads-ph::after {
	content: ""; position: absolute; z-index: -2; top: 0; right: 0; bottom: 0; left: 0;
	background: repeating-linear-gradient(135deg, rgba(79, 83, 163, .045) 0 12px, transparent 12px 24px);
}
@keyframes nxtads-sheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }
a.nxtads-ph:hover { border-color: var(--ph-brand); border-style: solid; }

.nxtads-ph__body { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nxtads-ph__text { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nxtads-ph__icon {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 44px; height: 44px; border-radius: 50%;
	background: #fff; color: var(--ph-brand); box-shadow: 0 4px 14px rgba(79, 83, 163, .18);
}
.nxtads-ph__eyebrow {
	font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ec4899;
}
.nxtads-ph__title {
	font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05;
	font-size: 22px; font-size: clamp(18px, 7cqw, 52px);
	background: linear-gradient(90deg, #4f53a3, #8b5cf6 60%, #ec4899);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	opacity: .55;
}
.nxtads-ph__dims { font-size: 12px; font-size: clamp(11px, 1.4cqw, 14px); font-weight: 600; color: #3d4086; opacity: .65; }
.nxtads-ph__cta {
	display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
	padding: 9px 18px; border-radius: 999px;
	background: var(--ph-brand); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap;
	box-shadow: 0 6px 16px rgba(79, 83, 163, .3);
	transition: background .2s ease, gap .2s ease;
}
a.nxtads-ph:hover .nxtads-ph__cta { background: #3d4086; gap: 10px; }

/* Banner-shaped spots: icon + text on the left, button on the right */
.nxtads-ph--wide { flex-direction: row; justify-content: space-between; gap: 24px; padding: 0 4%; text-align: left; }
.nxtads-ph--wide .nxtads-ph__body { flex-direction: row; gap: 16px; min-width: 0; }
.nxtads-ph--wide .nxtads-ph__text { align-items: flex-start; }
.nxtads-ph--wide .nxtads-ph__title { font-size: clamp(18px, 4.2cqw, 48px); }
.nxtads-ph--wide .nxtads-ph__icon { width: 52px; height: 52px; }

/* Small boxes: keep it to the essentials */
@container (max-width: 520px) {
	.nxtads-ph--wide { padding: 0 4%; gap: 12px; }
	.nxtads-ph--wide .nxtads-ph__icon, .nxtads-ph--wide .nxtads-ph__eyebrow { display: none; }
	.nxtads-ph--wide .nxtads-ph__dims { display: none; }
	.nxtads-ph__cta { padding: 7px 12px; font-size: 12.5px; }
}
@container (max-width: 300px) {
	.nxtads-ph__icon, .nxtads-ph__dims, .nxtads-ph__eyebrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nxtads-ph::before { animation: none; display: none; } }

/* ---------- Booking page [nxtads_booking] ---------- */
.nxtads-book { --b: #4f53a3; max-width: 860px; margin: 0 auto 40px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #15151a; }
.nxtads-book * { box-sizing: border-box; }
.nxtads-book__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nxtads-book__step { border: 1px solid #e6e6ef; border-radius: 14px; padding: 18px 20px 20px; margin: 0 0 18px; background: #fff; min-width: 0; }
.nxtads-book__step legend { display: flex; align-items: center; gap: 10px; padding: 0 6px; margin: 0; font-size: 17px; font-weight: 700; border: 0; width: auto; }
.nxtads-book__step legend span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--b); color: #fff; font-size: 13px; }
.nxtads-book__spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.nxtads-book__spot { margin: 0; cursor: pointer; }
.nxtads-book__spot input { position: absolute; opacity: 0; pointer-events: none; }
.nxtads-book__spot-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px; border: 2px solid #e6e6ef; border-radius: 12px; transition: border-color .15s ease, background .15s ease; }
.nxtads-book__spot input:checked + .nxtads-book__spot-card { border-color: var(--b); background: #f3f3fb; }
.nxtads-book__spot input:focus-visible + .nxtads-book__spot-card { outline: 3px solid rgba(79, 83, 163, .35); outline-offset: 2px; }
.nxtads-book__shape { display: block; width: 100%; max-height: 54px; border-radius: 4px; background: repeating-linear-gradient(135deg, #e3e3f1 0 6px, #ececf6 6px 12px); margin-bottom: 4px; }
.nxtads-book__spot strong { font-size: 14.5px; }
.nxtads-book__spot small { font-size: 12px; color: #6b6f76; line-height: 1.35; }
.nxtads-book__files { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 10px; }
.nxtads-book__drop { position: relative; display: block; margin: 0; cursor: pointer; }
.nxtads-book__drop input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.nxtads-book__drop-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 170px; height: 100%; padding: 14px; text-align: center; border: 2px dashed #c9c9dc; border-radius: 12px; background: #fafafe; transition: border-color .15s ease; }
.nxtads-book__drop:hover .nxtads-book__drop-inner, .nxtads-book__drop input:focus-visible + .nxtads-book__drop-inner { border-color: var(--b); }
.nxtads-book__drop.is-ok .nxtads-book__drop-inner { border-style: solid; border-color: #22a35a; }
.nxtads-book__drop.is-warn .nxtads-book__drop-inner { border-style: solid; border-color: #e0a100; }
.nxtads-book__drop em { font-style: normal; color: #8b8f96; font-weight: 500; }
.nxtads-book__hint { font-size: 12px; color: #6b6f76; }
.nxtads-book__preview img { display: block; max-width: 100%; max-height: 120px; border-radius: 6px; margin: 4px auto; }
.nxtads-book__pick { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #ececf6; color: var(--b); font-size: 13px; font-weight: 700; }
.nxtads-book__drop.has-file .nxtads-book__pick { background: transparent; text-decoration: underline; }
.nxtads-book__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.nxtads-book__field { display: block; margin: 0; }
.nxtads-book__field > span:first-child { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.nxtads-book__field em { color: #d63638; font-style: normal; }
.nxtads-book__field input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #d4d4e2; border-radius: 10px; font-size: 16px; background: #fff; }
.nxtads-book__field input:focus { outline: none; border-color: var(--b); box-shadow: 0 0 0 3px rgba(79, 83, 163, .18); }
.nxtads-book__phone { display: flex; align-items: stretch; }
.nxtads-book__phone b { display: flex; align-items: center; padding: 0 12px; border: 1px solid #d4d4e2; border-right: 0; border-radius: 10px 0 0 10px; background: #f4f4f8; font-weight: 600; }
.nxtads-book__phone input { border-radius: 0 10px 10px 0; }
.nxtads-book__btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 0; border-radius: 12px; background: var(--b); color: #fff !important; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none !important; box-shadow: 0 8px 20px rgba(79, 83, 163, .3); }
.nxtads-book__btn:hover { background: #3d4086; }
.nxtads-book__btn:disabled { opacity: .7; cursor: wait; }
.nxtads-book__note { font-size: 13px; color: #6b6f76; margin: 10px 0 0; text-align: center; }
.nxtads-book__errors { border: 1px solid #f1b0b0; background: #fff3f3; color: #8a1f17; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.nxtads-book__errors p { margin: 4px 0; }
.nxtads-book--done { text-align: center; padding: 40px 20px; border: 1px solid #e6e6ef; border-radius: 16px; }
.nxtads-book--done .nxtads-book__btn { width: auto; padding: 0 28px; margin-top: 10px; }
.nxtads-book__check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #22a35a; color: #fff; font-size: 34px; line-height: 64px; }
@media (max-width: 640px) {
	.nxtads-book__files, .nxtads-book__row { grid-template-columns: 1fr; }
	.nxtads-book__spots { grid-template-columns: 1fr 1fr; }
	.nxtads-book__step { padding: 14px; }
}

/* Booking page: centred title, referral field */
.nxtads-booking-page .page-item-title-single, .nxtads-booking-page.page .page-item-title-single .page-title { text-align: center; }
.nxtads-book__field--ref { margin-top: 12px; max-width: 50%; }
.nxtads-book__field--ref small { font-weight: 400; color: #8b8f96; }
.nxtads-book__field--ref input { text-transform: uppercase; letter-spacing: .06em; }
.nxtads-book__field--ref input::placeholder { text-transform: none; letter-spacing: 0; }
@media (max-width: 640px) { .nxtads-book__field--ref { max-width: none; } }

/* Wrong-shaped creative: show it whole inside the spot's max height, blurred copy behind */
.nxtads-link { position: relative; overflow: hidden; }
.nxtads-link__bg { display: none; }
.nxtads-link.is-capped img { width: 100%; object-fit: contain; position: relative; z-index: 1; }
.nxtads-link.is-capped .nxtads-link__bg {
	display: block; position: absolute; top: -30px; right: -30px; bottom: -30px; left: -30px;
	background: center / cover no-repeat; filter: blur(24px) brightness(.75);
}
