/* ==========================================================================
   Deals Archive / Filter Page Styles
   Enqueued only on pages containing [deals_filter_page].
   Card styles are inherited from single-deal.css (also enqueued on this page).
   ========================================================================== */

#deals-archive-section .tc-deals-filter-heading h2 {
	margin: 0;
}

.deals-archive {
	padding: 130px 20px 150px !important;
}

.deals-archive .elementor-column-gap-default>.elementor-column>.elementor-element-populated {
	padding: 0;
}

.tc-deals-filter-subheading p {
	margin-bottom: 20px;
	margin-top: 5px;
}

/* ── Filter bar ─────────────────────────────────────────────────────────── */
.tc-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 45px;
	margin-bottom: 85px;
	flex-wrap: wrap;
}

/* ── City tabs ──────────────────────────────────────────────────────────── */
.tc-city-tabs {
	display: flex;
	align-items: center;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	flex: 1;
}
.tc-city-tabs::-webkit-scrollbar { display: none; }
.tc-deals-filter .tc-city-tab:first-child {
	margin-left: 0px;
}
.tc-deals-filter .tc-city-tab {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	color: #fff;
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 27px;
	padding: 12px 12px;
	margin: 0 5px;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.tc-deals-filter .tc-city-tab:hover {
	background: transparent;
	border-bottom-color: var(--tc-gold, #EBA318);
}
.tc-deals-filter .tc-city-tab.is-active {
	border-bottom-color: var(--tc-gold, #EBA318);
}

/* ── Filter controls (right side) ──────────────────────────────────────── */
.tc-filter-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

/* ── Dropdown wrapper ───────────────────────────────────────────────────── */
.tc-filter-dropdown {
	position: relative;
}

/* ── Dropdown trigger button ────────────────────────────────────────────── */
.tc-deals-filter .tc-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 0;
	color: #fff;
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	padding: 19px 18px;
	min-width: 210px;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.2s ease;
}
.tc-deals-filter .tc-filter-btn:hover,
.tc-deals-filter .tc-filter-btn[aria-expanded="true"] {
	border-color: rgba(255, 255, 255, 0.7);
	background: transparent;
}
.tc-deals-filter .tc-filter-btn svg { flex-shrink: 0; width: 17px; height: auto; }
.tc-deals-filter .tc-filter-btn .tc-chevron {
	margin-left: auto;
	transition: transform 0.2s ease;
}
.tc-deals-filter .tc-filter-btn[aria-expanded="true"] .tc-chevron {
	transform: rotate(180deg);
}

/* ── Dropdown panel ─────────────────────────────────────────────────────── */
.tc-filter-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: #1a1a1a;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	padding: 16px;
	min-width: 260px;
	z-index: 200;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
/* hidden attribute hides the panel; .open class not needed */

/* ── Date range ─────────────────────────────────────────────────────────── */
.tc-date-range {
	display: flex;
	gap: 12px;
}
.tc-date-label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.45);
	text-transform: uppercase;
	letter-spacing: 0.07em;
}
.tc-date-input {
	background: #111;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 4px;
	color: #fff;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	padding: 8px 10px;
	width: 100%;
	color-scheme: dark;
	transition: border-color 0.2s ease;
}
.tc-date-input:focus {
	outline: none;
	border-color: var(--tc-gold, #EBA318);
}
.tc-date-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}
.tc-deals-filter .tc-date-apply,
.tc-deals-filter .tc-date-clear {
	flex: 1;
	padding: 9px 12px;
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 4px;
	cursor: pointer;
	line-height: 1;
	transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.tc-deals-filter .tc-date-apply {
	background: var(--tc-gold, #EBA318);
	color: #0a0a0a;
	border: 1px solid transparent;
}
.tc-deals-filter .tc-date-apply:hover { opacity: 0.85; }
.tc-deals-filter .tc-date-clear {
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.2);
}
.tc-deals-filter .tc-date-clear:hover {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
	background: transparent;
}

/* Ensure the HTML hidden attribute works even if a reset overrides it */
#tc-hotel-list li[hidden] {
	display: none !important;
}

/* ── Hotel list ─────────────────────────────────────────────────────────── */
.tc-hotel-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 240px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.tc-hotel-list li { display: block; }
.tc-deals-filter .tc-hotel-option {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	border-radius: 4px;
	color: rgba(255, 255, 255, 0.6);
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	padding: 7px 12px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.tc-deals-filter .tc-hotel-option:hover {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}
.tc-deals-filter .tc-hotel-option.is-active {
	color: var(--tc-gold, #EBA318);
	font-weight: 600;
}

/* ── Results container ──────────────────────────────────────────────────── */
.tc-deals-results {
	transition: opacity 0.25s ease;
	min-height: 200px;
}

/* ── Results swiper wrap — arrows overlay left/right ────────────────────── */
.tc-deals-slider-wrap {
	position: relative;
}

.tc-deals-slider-wrap .tc-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 53px;
	height: 53px;
	border-radius: 50%;
	background: #fff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #000;
	transition: background 0.2s ease;
	padding: 0;
}

.tc-deals-slider-wrap .tc-deals-prev { left: -25px; transform: translate(-100%, -50%); }
.tc-deals-slider-wrap .tc-deals-next { right: -25px; transform: translate(100%, -50%); }

.tc-deals-slider-wrap .tc-slider-arrow:hover {
	background: rgba(255, 255, 255, 0.75);
}

.tc-deals-slider-wrap .tc-slider-arrow.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

/* Pagination centred below */
.tc-related-deals-controls {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.tc-deals-pagination.tc-related-deals-pagination {
	display: flex;
	gap: 8px;
	align-items: center;
	position: static !important;
	width: auto !important;
}

.tc-deals-pagination.tc-related-deals-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	opacity: 1;
	margin: 0 !important;
	cursor: pointer;
	transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
}

.tc-deals-pagination.tc-related-deals-pagination .swiper-pagination-bullet-active {
	width: 28px;
	border-radius: 4px;
	background: var(--tc-gold, #EBA318);
}
.tc-deals-results.tc-loading {
	opacity: 0.35;
	pointer-events: none;
}

/* ── Loading spinner ────────────────────────────────────────────────────── */
.tc-deals-loading {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 200px;
}
.tc-deals-loading-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255, 255, 255, 0.1);
	border-top-color: var(--tc-gold, #EBA318);
	border-radius: 50%;
	animation: tc-spin 0.7s linear infinite;
}
@keyframes tc-spin {
	to { transform: rotate(360deg); }
}

/* ── Empty state ────────────────────────────────────────────────────────── */
.tc-deals-empty {
	color: rgba(255, 255, 255, 0.4);
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	text-align: center;
	padding: 60px 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1600px) {
.tc-deals-slider-wrap .tc-deals-prev {transform: translateY(-50%); left: 0px; }
.tc-deals-slider-wrap .tc-deals-next {transform: translateY(-50%); right: 0px; }

	.tc-deals-slider-wrap {
		padding: 0 75px;
	}
}

@media (max-width: 768px) {
	.tc-related-deals-controls {display: none;}
	.tc-deals-slider-wrap .tc-deals-prev {left: 10px;}
	.tc-deals-slider-wrap .tc-deals-next {right: 10px;}

	.tc-deals-slider-wrap .tc-slider-arrow {
		width: 40px;
		height: 40px;
		top: 135px;
	}

	.tc-slider-arrow svg {
		width: 15px;
	}

	.tc-deals-slider-wrap {
		padding: 0;
	}

	.deals-archive {
		padding: 50px 20px 40px !important;
	}

	.deals-archive .elementor-swiper-button-prev {
		left: 35px !important;
	}

	.deals-archive .elementor-swiper-button-next {
		right: 35px !important;
	}

	.deals-archive .elementor-swiper-button {
		top: 135px !important;
	}

	.deals-archive .elementor-widget-image {
		height: 230px !important;
	}

	.deals-archive .elementor-widget-image img {
		height: 100% !important;
		object-fit: cover !important;
	}

	.tc-deals-filter-subheading p {
		margin-bottom: 0;
	}

	.tc-deals-filter .tc-filter-btn {
		min-width: 1px;
	}

	.tc-filter-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-bottom: 45px;
	}
	.tc-city-tabs {
		width: 100%;
	}
	.tc-deals-filter .tc-city-tab {
		padding: 6px 14px;
		font-size: 14px;
	}
	.tc-filter-panel {
		right: auto;
		left: 0;
	}
	.tc-filter-controls {
		width: 100%;
		justify-content: center;
		flex-direction: column;
	}
	.tc-filter-dropdown {
		flex: 1;
		width: 100%;
	}
	.tc-deals-filter .tc-filter-btn {
		width: 100%;
		justify-content: space-between;
	}
}
