/* =========================================================
 * FIX LỖI 1 — Feature items Phần A: cột dọc, icon tròn 40px.
 * Dùng !important để chống Flatsome override ul/li.
 * ========================================================= */
.sf-tour-feats {
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.sf-tour-feats > li,
.sf-tour-feat {
	display: flex !important;
	align-items: flex-start !important;
	gap: 13px !important;
	width: auto !important;
	float: none !important;
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}
.sf-tour-feat-ic {
	flex: 0 0 40px !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: rgba(28,138,78,.12) !important;
	color: #1c8a4e !important;
}
.sf-tour-feat-ic svg { width: 18px; height: 18px; }
.sf-tour-feat-tx { display: flex !important; flex-direction: column !important; text-align: left !important; }
.sf-tour-feat-tx strong {
	display: block;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-size: 15px; font-weight: 700; color: var(--sf-navy, #0B1C2C);
}
.sf-tour-feat-tx small { display: block; font-size: 13px; color: #7b8a99; }

/* =========================================================
 * FIX LỖI 2 — Slider Phần A: track ngang + translateX (KHÔNG column).
 * ========================================================= */
.sf-tour-hero-right { position: relative; min-width: 0; }
.sf-tour-hero-right .sf-slider-track,
.sfv18-slider-wrap .sfv18-slider-track {
	display: flex !important;
	flex-direction: row !important;
	transition: transform 0.4s ease !important;
	will-change: transform;
}
.sf-tour-hero-right [data-sf-track],
.sfv18-slider-wrap {
	overflow: hidden !important;
	position: relative !important;
	border-radius: 16px;
}
/* Mỗi slide chiếm trọn 1 khung, không co lại. */
.sf-tour-hero-right .sf-slide,
.sfv18-slide {
	flex: 0 0 100% !important;
	flex-shrink: 0 !important;
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
	display: block !important; /* ghi đè display:none của v17 (v17 dùng is-active) */
}
/* V17 cũ ẩn slide bằng display:none -> vô hiệu trong ngữ cảnh slider track. */
.sf-tour-hero-right [data-sf-track] .sf-slide { display: block !important; }


.sf-tour-grid-block { background: #fff; }

.sf-tour-grid-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sf-tour-grid-ttl { display: flex; align-items: center; gap: 12px; }
.sf-tour-grid-flame {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 11px;
	background: rgba(232,114,74,.14); color: var(--sf-coral, #E8724A);
}
.sf-tour-grid-flame svg { color: var(--sf-coral, #E8724A); }
.sf-tour-grid-head .sf-h2 { margin: 0; }
.sf-tour-grid-more {
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700; font-size: 14.5px;
	color: var(--sf-lime, #C8F000);
	text-decoration: none; white-space: nowrap;
	display: inline-flex; align-items: center; gap: 6px;
}
.sf-tour-grid-more:hover { text-decoration: underline; }

/* Grid 4 cột */
.sf-tcg {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.sf-tcg-card {
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid #eef1f5;
	border-radius: 14px;
	overflow: hidden;
	transition: transform 200ms ease, box-shadow 200ms ease;
}
.sf-tcg-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(11,28,44,.12); }

/* Media 16:9 */
.sf-tcg-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.sf-tcg-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* FIX LỖI 3 — khi không có ảnh: gradient màu môn + tên giải chữ trắng. */
.sf-tcg-media.sf-tcg-media--fallback {
	display: flex;
	align-items: center;
	justify-content: center;
}
.sf-tcg-media--fallback .sf-tcg-fallback-name {
	position: relative;
	z-index: 1;
	padding: 0 16px;
	text-align: center;
	color: #fff;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.sf-tcg-badge {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700; font-size: 11px; letter-spacing: .3px;
	background: #1c8a4e; color: #fff;
	padding: 5px 11px; border-radius: 999px;
}
.sf-tcg-badge.sf-st-live { background: #e8724a; }
.sf-tcg-badge.sf-st-soon { background: #2f6fb0; }
.sf-tcg-badge.sf-st-open { background: #1c8a4e; }
.sf-tcg-badge.sf-st-other { background: #64748b; }

.sf-tcg-fav {
	position: absolute; top: 10px; right: 10px; z-index: 2;
	width: 34px; height: 34px; border-radius: 50%;
	border: 0; cursor: pointer;
	background: rgba(255,255,255,.9); color: #334155;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.sf-tcg-fav:hover { background: #fff; transform: scale(1.06); }
.sf-tcg-fav.is-fav { background: #e11d48; color: #fff; }
.sf-tcg-fav.is-fav svg { fill: #fff; }

/* Body */
.sf-tcg-body { padding: 14px 15px 12px; flex: 1; }
.sf-tcg-sport {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700; font-size: 11.5px; letter-spacing: .6px;
	color: #1c8a4e; text-transform: uppercase;
	margin-bottom: 8px;
}
.sf-tcg-sport svg { color: #1c8a4e; }
.sf-tcg-title {
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-size: 15.5px; line-height: 1.35; font-weight: 700;
	color: #0f172a; margin: 0 0 10px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.7em;
}
.sf-tcg-title a { color: inherit; text-decoration: none; }
.sf-tcg-title a:hover { color: var(--sf-coral, #E8724A); }

.sf-tcg-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.sf-tcg-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #64748b; }
.sf-tcg-meta svg { color: #94a3b8; flex: none; }

.sf-tcg-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-tcg-pill {
	font-size: 11.5px; font-weight: 600;
	background: #f1f5f9; color: #475569;
	padding: 4px 10px; border-radius: 999px;
}
.sf-tcg-pill-more { background: #e2e8f0; color: #334155; }

/* Footer */
.sf-tcg-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 15px;
	border-top: 1px solid #f1f5f9;
	flex-wrap: wrap;
}
.sf-tcg-sub { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #7b8a99; }
.sf-tcg-avatars { display: inline-flex; }
.sf-tcg-av {
	width: 26px; height: 26px; border-radius: 50%;
	background: #0B1C2C; color: #C8F000;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 11px; font-weight: 700; overflow: hidden;
	border: 2px solid #fff; margin-left: -8px;
}
.sf-tcg-av:first-child { margin-left: 0; }
.sf-tcg-av img { width: 100%; height: 100%; object-fit: cover; }

.sf-tcg-btn {
	display: inline-flex; align-items: center; gap: 5px;
	font-family: var(--sf-head, "Space Grotesk", sans-serif);
	font-weight: 700; font-size: 12.5px;
	padding: 8px 13px; border-radius: 9px;
	border: 1px solid #d7dce2; background: #fff; color: #0f172a;
	text-decoration: none; cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.sf-tcg-btn:hover { background: #f1f5f9; border-color: #c4cdd9; }
.sf-tcg-btn-signup { background: #1c8a4e; color: #fff; border-color: #1c8a4e; }
.sf-tcg-btn-signup:hover { background: #166f3e; border-color: #166f3e; }
.sf-tcg-btn-interest { background: #fff; color: #b8502f; border-color: #e8724a; }
.sf-tcg-btn-interest:hover { background: #fdf2ee; }
.sf-tcg-btn-interest.is-interest { background: #e8724a; color: #fff; border-color: #e8724a; }

/* Toast */
.sf-toast {
	position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
	background: #0f172a; color: #fff;
	font-size: 14px; font-weight: 600;
	padding: 13px 22px; border-radius: 11px;
	box-shadow: 0 12px 30px rgba(11,28,44,.28);
	opacity: 0; pointer-events: none; transition: opacity 220ms ease, transform 220ms ease;
	z-index: 99998; max-width: 90vw;
}
.sf-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.sf-tcg { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.sf-tcg { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
	.sf-tour-grid-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 480px) {
	.sf-tcg { grid-template-columns: 1fr; }
	.sf-tcg-foot { justify-content: flex-start; }
}
