/* 기본 Pretendard 적용 및 초기화 (폰트 미지정 대응) */
body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
    word-break: keep-all;
}

.byun_box {
    max-width: 1000px;
    margin: 0 auto;
}
.byun_box h1 {    
    text-align: center;
    font-weight: 400;
    font-size: 25px;
}
.byun_box h1 b {    
    font-weight: bold;
}
   
.card{
    background-color: #f8f9fa;
}
	
@media (min-width: 200px) and (max-width: 376px) {
    .byun_box {
        padding: 20px 0px;
    }
}    
    
.byun_info_box { 
    position: relative;
    background: #f3f4f8;
    background: #f3f4f8bd;
}
    
.byun_info {
    max-width: 1000px; 
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    color: #111;
    box-sizing: border-box;
}

/* 지도 영역 메인 컨테이너 */
.byun_mapbox {
    display: flex;
    flex-direction: column; /* 모바일 우선: 세로로 배치 */
    gap: 30px;
    align-items: stretch;
}

/* 왼쪽 이미지/안내 카드 영역 */
.byun_map_l {
    flex: 1;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 오른쪽 지도 및 정보 영역 */
#byun_map_r {
    flex: 1.7;
    display: flex;
    flex-direction: column;
}

/* 실제 네이버 지도 api 등이 들어갈 영역 */
.byun_mapbox .naver_map {
    width: 100%;
    height: auto;
    background-color: #e0e0e0;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}
.byun_mapbox .naver_map img{
    width: 100%;
}
	
/* 주소 및 복사 버튼 컨테이너 */
#byun_map_r p {
    display: inline-flex;
    align-items: center;
    font-size: 17px; 
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* 주소 앞 초록색 위치 아이콘 */
#byun_map_r p::before {
    content: '';
    display: inline-block;
    flex-shrink: 0; 
    width: 35px;
    height: 25px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300c73c"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>') no-repeat center;
    margin-right: 4px;
    vertical-align: middle;
}

/* 주소 복사 버튼 */
#byun_map_r button {
    width: 100%;
    display: inline-block;
    align-self: flex-start; 
    padding: 6px 15px;
    margin: 10px 0px 20px;
    font-size: 15px;
    color: #fff;
    background-color: #999;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

#byun_map_r button:hover {
    background-color: #777;
}

/* 하단 길찾기 링크 리스트 */
.map_chak {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* 모바일 화면에서는 버튼 3개가 깔끔하게 아래로 나열 */
    gap: 10px;
}

.map_chak li {
    width: 100%;
}

.map_chak li img {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.map_chak li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
}

.map_chak li a:hover {
    background-color: #f8fafc;
}

/* 대중교통 및 주차장 안내 */
.byun_car {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 20px;
    box-sizing: border-box;
}

.byun_car h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.byun_car .parking-info {
    font-size: 17px;
    color: #444;
    margin-bottom: 25px;
}

.byun_car .info-table {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.byun_car .info-row {
    display: flex;
    flex-direction: column; /* 모바일 구조: 세로 배치 */
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 10px;
    gap: 10px;
}

.byun_car .info-row:last-child {
    border-bottom: none;
}

.byun_car .info-title {
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    color: #111;
}

.byun_car .info-desc {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.byun_car .info-desc strong {
    font-size: 17px;
    color: #000;
}

.byun_car .info-desc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.byun_car .info-desc ul li {
    margin-bottom: 6px;
    font-size: 16px;
}

.byun_car .info-desc ul li span {
    font-weight: bold;
    display: inline-block;
    width: 45px;
}

.byun_car .bus-stop {
    margin-top: 8px;
    color: #666;
    font-size: 15px;
}

/* 예약 및 진료 안내 */
.byun_yeyack {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 20px 60px;
    box-sizing: border-box;
}
    
.byun_yeyack h2 {
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 30px;
    text-align: center;
}

.byun_yeyack h2 strong {
    font-weight: bold;
}

/* 예약/진료 카드 영역 모바일 기본 레이아웃 (세로 쌓임) */
.byun_yeyack .flex-box { 
    display: flex;
    flex-direction: column; 
    gap: 20px;
}
.byun_yeyack .card { 
    width: 100%; 
    padding: 20px; 
    box-sizing: border-box;
	padding-top: 35px;
}    

.byun_yeyack .card h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

/* 진료시간 테이블 스타일 */
.byun_yeyack .time-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.byun_yeyack .time-table tr {
    border-bottom: 1px solid #e9ecef;
}

.byun_yeyack .time-table tr:last-child {
    border-bottom: none;
}

.byun_yeyack .time-table th, 
.byun_yeyack .time-table td {
    padding: 15px 0;
    vertical-align: middle;
}

.byun_yeyack .time-table th {
    text-align: left;
    color: #444;
    width: 80px;
    font-size: 16px;
    font-weight: 500;
}

.byun_yeyack .time-table td {
    text-align: right;
    font-weight: bold;
    font-size: 18px;
}

.byun_yeyack .time-table td small {
    display: block;
    font-weight: normal;
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}

/* 휴진 안내 */
.byun_yeyack .closed-days {
    color: #4d514f;
    font-weight: bold;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
}

/* 지도 효과 (한반도 그래픽 박스) */
.map-container {
    position: relative;
    width: 100%;
    max-width: 360px; 
    height: 450px;      
    background: url(https://www.okbyun.co.kr/img/byunhom/main/jido_bg.png) no-repeat center;
    background-size: cover;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
        
.map-container .maptxt {
    position: absolute;
    top: 40px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    z-index: 10;
    font-size: 22px;
    font-weight: 700;
    padding: 0 10px;
    box-sizing: border-box;
}

.map-container .maptxt strong {
    color: #c5f14f;
    display: block;
    margin-top: 5px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}
        
.map-container .maptxt2 {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    z-index: 10;
    color: #fff;
    padding: 0 10px;
    box-sizing: border-box;
}
    
.map_nogiimg {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%); 
    width: 200px;
}

.animation-svg {
    position: absolute;
    top: -30px;
    left: -20px;
    width: 100%;
    height: 100%;
    z-index: 5;
    transform: rotate(347deg);
}

.arrow-mask-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawArrow 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards infinite;
}

@keyframes drawArrow {
    0% { stroke-dashoffset: 1000; }
    80%, 100% { stroke-dashoffset: 0; }
}

.target-center {
    fill: #ff3333;
    filter: drop-shadow(0px 0px 8px #ff3333);
}

.target-pulse {
    fill: none;
    stroke: #ff3333;
    stroke-width: 2;
    animation: pulse 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes pulse {
    0% { r: 5; opacity: 1; stroke-width: 3; }
    50% { r: 25; opacity: 0.4; stroke-width: 1.5; }
    100% { r: 40; opacity: 0; stroke-width: 0.5; }
}
    
.target-point {
    fill: #f70000;
    animation: pulse 2s infinite;
}

/* 예약 채팅 버튼 레이아웃 */
.byun_yeyack .card .reserve-link {
    text-decoration: none;
    display: block;
}
.cont_phone, .cont_kakao, .cont_naver { 
    display: flex;
    align-items: center;
    border-radius: 100px;
    padding: 10px 20px;
    margin-bottom: 25px;
    height: 55px;
    box-sizing: border-box;
}
.cont_phone { background: #fff; border: 1px solid #ddd; }
.cont_kakao { background: #ffdd00; }
.cont_naver { background: linear-gradient(270deg, #26a2b6, #00c53a); }

.byun_yeyack .card div img {   
    width: 35px;
    height: 35px;
    object-fit: contain;
    margin-right: 15px;
}

.cont_phone p, .cont_kakao p, .cont_naver p {     
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    width: 100%;
}
.cont_naver p { color: #fff; }
.cont_phone b {
    padding-left: 10px;
    font-size: 19px;
    color: #000;
}
    
/* 내부 슬라이드 레이아웃 구조 */
.bslider-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0;
    overflow: hidden; 
    position: relative;
}

.bslider-title {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 40px;
}

.bslider-wrapper {
    display: flex;
    width: 100%;
    cursor: grab;
    user-select: none;
    will-change: transform;
    backface-visibility: hidden;
}
    
.bslider-wrapper:active {
    cursor: grabbing;
}

/* 모바일 슬라이드 기본 설정 */
.bslide-item {
    flex: 0 0 80%; 
    width: 80%;
    max-width: 450px;       
    aspect-ratio: 16 / 10;   
    padding: 0 10px; 
    box-sizing: border-box;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0.3; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px !important;
    overflow: hidden !important;
}

.bslide-item.active {
    opacity: 1 !important;
}

.bslide-item img {
    width: 100%;
    height: 100%;           
    object-fit: cover;      
    border-radius: 20px !important; 
    user-drag: none;
    pointer-events: none; 
    transform: translate3d(0,0,0);
}       

/* 하단 인디케이터 바 */
.slider-indicator {
    width: 80%; 
    max-width: 800px;
    height: 4px;
    background: #e0e0e0;
    margin: 30px auto 0;
    position: relative;
    border-radius: 2px;
}

.indicator-bar {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 20%; 
    background: #0d1e2d;
    border-radius: 2px;
    transition: left 0.3s ease-in-out;
}


/* ==========================================================================
   ⚠️ [1024 전용 확장 패치 추가] 768px ~ 1200px 구간 (태블릿 및 슬림 데스크톱 대응)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1200px) {
  .byun_mapbox { flex-direction: row; }
    .byun_car h2, .byun_yeyack h2 { font-size: 32px; }
    .byun_yeyack h2 { text-align: center; }
    
    #byun_map_r p { font-size: 19px; }
    #byun_map_r button { font-size: 16px; }
    .map_chak { flex-direction: row; }
    .map_chak li { flex: 1; width: auto; }
    .map_chak li a { font-size: 16px; }

    .byun_car .info-row { flex-direction: row; padding: 22px 10px; gap: 0; }
    .byun_car .info-title { width: 280px; font-size: 20px; }
    .byun_car .info-desc { font-size: 16px; }
    .byun_car .info-desc strong { font-size: 18px; }
    .byun_car .info-desc ul li { font-size: 18px; }

    /*  이 부분을 아래와 같이 명확하게 수정/추가해 줍니다 */
    .byun_yeyack .card.reserve-card { 
        padding-top: 40px !important; 
    }

    .byun_yeyack .flex-box { flex-direction: row; gap: 20px; }
    .byun_yeyack .card { flex: 1; width: auto; padding: 20px; }
    .byun_yeyack .card h3 { font-size: 24px; }
    .byun_yeyack .time-table th { font-size: 16px; width: 85px; }
    .byun_yeyack .time-table td { font-size: 19px; }
    
    .cont_phone p, .cont_kakao p, .cont_naver p { font-size: 20px; }
    .cont_phone b { font-size: 22px; padding-left: 5px; }

    /*  1024 전용 슬라이더 강제 교정 공정 */
    .bslider-title { font-size: 32px; }
    /* 슬라이더 박스 한 장이 가로폭 50%를 꽉 차지하고 세로는 가로 비례 고정비(16:10) 적용 */
    .bslide-item { 
        flex: 0 0 50% !important; 
        width: 50% !important; 
        max-width: 500px !important; 
        aspect-ratio: 16 / 10 !important; 
    }
    .bslide-item img { 
        width: 100% !important;
        height: 100% !important; 
        object-fit: cover !important; 
    }
}

/* ==========================================================================
   PC용 스타일 확장 (화면 너비가 1201px 이상 대형 데스크톱 전용 셋팅)
   ========================================================================== */
@media (min-width: 1201px) {
    .byun_mapbox { flex-direction: row; }
    .byun_car h2, .byun_yeyack h2 { font-size: 35px; }
    .byun_yeyack h2 { text-align: left; }
    
    #byun_map_r p { font-size: 20px; }
    #byun_map_r button { font-size: 17px; }
    .map_chak li a { font-size: 17px; }

    .map_chak {
        flex-direction: row; 
    }
    .map_chak li {
        flex: 1;
        width: auto;
    }

    .byun_car .info-row { flex-direction: row; padding: 25px 10px; gap: 0; }
    .byun_car .info-title { width: 350px; font-size: 22px; }
    .byun_car .info-desc { font-size: 17px; }
    .byun_car .info-desc strong { font-size: 20px; }
    .byun_car .info-desc ul li { font-size: 20px; }
    .byun_car .bus-stop { font-size: 17px; }

    .byun_yeyack .flex-box { 
        flex-direction: row; 
        align-items: stretch;
        gap: 30px;
    }
    .byun_yeyack .card { 
        flex: 1;
        width: auto;
    }
    .byun_yeyack .card h3 { font-size: 26px; }
    .byun_yeyack .time-table th { font-size: 18px; width: 90px; }
    .byun_yeyack .time-table td { font-size: 21px; }
    .byun_yeyack .time-table td small { font-size: 17px; }
    .byun_yeyack .closed-days { font-size: 19px; }
    
    .cont_phone p, .cont_kakao p, .cont_naver p { font-size: 25px; }
    .cont_phone b { font-size: 28px; }
    
    .bslider-title { font-size: 35px; }
    /* 대형 PC 화면 전용 높이 고정 원복 처리 */
    .bslide-item { flex: 0 0 50%; width: 50%; max-width: 650px; aspect-ratio: auto; }
    .bslide-item img { height: 540px; }
}