/* 버전: 202607080010 */
/* 시작: course-info-modal.css 어떤 기능을 하는 요소인지 짧은설명: PC 코스 정보(CIP) 모달 전용 스타일. 기존 side-panel.css에서 분리(모달/메타/설명/이미지/추천스크랩/링크/내보내기/댓글/카카오/안내 + 내용보기 재오픈 버튼). 인덱스에서만 로드 */

/* 시작: 코스 정보 패널 스타일 어떤 기능을 하는 요소인지 짧은설명: 렌더링된 경로 클릭 시 나타나는 정보 모달의 레이아웃과 블러 전환 애니메이션 정의 */
.cip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 999999 !important; 
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}

.cip-modal-overlay.cip-bg-active {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.cip-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 600px;
    max-width: 95%;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.cip-modal-header {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    flex-shrink: 0;
}

.cip-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #444;
    display: flex;
    align-items: center;
    gap: 12px;
    word-break: break-all;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.cip-modal-title .header-icon {
    font-size: 22px;
    color: #2E9E6B;
    flex-shrink: 0;
}

.cip-btn-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.cip-btn-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.cip-modal-body {
    overflow-y: auto;
    padding: 14px 20px;
    line-height: 1.5;
    font-size: 14px;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* 메타 정보 */
.cip-meta-group { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.cip-meta-row { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0; padding: 0; }
.cip-meta-left, .cip-meta-right { display: flex; align-items: center; gap: 8px; }
.cip-meta-item { font-size: 13px; color: #777; font-weight: 500; }
.cip-meta-right .cip-meta-item { font-size: 15px; font-weight: 700; color: #333; }
.cip-meta-dot { font-size: 13px; color: #ccc; }
.cip-meta-divider { border: none; border-top: 1px solid #eaeaea; margin: 4px 0; width: 100%; }
.cip-sub-meta-row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 0; }

/* 설명 */
.cip-desc-area { padding-top: 10px; }
.cip-desc-text { font-size: 15px; color: #333; line-height: 1.7; white-space: pre-wrap; min-height: 60px; }
/* 본문 인라인 이미지(설명 [[img#id]] 토큰, 코스 디테일 .course-content-img 미러) */
.course-content-img { display: block; max-width: 100%; border-radius: 10px; margin: 10px 0; cursor: pointer; }
/* BADGE-03: 설명·댓글 본문 URL 자동 링크 (투명bg·radius2·녹색·hover 녹색+흰) v202606251803 */
.auto-link { color: #2E9E6B; font-weight: 600; text-decoration: none; background-color: transparent; border-radius: 2px; padding: 0 4px; word-break: break-all; }
.auto-link:hover { background-color: #2E9E6B; color: #ffffff; }

/* 이미지 갤러리 */
.cip-image-gallery { display: flex; flex-direction: column; gap: 8px; }
.cip-gallery-item { width: 100%; overflow: hidden; border-radius: 8px; cursor: pointer; }
.cip-gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.2s; }
.cip-gallery-item:hover img { transform: scale(1.04); }

/* 추천/스크랩 버튼 */
.cip-action-group { display: flex; justify-content: center; gap: 12px; margin: 50px 0; }
.cip-action-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: #ffffff; border: 1px solid #dadce0; border-radius: 20px;
    padding: 8px 16px; font-size: 14px; font-weight: 600; color: #555;
    cursor: pointer; transition: all 0.2s ease; font-family: inherit;
}
.cip-action-btn i { font-size: 14px; transition: color 0.2s ease; }
.cip-action-btn:hover { background: #EEFAF3; border-color: #2E9E6B; color: #2E9E6B; }
.cip-action-btn.active i { color: #2E9E6B; }

/* 태그 / 출발지 */
.cip-icon-text-wrap { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #333; line-height: 1.5; word-break: break-word; }
.cip-icon-text-wrap i { color: #888; font-size: 13px; margin-top: 3px; flex-shrink: 0; }
.cip-tags-text { color: #2E9E6B; font-size: 13px; }

/* 링크 복사 */
.cip-link-group { display: flex; flex-direction: column; }

.cip-link-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0faf5;
    color: #1A8A5A;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #d4edd9;
    transition: all 0.2s;
}

.cip-link-box:hover {
    background: #CCF0DE;
}

.cip-link-box span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
}

.cip-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    background: #fff;
    flex-shrink: 0;
}
.cip-modal-footer .btn-02 {
    background: #fff; border: 1px solid #c0c0c0; color: #555;
    border-radius: 22px; padding: 10px 28px; font-size: 15px; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
    transition: all 0.2s; font-family: inherit;
}
.cip-modal-footer .btn-02:hover { background: #EEFAF3; border-color: #2E9E6B; color: #2E9E6B; }
.cip-modal-footer .btn-13 {
    background: transparent; border: none; padding: 0;
    font-size: 16px; font-weight: 600; color: #555;
    cursor: pointer; transition: color 0.2s ease; font-family: inherit;
    margin-left: 10px;
}
.cip-modal-footer .btn-13:hover { color: #2E9E6B; }

.cip-btn-confirm {
    background: #2E9E6B;
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s;
    font-family: inherit;
}

.cip-btn-confirm:hover {
    background: #24835A;
}
/* 카카오맵 버튼 */
.cip-btn-kakao-map {
    background: #ffffff; border: 1px solid #dadce0; border-radius: 6px;
    padding: 2px 6px; font-size: 11px; font-weight: 600; color: #555;
    cursor: pointer; white-space: nowrap; margin-left: 6px;
    display: inline-block; transition: all 0.2s ease; font-family: inherit;
}
.cip-btn-kakao-map:hover { background: #EEFAF3; border-color: #2E9E6B; color: #2E9E6B; }

/* 파일 저장 / 외부 서비스 섹션 */
.cip-file-save-section { margin-bottom: 5px; }
.cip-export-ext-section { border-top: 1px solid #eeeeee; padding-top: 10px; }
.cip-section-label {
    font-size: 16px; font-weight: 800; color: #555;
    margin-bottom: 18px; display: flex; align-items: center; gap: 6px;
}
.cip-section-label i { color: #2E9E6B; font-size: 18px; }
.cip-service-btn-group { display: flex; flex-wrap: wrap; gap: 8px; }
.cip-service-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border: 1px solid #dadce0; border-radius: 10px;
    background: #fff; font-size: 13px; font-weight: 600; color: #555;
    cursor: pointer; transition: all 0.2s ease; font-family: inherit;
}
.cip-service-btn:hover { background: #EEFAF3; border-color: #2E9E6B; color: #2E9E6B; }
.cip-service-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cip-service-btn:disabled:hover { background: #fff; border-color: #dadce0; color: #555; }
.cip-btn-strava i { color: #FC4C02; }
.cip-btn-wahoo i { color: #e8222c; }
.cip-btn-garmin i { color: #007cc3; }

/* CIP 카카오맵 모달 */
.cip-kakao-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4); z-index: 9999999;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(2px);
}
.cip-kakao-modal-content {
    background-color: #fff; width: 90%; max-width: 600px; height: 80vh; max-height: 600px;
    border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; overflow: hidden;
}
.cip-kakao-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; border-bottom: 1px solid #eaeaea;
}
.cip-kakao-modal-header h2 { margin: 0; font-size: 16px; font-weight: 700; color: #333; }
.cip-kakao-close-btn { background: none; border: none; font-size: 18px; color: #888; cursor: pointer; padding: 0; }
.cip-kakao-close-btn:hover { color: #2E9E6B; }
.cip-kakao-map-body { flex: 1; width: 100%; position: relative; }
.cip-kakao-modal-footer {
    padding: 12px 20px; border-top: 1px solid #eaeaea;
    background-color: #f9f9f9; display: flex; justify-content: center; align-items: center;
}
.cip-kakao-addr-text { font-size: 14px; font-weight: 500; color: #666; }

/* MISC-06 실선 박스 (파일 저장/외부 서비스/댓글) */
.cip-misc06-box { border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; display: flex; flex-direction: column; gap: 10px; }

/* 시작: 저장/내보내기 안내 도움말(BTN-16 + 모달) 스타일 */
.cip-misc06-box--export { position: relative; }
.cip-help-btn { position: absolute; top: 12px; right: 12px; }
.cip-guide-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(2px);
    justify-content: center; align-items: center; z-index: 1000003;
}
.cip-guide-modal-content {
    background: #fff; width: 90%; max-width: 560px; max-height: 85vh;
    border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden; display: flex; flex-direction: column;
}
.cip-guide-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 20px; border-bottom: 1px solid #eaeaea; flex-shrink: 0;
}
.cip-guide-modal-header h2 {
    margin: 0; font-size: 16px; font-weight: 700; color: #333;
    display: flex; align-items: center;
}
.cip-guide-modal-close { background: none; border: none; font-size: 18px; color: #888; cursor: pointer; padding: 0; }
.cip-guide-modal-close:hover { color: #2E9E6B; }
.cip-guide-modal-body { padding: 22px 24px; overflow-y: auto; }
.cip-guide-section + .cip-guide-section { margin-top: 37px; padding-top: 20px; border-top: 1px solid #eee; }
.cip-guide-section h3 {
    margin: 0 0 8px 0; font-size: 15px; font-weight: 700; color: #333;
    display: flex; align-items: center;
}
.cip-guide-section h3 i { color: #2E9E6B; font-size: 16px; margin-right: 8px; }
.cip-guide-section p { margin: 0 0 23px 0; font-size: 14px; line-height: 1.7; color: #555; word-break: keep-all; }
.cip-guide-section p:last-child { margin-bottom: 0; }
.cip-guide-section .strava-icon { color: #FC4C02; margin-right: 6px; }
.cip-guide-section .wahoo-icon { color: #000000; margin-right: 6px; }
.cip-guide-section .garmin-icon { color: #007CC3; margin-right: 6px; }
.cip-guide-modal-footer { padding: 15px 20px; border-top: 1px solid #eaeaea; display: flex; justify-content: flex-end; flex-shrink: 0; }
.cip-guide-close-btn {
    padding: 10px 28px; background: #2E9E6B; border: none;
    border-radius: 22px; color: #fff; font-size: 15px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.cip-guide-close-btn:hover { background: #24835A; }
/* 끝: 저장/내보내기 안내 도움말(BTN-16 + 모달) 스타일 */

/* 헤더 댓글 수 뱃지 */
.cip-title-comment-count { font-size: 15px; font-weight: 500; color: #888; }

/* 작성자 이름 클릭 */
.cip-author-name { cursor: pointer; }
.cip-author-name:hover { color: #2E9E6B; text-decoration: underline; }

/* 댓글 섹션 */
.comment-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.comment-section-title { font-size: 18px; font-weight: 700; color: #333; display: flex; align-items: center; gap: 6px; margin-bottom: 0; }
.comment-section-title i { color: #888; }
.comment-total-count { font-size: 13px; font-weight: 500; color: #888; }
.comment-sort-btn { background: transparent; border: none; padding: 0; font-size: 13px; font-weight: 400; color: #333; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 4px; transition: color 0.2s; }
.comment-sort-btn:hover { color: #2E9E6B; }
.comment-divider { border: none; border-top: 1px dashed #eaeaea; margin: 12px 0; }
.comment-item { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.comment-item:last-child { border-bottom: none; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.comment-author { font-size: 15px; font-weight: 700; color: #333; }
.comment-date { font-size: 11px; color: #aaa; }
.comment-content { font-size: 15px; color: #333; line-height: 1.7; word-break: break-word; margin-bottom: 6px; }
.comment-actions { display: flex; gap: 8px; justify-content: flex-end; }
.comment-reply-btn { background: none; border: none; font-size: 13px; color: #333; cursor: pointer; padding: 0; font-family: inherit; font-weight: 600; }
.comment-reply-btn:hover { color: #2E9E6B; text-decoration: underline; }
.comment-delete-btn { background: none; border: none; font-size: 13px; color: #aaa; cursor: pointer; padding: 0; font-family: inherit; }
.comment-delete-btn:hover { color: #e53935; }
.reply-list { margin-top: 6px; padding-left: 14px; border-left: 2px solid #E2F5EC; }
.reply-item { padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.reply-item:last-child { border-bottom: none; }
.reply-form-wrap { margin-top: 8px; padding: 10px; background: #f8f9fa; border-radius: 10px; display: none; }
.reply-form-wrap.open { display: block; }
.comment-form-wrap { margin-top: 14px; }
.cip-misc06-box .comment-section-header { margin-bottom: 10px; }
.cip-misc06-box .comment-form-wrap { margin-top: 0; }
.comment-textarea { width: 100%; box-sizing: border-box; border: 1px solid #dadce0; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; color: #333; resize: none; min-height: 72px; overflow: hidden; outline: none; transition: border-color 0.2s; }
.comment-textarea:focus { border-color: #2E9E6B; }
.comment-form-footer { display: flex; justify-content: flex-end; margin-top: 6px; }
.comment-submit-btn { background: #2E9E6B; border: none; border-radius: 22px; color: #fff; font-size: 14px; font-weight: 600; padding: 9px 18px; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.comment-submit-btn:hover { background: #24835A; }
.comment-mention { font-size: 13px; font-weight: 600; color: #2E9E6B; }
.comment-empty { font-size: 13px; color: #aaa; text-align: center; padding: 16px 0; }
.comment-pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.comment-page-btn { background: #fff; border: 1px solid #dadce0; border-radius: 8px; color: #555; font-size: 12px; font-weight: 600; padding: 4px 10px; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.comment-page-btn:hover { border-color: #2E9E6B; color: #2E9E6B; }
.comment-page-btn.active { background: #2E9E6B; border-color: #2E9E6B; color: #fff; }
.comment-page-btn:disabled { opacity: 0.4; cursor: default; }

/* 시작: 내용 보기 버튼 (모달 닫힌 후 좌측 하단 고정) */
#cip-reopen-btn {
    position: fixed;
    bottom: 95px;
    left: 270px;
    z-index: 990;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid #dadce0;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#cip-reopen-btn:hover { background: #EEFAF3; border-color: #2E9E6B; color: #2E9E6B; }
body.ui-hidden #cip-reopen-btn { display: none !important; }
/* 끝: course-info-modal.css */
