/* GeoDirectory Listings Slider — styles only apply inside the .ccvls wrapper the plugin adds. */
.ccvls {
	--ccvls-cols: var(--ccvls-sm, 1);
	--ccvls-gap: 0px;
	--ccvls-peek: 0px;
	position: relative;
}
.ccvls--blog { --ccvls-gap: 28px; }
.ccvls--peek { --ccvls-peek: 48px; }

@media (min-width: 768px)  { .ccvls { --ccvls-cols: var(--ccvls-md, 2); --ccvls-peek: 0px; } }
@media (min-width: 992px)  { .ccvls { --ccvls-cols: var(--ccvls-lg, 3); } }
@media (min-width: 1200px) { .ccvls { --ccvls-cols: var(--ccvls-xl, 4); } }

/* Track: the original grid element, switched to a horizontal scroll-snap row. */
.ccvls .geodir-widget-posts,
.ccvls .blog-listing-grid {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	overflow-y: hidden;
	gap: var(--ccvls-gap);
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	grid-template-columns: none !important;
}
.ccvls .geodir-widget-posts::-webkit-scrollbar,
.ccvls .blog-listing-grid::-webkit-scrollbar { display: none; }

/* Room for card shadows / hover lift, which a scroll container would otherwise clip. */
.ccvls .blog-listing-grid { padding: 8px 4px 18px; margin-left: -4px; margin-right: -4px; }
.ccvls .geodir-widget-posts { padding-top: 6px; }

/* Slides */
.ccvls .geodir-widget-posts > *,
.ccvls .blog-listing-grid > * {
	flex: 0 0 calc((100% - var(--ccvls-peek) - (var(--ccvls-cols) - 1) * var(--ccvls-gap)) / var(--ccvls-cols)) !important;
	width: calc((100% - var(--ccvls-peek) - (var(--ccvls-cols) - 1) * var(--ccvls-gap)) / var(--ccvls-cols)) !important;
	max-width: none !important;
	min-width: 0;
	scroll-snap-align: start;
}

@media (prefers-reduced-motion: reduce) {
	.ccvls .geodir-widget-posts,
	.ccvls .blog-listing-grid { scroll-behavior: auto; }
}

/* Reset theme / Elementor global <button> styles on our controls. */
.ccvls button.ccvls__arrow,
.ccvls button.ccvls__dot {
	-webkit-appearance: none;
	appearance: none;
	border: 0 !important;
	padding: 0 !important;
	margin: 0;
	min-width: 0 !important;
	min-height: 0 !important;
	line-height: 1 !important;
	font-size: 0 !important;
	text-transform: none;
	letter-spacing: 0;
}

/* Arrows */
.ccvls button.ccvls__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff !important;
	color: #1d2733 !important;
	box-shadow: 0 4px 14px rgba(20, 30, 45, .18);
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.ccvls button.ccvls__arrow:hover,
.ccvls button.ccvls__arrow:focus { background: #fff !important; color: #1d2733 !important; transform: scale(1.06); }
.ccvls__arrow:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ccvls button.ccvls__arrow[disabled] { opacity: 0; pointer-events: none; }
.ccvls__arrow svg { width: 18px; height: 18px; display: block; }
.ccvls--has-dots button.ccvls__arrow { margin-top: -38px; }
.ccvls__prev { left: 6px; }
.ccvls__next { right: 6px; }
@media (max-width: 767px) {
	.ccvls button.ccvls__arrow { width: 34px; height: 34px; margin-top: -17px; }
	.ccvls--has-dots button.ccvls__arrow { margin-top: -34px; }
}
@media (min-width: 768px) {
	.ccvls__prev { left: -10px; }
	.ccvls__next { right: -10px; }
}
@media (min-width: 1300px) {
	.ccvls__prev { left: -22px; }
	.ccvls__next { right: -22px; }
}

/* Dots */
.ccvls__dots {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 8px;
	padding: 0;
	list-style: none;
}
.ccvls button.ccvls__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 9px !important;
	background: rgba(29, 39, 51, .25) !important;
	cursor: pointer;
	transition: width .25s ease, background-color .25s ease;
}
.ccvls button.ccvls__dot[aria-current="true"] { width: 24px; background: #1d2733 !important; }
.ccvls__dot:focus-visible { outline: 2px solid #1d2733; outline-offset: 2px; }

/* Nothing to slide: hide controls. */
.ccvls--static button.ccvls__arrow,
.ccvls--static .ccvls__dots { display: none !important; }
