/* 2026-12-03 홈페이지 현황 검토 반영. 이 파일과 fix1203.js 두 개만 빼면 전부 원래대로 돌아간다. */

/* [UI 4] 주황 바탕의 흰 글씨 → 검은 글씨 (대비 2.0 → 10.4) */
.header .utils .store,
.header .utils .channel .nice-select,
.site_map .top .right_wrap .store,
.site_map .top .right_wrap .nice-select,
.sub_round_tab .tab.active,
.board_list ul li a .notice,
.board_list ul li a .state.end span,
.board_view_page .view_cont .a_cont .top .badge,
.time_cont ul li .time span,
.doctorview_sect .info_box .loc,
.history_page .history_nav ul li.active a,
.step_list3.active ul li .num p,
.step_list4.active ul li .num p,
.sub_holep .info_table .body table tbody td .cmp,
.symptom_box ul li .tit p { color: #111; }
.header .utils .channel .nice-select:after,
.site_map .top .right_wrap .nice-select:after { border-color: #111; }

/* [UI 1] PC: 첫 화면에서는 AI 검색창을 작은 AI 버튼으로 접어 두고, 화면을 내리면 펼친다. 접힌 것을 누르면 바로 펼쳐진다. */
@media (min-width: 1241px) {
    html.fx-ready .header .floating_search { transition: width .25s ease, background-color .2s ease; }
    html.fx-js body:not(.fx-scrolled) .header .floating_search:not(.fx-open) { width: 60px; overflow: hidden; cursor: pointer; }
    html.fx-js body:not(.fx-scrolled) .header .floating_search:not(.fx-open) form { width: 448px; pointer-events: none; }
    html.fx-js body:not(.fx-scrolled) .header .floating_search:not(.fx-open) input,
    html.fx-js body:not(.fx-scrolled) .header .floating_search:not(.fx-open) button { visibility: hidden; }
}

/* [UI 2] PC: 오른쪽 퀵 메뉴는 첫 화면에서는 숨기고 둘째 구간부터 보인다. 메인 팝업이 .quick_wrap 안에 들어 있으므로 팝업은 빼고 숨긴다. */
@media (min-width: 770px) {
    html.fx-ready .quick_wrap > :not(.main-popup-wrap):not(.main-popup-bg) { transition: opacity .3s ease, visibility .3s ease; }
    html.fx-js body:not(.fx-scrolled) .quick_wrap > :not(.main-popup-wrap):not(.main-popup-bg) { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* [UX개발 2·3] 늦게 채워지는 목록 자리를 미리 비워 둔다 → 아래 내용이 밀리지 않고, 지점안내 아래쪽 사진을 미리 받지 않는다. */
@media (min-width: 770px) {
    .sub_reserve .board_page #listView,
    .sub_consult .board_page #listView { min-height: 129rem; }
    .sub_location #listView { min-height: 220rem; }
    .sub_location #listView2 { min-height: 110rem; }
    .sub_location #listView3 { min-height: 135rem; }
}
@media (max-width: 769px) {
    .sub_location #listView { min-height: 330rem; }
    .sub_location #listView2 { min-height: 90rem; }
    .sub_location #listView3 { min-height: 135rem; }
}

/* [UX 1] 예약·상담: 신청 버튼을 목록 위에 크게. 목록은 그대로 둔다. */
.sub_reserve .board_list_top .sch_box.w-full,
.sub_consult .board_list_top .sch_box.w-full { flex-wrap: wrap; }
.sub_reserve .board_list_top .sch_box.w-full .btn_type1,
.sub_consult .board_list_top .sch_box.w-full .btn_type1 {
    order: -1; flex: 0 0 100%; width: 100%; max-width: none; min-width: 0; height: 3.2em; line-height: 1; margin: 0 0 .9em;
    border: 0; border-radius: 1.6rem; background: var(--gold); color: #111; font-size: var(--txt24, 2.4rem); font-weight: 700;
}
.sub_reserve .board_list_top .sch_box.w-full .btn_type1 svg,
.sub_consult .board_list_top .sch_box.w-full .btn_type1 svg { margin-right: .5em; }
.sub_reserve .board_list_top,
.sub_consult .board_list_top { flex-wrap: wrap; }
.sub_reserve .board_list_top:after,
.sub_consult .board_list_top:after { display: block; flex: 0 0 100%; width: 100%; margin-top: .8em; color: #666; font-size: var(--txt16); line-height: 1.5; }
.sub_reserve .board_list_top:after { content: "이미 예약하셨다면 아래 목록에서 본인 예약을 눌러 비밀번호를 넣으면 확인·변경할 수 있습니다."; }
.sub_consult .board_list_top:after { content: "이미 상담을 남기셨다면 아래 목록에서 본인 글을 눌러 비밀번호를 넣으면 답변을 볼 수 있습니다."; }
@media (max-width: 769px) {
    .sub_reserve .board_list_top .sch_box.w-full .btn_type1,
    .sub_consult .board_list_top .sch_box.w-full .btn_type1 { font-size: 18px; height: 54px; }
    .sub_reserve .board_list_top:after,
    .sub_consult .board_list_top:after { font-size: 14px; }
}

/* [메인 배너] 한 바퀴 돌아 첫 장으로 이어질 때 배경이 1.0 → 1.1 배로 순간 튀던 것.
   스와이퍼 loop 는 첫 장의 복제본을 보여 주다가 진짜 첫 장으로 바꿔치기하는데, 그때 진짜 첫 장이 아직 확대(1.1) 상태였다. 짝이 되는 장도 미리 1.0 으로 맞춰 둔다. */
.visual_sect .swiper-slide-duplicate-active .bg_img { transform: scale(1); }
