/**
 * Destination nudge bar — slim slide-down bar of destination cards on blog
 * posts. Sits beneath the fixed header (.top_fixed, z-index 11, ~105px tall)
 * and tucks under it when hidden. Revealed by js/destination-toast.js.
 */

.dest-nudge {
	position: fixed;
	top: 103px;
	left: 0;
	right: 0;
	z-index: 10; /* below .top_fixed (11) so it tucks under the header */
	background: #fff;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
	transform: translateY(-100%);
	transition: transform 0.4s ease;
	will-change: transform;
}

.dest-nudge.is-visible {
	transform: translateY(0);
}

.dest-nudge__inner {
	position: relative;
	display: flex;
	justify-content: space-between;
	height: 240px;
	padding: 44px 16px 34px; /* right padding leaves room for the close button */
}

.dest-nudge__heading {
	font-family: 'Playfair Display', serif;
	font-size: 20px;
	width: 200px;
	padding-left: 20px;
}

.dest-nudge__slider {
	background-color: unset !important;
	height: 150px;

	/* The sitewide .slick-slider rule forces position:absolute + width:100%;
	   with our left offset that overflows the container and pushes the end arrow
	   off-screen. Pin both edges instead and let width compute from them —
	   cross-browser, unlike the old -webkit-fill-available cap. */
	left: 200px;
	right: 0;
	width: auto;
	top: 44px;

	display: flex;
}

/* Once Slick takes over it manages its own track layout — flex here throws off
   its width/arrow-state maths, so hand it back to block. */
.dest-nudge__slider.slick-initialized {
	display: block;
}

.dest-nudge__close {
	position: absolute;
	top: 10px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #666;
	cursor: pointer;
	line-height: 0;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.96px;
}

.dest-nudge__close:hover {
	color:#3a3a3a;
}

/* Compact override of the site's 230px destination card for the slim bar.
   No fixed width: Slick sizes each slide to listWidth/slidesToShow, so the
   track matches the cards exactly and the last card sits flush. Forcing a width
   here desyncs the two and leaves dead scroll space after the last card. */
.dest-nudge .destination-card {
	padding: 0 8px;
	position: relative; /* anchor the injected .wishlist-heart to the card */
	height: fit-content;
}

.dest-nudge .single_destination_card {
	height: 150px;
	margin: 0;

	border-radius: 8px;
	box-shadow: unset;
}

/* Dark gradient overlay. The card image is an <img>, so the shading lives on
   the ::after layer, which paints above the image but below the title. */
.dest-nudge .single_destination_card:after {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.40) 73.57%);
	border-radius: 8px;
	transition: background 0.3s ease;
}

/* Deepen the shading on hover so the card gives clear feedback. */
.dest-nudge .destination-card:hover .single_destination_card:after {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.65) 90%);
}

.dest-nudge .single_destination_card .dest {
	height: 150px;
	border-radius: 8px;
	background-color: unset;
	box-shadow: unset;
}

.dest-nudge .single_destination_card p {
	font-size: 16px;
	line-height: normal;
	margin-bottom: 8px;
	padding-left: 10px;
	padding-right: 10px;
	text-align: left;
}

/* Country label sits under the destination name in smaller, muted text. */
.dest-nudge .single_destination_card .dest-nudge__country {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
	line-height: normal;
	opacity: 0.85;
}

/* Smaller wishlist heart for the compact cards (site default is 25px). */
.dest-nudge .destination-card .wishlist-heart svg {
	--_size: 16px;
	width: 16px;
	height: 16px;
}

/* Arrows overlay the card row as translucent circles at each end
   (mirrors #tour-gallery-slider). Absolute positioning also centres them. */
.dest-nudge .dest-nudge__slider .arrow-prev,
.dest-nudge .dest-nudge__slider .arrow-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex !important; /* beat Slick's inline display so the icon stays centred */
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.9);
	cursor: pointer;
}

.dest-nudge .dest-nudge__slider .arrow-prev {
	left: 10px;
}
.dest-nudge .dest-nudge__slider .arrow-next {
	right: 13px;
}

/* At the first/last slide (infinite:false) Slick adds .slick-disabled — hide
   the dead-end arrow entirely; Slick removes the class as you scroll back.
   !important is required to beat the inline display Slick writes on the arrow. */
.dest-nudge .dest-nudge__slider .slick-arrow.slick-disabled {
	display: none !important;
}

/* Red text link beneath the heading, out to the destinations listing. */
.dest-nudge__view-all {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
	padding-left: 20px;
	color: #b83426;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	text-transform: uppercase;
}

.dest-nudge__view-all .dest-nudge__chevron {
	flex-shrink: 0;
}

/* Desktop shows "View all"; mobile expands it to "View all destinations". */
.dest-nudge__view-all-more {
	display: none;
}

.dest-nudge__view-all:hover,
.dest-nudge__view-all:focus {
	text-decoration: underline;
	color: #b83426;
}
@media (max-width: 991px) {
	.dest-nudge {
		top: 65px;
	}
	.dest-nudge__inner {
		height: 240px;
	}
	/* Full 150px card height (not the old 120px) so a two-line destination title
	   clears the vertically-centred arrows. */
	.dest-nudge__slider,
	.dest-nudge .single_destination_card,
	.dest-nudge .single_destination_card .dest {
		height: 150px;
	}
	.dest-nudge .destination-card {
		padding: 0 6px;
	}
	
}
@media (max-width: 600px) {
	/* Stack: heading/intro on top, slider below, both full width. Taller than the
	   tablet row layout to fit the stacked heading + 150px slider + view-all link. */
	.dest-nudge__inner {
		flex-direction: column;
		height: 260px;
		padding: 14px 14px 18px;
	}
	.dest-nudge__intro,
	.dest-nudge__slider {
		width: 100%;
		max-width: 100%;
	}
	.dest-nudge__heading {
		width: 100%;
		padding-left: 0;
	}
	.dest-nudge .single_destination_card p {
		font-size: 14px;
	}
	/* The slider is absolutely positioned, so flow order can't place the link
	   below the cards — position the same link into the gap beneath them,
	   centred. No duplicate markup: it's the desktop element, repositioned. */
	.dest-nudge__view-all {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 10px;
		justify-content: center;
		margin-top: 0;
		margin-bottom: 7px;
		padding-left: 0;
		font-size: 12px;
	}
	.dest-nudge__view-all-more {
		display: inline;
	}
	.dest-nudge__slider {
		margin-top: 8px;
		left: 0;
	}
	.dest-nudge .dest-nudge__slider .arrow-next {
		right: 20px;
	}
	.dest-nudge .dest-nudge__slider .arrow-prev {
		left: 18px;
	}
	/* Keep every mobile card the same width. Slick measures the FIRST slide's
	   box once and applies that width to all slides, so an asymmetric first card
	   makes every other card ~4px narrow — the mis-centre then accumulates toward
	   the end of the track. All cards inherit the uniform 6px padding above. */
}
@media (prefers-reduced-motion: reduce) {
	.dest-nudge {
		transition: none;
	}
}
@media (max-width: 325px) {
	.dest-nudge__close span { display: none; }
}
