/**
 * Widget trang tour — style theo đúng ngôn ngữ thiết kế của popup.
 *
 * Màu để mặc định giống popup; người dựng trang đổi qua control Elementor,
 * Elementor sẽ sinh CSS đè lên (selector {{WRAPPER}} nên luôn thắng file này).
 *
 * LƯU Ý: theme Eduma có rule `button:not(.owl-page)` (0,1,1) tô nền mọi button
 * bằng màu chính của site, nên rule cho nút phải >= 2 class mới thắng.
 */

/* ---------- placeholder chỉ hiện trong editor ---------- */

.nana-tour-widget-placeholder {
	padding: 16px;
	border: 1px dashed rgba(128, 128, 128, .6);
	border-radius: 4px;
	color: #888;
	font-size: 13px;
	text-align: center;
}

/* ---------- Facts ---------- */

.nana-tour-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 20px;
}

.nana-tour-facts__label {
	margin-bottom: 6px;
	color: #a8a843;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.4;
	text-transform: uppercase;
}

.nana-tour-facts__value {
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.nana-tour-facts__value p:last-child {
	margin-bottom: 0;
}

/* ---------- Content ---------- */

.nana-tour-content {
	color: #ffffff;
	font-size: 15px;
	line-height: 1.7;
}

.nana-tour-content > *:last-child {
	margin-bottom: 0;
}

.nana-tour-content a {
	color: #a8a843;
}

.nana-tour-content img {
	max-width: 100%;
	height: auto;
}

/* ---------- Gallery ---------- */

.nana-tour-gal {
	--nana-gal-accent: #a8a843;
	--nana-gal-nav: #ffffff;
	--nana-gal-nav-bg: rgba(0, 0, 0, .5);

	position: relative;
}

.nana-tour-gal *,
.nana-tour-gal *::before,
.nana-tour-gal *::after {
	box-sizing: border-box;
}

.nana-tour-gal__stage {
	position: relative;
	height: 460px;
	overflow: hidden;
}

/* Đổi ảnh bằng cách chồng lớp mới rồi fade, không đổi src của ảnh đang hiện —
   đổi src làm trình duyệt xoá ảnh cũ trước khi ảnh mới tải xong nên bị nháy. */
.nana-tour-gal__stage img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1;
	transition: opacity .45s ease;
}

.nana-tour-gal__stage img.is-entering {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.nana-tour-gal__stage img {
		transition: none;
	}
}

.nana-tour-gal__strip {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

/* Biến thể: dãy thumbnail đè lên ảnh lớn, giống popup */
.nana-tour-gal--overlay .nana-tour-gal__strip {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin-top: 0;
	padding: 14px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}

.nana-tour-gal__thumbs {
	display: flex;
	gap: 10px;
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	/* Ẩn thanh cuộn — điều hướng bằng mũi tên */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.nana-tour-gal__thumbs::-webkit-scrollbar {
	display: none;
}

.nana-tour-gal .nana-tour-gal__thumb {
	flex: 0 0 auto;
	width: 84px;
	height: 84px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, .45);
	border-radius: 3px;
	background: rgba(0, 0, 0, .35);
	background-color: rgba(0, 0, 0, .35);
	overflow: hidden;
	cursor: pointer;
	transition: border-color .15s ease;
}

.nana-tour-gal .nana-tour-gal__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nana-tour-gal .nana-tour-gal__thumb.is-active,
.nana-tour-gal .nana-tour-gal__thumb:hover {
	border-color: var(--nana-gal-accent);
}

.nana-tour-gal .nana-tour-gal__nav {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 50%;
	background: var(--nana-gal-nav-bg);
	background-color: var(--nana-gal-nav-bg);
	color: var(--nana-gal-nav);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: opacity .15s ease, background-color .15s ease;
}

.nana-tour-gal .nana-tour-gal__nav:hover {
	background-color: var(--nana-gal-accent);
}

.nana-tour-gal .nana-tour-gal__nav[disabled] {
	opacity: .3;
	cursor: default;
	background-color: var(--nana-gal-nav-bg);
}

/* Đủ chỗ cho tất cả ảnh thì giấu mũi tên đi */
.nana-tour-gal__strip.is-static .nana-tour-gal__nav {
	display: none;
}

@media (max-width: 767px) {
	.nana-tour-gal__stage {
		height: 260px;
	}

	.nana-tour-gal .nana-tour-gal__thumb {
		width: 56px;
		height: 56px;
	}
}
