/* Scoped styles — all selectors nested under .esim-popular-routes */
.esim-popular-routes {
	--epr-text: #1a1d2e;
	--epr-muted: #8b90a0;
	--epr-teal: #00a89d;
	--epr-teal-soft: #e8f8f6;
	--epr-border: #e8eaef;
	--epr-border-hover: #00a89d;
	--epr-purple: #8b5cf6;
	--epr-bg: #ffffff;
	--epr-card-bg: #ffffff;
	--epr-radius: 14px;
	--epr-gap: 20px;

	box-sizing: border-box;
	width: 100%;
	padding: 8px 0 24px;
	background: var(--epr-bg);
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	color: var(--epr-text);
	-webkit-font-smoothing: antialiased;
}

.esim-popular-routes *,
.esim-popular-routes *::before,
.esim-popular-routes *::after {
	box-sizing: border-box;
}

.esim-popular-routes__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

.esim-popular-routes__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.esim-popular-routes__heading {
	min-width: 0;
	flex: 1 1 auto;
}

.esim-popular-routes__title {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--epr-text);
}

.esim-popular-routes__subtitle {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--epr-muted);
}

.esim-popular-routes__all-link {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--epr-teal);
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.esim-popular-routes__all-link:hover,
.esim-popular-routes__all-link:focus {
	opacity: 0.85;
	color: var(--epr-teal);
	text-decoration: none;
}

.esim-popular-routes__all-arrow {
	font-size: 16px;
	line-height: 1;
}

.esim-popular-routes__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--epr-gap);
}

.esim-popular-routes--hotels .esim-popular-routes__grid {
	grid-template-columns: repeat(4, 1fr);
}

.esim-popular-routes__card {
	display: flex;
	flex-direction: column;
	background: var(--epr-card-bg);
	border: 1px solid var(--epr-border);
	border-radius: var(--epr-radius);
	padding: 22px 22px 20px;
	min-height: 148px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.esim-popular-routes__card:hover {
	border-color: var(--epr-border-hover);
	box-shadow: 0 4px 16px rgba(0, 168, 157, 0.08);
}

.esim-popular-routes--cars .esim-popular-routes__card:hover {
	border-color: #e9d4ff !important;
	box-shadow: 0 4px 16px rgba(139, 92, 246, 0.1) !important;
}

.esim-popular-routes__card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.esim-popular-routes__code {
	display: block;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	color: var(--epr-text);
}

.esim-popular-routes--flights .esim-popular-routes__code {
	font-size: 14px;
}

.esim-popular-routes--hotels .esim-popular-routes__code,
.esim-popular-routes--cars .esim-popular-routes__code {
	margin-bottom: 10px;
	font-size: 15px;
}

.esim-popular-routes__price {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--epr-teal-soft);
	color: var(--epr-teal);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.esim-popular-routes__card-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--epr-text);
}

.esim-popular-routes--flights .esim-popular-routes__card-title {
	font-size: 16px;
}

.esim-popular-routes__card-subtitle {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--epr-muted);
}

.esim-popular-routes__card-subtitle--italic {
	font-style: italic;
}

.esim-popular-routes__esim-link,
.esim-popular-routes__search-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.esim-popular-routes__esim-link {
	color: var(--epr-teal);
}

.esim-popular-routes__esim-link:hover,
.esim-popular-routes__esim-link:focus {
	color: var(--epr-teal);
	opacity: 0.85;
	text-decoration: none;
}

.esim-popular-routes__search-link {
	color: var(--epr-purple);
}

.esim-popular-routes__search-link:hover,
.esim-popular-routes__search-link:focus {
	color: var(--epr-purple);
	opacity: 0.85;
	text-decoration: none;
}

.esim-popular-routes__icon {
	flex: 0 0 auto;
	display: block;
}

.esim-popular-routes__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

.esim-popular-routes__actions .esim-popular-routes__esim-link,
.esim-popular-routes__actions .esim-popular-routes__search-link {
	margin-top: 0;
}

.esim-popular-routes__actions-sep {
	color: #c5c9d4;
	font-size: 14px;
	line-height: 1;
}

/* Hotels: slightly taller cards with stacked content */
.esim-popular-routes--hotels .esim-popular-routes__card {
	min-height: 133px !important;
	/* padding: 24px; */
}

.esim-popular-routes--hotels .esim-popular-routes__card-title {
	font-size: 18px;
	margin-bottom: 4px;
}

.esim-popular-routes--hotels .esim-popular-routes__card-subtitle {
	margin-bottom: 20px;
}

/* Cars */
.esim-popular-routes--cars .esim-popular-routes__card {
	min-height: 168px;
}

.esim-popular-routes--cars .esim-popular-routes__card-title {
	font-size: 17px;
}

.esim-popular-routes--cars .esim-popular-routes__card-subtitle {
	margin-bottom: 22px;
}

/* Responsive */
@media (max-width: 960px) {
	.esim-popular-routes__grid,
	.esim-popular-routes--hotels .esim-popular-routes__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.esim-popular-routes__title {
		font-size: 24px;
	}
}

@media (max-width: 640px) {
	.esim-popular-routes__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 20px;
	}

	.esim-popular-routes__all-link {
		margin-top: 0;
	}

	.esim-popular-routes__grid,
	.esim-popular-routes--hotels .esim-popular-routes__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.esim-popular-routes__title {
		font-size: 22px;
	}

	.esim-popular-routes__card {
		min-height: 0;
	}
}
