/* ==========================================================================
   The Capital — Hotel Facilities Slider
   Like Reasons but: 3 slides, title-only cards, nav arrows inline
   with section title on desktop, above pagination on mobile.
   ========================================================================== */

/* ------------------------------------------------------------------
   1. Section Wrapper
   ------------------------------------------------------------------ */
.tc-facilities {
	position: relative;
	overflow: hidden;
	background: #000;
	padding-top: 90px !important;
	padding-bottom: 90px !important;

	@media (min-width: 767px) {
		padding-top: 110px !important;
		padding-bottom: 160px !important;
	}
}

/* ------------------------------------------------------------------
   2. Header Row — title left, nav arrows right
   ------------------------------------------------------------------ */
.tc-facilities-header.e-con {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

.tc-facilities-header.e-con .e-child {
	flex-direction: row;
	justify-content: space-between;
	padding: 0;
}

.tc-facilities-header .elementor-top-column .elementor-element-populated {
    display: flex;
    flex-wrap: nowrap;
}

.tc-facilities-header .elementor-row,
.tc-facilities-header .elementor-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Nav arrows injected by JS into the right header column */
.tc-facilities-nav {
	display: flex;
	gap: 12px;
	align-items: center;
}

.tc-facilities-prev,
.tc-facilities-next {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff !important;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #000;
	transition: background 0.2s ease;
	padding: 0;
}

.tc-facilities-prev svg,
.tc-facilities-next svg {
	width: 20px;
	height: 20px;
}

.tc-facilities-prev:hover,
.tc-facilities-next:hover {
	background: rgba(255, 255, 255, 0.75) !important;
}

.tc-facilities-prev.swiper-button-disabled,
.tc-facilities-next.swiper-button-disabled {
	opacity: 0.25;
	cursor: default;
	pointer-events: none;
}

/* ------------------------------------------------------------------
   3. Outer Wrapper (created by JS)
   ------------------------------------------------------------------ */
.tc-facilities-outer {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* Desktop: arrows overlay left/right of outer */
.tc-facilities-outer > .tc-facilities-prev,
.tc-facilities-outer > .tc-facilities-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	left: auto;
	right: auto;
}

.tc-facilities-outer > .tc-facilities-prev { left: -73px; }
.tc-facilities-outer > .tc-facilities-next { right: -73px; }

@media (max-width: 1600px) {
	.tc-facilities-outer > .tc-facilities-prev { left: 50px; }
	.tc-facilities-outer > .tc-facilities-next { right: 50px; }
}

/* ------------------------------------------------------------------
   4. Swiper
   ------------------------------------------------------------------ */
.tc-facilities-outer .swiper {
	overflow: hidden;
	padding-bottom: 4px;
}

.tc-facilities-outer .swiper-wrapper {
	display: flex;
}

.tc-facilities-outer .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

/* ------------------------------------------------------------------
   5. Facility Card — image + title only
   ------------------------------------------------------------------ */
.tc-facility-card {
	background: transparent;
	border-radius: 8px !important;
	border: 1px solid rgba(216, 218, 215, 0.33);
	overflow: hidden !important;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100% !important;
	position: relative;
	transition: border-color 0.3s ease;
}

.tc-facility-card.e-con {
	padding: 0;
	gap: 0;

}

.tc-facility-card .elementor-widget-image {
	margin-bottom: 0 !important;
}

.tc-facility-card .elementor-heading-title {
    text-align: center;
    min-height: 130px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    justify-content: center;
}

.tc-facility-card .elementor-element-populated {
	padding: 0 !important;
}

.tc-facility-card:hover {
	border-color: rgba(235, 163, 24, 0.4);
}

/* Card Image */
.tc-facility-card .tc-facility-card-img img,
.tc-facility-card .tc-facility-card-img .elementor-image img,
.tc-facility-card .elementor-widget-image img {
	width: 100%;
	object-fit: cover;
	display: block;
}

/* Card Title */
.tc-facility-card .tc-facility-card-title {
	padding: 18px 22px 22px;
	margin-bottom: 0 !important;
}

.tc-facility-card .tc-facility-card-title .elementor-heading-title {
	font-family: 'DM Sans', var(--tc-font-body), sans-serif !important;
	font-size: 21px !important;
	font-weight: 400 !important;
	line-height: 30px !important;
	color: #fff !important;
}

/* ------------------------------------------------------------------
   6. Counter Badge
   ------------------------------------------------------------------ */
.tc-facility-counter {
	position: absolute;
	top: 18px;
	left: 18px;
	background: rgba(0, 0, 0, 1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 20px;
	padding: 5px 14px;
	font-family: var(--tc-font-body);
	font-size: 12px;
	font-weight: 500;
	color: var(--tc-white);
	z-index: 2;
	pointer-events: none;
}

/* ------------------------------------------------------------------
   7. Pagination Dots
   ------------------------------------------------------------------ */
.tc-facilities-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 50px;
	position: absolute;
	top: 100%;

	@media (max-width: 767px) {
		position: static;
	}
}

.tc-facilities-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	opacity: 1;
	cursor: pointer;
	transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
	margin: 0 !important;
}

.tc-facilities-pagination .swiper-pagination-bullet-active {
	width: 28px;
	border-radius: 4px;
	background: var(--tc-gold, #EBA318);
}

/* ------------------------------------------------------------------
   8. Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1440px) {
	.tc-facilities-header.e-con {
		padding-left: 30px;
		padding-right: 30px;
	}
	.tc-facilities-outer {
		padding: 0 30px;
	}
}

@media (max-width: 1024px) {
	.tc-facility-card .tc-facility-card-img img,
	.tc-facility-card .tc-facility-card-img .elementor-image img,
	.tc-facility-card .elementor-widget-image img {
		/* height: 220px; */
	}
}

@media (max-width: 767px) {
	.tc-facilities-header.e-con {
		padding-left: 16px;
	}
	.tc-facilities-outer {
		padding: 0 16px;
	}

	.tc-facility-card .tc-facility-card-img img,
	.tc-facility-card .tc-facility-card-img .elementor-image img,
	.tc-facility-card .elementor-widget-image img {
		/* height: 200px; */
	}

	.tc-facilities-outer > .tc-facilities-prev,
	.tc-facilities-outer > .tc-facilities-next {
		width: 40px;
		height: 40px;
		left: auto;
		right: auto;
	}

	.tc-facilities-outer > .tc-facilities-prev { left: 30px; }
	.tc-facilities-outer > .tc-facilities-next { right: 30px; }

	.tc-facilities > .e-child {
		gap: 0;
	}
}
