/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.75);
}

.brand img {
    height: 1.75rem;
}

.hamburger {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    display: grid;
    place-content: center;
    gap: 0.25rem;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: #333;
}

/* nav overlay */
.site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: #5BD0A5;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.5rem 2.5rem;
    color: #fff;
}

.site-nav.open { 
    transform: translateX(0); 
    left: 0; 
    right: 0; 
}

/* 닫기 버튼 */
.site-nav .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 0;
    font-size: 2rem;
    color: #000;
    cursor: pointer;
}

/* 제목 */
.site-nav h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    letter-spacing: normal;
    font-size: 1.5rem;
    font-stretch: normal;
    line-height: 1.76;
    font-weight: normal;
}

/* 리스트 */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li:last-child {
    margin-bottom: 0;
}

.site-nav a {
    display: block;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    border-bottom: none;
    padding: 3px 0;
}

.site-nav .nav-home-link {
    width: calc(100% - 50px);
}

/* footer */
.nav-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    margin: 1rem -1.5rem 0;
    width: calc(100% + 3rem);
}

.footer-box {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    white-space: nowrap;
}

.footer-box strong a {
    font-size: 0.95rem;
    color: #000;
}

/* 가운데 라인 */
.footer-box:nth-child(2)::before,
.footer-box:nth-child(4)::before {
    content: "";
    position: absolute;
    top: 25%;
    bottom: 25%;
    left: 0;
    width: 1px;
    background: #000;
}

/* 대표번호 | 위치 윗줄 */
.footer-box:nth-child(3),
.footer-box:nth-child(4) {
    border-top: 2px solid #000;
}

/* 대표번호 + 번호 */
.footer-box.inline {
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.footer-box.inline .label {
    font-size: 0.8rem;
    color: #555;
}

.footer-box.inline strong {
    font-size: 0.95rem;
    color: #000;
}

.footer-box strong a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

/* 지도 overlay */
.drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20001;
    display: none;
    background: #fff;
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.drawer.open {
    display: block;
    transform: translateY(0);
}

/* 헤더 */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.drawer-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.drawer-close {
    background: none;
    border: none;
    cursor: pointer;
}

/* 주소 */
.address-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 16px;
}

.address {
    margin: 0;
    font-size: 14px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #007aff;
    cursor: pointer;
    text-decoration: none;
}

.copy-btn:before {
    content: "";
    display: inline-block;
    background: url(https://app.catchtable.co.kr/public/img/icons/copy.svg) no-repeat center;
    background-size: contain;
    width: 18px;
    height: 18px;
    margin-right: 2px;
}

/* 지도 */
.map-box {
    margin: 12px 16px;
    border: 1px solid #ccc;
    overflow: hidden;
}

.map-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 지도 버튼 */
.map-actions {
    display: flex;
    justify-content: space-around;
    padding: 0 0 12px 0;
}

.map-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: black;
}

.map-link h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* ===== 배경 스크롤 잠금 ===== */
html.no-scroll,
body.no-scroll {
    position: fixed;
    overflow: hidden;
    inline-size: 100%;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
    touch-action: none;
}