/*
 * Paramount Travels — Custom Styles
 * Only styles that cannot be expressed with Tailwind utility classes.
 */

/* ── Brand Red Gradient ─────────────────────────────────────── */
.luxury-gradient {
	background: linear-gradient(135deg, #a9181b 0%, #f87171 100%);
}

/* ── Glassmorphism Panel ──────────────────────────────────────── */
.glass-panel {
	background: rgba(18, 18, 18, 0.88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	overflow: visible;
}

/* ── Hide Scrollbar (for horizontal scroll sections) ──────────── */
.no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
	display: none;
}

/* ── Material Symbols Settings ────────────────────────────────── */
.material-symbols-outlined {
	font-variation-settings:
		'FILL' 0,
		'wght' 400,
		'GRAD' 0,
		'opsz' 24;
}

/* Filled variant for star ratings */
.material-symbols-outlined.filled {
	font-variation-settings:
		'FILL' 1,
		'wght' 400,
		'GRAD' 0,
		'opsz' 24;
}

/* ── Smooth Scroll Behavior ───────────────────────────────────── */
html {
	scroll-behavior: smooth;
}

/* ── Selection Color ──────────────────────────────────────────── */
::selection {
	background-color: rgba(169, 24, 27, 0.15);
	color: #0c0c0c;
}

/* ── WP Admin Bar Offset ───────────────────────────────────────── */
body.admin-bar #site-nav {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar #site-nav {
		top: 46px;
	}
}

/* ── Header Scroll Shadow ─────────────────────────────────────── */
.nav-scrolled {
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* ── Hero Search Date Input — hide native picker icon ─────────── */
.glass-panel input[type="date"]::-webkit-calendar-picker-indicator {
	opacity: 0;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}
.glass-panel input[type="date"]::-webkit-date-and-time-value {
	text-align: left;
}
.glass-panel input[type="date"] {
	cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
 *  HERO BOOKING FORM SYSTEM
 *  Override Tailwind Forms plugin resets inside the glass panel.
 * ═══════════════════════════════════════════════════════════════ */

/* ── Booking Tabs ─────────────────────────────────────────────── */
.hero-tab {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 1.3rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.72);
	background: rgba(18, 18, 18, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: none;
	border-radius: 0.75rem 0.75rem 0 0;
	transition: all 0.25s ease;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.2;
}
.hero-tab:hover {
	color: rgba(255, 255, 255, 0.92);
	background: rgba(18, 18, 18, 0.75);
}
.hero-tab.active {
	color: #fff;
	background: rgba(18, 18, 18, 0.88);
	border-color: rgba(255, 255, 255, 0.1);
}

/* ── Tab Scroll Container with fade hint ──────────────────────── */
.hero-tab-scroll {
	position: relative;
}
.hero-tab-scroll::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 2.5rem;
	height: 100%;
	background: linear-gradient(to right, transparent, rgba(12, 12, 12, 0.85));
	pointer-events: none;
	z-index: 2;
	border-radius: 0 0.75rem 0 0;
	transition: opacity 0.3s;
}
.hero-tab-scroll.scrolled-end::after {
	opacity: 0;
}

/* Mobile: compact tabs */
@media (max-width: 639px) {
	.hero-tab {
		padding: 0.45rem 0.65rem;
		font-size: 0.6rem;
		gap: 0.25rem;
		letter-spacing: 0.04em;
	}
	.hero-tab .material-symbols-outlined {
		font-size: 0.85rem;
	}
}

/* ── Tab Panels ───────────────────────────────────────────────── */
.hero-tab-panel {
	display: none;
	padding: 1.75rem;
	animation: heroFadeSlide 0.3s ease forwards;
}
.hero-tab-panel.active {
	display: block;
}

@media (max-width: 639px) {
	.hero-tab-panel {
		padding: 1.25rem;
	}
}

@keyframes heroFadeSlide {
	from { opacity: 0; transform: translateY(5px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Labels ───────────────────────────────────────────────────── */
.hero-label {
	display: block;
	margin-bottom: 0.4rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #f87171;
	line-height: 1;
}

/* ── Inputs (override Tailwind Forms plugin) ──────────────────── */
.hero-input,
.glass-panel input[type="text"],
.glass-panel input[type="date"],
.glass-panel input[type="email"],
.glass-panel input[type="number"],
.glass-panel input[type="tel"],
.glass-panel input[type="search"],
.glass-panel select,
.glass-panel button.hero-input {
	width: 100%;
	height: 2.75rem;
	padding: 0 0.9rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 2.75rem;
	color: #ffffff !important;
	background-color: rgba(255, 255, 255, 0.07) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: 0.5rem;
	outline: none;
	box-shadow: none !important;
	transition: border-color 0.2s, box-shadow 0.2s;
	color-scheme: dark;
	-webkit-appearance: none;
	appearance: none;
}

/* Inputs with left icon need extra padding */
.glass-panel .pl-10 {
	padding-left: 2.5rem !important;
}

.hero-input::placeholder,
.glass-panel input::placeholder {
	color: rgba(255, 255, 255, 0.35) !important;
	opacity: 1;
}

.hero-input:focus,
.glass-panel input:focus,
.glass-panel select:focus,
.glass-panel button.hero-input:focus {
	border-color: #f87171 !important;
	box-shadow: 0 0 0 3px rgba(169, 24, 27, 0.2) !important;
	outline: none;
}

/* Input icon positioning — anchored to bottom of parent, centered within input height */
.hero-input-icon {
	position: absolute;
	left: 0.75rem;
	bottom: 0;
	height: 2.75rem;
	display: flex;
	align-items: center;
	font-size: 1.15rem;
	color: rgba(248, 113, 113, 0.7);
	pointer-events: none;
	z-index: 2;
	line-height: 1;
}

/* Date picker — full-field click target (native icon hidden) */
.glass-panel input[type="date"]::-moz-calendar-picker-indicator {
	opacity: 0;
}

/* ── Custom Autocomplete Dropdown ─────────────────────────────── */
.hero-autocomplete {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 100;
	max-height: 220px;
	overflow-y: auto;
	background: rgba(18, 18, 18, 0.97);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-top: none;
	border-radius: 0 0 0.5rem 0.5rem;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	scrollbar-width: thin;
	scrollbar-color: rgba(248, 113, 113, 0.3) transparent;
}
.hero-autocomplete::-webkit-scrollbar {
	width: 5px;
}
.hero-autocomplete::-webkit-scrollbar-track {
	background: transparent;
}
.hero-autocomplete::-webkit-scrollbar-thumb {
	background: rgba(248, 113, 113, 0.25);
	border-radius: 3px;
}
.hero-autocomplete-item {
	padding: 0.55rem 0.85rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transition: background 0.12s, color 0.12s;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.hero-autocomplete-item:last-child {
	border-bottom: none;
}
.hero-autocomplete-item:hover,
.hero-autocomplete-item.active {
	background: rgba(169, 24, 27, 0.12);
	color: #fff;
}
.hero-autocomplete-item .ac-code {
	font-size: 0.65rem;
	font-weight: 700;
	color: rgba(248, 113, 113, 0.65);
	letter-spacing: 0.05em;
	margin-left: auto;
	flex-shrink: 0;
}
.hero-autocomplete-item mark {
	background: transparent;
	color: #f87171;
	font-weight: 700;
}
.hero-autocomplete-empty {
	padding: 0.7rem 0.85rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.35);
	font-style: italic;
}

/* ── Selects (native dropdown with custom arrow) ──────────────── */
.hero-select,
.glass-panel select {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(248,113,113,0.6)' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 0.85rem center !important;
	background-size: 10px !important;
	padding-right: 2.25rem !important;
	cursor: pointer;
}
.hero-select option,
.glass-panel select option {
	background: #141414;
	color: #fff;
	padding: 0.5rem;
}

/* ── Submit Button ────────────────────────────────────────────── */
.hero-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	height: 2.75rem;
	padding: 0 1.5rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #fff !important;
	background: linear-gradient(135deg, #a9181b 0%, #f87171 100%) !important;
	border: none !important;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.15s;
	line-height: 1;
}
.hero-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.hero-submit:active { transform: translateY(0); }

/* ── Radio Pills ──────────────────────────────────────────────── */
.hero-radio-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.4rem 0.85rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.2s;
	line-height: 1.2;
}
.hero-radio-pill:hover { color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.3); }

/* ── Style Tags ───────────────────────────────────────────────── */
.hero-style-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.45rem 0.9rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.2s;
}
.hero-style-tag:hover { color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.3); }

/* ── Passenger Dropdown ───────────────────────────────────────── */
.hero-pax-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 100;
	min-width: 280px;
	padding: 0.75rem 1rem;
	background: #ffffff;
	border-radius: 0.75rem;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
	animation: paxDropIn 0.2s ease;
}

/* Pax row layout */
.hero-pax-dropdown .pax-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.65rem 0;
}
.hero-pax-dropdown .pax-row + .pax-row {
	border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.hero-pax-dropdown .pax-row-label {
	flex: 1;
	min-width: 0;
}
.hero-pax-dropdown .pax-row-label p:first-child {
	font-size: 0.85rem;
	font-weight: 700;
	color: #0c0c0c;
	line-height: 1.3;
}
.hero-pax-dropdown .pax-row-label p:last-child {
	font-size: 0.6rem;
	color: #7a7a7a;
	line-height: 1.2;
	margin-top: 0.1rem;
}
.hero-pax-dropdown .pax-row-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
	margin-left: 1rem;
}
.hero-pax-dropdown .pax-count {
	width: 1.75rem;
	text-align: center;
	font-size: 0.9rem;
	font-weight: 700;
	color: #0c0c0c;
	line-height: 1;
}

/* Pax button — prevent text overflow */
button.hero-input {
	white-space: nowrap;
	overflow: hidden;
}
button.hero-input span[id$="-display"] {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
	flex: 1;
}

@keyframes paxDropIn {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.pax-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1;
	color: #0c0c0c;
	background: #f5f0ec;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.15s;
	user-select: none;
}
.pax-btn:hover { background: #f87171; color: #fff; border-color: #f87171; }

/* ── Checkboxes inside glass panel ────────────────────────────── */
.glass-panel input[type="checkbox"] {
	width: 1rem !important;
	height: 1rem !important;
	background-color: rgba(255, 255, 255, 0.08) !important;
	border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 3px !important;
	color: #f87171 !important;
	cursor: pointer;
	flex-shrink: 0;
}
.glass-panel input[type="checkbox"]:checked {
	background-color: #a9181b !important;
	border-color: #a9181b !important;
}
.glass-panel input[type="checkbox"]:focus {
	box-shadow: 0 0 0 2px rgba(169, 24, 27, 0.25) !important;
	outline: none;
}

/* ── Hide native datalist/calendar conflicts ──────────────────── */
input::-webkit-list-button {
	display: none !important;
}
input[type="date"]::-webkit-inner-spin-button {
	display: none;
}

/* ── Mobile Responsive Overrides ──────────────────────────────── */
@media (max-width: 767px) {
	/* Default: stack all grids to single column */
	.hero-tab-panel .grid {
		grid-template-columns: 1fr !important;
		gap: 0.55rem !important;
	}
	/* Keep 2-col where it makes sense (dates, pax+cabin, rooms+guests) */
	.hero-tab-panel .grid.mob-2col {
		grid-template-columns: 1fr 1fr !important;
	}
	/* Full-width items inside 2-col grid */
	.hero-tab-panel .mob-full {
		grid-column: 1 / -1 !important;
	}
	.hero-tab-panel .md\:col-span-2 {
		grid-column: span 1 !important;
	}

	/* Reduce panel padding on mobile */
	.hero-tab-panel {
		padding: 1rem 0.9rem !important;
	}

	/* Tighten trip-type pills row */
	.hero-trip-type {
		gap: 0.5rem !important;
		margin-bottom: 0.75rem !important;
	}
	.hero-radio-pill {
		padding: 0.35rem 0.6rem;
		font-size: 0.6rem;
		gap: 0.2rem;
	}
	.hero-radio-pill .material-symbols-outlined {
		font-size: 0.7rem;
	}

	/* Swap button — compact between stacked FROM/TO */
	#swap-airports {
		display: flex !important;
		margin: -0.25rem auto;
		width: 2rem;
		height: 2rem;
	}
	#swap-airports .material-symbols-outlined {
		transform: rotate(90deg);
		font-size: 1rem;
	}

	/* Smaller labels on mobile */
	.hero-label {
		font-size: 0.58rem;
		margin-bottom: 0.3rem;
	}

	/* Slightly smaller inputs */
	.hero-input,
	.glass-panel input[type="text"],
	.glass-panel input[type="date"],
	.glass-panel input[type="email"],
	.glass-panel input[type="number"],
	.glass-panel input[type="tel"],
	.glass-panel input[type="search"],
	.glass-panel select,
	.glass-panel button.hero-input {
		height: 2.5rem;
		line-height: 2.5rem;
		font-size: 0.8rem;
	}

	.hero-input-icon {
		height: 2.5rem;
	}

	/* Submit button — full width, bolder presence */
	.hero-submit {
		height: 2.5rem;
		font-size: 0.72rem;
	}

	/* Checkboxes row tighter */
	.hero-tab-panel .mt-4 {
		margin-top: 0.6rem !important;
	}

	/* Pax dropdown becomes bottom-sheet */
	.hero-pax-dropdown {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		border-radius: 1rem 1rem 0 0;
		z-index: 100;
		max-height: 70vh;
		overflow-y: auto;
	}
	/* Autocomplete full-width */
	.hero-autocomplete {
		position: fixed;
		left: 1rem;
		right: 1rem;
		max-height: 45vh;
		border-radius: 0.5rem;
		border: 1px solid rgba(255, 255, 255, 0.12);
		z-index: 110;
	}
	/* Search results */
	.wbt-search-results {
		margin-left: -0.9rem;
		margin-right: -0.9rem;
	}

	/* Result cards stack better on mobile */
	.wbt-result-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		padding: 0.85rem;
	}
	.wbt-result-price {
		text-align: left;
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}
}

/* ── Focus Styles ─────────────────────────────────────────────── */
*:focus-visible {
	outline: 2px solid #a9181b;
	outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
 *  SEARCH RESULTS PANEL (below hero form)
 * ═══════════════════════════════════════════════════════════════ */
.wbt-search-results {
	margin-top: 1rem;
	max-height: 520px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(248, 113, 113, 0.3) transparent;
	border-radius: 1rem;
}
.wbt-search-results::-webkit-scrollbar {
	width: 5px;
}
.wbt-search-results::-webkit-scrollbar-thumb {
	background: rgba(248, 113, 113, 0.25);
	border-radius: 3px;
}

/* Result card */
.wbt-result-card {
	display: flex;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 0.75rem;
	transition: background 0.15s, border-color 0.15s;
	align-items: center;
}
.wbt-result-card:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(169, 24, 27, 0.2);
}
.wbt-result-card + .wbt-result-card {
	margin-top: 0.5rem;
}

/* Airline logo / hotel thumb */
.wbt-result-icon {
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: rgba(248, 113, 113, 0.6);
}

.wbt-result-body {
	flex: 1;
	min-width: 0;
}

.wbt-result-title {
	font-family: 'Inter', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wbt-result-meta {
	font-family: 'Inter', sans-serif;
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.45);
	margin-top: 0.15rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.wbt-result-meta .material-symbols-outlined {
	font-size: 0.85rem;
}

.wbt-result-price {
	flex-shrink: 0;
	text-align: right;
}
.wbt-result-price .price-amount {
	font-family: 'Inter', sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: #f87171;
	line-height: 1;
}
.wbt-result-price .price-label {
	font-size: 0.6rem;
	color: rgba(255, 255, 255, 0.35);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 0.15rem;
}
.wbt-book-btn {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.25rem 0.65rem;
	background: linear-gradient(135deg, #a9181b, #f87171);
	color: #0c0c0c;
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 0.25rem;
	text-decoration: none;
	transition: opacity 0.2s;
}
.wbt-book-btn:hover {
	opacity: 0.85;
}

/* Loading spinner */
.wbt-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	gap: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.8rem;
	font-family: 'Inter', sans-serif;
}
.wbt-loading .spinner {
	width: 1.5rem;
	height: 1.5rem;
	border: 2px solid rgba(169, 24, 27, 0.25);
	border-top-color: #f87171;
	border-radius: 50%;
	animation: wbtSpin 0.6s linear infinite;
}
@keyframes wbtSpin {
	to { transform: rotate(360deg); }
}

/* Empty/error state */
.wbt-results-empty {
	text-align: center;
	padding: 2.5rem 1.5rem;
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.8rem;
	font-family: 'Inter', sans-serif;
}
.wbt-results-empty .material-symbols-outlined {
	font-size: 2.5rem;
	display: block;
	margin-bottom: 0.5rem;
	color: rgba(248, 113, 113, 0.35);
}

/* API not configured notice */
.wbt-api-notice {
	text-align: center;
	padding: 1rem;
	background: rgba(169, 24, 27, 0.1);
	border: 1px solid rgba(169, 24, 27, 0.2);
	border-radius: 0.5rem;
	color: rgba(248, 113, 113, 0.75);
	font-size: 0.75rem;
	font-family: 'Inter', sans-serif;
	margin-top: 0.75rem;
}

/* ── Travelpayouts White Label Widget Overrides ───────────────── */
.wbt-wl-wrapper {
	background: #ffffff;
	border-radius: 1rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Search form container */
.wbt-wl-wrapper #tpwl-search {
	border-radius: 1rem 1rem 0 0;
}

/* Tickets / results container */
.wbt-wl-wrapper #tpwl-tickets {
	margin-top: 0;
}

/* Override widget font to match site */
#tpwl-search,
#tpwl-tickets {
	font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* Smooth widget loading transition */
#tpwl-search:empty,
#tpwl-tickets:empty {
	min-height: 0;
}

#tpwl-search:not(:empty) {
	min-height: 80px;
	animation: wbtFadeIn 0.4s ease-out;
}

#tpwl-tickets:not(:empty) {
	min-height: 200px;
	animation: wbtFadeIn 0.4s ease-out;
}

@keyframes wbtFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Pagination ───────────────────────────────────────────────── */
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

/* Light pages (packages, destinations, hotels, deals) */
.bg-surface .page-numbers,
section:not(.bg-\\[\\#0c0c0c\\]) .page-numbers {
	color: var(--md-sys-color-on-surface-variant, #49454F);
	border: 1px solid rgba(0,0,0,0.12);
	background: #fff;
}
.bg-surface .page-numbers:hover,
section:not(.bg-\\[\\#0c0c0c\\]) .page-numbers:hover {
	border-color: var(--md-sys-color-secondary, #f87171);
	color: var(--md-sys-color-secondary, #f87171);
	background: rgba(169,24,27,0.1);
}
.bg-surface .page-numbers.current,
section:not(.bg-\\[\\#0c0c0c\\]) .page-numbers.current {
	background: var(--md-sys-color-primary, #1a1a1a);
	color: #fff;
	border-color: var(--md-sys-color-primary, #1a1a1a);
}

/* Dark pages (umrah/hajj) */
.wbt-dark-pagination .page-numbers {
	color: rgba(255,255,255,0.7);
	border: 1px solid rgba(255,255,255,0.15);
	background: rgba(255,255,255,0.05);
}
.wbt-dark-pagination .page-numbers:hover {
	border-color: var(--md-sys-color-secondary, #f87171);
	color: var(--md-sys-color-secondary, #f87171);
	background: rgba(255,255,255,0.1);
}
.wbt-dark-pagination .page-numbers.current {
	background: var(--md-sys-color-secondary, #f87171);
	color: #1a1a1a;
	border-color: var(--md-sys-color-secondary, #f87171);
	font-weight: 700;
}
.wbt-dark-pagination .page-numbers.dots {
	border: none;
	background: transparent;
}

/* Dots for all contexts */
.page-numbers.dots {
	border: none;
	background: transparent;
	cursor: default;
}
.page-numbers.dots:hover {
	border: none;
	background: transparent;
}

/* ═══════════════════════════════════════════════════════════════
 *  SCROLL REVEAL ANIMATIONS
 *  Lightweight IntersectionObserver-driven entrance animations.
 *  Add .reveal to any element; optionally combine with a variant.
 * ═══════════════════════════════════════════════════════════════ */

/* Base: hidden state */
.reveal {
	opacity: 0;
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
	            transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}

/* Variants — starting positions */
.reveal-up        { transform: translateY(40px); }
.reveal-down      { transform: translateY(-40px); }
.reveal-left      { transform: translateX(-40px); }
.reveal-right     { transform: translateX(40px); }
.reveal-scale     { transform: scale(0.92); }
.reveal-scale-up  { transform: scale(0.92) translateY(30px); }

/* Visible state — applied by IntersectionObserver */
.reveal.is-visible {
	opacity: 1;
	transform: translate(0) scale(1);
}

/* Stagger children: add .reveal-stagger to parent, .reveal-child to children */
.reveal-stagger .reveal-child {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
	            transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.is-visible .reveal-child {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger delay — auto-set via CSS custom property */
.reveal-stagger.is-visible .reveal-child:nth-child(1)  { transition-delay: 0.05s; }
.reveal-stagger.is-visible .reveal-child:nth-child(2)  { transition-delay: 0.12s; }
.reveal-stagger.is-visible .reveal-child:nth-child(3)  { transition-delay: 0.19s; }
.reveal-stagger.is-visible .reveal-child:nth-child(4)  { transition-delay: 0.26s; }
.reveal-stagger.is-visible .reveal-child:nth-child(5)  { transition-delay: 0.33s; }
.reveal-stagger.is-visible .reveal-child:nth-child(6)  { transition-delay: 0.4s; }
.reveal-stagger.is-visible .reveal-child:nth-child(7)  { transition-delay: 0.47s; }
.reveal-stagger.is-visible .reveal-child:nth-child(8)  { transition-delay: 0.54s; }
.reveal-stagger.is-visible .reveal-child:nth-child(9)  { transition-delay: 0.61s; }
.reveal-stagger.is-visible .reveal-child:nth-child(10) { transition-delay: 0.68s; }
.reveal-stagger.is-visible .reveal-child:nth-child(11) { transition-delay: 0.75s; }
.reveal-stagger.is-visible .reveal-child:nth-child(12) { transition-delay: 0.82s; }

/* Hero-specific entrance */
.hero-entrance {
	opacity: 0;
	transform: translateY(30px);
	animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-entrance-delay-1 { animation-delay: 0.15s; }
.hero-entrance-delay-2 { animation-delay: 0.3s; }
.hero-entrance-delay-3 { animation-delay: 0.5s; }

@keyframes heroReveal {
	to { opacity: 1; transform: translateY(0); }
}

/* Subtle float for decorative elements */
@keyframes gentleFloat {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-8px); }
}
.animate-float {
	animation: gentleFloat 4s ease-in-out infinite;
}

/* Counter / number count-up shimmer */
@keyframes countShimmer {
	0%   { background-position: -200% center; }
	100% { background-position: 200% center; }
}
.animate-shimmer {
	background: linear-gradient(90deg, currentColor 40%, #f87171 50%, currentColor 60%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: countShimmer 3s ease-in-out infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.reveal,
	.reveal-stagger .reveal-child,
	.hero-entrance {
		transition: none !important;
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ═══════════════════════════════════════════════════════════════
 *  PRELOADER
 *  Full-screen overlay with animated logo + spinner.
 * ═══════════════════════════════════════════════════════════════ */
#pt-preloader {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
	            visibility 0.5s;
}
#pt-preloader.is-done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.pt-preloader-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

/* Logo entrance */
.pt-preloader-logo {
	opacity: 0;
	transform: translateY(12px) scale(0.96);
	animation: ptLogoIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
.pt-preloader-logo img {
	height: 80px;
	width: auto;
	display: block;
}

@keyframes ptLogoIn {
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Spinner ring */
.pt-preloader-spinner svg {
	animation: ptSpinnerRotate 1s linear infinite;
}
.pt-preloader-spinner circle {
	stroke: #a9181b;
	stroke-dasharray: 90, 150;
	stroke-dashoffset: 0;
	animation: ptSpinnerDash 1.2s ease-in-out infinite;
}

@keyframes ptSpinnerRotate {
	100% { transform: rotate(360deg); }
}
@keyframes ptSpinnerDash {
	0%   { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
	50%  { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
	100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Mobile: smaller logo */
@media (max-width: 639px) {
	.pt-preloader-logo img {
		height: 60px;
	}
	.pt-preloader-spinner svg {
		width: 32px;
		height: 32px;
	}
}

/* ═══════════════════════════════════════════════════════════════
 *  PAGE TRANSITION OVERLAY
 *  Slides in when navigating, page loads with it covering, then
 *  slides out once new page is ready.
 * ═══════════════════════════════════════════════════════════════ */
#pt-transition {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: #ffffff;
	transform: scaleY(0);
	transform-origin: bottom;
	pointer-events: none;
	will-change: transform;
}

/* Navigate away: slide up to cover */
#pt-transition.is-entering {
	animation: ptTransIn 0.4s cubic-bezier(0.7, 0, 0.3, 1) forwards;
	pointer-events: all;
}

/* New page loaded: slide up to reveal */
#pt-transition.is-leaving {
	transform: scaleY(1);
	transform-origin: top;
	animation: ptTransOut 0.4s cubic-bezier(0.7, 0, 0.3, 1) 0.05s forwards;
}

@keyframes ptTransIn {
	from { transform: scaleY(0); transform-origin: bottom; }
	to   { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes ptTransOut {
	from { transform: scaleY(1); transform-origin: top; }
	to   { transform: scaleY(0); transform-origin: top; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	#pt-preloader {
		transition: none !important;
	}
	#pt-preloader .pt-preloader-logo {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
	#pt-preloader .pt-preloader-spinner svg,
	#pt-preloader .pt-preloader-spinner circle {
		animation: none !important;
	}
	#pt-transition {
		display: none !important;
	}
}
