/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Custom Swiper Slider Styles */
.custom-swiper-wrapper {
	position: relative;
	width: 100%;
}

.custom-swiper-wrapper .swiper {
	width: 100%;
	height: 100%;
}

/* Linear motion for continuous autoplay */
.custom-swiper-wrapper .swiper-wrapper {
	transition-timing-function: linear !important;
}

.custom-swiper-wrapper .swiper-slide {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-weight: 600;
	background: #f8f9fa77;
	min-height: 300px;
}

.custom-swiper-wrapper .slide-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.custom-swiper-wrapper .slide-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
	color: white;
	padding: 40px 20px 20px;
	text-align: center;
}

.custom-swiper-wrapper .slide-title {
	margin: 0 0 10px 0;
	font-size: 1.5em;
	font-weight: bold;
}

.custom-swiper-wrapper .slide-text {
	margin: 0;
	opacity: 0.9;
}

/* Navigation arrows */
.custom-swiper-wrapper .swiper-button-next,
.custom-swiper-wrapper .swiper-button-prev {
	color: #ffffff;
	background: rgba(0, 0, 0, 0.5);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: all 0.3s ease;
}

.custom-swiper-wrapper .swiper-button-next:hover,
.custom-swiper-wrapper .swiper-button-prev:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: scale(1.1);
}

.custom-swiper-wrapper .swiper-button-next::after,
.custom-swiper-wrapper .swiper-button-prev::after {
	content: none;
}

/* Pagination */
.custom-swiper-wrapper .swiper-pagination-bullet {
	background: #ffffff;
	opacity: 0.5;
	width: 12px;
	height: 12px;
}

.custom-swiper-wrapper .swiper-pagination-bullet-active {
	opacity: 1;
	background: #007cba;
}

.custom-swiper-wrapper .swiper-pagination-fraction {
	color: #ffffff;
	background: rgba(0, 0, 0, 0.5);
	padding: 5px 10px;
	border-radius: 15px;
	display: inline-block;
}

.custom-swiper-wrapper .swiper-pagination-progressbar {
	background: rgba(255, 255, 255, 0.3);
}

.custom-swiper-wrapper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
	background: #007cba;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.custom-swiper-wrapper .slide-content {
		padding: 20px 15px 15px;
	}

	.custom-swiper-wrapper .slide-title {
		font-size: 1.2em;
	}

	.custom-swiper-wrapper .swiper-button-next,
	.custom-swiper-wrapper .swiper-button-prev {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}
}

/* Card Layout Styles */
.custom-swiper-wrapper.layout-cards .swiper-slide,
.custom-swiper-wrapper.layout-minimal .swiper-slide {
	background: transparent;
	min-height: auto;
	height: auto;
	align-items: stretch;
}

.custom-swiper-wrapper.layout-cards .slide-card,
.custom-swiper-wrapper.layout-minimal .slide-card {
	padding: 15px;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-direction: column;
	transition: all 0.3s ease;
	border-radius: 17px;
	border: 1px solid #7c7c7c;
	background: rgba(255, 255, 255, 0.73);
	box-shadow: 0 0 17px 3px rgba(0, 128, 128, 0.26);
}

.custom-swiper-wrapper.layout-cards .slide-card:hover,
.custom-swiper-wrapper.layout-minimal .slide-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.custom-swiper-wrapper.layout-cards .slide-location-badge,
.custom-swiper-wrapper.layout-minimal .slide-location-badge {
	background: #2c3e50;
	color: #ffffff;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	width: fit-content;
}

.custom-swiper-wrapper.layout-cards .slide-location-badge i,
.custom-swiper-wrapper.layout-minimal .slide-location-badge i {
	font-size: 12px;
}

.custom-swiper-wrapper.layout-cards .slide-location-badge .globe-icon,
.custom-swiper-wrapper.layout-minimal .slide-location-badge .globe-icon {
	width: 12px;
	height: 12px;
	filter: brightness(0) invert(1); /* Make SVG white */
}

.custom-swiper-wrapper.layout-cards .slide-testimonial,
.custom-swiper-wrapper.layout-minimal .slide-testimonial {
	color: #4a5568;
	font-size: 16px;
	/* line-height: 1.6; */
	flex-grow: 1;
	/* font-style: italic; */
}

/* Minimal layout variations */
.custom-swiper-wrapper.layout-minimal .slide-card {
	border: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}

.custom-swiper-wrapper.layout-minimal .slide-location-badge {
	background: #3182ce;
	font-size: 13px;
	padding: 6px 12px;
}

.custom-swiper-wrapper.layout-minimal .slide-testimonial {
	font-size: 15px;
}

/* Navigation adjustments for card layouts */
.custom-swiper-wrapper.layout-cards .swiper-button-next,
.custom-swiper-wrapper.layout-cards .swiper-button-prev,
.custom-swiper-wrapper.layout-minimal .swiper-button-next,
.custom-swiper-wrapper.layout-minimal .swiper-button-prev {
	background: rgba(255, 255, 255, 0.9);
	color: #2c3e50;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-swiper-wrapper.layout-cards .swiper-button-next:hover,
.custom-swiper-wrapper.layout-cards .swiper-button-prev:hover,
.custom-swiper-wrapper.layout-minimal .swiper-button-next:hover,
.custom-swiper-wrapper.layout-minimal .swiper-button-prev:hover {
	background: #ffffff;
	color: #1a202c;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Pagination adjustments for card layouts */
.custom-swiper-wrapper.layout-cards .swiper-pagination-bullet,
.custom-swiper-wrapper.layout-minimal .swiper-pagination-bullet {
	background: #cbd5e0;
	opacity: 1;
}

.custom-swiper-wrapper.layout-cards .swiper-pagination-bullet-active,
.custom-swiper-wrapper.layout-minimal .swiper-pagination-bullet-active {
	background: #3182ce;
}

/* Responsive adjustments for card layouts */
@media (max-width: 768px) {
	.custom-swiper-wrapper.layout-cards .slide-card,
	.custom-swiper-wrapper.layout-minimal .slide-card {
		padding: 20px;
	}

	.custom-swiper-wrapper.layout-cards .slide-testimonial,
	.custom-swiper-wrapper.layout-minimal .slide-testimonial {
		font-size: 15px;
	}

	.custom-swiper-wrapper.layout-cards .slide-location-badge,
	.custom-swiper-wrapper.layout-minimal .slide-location-badge {
		font-size: 13px;
		padding: 6px 12px;
		margin-bottom: 16px;
	}
}

/* Grid Layout Styles */
.custom-swiper-wrapper.has-grid .swiper {
	overflow: visible;
}

.custom-swiper-wrapper.has-grid .swiper-wrapper {
	display: grid;
	grid-template-rows: repeat(var(--grid-rows, 2), 1fr);
	grid-auto-flow: column;
	gap: var(--space-between, 30px);
	align-items: stretch;
}

.custom-swiper-wrapper.has-grid .swiper-slide {
	width: auto !important;
	margin-right: 0 !important;
	height: auto;
}

/* Grid layout card adjustments */
.custom-swiper-wrapper.has-grid.layout-cards .swiper-slide,
.custom-swiper-wrapper.has-grid.layout-minimal .swiper-slide {
	display: flex;
	align-items: stretch;
}

.custom-swiper-wrapper.has-grid.layout-cards .slide-card,
.custom-swiper-wrapper.has-grid.layout-minimal .slide-card {
	width: 100%;
	min-height: 100%;
}

/* Grid responsive adjustments */
@media (max-width: 768px) {
	.custom-swiper-wrapper.has-grid .swiper-wrapper {
		grid-template-rows: repeat(1, 1fr); /* Single row on mobile */
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.custom-swiper-wrapper.has-grid .swiper-wrapper {
		grid-template-rows: repeat(var(--grid-rows, 2), 1fr);
	}
}

/* Ticker Mode Styles */
.custom-swiper-wrapper.ticker-mode {
	/* overflow: hidden; */
	position: relative;
}

.custom-swiper-wrapper.ticker-mode .ticker-instance {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.custom-swiper-wrapper.ticker-mode .ticker-instance-2 {
	left: 100%;
}

.custom-swiper-wrapper.ticker-mode.ticker-right .ticker-instance-2 {
	left: -100%;
}

.custom-swiper-wrapper.ticker-mode .swiper {
	height: 100%;
}

.custom-swiper-wrapper.ticker-mode .swiper-wrapper {
	transition-timing-function: linear;
	align-items: center;
}

/* Ticker Animation */
.custom-swiper-wrapper.ticker-mode.ticker-active .ticker-instance-1 {
	animation: tickerMove var(--ticker-speed, 20s) linear infinite;
}

.custom-swiper-wrapper.ticker-mode.ticker-active .ticker-instance-2 {
	animation: tickerMove var(--ticker-speed, 20s) linear infinite;
	animation-delay: calc(var(--ticker-speed, 20s) / -2);
}

.swiper-slide-active .slide-location-badge {
	background-color: #008080 !important;
	/* transition */
	transition: background-color 0.3s ease;
}

@keyframes tickerMove {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(var(--ticker-direction, -100%));
	}
}

/* Ticker pause on hover */
.custom-swiper-wrapper.ticker-mode.ticker-paused .ticker-instance-1,
.custom-swiper-wrapper.ticker-mode.ticker-paused .ticker-instance-2 {
	animation-play-state: paused;
}

/* Ticker direction variants */
.custom-swiper-wrapper.ticker-mode.ticker-right .ticker-instance-1,
.custom-swiper-wrapper.ticker-mode.ticker-right .ticker-instance-2 {
	animation-direction: reverse;
}

/* Ticker slide adjustments */
.custom-swiper-wrapper.ticker-mode .swiper-slide {
	flex-shrink: 0;
	width: auto !important;
	margin-right: var(--space-between, 30px);
}

.custom-swiper-wrapper.ticker-mode .slide-card {
	white-space: nowrap;
	min-width: 300px;
	max-width: 400px;
}

.custom-swiper-wrapper.ticker-mode .slide-testimonial {
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* Responsive ticker adjustments */
@media (max-width: 768px) {
	.custom-swiper-wrapper.ticker-mode .slide-card {
		min-width: 250px;
		max-width: 300px;
	}

	.custom-swiper-wrapper.ticker-mode .slide-testimonial {
		-webkit-line-clamp: 2;
		line-clamp: 2;
		font-size: 14px;
	}
}

/* SVG Map Integration Styles */
svg g,
svg path,
svg [data-country] {
	transition: all 0.3s ease;
	cursor: pointer;
}

/* Default SVG state */
svg g[id],
svg path[id],
svg [data-country] {
	fill: #cccccc;
	opacity: 0.6;
}

/* Active/highlighted SVG state */
/* svg g.active,
svg path.active,
svg [data-country].active,
svg g.highlighted,
svg path.highlighted,
svg [data-country].highlighted {
	fill: #007cba;
	opacity: 1;
	stroke: #005a8b;
} */

svg g[data-country].active path {
	fill: #008080;
	opacity: 1;
	transition: all 1.3s ease;
}

/* Hover states for SVG elements */
svg g[id]:hover,
svg path[id]:hover,
svg [data-country]:hover {
	fill: #008080;
	opacity: 0.8;
	transform: scale(1.05);
}
