/**
 * BYO Activities Filter Styles
 *
 * Provides a clean, modern, and premium styling for the Build Your Own
 * page category tabs and CTA buttons.
 *
 * @package BYO_Activities_Filter
 */

/* Container for category filters */
.byo-activity-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 30px 0;
	padding: 0;
	list-style: none;
	align-items: center;
}

/* Base style for individual filter tabs */
.byo-filter {
	display: inline-block;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: #64748b;
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 10px 20px;
	border-radius: 100px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
}

/* Hover state for filters */
.byo-filter:hover {
	color: #0f172a;
	background-color: #f1f5f9;
	border-color: #cbd5e1;
	text-decoration: none;
}

/* Active state for filters */
.byo-filter.active {
	color: #ffffff;
	background-color: #0f172a;
	border-color: #0f172a;
	box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.15), 0 2px 4px -2px rgba(15, 23, 42, 0.15);
	text-decoration: none;
}

/* Focus state for accessibility */
.byo-filter:focus {
	outline: 2px solid #38bdf8;
	outline-offset: 2px;
}

/* Main Build Your Own Link CTA Button */
.byo-build-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: #ffffff;
	background-color: #0f172a;
	border: 1px solid #0f172a;
	padding: 12px 24px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.byo-build-link:hover {
	color: #ffffff;
	background-color: #1e293b;
	border-color: #1e293b;
	transform: translateY(-1px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	text-decoration: none;
}

.byo-build-link:active {
	transform: translateY(0);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.byo-build-link:focus {
	outline: 2px solid #38bdf8;
	outline-offset: 2px;
}

/* --- Select Dropdown Styling --- */
.byo-select-wrapper {
	position: relative;
	display: inline-block;
}

.byo-select-wrapper .byo-chevron-icon {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.byo-select-wrapper .byo-chevron-icon svg {
	width: 12px;
	height: 12px;
	stroke: #4b5563;
	transition: stroke 0.25s ease-in-out;
}

.byo-select-wrapper .byo-select {
	padding-right: 40px !important;
	background-image: none !important; /* Remove background chevron when using icon overlay */
}

.byo-dropdown-filter {
	display: inline-block;
	margin: 5px;
}

.byo-select {
	display: inline-block;
	font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	color: #4b5563;
	background-color: #f1f5f9;
	border: 1px solid transparent;
	padding: 10px 40px 10px 24px;
	border-radius: 100px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 12px;
	outline: none;
}

.byo-select:hover {
	background-color: #e2e8f0;
	color: #1f2937;
}

/* Active select (when an option is selected) */
.byo-select.byo-select-active {
	color: #ffffff;
	background-color: #f05435; /* Figma brand Red */
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	box-shadow: 0 4px 12px rgba(240, 84, 53, 0.2);
}

.byo-select.byo-select-active:hover {
	background-color: #e04425;
}

/* --- Figma Page Elements Helpers --- */
.byo-badge {
	display: inline-block;
	font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: #f05435;
	background-color: #fdf2f0;
	padding: 6px 16px;
	border-radius: 100px;
	text-transform: capitalize;
	margin-bottom: 12px;
}

.byo-main-title {
	font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 48px;
	font-weight: 800;
	color: #1f2937;
	letter-spacing: -1px;
	line-height: 1.1;
	margin-bottom: 24px;
}

.byo-main-title span {
	color: #f05435;
}

/* --- Helper Classes for Manual Elementor Buttons --- */
.byo-active {
	background-color: #f05435 !important;
	color: #ffffff !important;
	border-color: #f05435 !important;
}

.byo-button-active .elementor-button {
	background-color: #f05435 !important;
	color: #ffffff !important;
	border-color: #f05435 !important;
}

/* --- Full Builder Card & Carousel Layout Styles --- */
.byo-full-builder-wrapper {
	max-width: 100%;
	width: 936px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.byo-dropdowns-row {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px 0 35px 0;
	width: 100%;
}

/* Swiper Slider Wrapper */
.byo-swiper-container {
	width: 100%;
	overflow: hidden;
	position: relative;
	border-radius: 24px;
	text-align: left;
	box-sizing: border-box;
}

/* Card Styling matching Figma */
.byo-card {
	background-color: #ffffff;
	border-radius: 24px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
}

.byo-card-image-wrapper {
	width: 100%;
	height: 380px;
	overflow: hidden;
	border-radius: 24px;
	box-sizing: border-box;
}

.byo-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 24px;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.byo-zoom-enabled .byo-card:hover .byo-card-image {
	transform: scale(1.05);
}

.byo-card-content {
	padding: 24px 0 0 0;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.byo-card-badge {
	align-self: flex-start;
	font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: #6b7280;
	background-color: #f1f5f9;
	padding: 4px 12px;
	border-radius: 100px;
	margin-bottom: 12px;
	text-transform: capitalize;
}

.byo-card-title {
	font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 10px 0;
	line-height: 1.2;
}

.byo-card-body {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	width: 100%;
}

.byo-card-description-wrapper {
	flex: 1;
}

.byo-card-description {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	color: #6b7280;
	margin: 0;
	line-height: 1.6;
}

.byo-card-description strong {
	color: #1f2937;
}

.byo-card-inquire-wrapper {
	flex-shrink: 0;
}

.byo-inquire-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	background-color: #f05435;
	border: none;
	padding: 12px 24px;
	border-radius: 100px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.byo-inquire-btn:hover {
	background-color: #e04425;
	color: #ffffff;
	transform: translateX(2px);
}

/* Swiper navigation buttons */
.byo-carousel-navigation {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 30px;
	width: 100%;
}

.byo-prev-btn, .byo-next-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	border: none;
	outline: none;
}

.byo-prev-btn {
	background-color: #fdf2f0;
	color: #f05435;
}

.byo-next-btn {
	background-color: #f05435;
	color: #ffffff;
}

.byo-prev-btn:hover, .byo-next-btn:hover {
	transform: scale(1.08);
}

.byo-no-results {
	font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	color: #6b7280;
	padding: 40px 0;
	text-align: center;
}

