/**
 * Trip Reviews & Traveller Stories Widget Stylesheet
 * Supports Design Variation 1 & Variation 2
 */

.abx-tr-widget {
	box-sizing: border-box;
	width: 100%;
	position: relative;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: #1a1a1a;
}

.abx-tr-widget *,
.abx-tr-widget *::before,
.abx-tr-widget *::after {
	box-sizing: border-box;
}

/* ===================================================================
   SLIDE ANIMATION & LAYOUT (Slide In / Out)
   =================================================================== */
.abx-tr-slides-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.abx-tr-slide {
	width: 100%;
	opacity: 0;
	visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
	transform: translateX(45px);
	transition: transform var(--abx-tr-speed, 0.45s) cubic-bezier(0.25, 1, 0.5, 1),
	            opacity var(--abx-tr-speed, 0.45s) cubic-bezier(0.25, 1, 0.5, 1),
	            visibility var(--abx-tr-speed, 0.45s);
	pointer-events: none;
}

.abx-tr-slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	transform: translateX(0) translateY(0);
	pointer-events: auto;
	z-index: 2;
}

/* Horizontal Slide In / Out */
.abx-tr-slide.slide-out-left {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-45px);
	z-index: 1;
}

.abx-tr-slide.slide-out-right {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateX(45px);
	z-index: 1;
}

.abx-tr-slide.slide-in-right {
	transform: translateX(45px);
	opacity: 0;
}

.abx-tr-slide.slide-in-left {
	transform: translateX(-45px);
	opacity: 0;
}

/* Vertical Slide Up / Down */
.abx-tr-widget[data-effect="slide_up"] .abx-tr-slide {
	transform: translateY(30px);
}

.abx-tr-widget[data-effect="slide_up"] .abx-tr-slide.slide-out-left,
.abx-tr-widget[data-effect="slide_up"] .abx-tr-slide.slide-out-right {
	transform: translateY(-30px);
}

.abx-tr-widget[data-effect="slide_up"] .abx-tr-slide.slide-in-right,
.abx-tr-widget[data-effect="slide_up"] .abx-tr-slide.slide-in-left {
	transform: translateY(30px);
}

/* Fade Only */
.abx-tr-widget[data-effect="fade"] .abx-tr-slide {
	transform: none !important;
}

/* Typography Defaults */
.abx-tr-badge {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #1a1a1a;
	margin-bottom: 24px;
}

.abx-tr-quote-text {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 26px;
	line-height: 1.45;
	font-weight: 400;
	color: #1a1a1a;
	margin: 0 0 24px 0;
	padding: 0;
	border: none;
	background: none;
}

.abx-tr-author-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.abx-tr-author-name {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
}

.abx-tr-author-details {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #555555;
}

/* ===================================================================
   VARIATION 1: SPLIT LAYOUT WITH SIDE COUNTER & DASHES
   =================================================================== */
.abx-tr-layout-variation_1 .abx-tr-var1-container {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: 100%;
}

.abx-tr-layout-variation_1 .abx-tr-var1-main {
	flex: 1 1 auto;
	min-width: 0;
}

.abx-tr-layout-variation_1 .abx-tr-var1-divider {
	width: 1px;
	background-color: #1a1a1a;
	opacity: 0.35;
	min-height: 140px;
	align-self: stretch;
	flex-shrink: 0;
}

.abx-tr-layout-variation_1 .abx-tr-var1-controls {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-shrink: 0;
	min-width: 130px;
	padding-left: 12px;
}

/* Variation 1 Counter: 01 / 03 */
.abx-tr-counter {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 28px;
	line-height: 1;
	display: flex;
	align-items: center;
	gap: 4px;
	user-select: none;
}

.abx-tr-counter-current {
	color: #c25c2c;
	font-weight: 600;
}

.abx-tr-counter-sep {
	color: #1a1a1a;
	font-weight: 300;
	margin: 0 2px;
}

.abx-tr-counter-total {
	color: #1a1a1a;
	font-weight: 400;
}

/* Variation 1 Dash Progress Indicators */
.abx-tr-dashes {
	display: flex;
	align-items: center;
	gap: 6px;
}

.abx-tr-dash {
	display: inline-block;
	height: 2px;
	width: 16px;
	background-color: #1a1a1a;
	border-radius: 1px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}

.abx-tr-dash.is-active {
	background-color: #c25c2c;
	width: 22px;
}

/* Navigation Buttons Styling */
.abx-tr-nav-buttons {
	display: flex;
	align-items: center;
	gap: 12px;
}

.abx-tr-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid #999999;
	background-color: transparent;
	color: #1a1a1a;
	padding: 0;
	margin: 0;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.abx-tr-nav-btn svg {
	display: block;
	transition: transform 0.2s ease;
}

.abx-tr-nav-btn:hover {
	background-color: #c25c2c;
	border-color: #c25c2c;
	color: #ffffff;
}

.abx-tr-nav-btn:hover svg {
	transform: scale(1.1);
}

.abx-tr-nav-btn:active {
	transform: scale(0.95);
}

/* ===================================================================
   VARIATION 2: REVIEWS HEADER WITH TOP-RIGHT NAV BUTTONS
   =================================================================== */
.abx-tr-layout-variation_2 .abx-tr-var2-container {
	width: 100%;
}

.abx-tr-layout-variation_2 .abx-tr-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.abx-tr-layout-variation_2 .abx-tr-var2-title {
	font-family: 'Inter', sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	padding: 0;
	line-height: 1.2;
}

.abx-tr-layout-variation_2 .abx-tr-nav-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #e5e5e5;
	background-color: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	color: #1a1a1a;
}

.abx-tr-layout-variation_2 .abx-tr-nav-btn:hover {
	background-color: #1a1a1a;
	border-color: #1a1a1a;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */
@media (max-width: 767px) {
	.abx-tr-layout-variation_1 .abx-tr-var1-container {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.abx-tr-layout-variation_1 .abx-tr-var1-divider {
		width: 100%;
		height: 1px;
		min-height: 1px;
		margin: 8px 0;
	}

	.abx-tr-layout-variation_1 .abx-tr-var1-controls {
		flex-direction: row;
		width: 100%;
		justify-content: space-between;
		padding-left: 0;
	}

	.abx-tr-quote-text {
		font-size: 20px;
		line-height: 1.4;
	}
}
