/* ==================== Footer Styles ==================== */
.site-footer {
    background-color: #ffffff;
    color: var(--c-black);
    border-top: 1px solid #eee;
    position: relative;
}

.ft_cont {
    width: 100%;
}

.cont_box {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 600px;
}

.ft_left {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
}

.ft_location {
    padding: 80px 4% 60px 20%;
    box-sizing: border-box;
    flex: 1;
}

.ft_info {
    padding: 40px 4% 50px 20%;
    box-sizing: border-box;
    border-top: 1px solid #eee;
}

.map {
    flex: 1 1 50%;
    background-color: transparent;
    min-height: 400px;
    position: relative;
    /* Placeholder map image */
    background-image: url('https://via.placeholder.com/800x800/e5e3df/a0a0a0?text=Map+Placeholder');
    background-size: cover;
    background-position: center;
}

.map-placeholder-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-marker-pink {
    background-color: var(--c-soft-pink);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: var(--fw-bold);
}

.address .txt p {
    color: var(--c-black);
    font-size: var(--fs-28);
    font-weight: var(--fw-bold);
    line-height: normal;
    margin: 0 0 30px 0;
}

.way_list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.way_list .item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.way_list .tit {
    background-color: var(--c-soft-pink);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: var(--fs-14, 14px);
    font-weight: var(--fw-semibold);
    flex-shrink: 0;
}

.way_list .txt_box .txt,
.way_list .txt_box .info_txt {
    color: var(--c-black);
    font-size: var(--fs-17);
    font-weight: var(--fw-medium);
    line-height: normal;
    margin: 0;
}

.btn_list {
    list-style: none;
    padding: 0;
    margin: 0 0 50px 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn_list .item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 30px;
    color: var(--c-black);
    font-size: var(--fs-15);
    font-weight: var(--fw-regular);
    line-height: 130%;
    text-decoration: none;
    transition: all 0.2s;
}

.btn_list .item a:hover {
    border-color: #999;
    background-color: #f9f9f9;
}

.btn_list .ico {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-extrabold);
    font-size: var(--fs-14, 14px);
}

.btn_list .ico.naver {
    color: #03c75a;
}

.btn_list .ico.kakao {
    color: #f3c000;
}

.btn_list .ico.google {
    color: #4285f4;
}

.btn_list .ico.tmap {
    color: var(--c-soft-pink);
}

.info_cont {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.info_cont .tit {
    color: var(--c-black);
    font-size: var(--fs-20);
    font-weight: var(--fw-bold);
    line-height: normal;
    margin-bottom: 10px;
}

.info_cont .tel a {
    color: var(--c-black);
    font-size: var(--fs-28);
    font-weight: var(--fw-bold);
    line-height: 140%;
    /* 39.2px */
    letter-spacing: 0.28px;
    text-decoration: none;
    display: block;
}

.time_table .table {
    border-collapse: collapse;
    margin-bottom: 15px;
}

.time_table .table td {
    padding: 0;
    /* Padding is handled by line-height */
    color: var(--c-black);
    font-size: var(--fs-17);
    font-weight: var(--fw-medium);
    line-height: 180%;
    /* 30.6px */
}

.time_table .table td:first-child {
    padding-right: 20px;
    color: var(--c-black);
    font-size: var(--fs-17);
    font-weight: var(--fw-bold);
    line-height: 180%;
    /* 30.6px */
}

.time_table .txt_box .info_txt {
    margin: 0 0 4px 0;
    color: var(--c-gray);
    font-size: var(--fs-15);
    font-weight: var(--fw-regular);
    line-height: 160%;
    /* 27.2px */
    letter-spacing: -0.34px;
}

/* ================= FT INFO (Bottom Left) ================= */
.ft_info .ft_logo {
    margin-bottom: 20px;
}

.f_menu {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.f_menu .item a {
    color: var(--c-gray);
    font-size: var(--fs-15);
    font-weight: var(--fw-regular);
    line-height: normal;
    text-decoration: none;
}

.f_menu .item a.priv_btn {
    color: var(--c-black);
    font-weight: var(--fw-bold);
}

.f_info {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--c-gray);
    font-size: var(--fs-15);
    font-weight: var(--fw-medium);
    line-height: 160%;
    /* 24px */
    letter-spacing: 0.15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.f_info .item {
    display: inline-block;
}

.f_info .item::after {
    content: "·";
    margin: 0 4px;
    color: #ccc;
}

.f_info .item:last-child::after {
    display: none;
}

.copy {
    color: var(--c-gray);
    font-size: var(--fs-14);
    font-weight: var(--fw-regular);
    line-height: normal;
    margin-top: 20px;
}

.scroll-top-btn {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 90px;
    height: 90px;
    background-color: var(--c-soft-pink);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, background-color 0.3s;
    z-index: 9999;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    background-color: #e55e76;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .ft_location {
        padding: 60px 4% 60px 6%;
    }

    .ft_info {
        padding: 40px 6%;
    }

    .info_cont {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .cont_box {
        flex-direction: column;
    }

    .ft_left {
        flex: 1 1 100%;
        order: 2;
        /* Move map to top if desired, but user might want map bottom. Let's put ft_left order: 1 and map order: 2 */
        order: 1;
    }

    .map {
        flex: 1 1 100%;
        min-height: 400px;
        order: 2;
    }

    .ft_location {
        padding: 50px 5%;
    }

    .ft_info {
        padding: 30px 5%;
    }

    .scroll-top-btn {
        right: 30px;
        bottom: 30px;
    }
}

@media (max-width: 768px) {
    .address .txt p {
        font-size: var(--fs-22, 22px);
    }

    .way_list .item {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .info_cont {
        flex-direction: column;
        gap: 30px;
    }

    .f_menu {
        gap: 15px;
    }

    .f_info {
        display: block;
    }

    .f_info .item {
        display: inline;
    }

    .f_info .item::after {
        content: "·";
        margin: 0;
        color: #ccc;
    }

    .f_info .item:last-child::after {
        display: none;
    }

    .scroll-top-btn {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }

    .scroll-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* =========================================
   Footer Terms Modal Styling
========================================= */
.footer-terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.footer-terms-modal.show {
    visibility: visible;
    opacity: 1;
}

.footer-terms-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.footer-terms-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background-color: var(--c-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.footer-terms-modal.show .footer-terms-modal-content {
    transform: translateY(0);
}

.footer-terms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.footer-terms-modal-title {
    font-size: var(--fs-20, 20px);
    font-weight: var(--fw-bold);
    color: var(--c-black);
    margin: 0;
}

.footer-terms-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.footer-terms-modal-close:hover {
    color: #000;
}

.footer-terms-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    font-size: var(--fs-14, 14px);
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    padding-right: 10px;
}

/* Custom scrollbar for modal */
.footer-terms-modal-body::-webkit-scrollbar {
    width: 6px;
}

.footer-terms-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.footer-terms-modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.footer-terms-modal-confirm {
    align-self: center;
    background-color: var(--c-black);
    color: var(--c-white);
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: var(--fs-16, 16px);
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: var(--fw-semibold);
}

.footer-terms-modal-confirm:hover {
    background-color: #111;
}
/* 모바일 전화버튼 / 데스크탑 totop 분기 */
.mobile-only { display: none; }
.desktop-only { display: flex; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    .mobile-call-btn {
        text-decoration: none;
        background-color: var(--c-soft-pink);
    }
    .mobile-call-btn svg {
        width: 24px;
        height: 24px;
    }
}

.mobile-call-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
