/* ==========================================
   mmain28 — 부산진구 여행 가이드
   ========================================== */

:root {
	--tv-indigo: #2d3a8c;
	--tv-indigo-dim: rgba(45, 58, 140, 0.07);
	--tv-text: #111111;
	--tv-sub: #777777;
	--tv-border: #e4e4e4;
}

body.page-light-header #header,
body.page-light-header #header.on,
body.page-light-header #header.act {
	background-color: #fff !important;
}

/* ----------------------------------------
   S1: 오프닝
   ---------------------------------------- */
.tv-opening {
	padding-top: 130px;
	background: #fff;
}

.tv-opening-inner {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 40px 64px;
}

.tv-tag {
	display: inline-block;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 600;
	color: var(--tv-indigo);
	background: rgba(45, 58, 140, 0.08);
	padding: 6px 16px;
	border-radius: 999px;
	margin-bottom: 20px;
}

.tv-title {
	font-size: clamp(32px, calc(18px + 2.8vw), 58px);
	font-weight: 800;
	color: var(--tv-text);
	margin-bottom: 18px;
}

.tv-desc {
	font-size: clamp(14px, calc(7px + 1.2vw), 20px);
	color: var(--tv-sub);
}

.tv-rule {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
	height: 1px;
	background: var(--tv-border);
}

/* ----------------------------------------
   S2: 관광지 그리드
   ---------------------------------------- */
.tv-spots {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 40px 120px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-auto-rows: clamp(280px, 32vw, 460px);
	gap: 14px;
}

/* 비대칭 배치 */
.tv-spot:nth-child(1) { grid-column: 1 / 4; }
.tv-spot:nth-child(2) { grid-column: 4 / 6; }
.tv-spot:nth-child(3) { grid-column: 1 / 3; }
.tv-spot:nth-child(4) { grid-column: 3 / 6; }

/* 카드 */
.tv-spot {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	cursor: pointer;
}

/* 그라디언트 오버레이 */
.tv-spot::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.78) 100%);
	pointer-events: none;
	z-index: 1;
	transition: background 0.4s ease;
}

.tv-spot:hover::after {
	background: linear-gradient(to bottom, transparent 15%, rgba(0, 0, 0, 0.88) 100%);
}

/* 이미지 꽉 채움 */
.tv-spot-img {
	position: absolute;
	inset: 0;
}

.tv-spot-img-in {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.65s ease;
}

.tv-spot:hover .tv-spot-img-in {
	transform: scale(1.05);
}

.tv-spot-img--1 .tv-spot-img-in { background-image: url('/sub/motion/images/sub/tv-spot01.jpg'); }
.tv-spot-img--2 .tv-spot-img-in { background-image: url('/sub/motion/images/sub/tv-spot02.jpg'); }
.tv-spot-img--3 .tv-spot-img-in { background-image: url('/sub/motion/images/sub/tv-spot03.jpg'); }
.tv-spot-img--4 .tv-spot-img-in { background-image: url('/sub/motion/images/sub/tv-spot04.jpg'); }

/* 번호 태그 — 좌상단 */
.tv-spot-num {
	position: absolute;
	top: 20px;
	left: 20px;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 700;
	color: rgba(255, 255, 255, 0.6);
	z-index: 2;
}

/* 텍스트 — 하단 고정 */
.tv-spot-body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px 28px 28px;
	z-index: 2;
	transition: transform 0.4s ease;
}

.tv-spot:hover .tv-spot-body {
	transform: translateY(-6px);
}

.tv-spot-name {
	font-size: clamp(20px, calc(13px + 1.4vw), 30px);
	font-weight: 700;
	color: #fff;
	margin-bottom: 6px;
}

.tv-spot-name em {
	display: block;
	font-style: normal;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 400;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 3px;
}

.tv-spot-text {
	font-size: clamp(14px, calc(9px + 0.9vw), 18px);
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 0;
}

.tv-spot-tip {
	display: none;
}

/* ----------------------------------------
   S3: 숫자로 보기
   ---------------------------------------- */
.tv-stats {
	background: url('/sub/motion/images/sub/tv-course-bg.jpg') center / cover no-repeat;
	padding: 80px 0 90px;
	position: relative;
}

.tv-stats::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(15, 10, 40, 0.55);
}

.tv-stats-inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}

.tv-stat {
	padding: 0 40px;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-stat:first-child {
	padding-left: 0;
}

.tv-stat:last-child {
	border-right: none;
}

.tv-stat-num {
	font-size: clamp(44px, calc(28px + 3.5vw), 72px);
	font-weight: 800;
	color: #fff;
	margin-bottom: 12px;
}

.tv-stat-suffix {
	font-size: clamp(24px, calc(16px + 1.8vw), 40px);
	font-weight: 700;
	color: rgba(255, 255, 255, 0.6);
}

.tv-stat-label {
	font-size: clamp(18px, calc(13px + 1vw), 22px);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 6px;
}

.tv-stat-desc {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(255, 255, 255, 0.45);
}

/* ----------------------------------------
   S4: 추천 코스
   ---------------------------------------- */
.tv-course {
	background: #fff;
	padding: 80px 0 100px;
}

.tv-course-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
}

.tv-course-head {
	margin-bottom: 56px;
}

.tv-course .tv-tag {
	color: var(--tv-indigo);
	background: rgba(45, 58, 140, 0.08);
	border: none;
}

.tv-course-tit {
	font-size: clamp(24px, calc(16px + 1.8vw), 40px);
	font-weight: 800;
	color: var(--tv-text);
	margin-top: 12px;
	margin-bottom: 8px;
}

.tv-course-sub {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--tv-sub);
}

/* 흐름 레이아웃 */
.tv-course-flow {
	display: flex;
	align-items: center;
	gap: 0;
}

/* 스텝 */
.tv-course-step {
	flex: 1;
	background: #fff;
	border-radius: 20px;
	padding: 28px 24px;
	border: 1px solid var(--tv-border);
	min-width: 0;
}

.tv-course-num {
	display: block;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 700;
	color: var(--tv-indigo);
	margin-bottom: 10px;
}

.tv-course-place {
	font-size: clamp(18px, calc(13px + 1vw), 24px);
	font-weight: 700;
	color: var(--tv-text);
	margin-bottom: 8px;
}

.tv-course-stay {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--tv-sub);
}

/* 연결 */
.tv-course-conn {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 0 14px;
}

.tv-course-conn::before {
	content: '';
	display: block;
	width: 24px;
	height: 1px;
	background: var(--tv-border);
	margin-bottom: 4px;
}

.tv-course-icon-badge {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(45, 58, 140, 0.08);
	border: 1.5px solid rgba(45, 58, 140, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tv-course-icon {
	width: 22px;
	height: 22px;
	color: var(--tv-indigo);
}

.tv-course-move {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--tv-sub);
}

.tv-course-dur {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 700;
	color: var(--tv-text);
}

/* ----------------------------------------
   S5: 이런 분께 추천
   ---------------------------------------- */
@keyframes tv-float-a {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-7px); }
}
@keyframes tv-float-b {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-5px); }
}
@keyframes tv-float-c {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-8px); }
}

.tv-who {
	background: #fff;
	padding: 80px 0 100px;
}

.tv-who-inner {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 40px;
	text-align: center;
}

.tv-who-tit {
	font-size: clamp(24px, calc(16px + 1.8vw), 40px);
	font-weight: 800;
	color: var(--tv-text);
	margin-top: 16px;
	margin-bottom: 48px;
}

.tv-who-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

.tv-who-tag {
	font-size: clamp(16px, calc(12px + 0.8vw), 20px);
	font-weight: 500;
	color: var(--tv-sub);
	border: 1.5px solid var(--tv-border);
	padding: 10px 20px;
	border-radius: 999px;
	opacity: 0;
	transition: border-color 0.2s, color 0.2s;
}

.tv-who-tag:hover {
	color: var(--tv-indigo);
	border-color: rgba(45, 58, 140, 0.3);
}

.tv-who-tag.is-visible:nth-child(3n+1) { animation: tv-float-a 3.8s ease-in-out infinite; }
.tv-who-tag.is-visible:nth-child(3n+2) { animation: tv-float-b 4.5s ease-in-out infinite 0.6s; }
.tv-who-tag.is-visible:nth-child(3n)   { animation: tv-float-c 4s ease-in-out infinite 1s; }

/* ----------------------------------------
   반응형
   ---------------------------------------- */
@media (max-width: 999px) {
	.tv-opening {
		padding-top: 110px;
	}
	.tv-stats-inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px 0;
	}
	.tv-stat:nth-child(2) {
		border-right: none;
	}
	.tv-stat:nth-child(3) {
		border-right: 1px solid rgba(255, 255, 255, 0.12);
		padding-left: 0;
	}
	.tv-spots {
		grid-template-columns: repeat(4, 1fr);
		padding-bottom: 80px;
	}
	.tv-spot:nth-child(1) { grid-column: 1 / 3; }
	.tv-spot:nth-child(2) { grid-column: 3 / 5; }
	.tv-spot:nth-child(3) { grid-column: 1 / 3; }
	.tv-spot:nth-child(4) { grid-column: 3 / 5; }
}

@media (max-width: 768px) {
	.tv-opening {
		padding-top: 90px;
	}
	.tv-opening-inner {
		padding: 0 24px 40px;
	}
	.tv-rule {
		padding: 0 24px;
	}
	.tv-spots {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: clamp(220px, 44vw, 360px);
		padding: 40px 24px 60px;
		gap: 10px;
	}
	.tv-spot:nth-child(1),
	.tv-spot:nth-child(2),
	.tv-spot:nth-child(3),
	.tv-spot:nth-child(4) {
		grid-column: auto;
	}
	.tv-stats {
		padding: 60px 0 70px;
	}
	.tv-stats-inner {
		padding: 0 24px;
		grid-template-columns: repeat(2, 1fr);
		gap: 40px 0;
	}
	.tv-stat:nth-child(2) {
		border-right: none;
	}
	.tv-stat:nth-child(3) {
		border-right: 1px solid rgba(255, 255, 255, 0.12);
		padding-left: 0;
	}
	.tv-course {
		padding: 60px 0 80px;
	}
	.tv-course-inner {
		padding: 0 24px;
	}
	.tv-course-head {
		margin-bottom: 36px;
	}
	.tv-course-flow {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.tv-course-conn {
		flex-direction: row;
		justify-content: center;
		padding: 12px 0;
		gap: 8px;
	}
	.tv-course-conn::before {
		display: none;
	}
}

@media (max-width: 768px) {
	.tv-who {
		padding: 60px 0 80px;
	}
	.tv-who-inner {
		padding: 0 24px;
	}
	.tv-who-tags {
		gap: 10px;
	}
}

@media (max-width: 499px) {
	.tv-opening-inner {
		padding: 0 20px 32px;
	}
	.tv-rule {
		padding: 0 20px;
	}
	.tv-spots {
		grid-template-columns: 1fr;
		grid-auto-rows: clamp(240px, 60vw, 360px);
		padding: 32px 20px 40px;
		gap: 10px;
	}
	.tv-spot:nth-child(1),
	.tv-spot:nth-child(2),
	.tv-spot:nth-child(3),
	.tv-spot:nth-child(4) {
		grid-column: 1;
	}
	.tv-stats-inner {
		padding: 0 20px;
	}
	.tv-stat {
		padding: 0 20px;
	}
	.tv-stat:first-child {
		padding-left: 0;
	}
	.tv-course-inner {
		padding: 0 20px;
	}
	.tv-who-inner {
		padding: 0 20px;
	}
	.tv-who-tags {
		gap: 8px;
	}
}
