/**
 * Menu Carousel Elementor – horizontal/vertical carousel, image + linked text per item.
 * Foothold warm palette; section title + arrows; progress/dots.
 * Last updated: 2026-02-05
 */

/* ========== Wrapper ========== */
.mce-wrapper {
	position: relative;
	width: 100%;
	font-family: 'Inter', sans-serif;
	--mce-gap: 1.5rem;
}

.mce-empty {
	padding: 1.5rem;
	text-align: center;
	color: #6B6661;
	background: #FAF9F6;
	border-radius: 8px;
}

/* ========== Header: section title + arrows ========== */
.mce-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
}

.mce-section-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: #2D2926;
}

.mce-arrows {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.mce-arrows-standalone {
	margin-bottom: 1rem;
}

/* ========== Carousel track – horizontal (default) ========== */
.mce-carousel-track {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--mce-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 0.25rem 0 1rem 0;
	-webkit-overflow-scrolling: touch;
	/* Touch: horizontal swipes scroll the carousel, not the page */
	touch-action: pan-x;
	overscroll-behavior-x: contain;
}

.mce-direction-horizontal .mce-carousel-track {
	/* Slide width set by JS or by data-slides attribute in fallback */
}

/* ========== Carousel track – vertical ========== */
.mce-direction-vertical .mce-carousel-track {
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	scroll-snap-type: y mandatory;
	max-height: 80vh;
	-webkit-overflow-scrolling: touch;
	/* Touch: vertical swipes scroll the carousel, not the page */
	touch-action: pan-y;
	overscroll-behavior-y: contain;
}

/* ========== Slide (card container) ========== */
.mce-slide {
	flex: 0 0 auto;
	scroll-snap-align: start;
	min-width: 0;
}

/* Horizontal: slide width from data-slides (desktop default 4) */
.mce-direction-horizontal .mce-slide {
	/* Fallback; JS or responsive CSS will set flex basis */
	flex: 0 0 calc((100% - (var(--mce-gap) * (var(--mce-slides, 4) - 1))) / var(--mce-slides, 4));
}

/* Use data attributes for responsive slide count (JS sets --mce-slides on wrapper) */
@media (max-width: 1024px) {
	.mce-direction-horizontal .mce-slide {
		flex: 0 0 calc((100% - (var(--mce-gap) * (var(--mce-slides-tablet, 3) - 1))) / var(--mce-slides-tablet, 3));
	}
}

@media (max-width: 767px) {
	.mce-direction-horizontal .mce-slide {
		flex: 0 0 calc((100% - (var(--mce-gap) * (var(--mce-slides-mobile, 2) - 1))) / var(--mce-slides-mobile, 2));
	}
}

/* Vertical: fixed height per slide so we can scroll by N */
.mce-direction-vertical .mce-slide {
	width: 100%;
	flex: 0 0 auto;
}

/* ========== Card (link wrapper) ========== */
.mce-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.mce-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ========== Image ========== */
.mce-card-image-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 75%; /* 4:3 */
	overflow: hidden;
	background: #f0f0f0;
}

.mce-card-image,
.mce-card-image-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mce-card-image-placeholder {
	background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
}

/* ========== Title (text under image) ========== */
.mce-card-title {
	display: block;
	padding: 1rem 1rem 1.25rem;
	text-align: center;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	color: #2D2926;
	transition: color 0.2s ease;
}

.mce-card:hover .mce-card-title {
	color: #B45309;
}

/* ========== Arrows (solid buttons; beat theme/Elementor button styles) ========== */
.mce-wrapper button.mce-carousel-arrow {
	width: 44px;
	height: 44px;
	border-radius: 2px;
	border: 2px solid var(--e-global-color-secondary, #0A3161) !important;
	background: var(--e-global-color-secondary, #0A3161) !important;
	background-color: var(--e-global-color-secondary, #0A3161) !important;
	color: #fff !important;
	text-decoration: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	flex-shrink: 0;
}

.mce-wrapper button.mce-carousel-arrow:hover,
.mce-wrapper button.mce-carousel-arrow:focus {
	background: var(--e-global-color-primary, #B31942) !important;
	background-color: var(--e-global-color-primary, #B31942) !important;
	border-color: var(--e-global-color-primary, #B31942) !important;
	color: #fff !important;
	text-decoration: none;
}

.mce-wrapper button.mce-carousel-arrow .material-symbols-outlined {
	font-size: 24px;
	color: #fff !important;
}

/* Vertical: position arrows on the side or below track */
.mce-direction-vertical .mce-carousel-prev {
	transform: rotate(-90deg);
}
.mce-direction-vertical .mce-carousel-next {
	transform: rotate(90deg);
}

/* ========== Dots / progress ========== */
.mce-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.mce-carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d0d0d0;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.3s ease;
}

.mce-carousel-dot:hover,
.mce-carousel-dot.is-active {
	background: #B45309;
}

/* Optional progress bar (same element list; we use dots) */

/* ========== Scrollbar ========== */
.mce-carousel-track::-webkit-scrollbar {
	height: 6px;
	width: 6px;
}

.mce-direction-vertical .mce-carousel-track::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

.mce-carousel-track::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 3px;
}

.mce-carousel-track::-webkit-scrollbar-thumb {
	background: #c0c0c0;
	border-radius: 3px;
}

/* ========== Material Symbols ========== */
.mce-wrapper .material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
}
