/**
 * RX 레이아웃 신규 기능 스타일 (홈페이지 개선 요구사항)
 * - 슬라이더 높이/오버레이/글자색 · 실시간 예약 이동 버튼
 * - 콘텐츠 블록 동영상/HTML · 평면도 타입 뷰어 · 공통 모달
 * - 부정클릭 감시 배지 · 마우스 포인터 로고 · 팝업 위치
 */

/* =====================================================================
   1. 메인 슬라이더 : 높이 직접 지정 (길이 / 가로세로 비율)
   ===================================================================== */
.xet-layout .layout__body-main .main-visual .main-visual-swiper.rx-hpc-len {
	height: var(--rx-h-pc) !important;
	aspect-ratio: auto;
}
.xet-layout .layout__body-main .main-visual .main-visual-swiper.rx-hpc-ratio {
	height: auto !important;
	aspect-ratio: var(--rx-ar-pc);
}
.xet-layout .layout__body-main .main-visual .main-visual-swiper[class*="rx-h"] .swiper-wrapper,
.xet-layout .layout__body-main .main-visual .main-visual-swiper[class*="rx-h"] .swiper-slide,
.xet-layout .layout__body-main .main-visual .main-visual-swiper[class*="rx-h"] .swiper-slide .main-visual-swiper__image {
	height: 100% !important;
}
.xet-layout .layout__body-main .main-visual .main-visual-swiper[class*="rx-h"] .swiper-slide .main-visual-swiper__image > img {
	width: 100%;
	height: 100% !important;
	object-fit: cover !important;
}
@media (max-width: 767px) {
	.xet-layout .layout__body-main .main-visual .main-visual-swiper.rx-hm-len {
		height: var(--rx-h-m) !important;
		aspect-ratio: auto !important;
	}
	.xet-layout .layout__body-main .main-visual .main-visual-swiper.rx-hm-ratio {
		height: auto !important;
		aspect-ratio: var(--rx-ar-m) !important;
	}
}

/* 어두운 배경(오버레이) */
.xet-layout .layout__body-main .main-visual .main-visual-swiper.rx-ov-on .swiper-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	background: rgba(0, 0, 0, var(--rx-ov, 0.35));
}
.xet-layout .layout__body-main .main-visual .main-visual-swiper.rx-ov-on .swiper-slide .main-visual-swiper__content,
.xet-layout .layout__body-main .main-visual .main-visual-swiper.rx-ov-off .swiper-slide .main-visual-swiper__content {
	background-color: transparent !important;
}

/* 메인 카피 / 서브 문구 글자색 */
.xet-layout .layout__body-main .main-visual .main-visual-swiper.rx-title-colored .main-visual-swiper__content__title {
	color: var(--rx-sl-title) !important;
}
.xet-layout .layout__body-main .main-visual .main-visual-swiper.rx-sub-colored .main-visual-swiper__content__subTitle {
	color: var(--rx-sl-sub) !important;
}

/* 실시간 예약 이동 버튼 */
.rx-slider-cta {
	position: absolute;
	left: 50%;
	bottom: clamp(64px, 9vh, 110px);
	z-index: 30;
	transform: translateX(-50%);
	pointer-events: none;
}
.rx-slider-cta__btn {
	--rx-cta-bg: #e60012;
	--rx-cta-fg: #ffffff;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 34px;
	border-radius: 999px;
	background: var(--rx-cta-bg);
	color: var(--rx-cta-fg) !important;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.3px;
	white-space: nowrap;
	text-decoration: none !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	pointer-events: auto;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.rx-slider-cta__btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}
.rx-slider-cta__btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	animation: rx-cta-bounce 1.6s ease-in-out infinite;
}
.rx-slider-cta__btn.is-pulse::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--rx-cta-bg);
	z-index: -1;
	animation: rx-cta-pulse 2s ease-out infinite;
}
@keyframes rx-cta-pulse {
	0% { transform: scale(1); opacity: 0.55; }
	100% { transform: scale(1.35, 1.6); opacity: 0; }
}
@keyframes rx-cta-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(3px); }
}
@media (max-width: 767px) {
	.rx-slider-cta { bottom: 56px; }
	.rx-slider-cta__btn { padding: 13px 24px; font-size: 0.95rem; }
}

/* 최상단 히어로 섹션 단독 동영상 & 소리 켜기/끄기 플로팅 버튼 */
.rx-hero-video {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #0b1120;
}
.rx-hero-video.vh100 {
	height: 100vh;
	min-height: 540px;
}
.rx-hero-video__slide {
	position: relative;
	width: 100%;
	height: 100%;
}
.rx-hero-video__media {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.rx-hero-video__el {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rx-hero-video__embed {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 56.25vw;
}
.rx-hero-video__iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-height: 100%;
	min-width: 177.77vh;
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none;
}
.rx-hero-video[data-rx-autoplay="N"] .rx-hero-video__iframe {
	pointer-events: auto;
}
.rx-hero-sound-btn {
	position: absolute;
	right: clamp(16px, 3vw, 38px);
	bottom: clamp(22px, 4vh, 42px);
	z-index: 35;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: -0.2px;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
	transition: all 0.2s ease;
}
.rx-hero-sound-btn:hover {
	background: rgba(15, 23, 42, 0.9);
	border-color: rgba(255, 255, 255, 0.65);
	transform: translateY(-1px);
}
.rx-hero-sound-btn:not(.is-muted) {
	background: var(--theme-color, #03333b);
	border-color: rgba(255, 255, 255, 0.55);
}
.rx-hero-sound-btn .rx-sound-ico {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.rx-hero-sound-btn.is-muted .rx-sound-ico--on {
	display: none;
}
.rx-hero-sound-btn:not(.is-muted) .rx-sound-ico--off {
	display: none;
}
/* 퀵버튼 다중 아이콘셋(XEIcon, RemixIcon, Bootstrap Icons, FontAwesome) 크기 및 정렬 보정 */
.xet-layout-quickbutton a > span i {
	font-size: 1.45rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
@media (max-width: 767px) {
	.rx-hero-video.vh100 {
		height: 78vh;
		min-height: 420px;
	}
	.rx-hero-sound-btn {
		right: 14px;
		bottom: 18px;
		padding: 8px 14px;
		font-size: 0.8rem;
	}
}

/* =====================================================================
   2. 콘텐츠 블록 · 동영상
   ===================================================================== */
.rx-media {
	position: relative;
	width: 100%;
	margin: 0 auto;
	overflow: hidden;
	background: #000;
}
.rx-media--embed {
	aspect-ratio: 16 / 9;
}
.rx-media--embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.rx-media--video {
	background: transparent;
}
.rx-media-video {
	display: block;
	width: 100%;
	height: auto;
}
.rx-media-facade {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #111;
	cursor: pointer;
}
.rx-media-facade img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.88;
	transition: opacity 0.2s ease, transform 0.4s ease;
}
.rx-media-facade:hover img {
	opacity: 1;
	transform: scale(1.02);
}
.rx-media-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: rgba(230, 0, 18, 0.92);
	transform: translate(-50%, -50%);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.rx-media-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	border-style: solid;
	border-width: 13px 0 13px 22px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-50%, -50%);
}
.rx-block--html .rx-block-html {
	width: 100%;
}
.rx-block--html .rx-block-html iframe,
.rx-block--html .rx-block-html img,
.rx-block--html .rx-block-html video {
	max-width: 100%;
}
.rx-section-media {
	margin: 0 auto;
}

/* =====================================================================
   3. 평면도 타입 뷰어
   ===================================================================== */
.rx-unit {
	--rx-unit-point: var(--theme-color, #03333b);
}
.rx-unit__desc {
	margin: -0.5rem 0 1.6rem;
	text-align: center;
	color: #64748b;
	line-height: 1.6;
}
.rx-unit__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 1.6rem;
}
.rx-unit__tab {
	padding: 11px 22px;
	border: 1px solid #d5dbe3;
	border-radius: 999px;
	background: #fff;
	color: #334155;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}
.rx-unit__tab:hover {
	border-color: var(--rx-unit-point);
	color: var(--rx-unit-point);
}
.rx-unit__tab.is-active {
	border-color: var(--rx-unit-point);
	background: var(--rx-unit-point);
	color: #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.rx-unit__panel {
	display: grid;
	grid-template-columns: minmax(220px, 320px) 1fr;
	gap: 28px;
	align-items: start;
	animation: rx-fade-in 0.35s ease;
}
.rx-unit__panel[hidden] {
	display: none;
}
.rx-unit__info {
	padding: 26px 24px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #f8fafc;
	text-align: left;
}
.rx-unit__name {
	display: block;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--rx-unit-point);
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--rx-unit-point);
}
.rx-unit__specs {
	margin: 0;
}
.rx-unit__spec {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px dashed #dbe2ea;
	font-size: 0.95rem;
}
.rx-unit__spec dt {
	color: #64748b;
	font-weight: 500;
}
.rx-unit__spec dd {
	margin: 0;
	color: #0f172a;
	font-weight: 700;
	text-align: right;
}
.rx-unit__text {
	margin-top: 14px;
	font-size: 0.9rem;
	line-height: 1.7;
	color: #475569;
}
.rx-unit__img {
	position: relative;
	text-align: center;
}
.rx-unit__img img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}
.rx-unit__img img[data-rx-zoom] {
	cursor: zoom-in;
}
.rx-unit__zoom-hint {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.78rem;
	color: #94a3b8;
}
@media (max-width: 767px) {
	.rx-unit__panel { grid-template-columns: 1fr; gap: 16px; }
	.rx-unit__img { order: -1; }
	.rx-unit__tab { padding: 9px 16px; font-size: 0.85rem; }
}
@keyframes rx-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* 이미지 크게 보기 */
.rx-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(8, 12, 24, 0.9);
	cursor: zoom-out;
	animation: rx-fade-in 0.25s ease;
}
.rx-lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	background: #fff;
	border-radius: 8px;
}
.rx-lightbox__close {
	position: absolute;
	top: 14px;
	right: 18px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 26px;
	line-height: 44px;
	cursor: pointer;
}

/* =====================================================================
   4. 공통 모달 (개인정보 동의 · 부정클릭 경고)
   ===================================================================== */
.rx-modal {
	position: fixed;
	inset: 0;
	z-index: 999980;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.62);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}
.rx-modal[hidden] {
	display: none;
}
.rx-modal__box {
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 30px 26px 24px;
	border-radius: 16px;
	background: #fff;
	color: #1e293b;
	text-align: center;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
	animation: rx-fade-in 0.25s ease;
}
.rx-modal__title {
	margin: 0 0 14px;
	font-size: 1.15rem;
	font-weight: 800;
	color: #0f172a;
}
.rx-modal__body {
	max-height: 50vh;
	overflow-y: auto;
	padding: 16px;
	border-radius: 10px;
	background: #f8fafc;
	font-size: 0.88rem;
	line-height: 1.75;
	color: #475569;
	text-align: left;
}
.rx-modal__close-btn {
	width: 100%;
	margin-top: 18px;
	padding: 13px;
	border: 0;
	border-radius: 8px;
	background: #1e293b;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}
.rx-modal__close-btn:hover {
	background: #0f172a;
}
.rx-modal__close-btn.is-warn {
	background: #f97316;
}

/* 부정클릭 경고창 */
.rx-fraud-modal__icon {
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
	color: #1e293b;
}
.rx-fraud-modal__icon svg {
	width: 52px;
	height: 52px;
	fill: currentColor;
}
.rx-fraud-modal__icon.is-warn {
	color: #f97316;
}
.rx-fraud-modal__ip {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 14px;
	padding: 12px;
	border-radius: 10px;
	background: #f1f5f9;
	font-family: monospace, sans-serif;
}
.rx-fraud-modal__ip span {
	font-size: 0.75rem;
	color: #64748b;
}
.rx-fraud-modal__ip b {
	font-size: 1.25rem;
	color: #ef4444;
	letter-spacing: 0.5px;
}
.rx-fraud-modal__ip small {
	font-size: 0.72rem;
	color: #94a3b8;
}
.rx-fraud-modal__body {
	font-size: 0.85rem;
	line-height: 1.7;
	color: #475569;
	text-align: left;
}

/* 부정클릭 감시중 배지 */
.rx-fraud-badge {
	position: fixed;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 13px 7px 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.88);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.rx-fraud-badge svg {
	width: 15px;
	height: 15px;
	fill: #38bdf8;
	flex-shrink: 0;
}
.rx-fraud-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
	animation: rx-dot 1.8s infinite;
}
@keyframes rx-dot {
	0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
	70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.rx-fraud-badge--bottom-left { left: 14px; bottom: 14px; }
.rx-fraud-badge--bottom-right { right: 14px; bottom: 14px; }
.rx-fraud-badge--top-bar {
	top: 0;
	left: 0;
	right: 0;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 0;
	border: 0;
	font-size: 11.5px;
	background: rgba(15, 23, 42, 0.92);
}
@media (max-width: 767px) {
	/* 모바일 하단 퀵바와 겹치지 않도록 위로 띄움 */
	.rx-fraud-badge--bottom-left,
	.rx-fraud-badge--bottom-right { bottom: 78px; font-size: 11px; padding: 6px 10px 6px 8px; }
}

/* =====================================================================
   5. 마우스 포인터 로고 (따라다니기)
   ===================================================================== */
.rx-cursor-follower {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999999;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease, width 0.2s ease, height 0.2s ease;
	will-change: transform;
}
.rx-cursor-follower.is-visible {
	opacity: var(--rx-cursor-opacity, 0.9);
}
.rx-cursor-follower img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
}
.rx-cursor-follower.is-hover {
	transform-origin: center;
}

/* =====================================================================
   6. 팝업 위치 · 크기
   ===================================================================== */
.xet-layout-popup.rx-popup-pos-left { justify-content: flex-start; align-items: flex-start; padding: 110px 24px 24px; }
.xet-layout-popup.rx-popup-pos-right { justify-content: flex-end; align-items: flex-start; padding: 110px 24px 24px; }
.xet-layout-popup.rx-popup-pos-bottom { align-items: flex-end; padding: 0 16px 24px; }
.xet-layout-popup[style*="--rx-popup-w"] .layout-popup__container { width: var(--rx-popup-w); }
.xet-layout-popup .layout-popup__container { max-width: calc(100vw - 32px); }
@media (max-width: 767px) {
	.xet-layout-popup.rx-popup-pos-left,
	.xet-layout-popup.rx-popup-pos-right { justify-content: center; padding-top: 80px; }
}

/* =====================================================================
   7. 일반탭(1~15번) 연속 배치 시 기존 섹션 1과 동일한 간격 유지
   ===================================================================== */
.xet-layout .layout__body-main > section.rx-s1-block.rx-s1-has-next {
	padding-bottom: 0 !important;
	box-shadow: none !important;
}
.xet-layout .layout__body-main > section.rx-s1-block.rx-s1-has-prev {
	margin-top: 0 !important;
	padding-top: var(--gap) !important;
}

