.ml-tours-widget {
	--ml-tour-card-shadow: 0 18px 45px rgba(18, 25, 38, 0.10);
	--ml-tour-card-shadow-hover: 0 24px 65px rgba(18, 25, 38, 0.16);
	--ml-tour-text: #52606d;
	--ml-tour-title: #1f2933;
	--ml-tour-border: rgba(31, 41, 51, 0.10);
	--ml-tour-overlay: rgba(13, 20, 28, 0.72);
}

.ml-tours-header {
	max-width: 860px;
	margin: 0 auto 48px;
	text-align: center;
}

.ml-tours-eyebrow {
	margin: 0 0 18px;
	color: #a0a7ad;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.28em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ml-tours-main-title {
	margin: 0 0 16px;
	color: var(--ml-tour-title);
}

.ml-tours-intro {
	margin: 0;
	color: var(--ml-tour-text);
	font-size: 17px;
	line-height: 1.7;
}

.ml-tours-group + .ml-tours-group {
	margin-top: 64px;
}

.ml-tours-group-title {
	margin: 0 0 24px;
	text-align: center;
}

.ml-tours-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.ml-tour-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ml-tour-border);
	border-radius: 18px;
	box-shadow: var(--ml-tour-card-shadow);
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ml-tour-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ml-tour-card-shadow-hover);
}

.ml-tour-card-media {
	position: relative;
	height: 240px;
	overflow: hidden;
	background: #e8edf2;
}

.ml-tour-card-media img,
.ml-tour-modal-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ml-tour-card-media img {
	transition: transform 0.35s ease;
}

.ml-tour-card:hover .ml-tour-card-media img {
	transform: scale(1.06);
}

.ml-tour-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 26px;
}

.ml-tour-card-tag {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 14px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(31, 41, 51, 0.08);
	color: var(--ml-tour-title);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.ml-tour-card-title {
	margin: 0 0 14px;
	color: var(--ml-tour-title);
	font-size: 23px;
	line-height: 1.22;
}

.ml-tour-card-text {
	margin: 0 0 24px;
	color: var(--ml-tour-text);
	font-size: 15px;
	line-height: 1.7;
}

.ml-tour-readmore {
	align-self: flex-start;
	margin-top: auto;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--ml-tour-title);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ml-tour-readmore:hover,
.ml-tour-readmore:focus {
	transform: translateY(-1px);
	opacity: 0.92;
}

.ml-tour-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 32px;
}

.ml-tour-modal.is-open {
	display: flex;
}

.ml-tour-modal-overlay {
	position: absolute;
	inset: 0;
	background: var(--ml-tour-overlay);
	backdrop-filter: blur(4px);
}

.ml-tour-modal-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 820px;
	max-height: calc(100vh - 64px);
	overflow: auto;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.ml-tour-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.96);
	box-shadow: 0 8px 22px rgba(0,0,0,0.18);
	color: #111;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.ml-tour-modal-image {
	height: 320px;
	background: #e8edf2;
}

.ml-tour-modal-title {
	margin: 0;
	padding: 34px 40px 10px;
	color: var(--ml-tour-title);
	font-size: 32px;
	line-height: 1.22;
}

.ml-tour-modal-content {
	padding: 0 40px 40px;
	color: var(--ml-tour-text);
	font-size: 16px;
	line-height: 1.75;
}

.ml-tour-modal-content p,
.ml-tour-modal-content ul,
.ml-tour-modal-content ol {
	margin-top: 0;
	margin-bottom: 18px;
}

.ml-tour-modal-content ul,
.ml-tour-modal-content ol {
	padding-left: 22px;
}

.ml-tour-modal-content li + li {
	margin-top: 10px;
}

body.ml-tour-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.ml-tours-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ml-tours-header {
		margin-bottom: 34px;
	}

	.ml-tours-grid {
		grid-template-columns: 1fr;
	}

	.ml-tours-group + .ml-tours-group {
		margin-top: 46px;
	}

	.ml-tour-card-body {
		padding: 22px;
	}

	.ml-tour-card-media {
		height: 210px;
	}

	.ml-tour-modal {
		padding: 14px;
	}

	.ml-tour-modal-panel {
		max-height: calc(100vh - 28px);
		border-radius: 18px;
	}

	.ml-tour-modal-close {
		top: 10px;
		right: 10px;
		width: 38px;
		height: 38px;
		font-size: 27px;
	}

	.ml-tour-modal-image {
		height: 220px;
	}

	.ml-tour-modal-title {
		padding: 28px 24px 8px;
		font-size: 25px;
	}

	.ml-tour-modal-content {
		padding: 0 24px 30px;
		font-size: 15px;
	}
}
