/* ===== Favorite (heart) button ===== */
.ctp_item {
	position: relative;
}

.ctp_favorite_btn {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 3;
	transition: transform 200ms;
}

.ctp_favorite_btn:hover {
	transform: scale(1.1);
}

.ctp_favorite_btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #3f444b;
	stroke-width: 1.8;
	transition: fill 150ms, stroke 150ms;
}

.ctp_favorite_btn.is-favorited svg {
	fill: #fb2056;
	stroke: #fb2056;
}

/* Hover tooltip - slides open to the left of the heart, telling the visitor what it does */
.ctp_favorite_tooltip {
	position: absolute;
	top: 50%;
	right: 100%;
	transform: translateY(-50%);
	margin-right: 0;
	max-width: 0;
	padding: 8px 0;
	overflow: hidden;
	white-space: nowrap;
	background-color: #151515;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	border-radius: 20px;
	opacity: 0;
	pointer-events: none;
	transition: max-width 250ms ease, opacity 200ms ease, padding 250ms ease, margin-right 250ms ease;
}

.ctp_favorite_btn:hover .ctp_favorite_tooltip,
.ctp_favorite_btn:focus-visible .ctp_favorite_tooltip {
	max-width: 220px;
	padding: 8px 14px;
	margin-right: 8px;
	opacity: 1;
}

/* Fixed, page-level heart button shown on individual tour pages - stays pinned
   top-right of the viewport on both desktop and mobile. */
.ctp_favorite_btn_page {
	position: fixed;
	top: 100px;
	right: 20px;
	z-index: 999;
	box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}

/* On mobile, a fixed 100px-from-top position sits too close to the site's
   mobile menu button - move it to the vertical middle of the screen instead,
   with the favorites tray docked just below it (see further down). */
@media only screen and (max-width: 767px) {
	.ctp_favorite_btn_page {
		top: 50%;
		right: 15px;
		transform: translateY(-50%);
	}
}

/* ===== Limit message toast ===== */
.tour_favorites_limit_msg {
	position: fixed;
	left: 50%;
	bottom: 30px;
	transform: translateX(-50%) translateY(10px);
	background-color: #151515;
	color: #fff;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 14px;
	z-index: 100000;
	opacity: 0;
	transition: opacity 250ms, transform 250ms;
	max-width: 90%;
	text-align: center;
}

.tour_favorites_limit_msg.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ===== Floating tray, bottom-right ===== */
.tour_favorites_tray {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 998;
	display: none;
	align-items: center;
	gap: 6px;
	background-color: #fff;
	border-radius: 30px;
	padding: 6px 14px 6px 6px;
	box-shadow: 0 4px 16px rgb(0 0 0 / 18%);
	cursor: pointer;
}

.tour_favorites_tray.has-items {
	display: flex;
}

.tour_favorites_tray_thumbs {
	display: flex;
}

.tour_favorites_tray_thumb {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #eee;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #e0e0e0;
	margin-left: -12px;
}

.tour_favorites_tray_thumb:first-child {
	margin-left: 0;
}

.tour_favorites_tray_count {
	background-color: #fb2056;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
}

@media only screen and (max-width: 767px) {
	.tour_favorites_tray {
		right: 15px;
		bottom: auto;
		top: calc(50% + 30px);
		padding: 5px 10px 5px 5px;
	}
	.tour_favorites_tray_thumb {
		width: 34px;
		height: 34px;
	}
}

/* ===== Comparison overlay ===== */
.tour_compare_overlay {
	display: flex;
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.35);
	z-index: 99999;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.tour_compare_overlay.show {
	opacity: 1;
	visibility: visible;
	transition: opacity 200ms ease, visibility 0s linear 0s;
}

.tour_compare_overlay_inner {
	background-color: #fff;
	border-radius: 16px;
	padding: 24px;
	width: 100%;
	max-width: 900px;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 10px 40px rgb(0 0 0 / 25%);
	transform: translateY(10px) scale(0.97);
	transform-origin: bottom right;
	transition: transform 200ms ease;
}

.tour_compare_overlay.show .tour_compare_overlay_inner {
	transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.tour_compare_overlay,
	.tour_compare_overlay_inner {
		transition-duration: 0ms;
	}
}

.tour_compare_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 18px 0;
}

.tour_compare_overlay_inner h2 {
	margin: 0;
	font-size: 20px;
}

.tour_compare_header_actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.tour_compare_share_btn {
	font-size: 12px;
	font-weight: 600;
	color: #fb2056;
	background: none;
	border: 1px solid #fb2056;
	border-radius: 20px;
	padding: 7px 16px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 200ms, color 200ms;
}

.tour_compare_share_btn:hover {
	background-color: #fb2056;
	color: #fff;
}

.tour_compare_shared_banner {
	background-color: #fdeef1;
	color: #7a2338;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin: 0 0 18px 0;
}

.tour_compare_close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: #f1f1f1;
	color: #3f444b;
	cursor: pointer;
	transition: background-color 200ms, color 200ms;
}

.tour_compare_close svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	display: block;
}

.tour_compare_close:hover {
	background-color: #fb2056;
	color: #fff;
}

.tour_compare_party_size {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 32px;
	margin-bottom: 20px;
}

.tour_compare_star_group,
.tour_compare_pax_group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tour_compare_party_label {
	font-weight: 600;
	font-size: 13px;
	color: #3f444b;
}

.tour_compare_party_label strong {
	color: #fb2056;
}

/* Star rating - 5 stars shown, but only tiers 3★/4★ are real selectable values;
   clicking star 1-3 selects 3★, clicking star 4-5 selects 4★. */
.tour_compare_star_selector {
	display: flex;
	gap: 2px;
}

.tour_compare_star {
	width: 26px;
	height: 26px;
	padding: 0;
	border: none;
	background: none;
	font-size: 20px;
	line-height: 1;
	color: #d8d8d8;
	cursor: pointer;
	transition: color 150ms;
}

.tour_compare_star.filled {
	color: #fb2056;
}

.tour_compare_star:hover {
	color: #fb99b3;
}

/* Participant dots - fills up to the selected count out of 10 */
.tour_compare_pax_selector {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tour_compare_pax_dot {
	width: 14px;
	height: 14px;
	padding: 0;
	border: 2px solid #d8d8d8;
	border-radius: 50%;
	background-color: #fff;
	cursor: pointer;
	transition: background-color 150ms, border-color 150ms;
}

.tour_compare_pax_dot.filled {
	background-color: #fb2056;
	border-color: #fb2056;
}

.tour_compare_pax_dot:hover {
	border-color: #fb99b3;
}

.tour_compare_grid {
	display: grid;
	/* Max track width caps each card at 1/4 of the row (the largest number of
	   tours this grid ever holds), so 1-3 cards don't stretch to fill the row. */
	grid-template-columns: repeat(auto-fit, minmax(180px, 25%));
	gap: 16px;
}

.tour_compare_col {
	border: 1px solid #eeeeee;
	border-radius: 10px;
	padding: 12px;
	position: relative;
}

.tour_compare_image {
	display: block;
	height: 100px;
	border-radius: 8px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: #eee;
	margin-bottom: 8px;
	cursor: pointer;
}

/* Tours with no featured image fall back to the site logo - show it uncropped
   (contain, not cover) so the whole logo stays visible, same treatment as the
   search-result cards' .ctp_image_fallback. */
.tour_compare_image.tour_compare_image_fallback {
	background-size: contain;
	background-color: #ffffff;
}

.tour_compare_remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.9);
	color: #3f444b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 200ms, color 200ms;
}

.tour_compare_remove svg {
	width: 11px;
	height: 11px;
	fill: currentColor;
	display: block;
}

.tour_compare_remove:hover {
	background-color: #fb2056;
	color: #fff;
}

.tour_compare_title {
	display: block;
	font-weight: 700;
	font-size: 14px;
	color: #3f444b;
	text-decoration: none;
	margin-bottom: 8px;
}

.tour_compare_row {
	font-size: 12px;
	margin-bottom: 6px;
	line-height: 1.4;
}

.tour_compare_row_label {
	display: block;
	font-weight: 600;
	color: #7a7a7a;
}

.tour_compare_row_value {
	display: block;
}

.tour_compare_price {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #eeeeee;
	font-size: 12px;
}

.tour_compare_price strong {
	display: block;
	margin-bottom: 4px;
}

.tour_compare_group_price {
	margin-top: 4px;
	color: #7a7a7a;
}

.tour_compare_empty {
	grid-column: 1 / -1;
	color: #7a7a7a;
	font-size: 14px;
}

.tour_compare_email_btn {
	display: block;
	text-align: center;
	margin-top: 12px;
	padding: 8px 10px;
	background-color: #fb2056;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	border-radius: 20px;
	text-decoration: none;
	transition: background-color 200ms;
}

.tour_compare_email_btn:hover {
	background-color: #fb2056d9;
	color: #fff;
}

/* Mobile: a narrower panel docked to the right, vertically centered next to
   the heart/tray (rather than a full-screen takeover), so it covers less of
   the page behind it. Cards stack in a single column either way. */
@media only screen and (max-width: 767px) {
	.tour_compare_overlay {
		padding: 12px;
		align-items: center;
		justify-content: flex-end;
	}
	.tour_compare_overlay_inner {
		max-width: 320px;
		max-height: 70vh;
		border-radius: 16px;
		transform: translateX(24px);
		transform-origin: center right;
	}
	.tour_compare_overlay.show .tour_compare_overlay_inner {
		transform: translateX(0);
	}
	.tour_compare_grid {
		grid-template-columns: 1fr;
	}
}
