/* ==========================================================================
   Footer : Location + Letter
   ========================================================================== */
#footer {
    width: 100%;
    background: #fff;
    border: 1px solid #D7D7D7;
}

/* ---------- location_section ---------- */
#footer .location_section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#footer .location_section .left {
    flex: 0 0 50%;
    margin: 0 auto;
    width: calc(100% - 10%);
    box-sizing: border-box;
    padding: 0 2.5%;

}

#footer .location_section .right {
    flex: 0 0 50%;
}

#footer .location_section .right .map {
    width: 100%;
    height: 100%;
    min-height: 560px;
}

#footer .location_section .right .map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* 주소 + 복사버튼 */
#footer .location_section .address {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#footer .location_section .copy_button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--light_gray);
    cursor: pointer;
    flex: 0 0 auto;
}

/* 오시는길 배지 */
#footer .location_section .way {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

#footer .location_section .way_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: var(--navy);
    color: #fff;
    border-radius: 4px;
    flex: 0 0 auto;
}

/* 지도앱 버튼 3개 */
#footer .location_section .map_links {
    display: flex;
    gap: 14px;
    margin-bottom: 50px;
}

#footer .location_section .map_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 30px;
    color: var(--black);
}

#footer .location_section .map_btn:hover {
    background-color: #111;
    color: #fff;
    border: 1px solid #111;
}

/* 대표전화 / 진료안내 */
#footer .location_section .detail {
    display: flex;
    gap: 100px;
}

#footer .location_section .time_list li {
    display: flex;
    gap: 20px;
    margin-bottom: 6px;
}

#footer .location_section .time_list .time_day {
    display: inline-block;
    width: 50px;
    color: var(--black);
    font-weight: 600;
}

#footer .location_section .lunch {
    margin-top: 12px;
}

/* ---------- letter (하단 footer info) ---------- */
#footer .border_wrap{
    border-top: 1px solid #D7D7D7;

}
#footer .letter {
    width: 100%;
    padding: 50px 0;
}

#footer .letter.flex {
    display: flex;
    justify-content: space-between;
}

#footer .letter .left {
    flex: 1;
}

#footer .letter .footer_logo {
    display: block;
    margin-bottom: 20px;
}

#footer .letter .subject {
    margin-bottom: 20px;
    color: var(--light_gray);
}

#footer .letter .subject .is-active {
    color: var(--gold);
}

#footer .letter .location {
    color: var(--light_gray);
    margin-bottom: 14px;
}

#footer .letter .copyright {
    color: var(--light_gray);
    margin-bottom: 10px;
}

#footer .letter .disclaimer {
    color: #D7D7D7;
}

#footer .letter .rights {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

#footer .letter .rights .menu {
    color: var(--black);
}

#footer .letter .rights .menu li {
    cursor: pointer;
}

#footer .letter .rights .blog_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #F5F5F5;
}

#footer .letter .rights .blog_btn:hover img {
    opacity: 0.5;
}
#copy_button,
#copy_button_content {
    position: relative;
}

#copy_button {
    display: inline-block;
}

.copy_tooltip {
    position: fixed;   /* JS가 top/left를 직접 계산해서 넣어줌 */
    background-color: #22213a;
    color: #fff;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
}

/* ---------- 공통 유틸(참고 코드 패턴) ---------- */
#footer .flex {
    display: flex;
}

#footer .gap-20 {
    gap: 20px;
}

#footer .gap-40 {
    gap: 40px;
}



/* ==========================================================================
   Tablet (768px ~ 1024px)
   - location_section은 좌우 유지하되 gap/padding만 축소
   ========================================================================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    #footer .location_section .left {
        width: calc(100% - 6%);
        padding: 5% 4%;
    }

    #footer .location_section .right .map {
        min-height: 420px;
    }

    #footer .location_section .map_links {
        gap: 10px;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    #footer .location_section .map_btn {
        padding: 10px 16px;
    }

    #footer .location_section .detail {
        gap: 40px;
    }

    #footer .letter {
        padding: 40px 0;
    }

    #footer .letter.flex {
        gap: 40px;
    }

    #footer .letter .rights {
        align-items: flex-end;
    }

    #footer .letter .rights .menu {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 16px;
    }
}

/* ==========================================================================
   Mobile (max-width: 767px)
   - location_section 좌우 → 세로 스택, letter도 세로 스택
   ========================================================================== */
@media screen and (max-width: 767px) {

    #footer .location_section {
        flex-direction: column;
    }

    #footer .location_section .left,
    #footer .location_section .right {
        flex: 0 0 auto;
        width: 100%;
    }

    #footer .location_section .left {
        width: calc(100% - 10%);
        padding: 8% 5%;
    }

    #footer .location_section .right .map {
        min-height: 280px;
    }

    #footer .location_section .address {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }

    #footer .location_section .way {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }

    #footer .location_section .map_links {
        gap: 8px;
        margin-bottom: 30px;
        flex-wrap: wrap;
    }

    #footer .location_section .map_btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* 대표전화 / 진료안내 : 가로 → 세로 */
    #footer .location_section .detail {
        flex-direction: column;
        gap: 24px;
    }

    #footer .location_section .time_list li {
        gap: 12px;
        margin-bottom: 8px;
    }

    #footer .location_section .time_list .time_day {
        width: 40px;
    }

    /* letter : 좌측 정보 + 우측 메뉴 → 세로 스택 */
    #footer .letter {
        padding: 30px 0;
    }

    #footer .letter.flex {
        flex-direction: column;
        gap: 30px;
    }

    #footer .letter .left {
        flex: 1 1 auto;
    }

    #footer .letter .footer_logo {
        margin-bottom: 14px;
    }

    #footer .letter .subject {
        margin-bottom: 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    #footer .letter .location {
        margin-bottom: 10px;
    }

    #footer .letter .rights {
        align-items: flex-start;
        width: 100%;
    }

    #footer .letter .rights .menu {
        flex-wrap: wrap;
        gap: 12px 20px;
        margin-bottom: 20px;
    }

    #footer .letter .rights .blog_btn {
        width: 44px;
        height: 44px;
        align-self: flex-start;
    }
}