/**
 * Favorite Destinations Block Styles
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Container with textured background */
.favorite-destinations {
	width: 100%;
	position: relative;
	padding: 3rem 0;
	/* Lightly-textured off-white background */
	background-color: #f8f6f0;
	background-image: 
		radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
	background-size: 20px 20px;
	background-repeat: repeat;
	background-position: center;
	overflow:hidden;
}

/* If background image is set via inline style, override the pattern */
.favorite-destinations.has-background-image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.favorite-destinations-container {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 0rem;
}

/* Header Section */
.favorite-destinations-header {
	text-align: center;
	padding: 0;
	max-width: 740px;
	margin: 0 auto 2rem;
}
.favorite-destinations-header p {
	padding:0 100px;
}
.favorite-destinations-heading {
	margin: 0;
	font-size: 26px;
	line-height: 28px;
	font-family: 'Article Century';
	font-weight: 100;
}

/* Style for bold text (from **text** markdown) in heading */
.favorite-destinations-heading strong {
	color: #d4af37;
	font-weight: 700;
}

.favorite-destinations-subheading {
	margin: 4px 0 45px;
	font-size: 35px;
	line-height: 1.3;
	font-family: 'Sunrider';
	text-transform: uppercase;
	color: #D3B055!important;
}

.favorite-destinations-intro {
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.6;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* Slider Wrapper */
.favorite-destinations-slider-wrapper {
	width: 100%;
	overflow: hidden;
	position: relative;
	margin: 0 auto 2rem;
}

/* Bottom Section */
.favorite-destinations-bottom {
	text-align: center;
	padding: 0 1rem;
	max-width: 740px;
	margin: 53px auto 0;
}

.favorite-destinations-bottom-title {
	margin-bottom: 1.5rem;
}

.favorite-destinations-bottom-title-text {
	margin: 0;
	font-size: 35px;
	line-height: 1.2;
	font-family: 'Sunrider';
	font-weight: 100;
}

/* Style for bold text (from **text** markdown) in bottom title */
.favorite-destinations-bottom-title-text strong {
	color: #d4af37;
	font-weight: 700;
}

.favorite-destinations-bottom-button-wrapper {
	margin-top: 1.5rem;
}

.favorite-destinations-bottom-button {
	display: inline-block;
	padding: 3px  10px 1px;
	background-color: #D4B055;
	color: #4C4C3B!important;
	text-decoration: none;
	border-radius: 7px;
	border: 2px solid #4C4C3B;
	font-family: 'Sunrider';
	font-size: 15px;
	font-weight: 400;
	text-transform: uppercase;
	transition: all 0.3s ease;
	cursor: pointer;
}

.favorite-destinations-bottom-button:hover,
.favorite-destinations-bottom-button:focus {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.favorite-destinations-swiper {
	width: 100%;
	overflow: hidden;
}

.favorite-destinations-swiper .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

/* Slide Cards */
.favorite-destinations-slide {
	flex: 0 0 auto;
	width: 278px;
	background: #C1B488;
	border-radius: 12px;
	overflow: visible;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: auto;
}

.favorite-destinations-slide:hover {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.favorite-destinations-slide-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
}

.favorite-destinations-slide-link:focus-visible {
	outline: 3px solid #4C4C3B;
	outline-offset: 4px;
	border-radius: 12px;
}

.favorite-destinations-slide-figure {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
	align-items: center;
	position: relative;
}

/* Slide Image */
.favorite-destinations-slide-image {
	width: 202px;
	height: 259px;
	object-fit: cover;
	display: block;
	border-radius: 12px;
	margin: 0 auto;
}

/* Slide Caption */
.favorite-destinations-slide-caption {
	padding: 30px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.favorite-destinations-slide-title {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	font-family: "Sunrider", serif;
	text-align: center;
	line-height: 1.3;
	color: #F8F2DF;
}

/* Slide Button */
.favorite-destinations-slide-button-wrapper {
	padding: 0 15px 27px;
	width: 100%;
	display: flex;
	justify-content: center;
}

.favorite-destinations-slide-button {
	display: inline-block;
	padding: 2px 7px 0;
	background-color: #F8F2DF;
	color: #4C4C3B!important;
	text-decoration: none;
	border-radius: 7px;
	font-family: 'Sunrider';
	font-size: 15px;
	font-weight: 400;
	text-transform: uppercase;
	transition: all 0.3s ease;
	cursor: pointer;
	border: 2px solid #4C4C3B;
	text-align: center;
	margin: -15px 0 0;
}

.favorite-destinations-slide-hover-overlay {
	position: absolute;
	inset: 0;
	background: #F8F2DF;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, visibility 0.18s ease;
	z-index: 5;
}

.favorite-destinations-slide-hover-button {
	display: inline-block;
	padding: 4px 7px 3px;
	background-color: #D4B055;
	color: #4C4C3B;
	border: 2px solid #4C4C3B;
	letter-spacing: 0.5px;
	line-height: 1;
	border-radius: 7px;
	font-family: 'Sunrider';
	font-size: 15px;
	font-weight: 400;
	text-transform: uppercase;
}

/* Hover/focus: show the overlay state (whole card looks like a big button) */
.favorite-destinations-slide-link:hover .favorite-destinations-slide-hover-overlay,
.favorite-destinations-slide-link:focus-visible .favorite-destinations-slide-hover-overlay,
.favorite-destinations-slide-link:focus-within .favorite-destinations-slide-hover-overlay {
	opacity: 1;
	visibility: visible;
}

.favorite-destinations-slide-button:hover,
.favorite-destinations-slide-button:focus {
	background-color: #4C4C3B;
	color: #F8F2DF!important;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Breakpoint (max-width: 767px) */
@media (max-width: 767px) {
	.favorite-destinations {
		padding: 2rem 0;
	}

	.favorite-destinations-container {
		padding: 0 0.75rem;
	}

	.favorite-destinations-header {
		margin-bottom: 2rem;
		padding: 0 0.5rem;
	}

	.favorite-destinations-slide {
		width: 278px;
		/* Show 1.2-1.5 slides partially visible */
		margin-right: 1.5rem;
	}

	.favorite-destinations-slide-image {
		width: 202px;
		height: 259px;
	}


	.favorite-destinations-slide-caption {
		padding: 15px 0;
	}

	.favorite-destinations-slide-title {
		font-size: 1rem;
	}

	.favorite-destinations-bottom {
		margin-top: 1.5rem;
		padding: 0 0.5rem;
	}

	.favorite-destinations-bottom-title-text {
		font-size: 28px;
	}
}

/* Extra Small Devices (max-width: 480px) */
@media (max-width: 480px) {
	.favorite-destinations {
		padding: 1.5rem 0;
	}

	.favorite-destinations-slide {
		width: 278px;
	}
	.favorite-destinations-heading {
	    margin: 0;
	    font-size: 16px;
	    line-height: 20px;
	}
	.favorite-destinations-subheading {
		font-size:25px;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.favorite-destinations {
		background-color: #ffffff;
		background-image: none;
	}

	.favorite-destinations-slide {
		border-width: 3px;
		border-color: #000000;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
		background: #C1B488;
	}

	.favorite-destinations-slide-title {
		font-weight: 400;
		font-family: "Sunrider", serif;
		color: #000000;
	}

	.favorite-destinations-slide-button {
		border-width: 2px;
		border-color: #000000;
	}

	.favorite-destinations-bottom-button {
		border-width: 2px;
		border-color: #000000;
	}
}

/* Reduced Motion Support - Disable animation */
@media (prefers-reduced-motion: reduce) {
	.favorite-destinations-swiper .swiper-wrapper {
		justify-content: center;
		flex-wrap: wrap;
	}

	.favorite-destinations-slide {
		margin-right: 1.5rem;
		margin-bottom: 1.5rem;
	}

	.favorite-destinations-slide:hover {
		transform: none;
	}

	.favorite-destinations-slide-button:hover,
	.favorite-destinations-slide-button:focus,
	.favorite-destinations-bottom-button:hover,
	.favorite-destinations-bottom-button:focus {
		transform: none;
	}
}

/* Print Styles */
@media print {
	.favorite-destinations {
		background-color: #ffffff;
		background-image: none;
		padding: 1rem 0;
	}

	.favorite-destinations-slider-wrapper {
		overflow: visible;
	}

	.favorite-destinations-swiper .swiper-wrapper {
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 1rem;
	}

	.favorite-destinations-slide {
		width: 278px;
		page-break-inside: avoid;
		border: 2px solid #000000;
		background: #C1B488;
		box-shadow: none;
		margin-bottom: 1rem;
	}

	.favorite-destinations-slide-image {
		width: 202px;
		height: 259px;
	}

	.favorite-destinations-slide-title {
		font-family: "Sunrider", serif;
		color: #000000;
	}

	.favorite-destinations-slide-button,
	.favorite-destinations-bottom-button {
		border: 1px solid #000000;
		color: #000000;
		background: transparent;
	}
}

/* Support for block wrapper color classes */
.favorite-destinations.has-background {
	padding: 63px 0 69px;
}

.favorite-destinations.has-text-color .favorite-destinations-heading,
.favorite-destinations.has-text-color .favorite-destinations-subheading,
.favorite-destinations.has-text-color .favorite-destinations-intro,
.favorite-destinations.has-text-color .favorite-destinations-slide-title,
.favorite-destinations.has-text-color .favorite-destinations-bottom-title-text {
	color: inherit;
}

/* Ensure proper spacing when background color is applied */
.favorite-destinations.has-background .favorite-destinations-container {
	padding: 0;
}

@media (max-width: 767px) {
	.favorite-destinations.has-background .favorite-destinations-container {
		padding: 0;
	}
	
/* Hover/focus: show the overlay state (whole card looks like a big button) */
.favorite-destinations-slide-link:hover .favorite-destinations-slide-hover-overlay,
.favorite-destinations-slide-link:focus-visible .favorite-destinations-slide-hover-overlay,
.favorite-destinations-slide-link:focus-within .favorite-destinations-slide-hover-overlay {
	opacity: 0;
	visibility: visible;
}

}

