@charset "utf-8";
/* =====================================================================
 * floor-gallery.css — 병원 둘러보기(층별 시설 안내) 전용
 * Figma 5643:1974 실측: 콘텐츠 1364 / 뷰어 949×702(r10) / 셀렉터 334 / gap 81
 *   룸행 62h·px40·20px, 활성 gradient(#0d171f→#2d4557,흰색,r10) / 층헤더 30 Bold
 *   썸네일 140.6×87.3(r3.6) gap7, 비활성 dark overlay·활성 흰테두리 / 이전다음 45원형
 * 네임스페이스 .floor-gallery* · .floor-features* (타 페이지 영향 없음)
 * ===================================================================== */

.floor-gallery-page { max-width: 1364px; margin-inline: auto; }

/* ---- 레이아웃 ---- */
.floor-gallery { display: flex; align-items: flex-start; gap: clamp(28px, 5vw, 81px); }
.floor-gallery__viewer { position: relative; flex: 1 1 auto; min-width: 0; aspect-ratio: 949 / 702; border-radius: 10px; overflow: hidden; background: #eef0f1; }
.floor-gallery__aside { flex: 0 0 334px; }

/* ---- 뷰어(Swiper) ---- */
.floor-gallery__swiper { width: 100%; height: 100%; }
.floor-gallery__slide { position: relative; width: 100%; height: 100%; }
.floor-gallery__img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.floor-gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 44px 24px 14px; color: #fff; font-size: clamp(13px, 1.2vw, 15px); line-height: 1.5; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%); }

/* ---- 이전/다음 ---- */
.floor-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 45px; height: 45px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #0d171f; cursor: pointer; box-shadow: 0 2px 3.5px rgba(0,0,0,0.15); transition: background-color .2s, color .2s; }
.floor-gallery__nav--prev { left: clamp(10px, 1.4vw, 18px); }
.floor-gallery__nav--next { right: clamp(10px, 1.4vw, 18px); }
.floor-gallery__nav:hover { background: var(--ive-color-navy); color: #fff; }
.floor-gallery__nav:focus-visible { outline: 3px solid var(--ive-color-slate); outline-offset: 2px; }
.floor-gallery__nav.swiper-button-disabled { opacity: 0.4; cursor: default; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.floor-gallery__nav.swiper-button-disabled:hover { background: #fff; color: #0d171f; }
.floor-gallery__nav[hidden] { display: none; }

/* ---- 하단 썸네일 스트립 (Swiper · thumbs 연동) ---- */
.floor-gallery__thumbs { position: absolute; left: 16px; right: 16px; bottom: clamp(12px, 3.4%, 34px); z-index: 2; height: clamp(56px, 6.4vw, 87px); overflow: hidden; }
.floor-gallery__thumbs[hidden] { display: none; }
.floor-gallery__thumb { position: relative; height: 100%; width: auto; aspect-ratio: 140.6 / 87.3; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer; background: #cfd4d7; }
.floor-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.floor-gallery__thumb::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: rgba(0,0,0,0.4); transition: background-color .2s, box-shadow .2s; }
.floor-gallery__thumb.is-active::after { background: rgba(0,0,0,0); box-shadow: inset 0 0 0 2px #fff; }
.floor-gallery__thumb:hover::after { background: rgba(0,0,0,0.2); }
.floor-gallery__thumb:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

/* ---- 빈 상태 ---- */
.floor-gallery__empty { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 20px; text-align: center; color: #6b7a86; font-size: clamp(14px, 1.3vw, 16px); background: #eef0f1; }
.floor-gallery__empty[hidden] { display: none; }
.floor-gallery__empty-page { padding: 80px 20px; text-align: center; color: #6b7a86; font-size: 16px; background: #f5f7f8; border-radius: 12px; }

/* ---- 층 / 구역 선택 ---- */
.floor-gallery__floor + .floor-gallery__floor { margin-top: 45px; }
.floor-gallery__floor-label { margin: 0; display: flex; align-items: center; height: 80px; padding: 0 40px; font-size: clamp(24px, 2vw, 30px); font-weight: 700; color: #0d171f; letter-spacing: -0.02em; text-transform: uppercase; }
.floor-gallery__rooms { list-style: none; margin: 0; padding: 0; }
.floor-gallery__room { display: flex; align-items: center; width: 100%; height: 62px; padding: 0 40px; border: 0; border-bottom: 1px solid #e0e0e0; border-radius: 10px; background: none; font-family: inherit; font-size: clamp(16px, 1.15vw, 20px); font-weight: 400; line-height: 1.4; color: #555; text-align: left; letter-spacing: -0.02em; cursor: pointer; transition: color .2s, background-color .2s; }
.floor-gallery__room:hover { color: #0d171f; }
.floor-gallery__room.is-active { background: linear-gradient(90deg, #0d171f 0%, #2d4557 100%); color: #fff; font-weight: 500; border-bottom-color: transparent; }
.floor-gallery__room:focus-visible { outline: 3px solid var(--ive-color-slate); outline-offset: -3px; }

/* ---- 입원 치료의 차별화(정적) — Figma 5658:196 실측 ---- */
.floor-features { max-width: 1364px; margin: clamp(56px, 8vw, 100px) auto 0; }
.floor-features__head { max-width: 700px; margin-bottom: 40px; }
.floor-features__lead { margin: 0 0 6px; font-size: clamp(16px, 1.4vw, 18px); font-weight: 600; color: #2d4557; line-height: 1.5; letter-spacing: -0.03em; }
.floor-features__title { margin: 0; font-size: clamp(26px, 3vw, 40px); font-weight: 700; color: #111; line-height: 1.3; letter-spacing: -0.021em; word-break: keep-all; }
.floor-features__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.7vw, 37px); }
.floor-features__card { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 30px 30px 40px; background: #fff; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); text-align: center; }
.floor-features__icon { display: grid; place-items: center; flex: 0 0 auto; width: 84px; height: 84px; border: 1px solid #ccc; border-radius: 17px; background: #fff; color: #1a1a1a; }
.floor-features__svg { width: 34px; height: 34px; display: block; }
.floor-features__text { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.floor-features__name { margin: 0; font-size: clamp(18px, 1.5vw, 20px); font-weight: 700; color: #111; line-height: 1.3; letter-spacing: -0.02em; }
.floor-features__desc { margin: 0; font-size: clamp(15px, 1.3vw, 17px); font-weight: 400; line-height: 1.4; color: #333; letter-spacing: -0.02em; word-break: keep-all; }

/* ---- 반응형 ---- */
@media (max-width: 1024px) {
    .floor-gallery { gap: 28px; }
    .floor-gallery__aside { flex-basis: 280px; }
    .floor-gallery__floor-label { height: 62px; padding: 0 22px; }
    .floor-gallery__room { height: 54px; padding: 0 22px; }
    .floor-gallery__floor + .floor-gallery__floor { margin-top: 30px; }
    .floor-features__card { padding: 26px 18px 32px; }
    .floor-features__desc { font-size: 15px; }
}
@media (max-width: 768px) {
    .floor-gallery { flex-direction: column; gap: 18px; align-items: stretch; }
    .floor-gallery__viewer { flex: 0 0 auto; width: 100%; aspect-ratio: 4 / 3; }
    .floor-gallery__aside { flex-basis: auto; }
    .floor-gallery__floor + .floor-gallery__floor { margin-top: 16px; }
    .floor-gallery__floor-label { height: auto; padding: 0 2px 10px; font-size: 20px; }
    /* 모바일: 룸 칩을 스와이프로 하나씩 스냅 이동 */
    .floor-gallery__rooms { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scroll-padding-left: 2px; }
    .floor-gallery__rooms::-webkit-scrollbar { display: none; }
    .floor-gallery__room { flex: 0 0 auto; width: auto; height: 44px; padding: 0 18px; border: 1px solid #e0e0e0; border-radius: 22px; white-space: nowrap; font-size: 15px; scroll-snap-align: start; }
    .floor-gallery__room.is-active { border-color: transparent; }
    /* 모바일: 썸네일 Swiper 가 centeredSlides 로 활성 슬라이드를 항상 가운데 배치(JS breakpoints) */
    .floor-gallery__thumbs { left: 0; right: 0; bottom: 10px; height: 54px; }

    .floor-features__head { margin-bottom: 24px; }
    .floor-features__title { font-size: clamp(22px, 6vw, 28px); }
    .floor-features__grid { grid-template-columns: 1fr; gap: 12px; }
    .floor-features__card { padding: 26px 20px 30px; }
    .floor-gallery__nav {width:35px; height:35px}
}
.floor-gallery__thumbs .swiper-wrapper {justify-content: center;}