html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* 스크롤 방지 */
}


#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
}


#map-overlay {
    position: absolute;
    bottom: 15%;
    /* 맵 하단에 배치 */
    left: 5px;
    /* 왼쪽 정렬 */
    background: rgba(255, 255, 255, 0.7);
    /* 반투명 배경 */
    padding: 5px 10px;
    font-size: 12px;
    color: #333;
    border-radius: 4px;
    z-index: 1000;
    /* 지도 위로 보이게 설정 */
}

.kakao-ad {
    display: flex;
    justify-content: center;
    align-items: center;
}

.iw_inner {
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    padding: 24px;
    width: 300px;
    border: none;
    font-family: 'Arial', sans-serif;
}

.iw_inner h3 {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    margin-bottom: 14px;
    text-align: center;
    border-bottom: 3px solid #007aff;
    padding-bottom: 8px;
}

.iw_inner p {
    font-size: 16px;
    color: #444;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.iw_inner strong {
    font-weight: bold;
    color: #222;
}

/* 공통 버튼 스타일 */
.map-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}




/* 개별 버튼 스타일 */
/* 네이버 지도 버튼 */
.naver-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #03A64A, #028A3D);
    color: white;
    text-align: center;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(3, 166, 74, 0.3);
}

.naver-btn:hover {
    background: linear-gradient(135deg, #028a3d, #026d2f);
}

/* 카카오 지도 버튼 */
.kakao-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #FFD700, #E4C700);
    color: black;
    text-align: center;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(255, 215, 0, 0.3);
}

.kakao-btn:hover {
    background: linear-gradient(135deg, #e4c700, #c7a600);
}

/* 구글 지도 버튼 */
.google-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #007AFF, #005ECB);
    color: white;
    text-align: center;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 122, 255, 0.3);
}

.google-btn:hover {
    background: linear-gradient(135deg, #357AE8, #2B66D2);
}


/* 팝업 */

/* 팝업 배경 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* 어두운 배경 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* 팝업 박스 스타일 */
.popup-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* 닫기 버튼 스타일 */
#close-popup-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

#close-popup-btn:hover {
    color: #333;
}

#close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

#close-btn:hover {
    color: #333;
}

/* 팝업 텍스트 스타일 */
.popup-content {
    max-width: 90vw; /* 너무 커지지 않도록 제한 */
    max-height: 80vh; /* 세로 크기 제한 */
    overflow: auto; /* 내용이 많아지면 스크롤 */
    padding: 20px;
}

.popup-content h1 {
    margin-top: 0;
    font-size: 22px !important; /* 폰 설정과 관계없이 크기 고정 */
    font-weight: bold;
    color: #333;
    white-space: nowrap; /* 글자가 줄 바꿈되지 않도록 */
}

.popup-content p {
    font-size: 16px !important; /* 기본 폰트 크기 강제 */
    color: #555;
    line-height: 1.5;
    word-wrap: break-word; /* 긴 단어 자동 줄바꿈 */
}

/* X 버튼 스타일 */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px !important;
    cursor: pointer;
}

/* 작은 화면 (모바일) 대응 */
@media (max-width: 600px) {
    .popup-content {
        width: min(95vw, 350px);
        font-size: 14px !important; /* 작은 화면에서 폰트 크기 조정 */
    }

    .popup-content h1 {
        font-size: 20px !important; /* 모바일에서 글씨 크기 줄이기 */
    }

    .popup-content p {
        font-size: 14px !important;
    }

    .popup-close {
        font-size: 20px !important;
    }
}


/* 팝업 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}