@charset "UTF-8";
/* 층별안내(/nmc/floorGuide) 화면 스타일 (시안 02_이용안내_05병원시설안내_00층별안내 기준, 1280/1023/767) */

.floor_guide { display: flex; align-items: stretch; gap: 14px; margin-top: 1px; }
.floor_guide button { border: 0; background: none; cursor: pointer; font-family: inherit; }

/* ===== 왼쪽: 건물 탭, 층, 장소 목록 ===== */
.floor_side { position: relative; flex: 0 0 286px; display: flex; flex-direction: column; min-height: 1001px; border: 1px solid #e2e2e2; border-radius: 20px; background: #fff; overflow: hidden; }
.floor_bldg { display: flex; height: 81px; padding: 28px 6px 0 10px; background: #2677bb; }
.floor_bldg li { position: relative; flex: 1; }
.floor_bldg button { position: relative; width: 100%; height: 53px; font-size: 25px; font-weight: 700; color: rgba(255, 255, 255, .5); }
.floor_bldg button.on { color: #222; z-index: 1; }
.floor_bldg button.on:before { content: ''; position: absolute; left: 50%; bottom: 0; z-index: -1; width: 180px; height: 53px; margin-left: -90px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 53' preserveAspectRatio='none'%3E%3Cpath d='M0 53C14 53 19.5 49 22.5 42L38.5 11C40 5 42 0 48.5 0H131.5C138 0 140 5 141.5 11L157.5 42C160.5 49 166 53 180 53Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%; }
.floor_side_body { flex: 1 1 0; display: flex; gap: 2px; min-height: 0; padding: 29px 16px 15px; }
.floor_num { flex: 0 0 52px; }
.floor_num li + li { margin-top: 3px; }
.floor_num button { display: block; width: 52px; height: 52px; border-radius: 6px; background: #f7f7f7; font-size: 17px; font-weight: 500; color: #333; }
.floor_num button.on { background: #2677bb; color: #fff; font-weight: 700; box-shadow: 0 0 10px rgba(0, 0, 0, .25); }
.floor_place { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 31px 9px 34px 21px; border-radius: 6px; background: #f8fafc; }
.floor_place_list { display: none; flex: 1 1 0; min-height: 0; overflow-y: auto; padding-right: 8px; scrollbar-width: auto; scrollbar-color: auto; }
@supports not selector(::-webkit-scrollbar) {
  .floor_place_list { scrollbar-width: thin; scrollbar-color: #747f97 #e4e8ed; }
}
.floor_place_list::-webkit-scrollbar { width: 7px; }
.floor_place_list::-webkit-scrollbar-track { background: #e4e8ed; border-radius: 4px; }
.floor_place_list::-webkit-scrollbar-thumb { border: 0; background: #747f97; border-radius: 4px; }
.floor_place_list li + li { margin-top: 2px; }
.floor_place_list button { display: block; width: 100%; min-height: 40px; padding: 9px 1px; border: 1px solid transparent; border-radius: 5px; font-size: 16px; font-weight: 500; line-height: 20px; color: #333; text-align: left; word-break: keep-all; }
.floor_place_list button:hover { color: #2677bb; }
.floor_place_list button.on { padding-left: 8px; padding-right: 8px; border-color: #2677bb; background: #fff; color: #2677bb; box-shadow: 0 6px 8px rgba(171, 171, 171, .2); }
.floor_place_empty { display: none; font-size: 16px; color: #333; }

/* ===== 오른쪽: 도면 ===== */
.floor_view { position: relative; flex: 1; min-width: 0; padding: 74px 0 49px; border: 1px solid #e2e2e2; border-radius: 20px; background: #f7f7f7; }
.sub_content .floor_title { position: absolute; top: 40px; left: 60px; margin: 0; font-size: 40px; font-weight: 700; line-height: 52px; color: #222; z-index: 1; }
.sub_content .floor_title em { margin-left: 4px; font-size: 44px; font-weight: 700; font-style: normal; color: #2677bb; }
.floor_map { position: relative; width: 668px; max-width: 100%; margin-left: 169px; margin-top: 30px;}
.floor_map img { display: block; width: 100%; height: auto; }
.floor_pin { position: absolute; left: 0; top: 0; width: 22px; height: 29px; margin: -29px 0 0 -11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 29'%3E%3Cpath d='M11 .8C5.4.8.8 5.3.8 10.9c0 6.9 7.9 14.6 9.4 16a1.1 1.1 0 0 0 1.6 0c1.5-1.4 9.4-9.1 9.4-16C21.2 5.3 16.6.8 11 .8Z' fill='%23e92e2e' stroke='%23fff' stroke-width='1.5'/%3E%3Ccircle cx='11' cy='10.6' r='3.9' fill='%23fff'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%; opacity: 0; pointer-events: none; }
.floor_pin:after { content: ''; position: absolute; left: -1px; bottom: -5px; z-index: -1; width: 23px; height: 9px; border-radius: 50%; background: rgba(0, 0, 0, .15); }
.floor_pin.on { opacity: 1; animation: floorPinDrop .5s ease-out; }
@keyframes floorPinDrop {
  0% { opacity: 0; transform: translateY(-24px); }
  60% { opacity: 1; transform: translateY(0); }
  80% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
.floor_empty { display: none; padding: 200px 0; font-size: 18px; color: #333; text-align: center; }
.floor_legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 39px; width: 723px; max-width: calc(100% - 40px); margin: 55px auto 0; padding: 24px 20px 26px; border-radius: 10px; background: #fff; }
.floor_legend li { display: flex; align-items: center; font-size: 16px; font-weight: 500; line-height: 20px; color: #000; }
.floor_legend img { width: 31px; height: 28px; margin: 0 4px 0 -4px; }

/* ===== 반응형 ===== */
@media (max-width: 1279px) {
  .floor_view { padding: 40px 20px 49px; }
  .sub_content .floor_title { position: static; margin: 0 0 24px 40px; }
  .floor_map { margin: 0 auto; }
}

@media (max-width: 1023px) {
  .floor_guide { flex-direction: column; }
  .floor_side { flex: none; min-height: 0; }
  .floor_bldg { justify-content: center; }
  .floor_bldg li { flex: 0 1 200px; }
  .floor_side_body { flex: none; flex-direction: column; gap: 12px; padding: 20px 16px 16px; }
  .floor_num { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 0 0 8px; }
  .floor_num li + li { margin-top: 0; }
  .floor_num li { flex: 0 0 auto; }
  .floor_num button { width: 56px; height: 44px; }
  .floor_num button.on { box-shadow: 0 0 6px rgba(0, 0, 0, .2); }
  .floor_place { padding: 16px 9px 16px 16px; }
  .floor_place_list { flex: none; max-height: 252px; }
  .floor_view { padding: 32px 20px 32px; }
  .sub_content .floor_title { margin: 0 0 20px 4px; font-size: 32px; line-height: 40px; }
  .sub_content .floor_title em { font-size: 34px; }
  .floor_legend { max-width: 100%; margin-top: 32px; }
}

@media (max-width: 767px) {
  .floor_bldg { height: 64px; padding-top: 20px; }
  .floor_bldg button { height: 44px; font-size: 20px; }
  .floor_place_list button { font-size: 15px; }
  .floor_view { padding: 24px 12px; border-radius: 14px; }
  .floor_side { border-radius: 14px; }
  .sub_content .floor_title { font-size: 24px; line-height: 32px; margin-bottom: 14px; }
  .sub_content .floor_title em { font-size: 26px; }
  .floor_legend { gap: 6px 16px; padding: 14px 12px; }
  .floor_legend li { font-size: 14px; }
  .floor_legend img { width: 26px; height: auto; }
  .floor_empty { padding: 80px 0; font-size: 16px; }
}
