/**
 * ValuesBusTour Integrations Stylesheet
 *
 * @package ValuesBusTour_Integrations
 * @version 1.0.0
 */

/* ==========================================================================
   1. FlixBus Routes & Timetable Cards
   ========================================================================== */

.vbt-routes-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin: 28px 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vbt-routes-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.vbt-routes-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 4px;
}

.vbt-routes-subtitle {
	font-size: 0.9rem;
	color: #64748b;
	margin: 0;
}

.vbt-operator-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 9999px;
}

.vbt-operator-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
}

.vbt-timetable-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vbt-timetable-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px 20px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vbt-timetable-row:hover {
	border-color: #cbd5e1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.vbt-time-block {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1;
}

.vbt-time-point {
	display: flex;
	flex-direction: column;
	min-width: 120px;
}

.vbt-time-value {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
}

.vbt-station-name {
	font-size: 0.8rem;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
}

.vbt-duration-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 90px;
}

.vbt-duration-line {
	width: 100%;
	height: 2px;
	background: #cbd5e1;
	position: relative;
}

.vbt-duration-line::after {
	content: '';
	position: absolute;
	right: 0;
	top: -3px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #047857;
}

.vbt-duration-text {
	font-size: 0.75rem;
	font-weight: 500;
	color: #64748b;
}

.vbt-badge-direct {
	font-size: 0.7rem;
	font-weight: 600;
	color: #047857;
	background: #ecfdf5;
	padding: 2px 6px;
	border-radius: 4px;
}

.vbt-badge-transfer {
	font-size: 0.7rem;
	font-weight: 600;
	color: #b45309;
	background: #fffbeb;
	padding: 2px 6px;
	border-radius: 4px;
}

.vbt-fare-block {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: 20px;
}

.vbt-fare-price {
	text-align: right;
}

.vbt-fare-from {
	font-size: 0.75rem;
	color: #64748b;
	display: block;
}

.vbt-fare-amount {
	font-size: 1.25rem;
	font-weight: 700;
	color: #047857;
}

/* ==========================================================================
   2. Viator Tours Grid & Cards
   ========================================================================== */

.vbt-tours-section {
	margin: 32px 0;
}

.vbt-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.vbt-tour-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vbt-tour-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.vbt-card-media {
	position: relative;
	width: 100%;
	height: 200px;
	background: #f1f5f9;
}

.vbt-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vbt-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	background: #e2e8f0;
}

.vbt-badge-primary {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(15, 23, 42, 0.85);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 6px;
	backdrop-filter: blur(4px);
}

.vbt-card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.vbt-rating {
	font-size: 0.85rem;
	font-weight: 600;
	color: #0f172a;
}

.vbt-duration {
	font-size: 0.85rem;
	color: #64748b;
}

/* ==========================================================================
   3. Buttons & Utilities
   ========================================================================== */

.vbt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.15s ease;
}

.vbt-btn-primary {
	background: #047857;
	color: #ffffff !important;
}

.vbt-btn-primary:hover {
	background: #065f46;
}

.vbt-btn-secondary {
	background: #f1f5f9;
	color: #0f172a !important;
	border-color: #cbd5e1;
}

.vbt-btn-secondary:hover {
	background: #e2e8f0;
}

.vbt-btn-sm {
	padding: 6px 12px;
	font-size: 0.85rem;
}

/* ==========================================================================
   4. Mobile Responsive Breakpoints
   ========================================================================== */

@media (max-width: 768px) {
	.vbt-timetable-row {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.vbt-time-block {
		justify-content: space-between;
		gap: 12px;
	}

	.vbt-fare-block {
		margin-left: 0;
		justify-content: space-between;
		padding-top: 12px;
		border-top: 1px solid #e2e8f0;
	}

	.vbt-time-point {
		min-width: unset;
	}

	.vbt-station-name {
		max-width: 110px;
	}
}
