/* =========================================================
   custom.css — 메인·서브 공통
   ========================================================= */

html { scroll-behavior: smooth; }
html.scroll-lock-restore { scroll-behavior: auto !important; }
html,
body {
	margin: 0;
	padding: 0;
}
body { -webkit-font-smoothing: antialiased; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #C7C7C7; border-radius: 99px; }
:focus-visible { outline: 2px solid #45BCFF; outline-offset: 3px; }

/* 스크롤 리빌 */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform .9s cubic-bezier(.22, .61, .36, 1);
}
.reveal.on {
	opacity: 1;
	transform: none;
}

.no-scrollbar::-webkit-scrollbar {
	display: none;
}
.no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* 오시는 길 지도 (bottomsection) */
.location-map .root_daum_roughmap,
.location-map .root_daum_roughmap .wrap_map {
	width: 100% !important;
	height: 100% !important;
}

/* 진료시간 활성 행 (bottomsection) */
#hourList .hour-row.is-active {
	background-color: #F0FAFE;
}
#hourList .hour-row.is-active .hour-time {
	font-weight: 600;
	color: #242424;
}

/* 장비 슬라이더 (메인·병원소개 공통) */
.eq-slider {
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x pan-y;
	overscroll-behavior-x: contain;
	cursor: grab;
	scroll-snap-type: x mandatory;
	padding-left: 1rem;
	scroll-padding-left: 1rem;
	box-sizing: border-box;
}
.eq-slider.is-dragging,
.eq-slider.is-jumping {
	cursor: grabbing;
	user-select: none;
	scroll-behavior: auto;
	scroll-snap-type: none;
}
.eq-slider .eq-slide {
	scroll-snap-align: start;
}

.eq-visual-fade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(36, 36, 36, 0) 40%,
		rgba(36, 36, 36, 0.55) 72%,
		rgba(36, 36, 36, 0.92) 100%
	);
}
.eq-visual > .relative {
	position: relative;
	z-index: 2;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}

.eq-panels {
	position: relative;
}
.eq-panels .eq-panel {
	transition: opacity 0.45s ease;
	will-change: opacity;
}
.eq-panels .eq-panel.is-active {
	position: relative;
	opacity: 1;
	z-index: 1;
	pointer-events: auto;
}
.eq-panels .eq-panel:not(.is-active) {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 0;
	pointer-events: none;
}
.eq-panels .eq-visual-img {
	transform: translateZ(0);
	backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal {
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
	.eq-panels .eq-panel {
		transition: none;
	}
}
