@charset "utf-8";
/* ==========================================================================
   반응형 (STEP 2)

   미디어쿼리는 이 파일에만 둔다. 기존 CSS는 손대지 않으므로
   head.sub.php 의 <link> 한 줄과 이 파일만 되돌리면 STEP 2 전체가 원복된다.
   style.css 뒤에 로드되어야 한다(소스 순서로 우선).

   브레이크포인트
     1440 이하 : 컨테이너 밖으로 나가던 장식 요소 회수
     1280 이하 : 카드 4단 -> 3단, 메인 비주얼 스택
     1024 이하 : GNB -> 드로어, 카드 3단 -> 2단, 2단 조판 -> 1단
      768 이하 : 표 -> 세로 스택, 검색 필터 라벨 상단 배치
      480 이하 : 카드 1단, 여백 최소화
   ========================================================================== */

/* --------------------------------------------------------------------------
   공통 : 컨테이너 유동화
   inc.css 의 .box0(1600px) / .box1(1280px) 고정폭을 푼다.
   두 규칙 모두 !important 가 없어 소스 순서로 이긴다.
   -------------------------------------------------------------------------- */
.box0,
.box1 {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}
.box0 { max-width: 1600px; }
.box1 { max-width: 1280px; }

img,
video { max-width: 100%; }

/* 다음 지도 임베드는 내부에서 고정 폭 SVG 를 그린다. 컨테이너가 잘라준다. */
.root_daum_roughmap { width: 100% !important; max-width: 100%; }
.root_daum_roughmap .wrap_map,
.sec_cs .f_top .in_map { max-width: 100%; overflow: hidden; }

/* --------------------------------------------------------------------------
   1440 이하 : 컨테이너 바깥으로 나가 있던 캐러셀 화살표를 안쪽으로
   .main_control .b_prev/.b_next 는 left/right:-80px 이라
   1280 화면에서도 문서를 80px 넓힌다.
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
    .main_control .b_prev { left: 4px; }
    .main_control .b_next { right: 4px; }
    .main_control .xi { font-size: 2.4em; color: #bbb; }
}

/* --------------------------------------------------------------------------
   1280 이하
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
    #header .h_logo img,
    #footer .f_bot .f_logo img{height:45px;}
    #header .gnb > ul > li + li{margin-left:20px;}
    #header .gnb > ul > li > a{font-size:1.1em;}
    
    /* 우측 고정 상담 패널이 본문을 덮는다 */
    .cs_qk_info_w { display: none; }

    /* 메인 비주얼 : 슬라이드 + 퀵링크 가로 배치 해제 */
    .main_visual .flex_box { flex-wrap: wrap; gap: 18px; }
    .main_visual .in_slide { width: 100%; flex: none; height: 360px; }
    .main_visual .in_slide .in_item { padding: 40px 36px; }
    .main_visual .in_slide .in_tt { font-size: 2em; }
    .main_visual .in_link { width: 100%; }
    .main_visual .in_link > ul > li { width: calc(33.333% - 10px); }
    .main_visual .in_link > ul > li:last-child:nth-child(3n+1) { width: 100%; } /* 3열에서 혼자 남는 마지막 칸 */
    .main_visual .in_link > ul > li > a { height: 120px; padding: 18px 20px; }

    /* 매물 카드 4단 -> 3단 */
    .sec_recom .in_list > ul > li { width: calc(33.333% - 14px); }
    .sec_recom .in_list > ul { gap: 32px 20px; }

    /* 배너 */
    .sec_bnr .in_bnr { padding: 0 40px; }
    
    
    .sec_recom .recom_slide .main_control{display:none;}
    
    .about_02_01 .cos_intro > li .in .img_z{padding-right:2em;}
	.about_02_01 .cos_intro > li .in .txt_z{padding:0 0 0 2em;}
	.about_02_01 .cos_intro > li .in.rev .img_z{padding-left:2em;}
	.about_02_01 .cos_intro > li .in.rev .txt_z{padding-right:2em;}
    
}

/* --------------------------------------------------------------------------
   1024 이하 : 태블릿
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    /* --- 헤더 : GNB 를 드로어로 --- */
    #header .gnb {
        position: fixed;
        top: var(--header_H);
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--header_H));
        overflow-y: auto;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: .25s;
        z-index: 99;
    }
    #header .gnb.on {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    #header .gnb > ul { display: block; }
    #header .gnb > ul > li + li { margin-left: 0; border-top: 1px solid #f0f0f0; }
    #header .gnb > ul > li > a {
        height: auto;
        line-height: 1.4;
        padding: 16px 20px;
        font-size: 1.0625em;
    }
    #header .gnb > ul > li.on > a { color: var(--mainColor); font-weight: 700; }
    #header .h_util .h_menu { cursor: pointer; padding: 6px; }

    /* --- 메인 --- */
    .main_visual { padding: 20px 0; }
    .main_visual .in_slide { height: 300px; }
    .main_visual .in_slide .in_tt { font-size: 1.75em; }
    .main_visual .in_slide .in_tx { font-size: 1.0625em; }

    /* 매물 카드 3단 -> 2단 */
    .sec_recom { padding: 36px 0 44px; }
    .sec_recom .in_list > ul > li { width: calc(50% - 10px); }

    .main_tit { margin-bottom: 20px; }
    .main_tit .in_tt { font-size: 1.625em; }

    /* 2단 조판 -> 1단 */
    .sec_event > .flex,
    .sec_cs .f_top { display: block; }
    .sec_event > .flex > * + *,
    .sec_cs .f_top > * + * { margin-top: 40px; }
    .sec_event { padding: 44px 0 30px; }
    .sec_cs .f_top { padding: 36px 0; }

    /* 배너 */
    .sec_bnr .in_bnr { height: auto; padding: 28px 24px; flex-wrap: wrap; gap: 16px; }
    .sec_bnr .in_bnr .in_tx { font-size: 1.375em; }
    .sec_bnr .in_bnr .in_img { display: none; }
    .sec_bnr.st02 .in_bnr { height: auto; }

    /* 서브 비주얼 */
    .sub_visual { height: 200px; }
    .sub_visual .sub_v_title { font-size: 1.875em; margin-top: 0; }
    .pk_contents .page_title { font-size: 1.5em; }

    /* 서브 경로 탭 : 가로 스크롤 허용 */
    .sub_path_wrp {
        position: static;
        transform: none;
        margin-top: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sub_path_wrp .sdp_list { flex-wrap: nowrap; justify-content: flex-start; }
    .sub_path_wrp .sdp_list > li { flex: none; max-width: none; }
    .sub_path_wrp .sdp_list > li a { height: 48px; white-space: nowrap; padding: 0 18px; font-size:1.068em;}

    /* 상세 이미지 슬라이더 */
    .dt_img_z .mySwiper2 .swiper_prev { left: 12px; }
    .dt_img_z .mySwiper2 .swiper_next { right: 12px; }
    .dt_img_z .mySwiper2 .swiper_prev .xi,
    .dt_img_z .mySwiper2 .swiper_next .xi { font-size: 2.25em; }
    .dt_top { margin: 28px 0 20px; }
    .dt_top .dt_tt { font-size: 1.625em; }

    /* 사진 등록 슬롯 : 고정 224px 를 유동으로 */
    .file_ul > li { width: calc(25% - 8px); }
    .file_ul > li .img_preview_wrap { width: 100%; height: auto; aspect-ratio: 1 / 1; }
    .file_ul > li .img_preview_box { width: 100%; height: 100%; }

    /* 푸터 */
    #footer { margin-top: 80px; }
    #footer .f_bot { padding: 40px 0 28px; }
    #footer .f_bot .in_left { display: block; }
    #footer .f_bot .f_logo { width: auto; margin-bottom: 18px; }
    #footer .f_bot .in_tx { width: 100%; }
    #footer .f_bot .in_tx p { margin-left: 0; margin-right: 18px; }
    
    
    .loc_04_01 .location_box .map_tw{font-size:1.325em;}
    .loc_04_01 .location_box .map_tw .xi{margin-right:0; margin-bottom: 5px;}
    .loc_04_01 .location_box .map_tw .add_tx{width:100%;}
    .loc_04_01 .location_box .map_view .map_cont iframe{height:350px;}
    
    .about_02_01 .cos_intro > li{margin-bottom:4em;}
	.about_02_01 .cos_intro > li .in .img_z{width:100%; padding-right:0;}
	.about_02_01 .cos_intro > li .in .img_z .bgfix{height:250px;}
	.about_02_01 .cos_intro > li .in .txt_z{width:100%; padding:2em 0 0 0!important;}
	.about_02_01 .cos_intro > li .in .txt_z .tt{font-size:2em;}
	.about_02_01 .cos_intro > li .in.rev .img_z{padding:0;}
	.about_02_01 .cos_intro > li .in .txt_z .page_tx.ceo_name{text-align:right;}
    
    .about_career{margin-top:5em;}
    .about_career .in_list > ul{width:100%;}
    
    .dt_img_z .swiper-slide{height:500px;}
    .dt_img_z .mySwiper .swiper-slide{height:130px;}
}

/* --------------------------------------------------------------------------
   768 이하 : 모바일
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .doc { font-size: 15px; }
    :root {
            --header_H: 70px;
    }

    .main_visual .in_slide { height: 240px; }
    .main_visual .in_slide .in_item { padding: 28px 22px; }
    .main_visual .in_slide .in_tt { font-size: 1.375em; }
    .main_visual .in_slide .in_tx { font-size: .9375em; margin-top: 10px; }
    .main_visual .in_link > ul { gap: 10px; }
    .main_visual .in_link > ul > li,
    .main_visual .in_link > ul > li:last-child:nth-child(3n+1) { width: calc(50% - 5px); }
    .main_visual .in_link > ul > li:last-child:nth-child(odd) { width: 100%; } /* 2열에서 혼자 남는 마지막 칸 */
    .main_visual .in_link > ul > li > a { height: 96px; padding: 14px 16px; }
    .main_visual .in_link .in_img { width: 76px; height: 76px; bottom: -18px; }

    /* --- 검색 필터 : 라벨을 위로 --- */
    .sch_box { padding: 16px 16px 22px; }
    .sch_box .in_row { display: block; padding: 14px 0; }
    .sch_box .in_lb {
        width: auto;
        height: auto;
        margin: 0 0 10px;
        padding: 6px 14px;
        border-radius: 100px;
        display: inline-block;
        line-height: 1.4;
        font-size: .9375em;
    }
    .sch_box .in_cont { width: 100%; }
    .sch_in_chks { gap: 10px 14px; }
    .sch_box .in_range { flex-wrap: nowrap; }
    .sch_box .in_range .in_ip { width: auto; flex: 1; min-width: 0; }
    .sch_box .in_btns { margin-top: 16px; gap: 0 6px; }
    .sch_box .in_btn { min-width: 0; flex: 1; height: 46px; font-size: 1em; }
    .sch_box.sub_st { margin-bottom: 40px; }

    /* --- 매물 카드 --- */
    .sec_recom .in_list > ul { gap: 24px 14px; }
    .sec_recom .in_list > ul > li { width: calc(50% - 7px); }
    .sec_recom .in_price .in_num { margin-left: 8px; font-size: 1.0625em; }
    .sec_recom .in_name { font-size: 1em; }

    #bo_btn_top { gap: 10px; }
    #bo_btn_top .board_btn_wrap { width: 100%; margin-left: 0; gap: 6px; }

    /* --- 표 : 4열 -> 세로 스택 ---
       inc.css 의 .w15/.w35 등은 !important 라 여기서도 !important 로 눌러야 한다. */
    .board_st.write colgroup { display: none; }
    .board_st.write col { width: auto !important; }
    .board_st.write,
    .board_st.write tbody,
    .board_st.write tr,
    .board_st.write th,
    .board_st.write td {
        display: block;
        width: 100% !important;
    }
    .board_st.write tr {
        border-bottom: 1px solid #ddd;
        padding: 4px 0;
    }
    .board_st.write th {
        border: 0;
        padding: 10px 12px 4px;
        text-align: left;
        background: transparent;
        font-size: .9375em;
        color: #666;
    }
    .board_st.write td {
        border: 0;
        padding: 0 12px 10px;
    }
    .board_st.write .input_st { width: 100% !important; }

    /* --- 상세 --- */
    .dt_img_z .mySwiper2 .swiper_prev .xi,
    .dt_img_z .mySwiper2 .swiper_next .xi { font-size: 1.75em; }
    .dt_top { margin: 20px 0 16px; }
    .dt_top .dt_tt { font-size: 1.375em; }
    .dt_top .dt_tx { font-size: 1em; margin-top: 10px; }
    .dt_content { padding: 20px 0 28px; }
    .dt_content iframe{height:500px;}
    .btn_wrap { margin-top: 28px; }
    .btn_wrap .input_st { flex: 1; }

    /* 사진 등록 슬롯 */
    .file_ul { gap: 8px; }
    .file_ul > li { width: calc(33.333% - 6px); padding: 6px; }

    /* 배너 / 이벤트 */
    .sec_bnr { padding: 24px 0; }
    .sec_bnr .in_bnr .in_tx { font-size: 1.125em; }
    .sec_bnr .in_bnr .in_btn .btn_more { width: 130px; height: 44px; line-height: 44px; }
    .sec_event .evt_list .in_thumb { width: 84px; height: 84px; }
    .sec_event .evt_list > li > .in_item { gap: 14px; }

    /* 고객센터 */
    .sec_cs .f_top { padding: 28px 0; }
    .sec_cs .f_itx { font-size: 1.5em; }
    .sec_cs .f_itx .xi { width: 40px; height: 40px; line-height: 40px; margin-right: 10px; }

    /* 플로팅 버튼 */
    .qk_list { bottom: 10px; right: 10px; }
    .qk_list > li a { width: 42px; height: 42px; font-size: 1.25em; }

    /* 헤더 로고 */
    #header .h_logo img,
    #footer .f_bot .f_logo img { height: 36px; }
    
    .sec_recom .recom_slide > ul{margin-right:-14px;}
    .sec_recom .recom_slide > ul .slick-slide{padding-right:14px;}
    .sec_recom .recom_slide > ul .slick-slide .fav_btn{right:24px;}
    .slick-dots ul button{width:12px; height: 12px;}
    
    
    .page_tt{font-size:1.5em; }
    .page_stt{font-size:1.25em; }
    .page_tx{font-size:1em; }
    .page_stx{font-size:1em; }	
    
    .loc_04_01 .root_daum_roughmap .wrap_map{height:250px!important;}	
    .loc_04_01 .location_box .info_list{margin-right:0px;}
    .loc_04_01 .location_box .info_list > li{width:100%!important; margin-bottom: 5px;}
    .loc_04_01 .location_box .info_list > li .in{margin-right:0px;}	
    
    .about_02_01 .cos_intro > li .in .img_z .bgfix{height:200px;}
}

/* --------------------------------------------------------------------------
   480 이하 : 좁은 모바일
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .box0,
    .box1 { padding-left: 12px; padding-right: 12px; }

    .main_visual .in_slide { height: 200px; }
    .main_visual .in_slide .in_tt { font-size: 1.1875em; }

    /* 카드 1단 */
    .sec_recom .in_list > ul > li { width: 100%; }
    .sec_recom .in_list > ul { gap: 20px 0; }

    /* 사진 등록 슬롯 2단 */
    .file_ul > li { width: calc(50% - 4px); }

    .sub_visual { height: 150px; }
    .sub_visual .sub_v_title { font-size: 1.5em; }

    .sch_box .in_btn { height: 44px; }
    .sch_box .in_range .in_wave { margin: 0 5px; }

    #footer .f_bot .in_tx p { font-size: .875em; margin-right: 12px; }
}

/* --------------------------------------------------------------------------
   상세 썸네일 스트립
   p.realty_view.php 의 swiper 를 slidesPerView:5 고정에서 'auto' 로 바꿨다.
   'auto' 는 슬라이드 폭을 CSS 에서 읽으므로 여기서 화면별로 정한다.
   기본 25% 는 style.css 에 있고, 좁은 화면에서만 키운다.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .dt_img_z .mySwiper .swiper-slide { width: 33.333%; }
}
@media (max-width: 480px) {
    .dt_img_z .mySwiper .swiper-slide { width: 45%; }
}

/* --------------------------------------------------------------------------
   검색 필터 칩 (STEP 3)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .sch_chips { gap: 6px; margin-bottom: 14px; }
    .sch_chips .sch_chips_lb { width: 100%; margin-bottom: 2px; }
    .sch_chips .sch_chip { height: 30px; font-size: .875em; }
    .sch_box .in_help { font-size: .8125em; }
}

/* --------------------------------------------------------------------------
   목록 도구 / 빈 상태 / 가격 프리셋 (STEP 4)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    #bo_btn_top { gap: 10px; }
    .bo_list_tools { width: 100%; }
    .bo_list_tools .lable_st,
    .bo_list_tools select.input_st { width: 100%; }
    .bo_list_total .bo_list_sub { display: block; margin-left: 0; }
    .bo_empty { padding: 48px 16px; }
    .bo_empty .bo_empty_tt { font-size: 1.125em; }
    .sch_box .in_presets { gap: 5px; }
    .sch_box .in_preset { height: 28px; padding: 0 10px; font-size: .8125em; }
}

/* --------------------------------------------------------------------------
   상세 전환 동선 · 찜 · 라이트박스 (STEP 6)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* 좁은 화면에서는 전환 동선을 화면 아래에 고정한다.
       상세가 길어서 스크롤 도중에도 전화·카톡이 손에 닿아야 한다. */
    .dt_cta{ position:fixed; left:0; bottom:0; z-index:850; width:100%; margin:0; padding:6px 6px calc(6px + env(safe-area-inset-bottom)); gap:4px; background:#fff; border-top:1px solid #ddd; box-shadow:0 -2px 10px rgba(0,0,0,.08); flex-wrap:nowrap;}
    /* 버튼 5개가 한 줄에 들어가야 한다. 하나라도 넘치면 마지막(공유)이
       화면 밖으로 밀려 안 보인다. flex:1 1 0 으로 내용 폭과 무관하게 균등
       분할하고 글자는 줄바꿈 없이 줄인다 — 320px 기기까지 확인했다. */
    .dt_cta .dt_cta_btn{ flex:1 1 0; min-width:0; height:48px; padding:0 2px; font-size:.75em; gap:2px; flex-direction:column; overflow:hidden;}
    .dt_cta .dt_cta_btn .xi{ font-size:1.375em;}
    .dt_cta .dt_cta_btn .cta_tx{ max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
    /* 고정 바가 목록 버튼을 가리지 않도록 아래 여백을 준다.
       :has() 는 예전 브라우저에서 안 되므로 상세 페이지에 클래스를 하나 준다. */
    .dt_doc{ padding-bottom:80px;}
    /* 퀵메뉴가 고정 바와 겹친다 */
    .qk_list{ bottom:78px;}

    /* 토스트가 고정 바에 가려 안 보인다. 바 위로 띄운다. */
    .rt_toast{ bottom:76px;}

    .fav_btn{ width:32px; height:32px; font-size:1em;}
    .fav_panel .fav_box{ width:100%;}
    .lb_wrap .lb_prev,
    .lb_wrap .lb_next{ width:44px; height:44px; font-size:2em;}
    .lb_wrap .lb_close{ top:10px; right:10px;}
}

/* --------------------------------------------------------------------------
   등록 폼 사진 순서 조작
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .file_ul > li .img_tools button{ height:32px; font-size:.75em;}
}

/* 매도매수의뢰 : 절차 3칸을 세로로, 버튼은 한 줄에 하나씩 */
@media (max-width: 768px) {
    .req_steps { display: block; }
    .req_steps li { margin-bottom: 10px; }
    .req_lead { font-size: 1.02em; margin-bottom: 26px; }
    .req_box { padding: 20px 18px; }
    .req_btns { display: block; }
    .req_btn { display: block; width: 100%; margin-bottom: 10px; }
}

/* ---------------------------------------------------------------- 전체메뉴 패널 */
@media (max-width: 768px) {
    .allmenu .am_box { width: 100%; box-shadow: none; }
    .allmenu .am_head { padding: 16px 20px; }
    .allmenu .am_body { padding: 8px 20px 28px; }
    .allmenu .am_list > li { padding: 15px 0; }
    /* 폭이 좁으면 '아파트/빌라/원룸' 같은 긴 이름이 두 줄로 접힌다 */
    .allmenu .am_sub > li { width: 100%; }
}



@media screen and (max-width:500px) {
    #header .h_logo img, #footer .f_bot .f_logo img{height:32px;}
    #header .h_yout a{font-size:.875em; margin-right:2px; padding:7px 12px; gap:0 5px;}
    #header .h_yout a .xi{font-size:1.375em;}
    			
    .page_tt{font-size:1.4em; }
    .page_stt{font-size:1.125em; }
    .page_tx{font-size:1em; }
    .page_stx{font-size:1em; }	
    
    .loc_04_01 .location_box{padding:0 5px;}
    .loc_04_01 .location_box .map_tw{font-size:1.125em;}
    .loc_04_01 .location_box .map_view{padding:.7em;}
    .loc_04_01 .location_box .map_view .tt{font-size:1em;}
    .loc_04_01 .location_box .map_view .map_cont iframe{height:250px;}
    .loc_04_01 .location_box .info_list > li .in{margin-right:0; padding:25px 20px;}
    .loc_04_01 .location_box .info_list > li .in .tt{font-size:.938em;}
    .loc_04_01 .location_box .info_list > li .in .tx{font-size:.938em;}
    .loc_04_01 .location_box .info_list > li .in .icon{bottom:50%; transform: translateY(50%);}
    .loc_04_01 .location_box .info_list > li .in .icon .xi{font-size:2.825em;}
    
    .about_02_01 .cos_intro > li .in .txt_z .tt{font-size:1.625em;}
    .about_02_01 .cos_intro > li .in .txt_z .page_tt .fs{font-size:1.125em;}
	.about_02_01 .cos_intro > li .in .txt_z .page_stt{margin-bottom:20px;}
    
    .about_career{margin-top:3em; padding:40px 0 100px;}
    .about_career .in_list{padding:30px 20px;}
    .about_career .in_list > ul > li{padding:0 0 20px 80px;}
    .about_career .in_list > ul > li:before{left:58px;}
    .about_career .in_list > ul > li:after{left:54px;}
    .about_career .in_list > ul > li.on:after{left:52px;}
    .about_career .in_list .in_con p{font-size:1em;}
    .about_career .in_list .in_year{width:55px; font-size:1em;}
    .about_career .in_list .in_con p + p{margin-top:2px;}
    
    .dt_img_z .swiper-slide{height:300px;}
    .dt_img_z .mySwiper .swiper-slide{height:110px;}
    .dt_content iframe{height:250px;}
    
    .about_sch a{font-size:.875em;}
    .agree_box .in_con{ padding:.8em; margin:.5em; }
    .about_sch .sch_ck svg{width:25px;}
    
}
