/* 버전: 202606301347 */

/* 시작: 모달 오버레이 스타일 수정 v202604212340 어떤 기능을 하는 요소인지 짧은설명: 기존 모달들과 동일한 수준의 부드러운 블러(2px)와 투명도(0.4)로 하향 조정하여 이질감을 없앰 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;
}
/* 끝: 모달 오버레이 스타일 수정 v202604212340 어떤 기능을 하는 요소인지 짧은설명: 기존 모달들과 동일한 수준의 부드러운 블러(2px)와 투명도(0.4)로 하향 조정하여 이질감을 없앰 */

/* 시작: 가이드 모달 페이드인 v202606281911 짧은설명: #modal-common-guide(코스 편집 안내 등)가 표시될 때 갑작스러운 팝업 대신 부드럽게 등장. 셀렉터를 가이드 모달로 한정해 다른 모달엔 영향 없음 */
#modal-common-guide.modal-overlay {
    animation: guideOverlayFadeIn 0.22s ease-out;
}
#modal-common-guide .modal-guide-content {
    animation: guideCardIn 0.25s ease-out;
}
@keyframes guideOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes guideCardIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
/* 끝: 가이드 모달 페이드인 v202606281911 */

.modal-guide-content {
    background: #fff;
    border-radius: 12px;
    width: 1000px !important;
    max-width: 95% !important;
    max-height: 85vh !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-guide-content.modal-size-segments {
    width: 650px !important;
}

/* 좁은 안내 모달: 내용이 적은 도움말용(세그먼트 폭 650px 대비 120px 축소) */
.modal-guide-content.modal-size-narrow {
    width: 530px !important;
}

.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;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 시작: 헤더 아이콘 색상 추가 어떤 기능을 하는 요소인지 짧은설명: 가이드 모달의 타이틀 아이콘에 시그니처 블루 컬러 적용 */
.modal-header h2 .header-icon {
    font-size: 20px;
    color: #2E9E6B;
}
/* 끝: 헤더 아이콘 색상 추가 어떤 기능을 하는 요소인지 짧은설명: 가이드 모달의 타이틀 아이콘에 시그니처 블루 컬러 적용 */

.btn-modal-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;
}

.btn-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.modal-guide-body {
    overflow-y: auto;
    padding: 20px 25px !important;
    line-height: 1.5 !important; 
    font-size: 14px;
    color: #444;
}

.modal-guide-body h3,
.modal-guide-body h4,
.modal-guide-body p,
.modal-guide-body ol,
.modal-guide-body ul,
.modal-guide-body li,
.modal-guide-body blockquote {
    margin-top: 0 !important; 
    margin-bottom: 6px !important; 
}

.modal-guide-body h3 {
    color: #333;
    font-size: 17px;
    border-bottom: 2px solid #2E9E6B;
    padding-bottom: 3px;
    margin-bottom: 10px !important;
}

.modal-guide-body h4 {
    color: #333;
    font-size: 15px;
    font-weight: bold;
    margin-top: 15px !important; 
}

.modal-guide-body ol, .modal-guide-body ul { 
    margin-left: 20px !important; 
    padding: 0;
}

.modal-guide-body li {
    margin-bottom: 5px !important;
}

.modal-guide-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #2E9E6B;
    padding: 10px 15px;
    font-style: normal;
    margin-top: 15px !important;
}

/* 안내 박스: 주의(NOTE-01)·팁(NOTE-02). 그룹으로 묶어 부모 flex gap을 무시하고 간격 없이 맞붙임 */
.modal-guide-body .guide-note-group {
    display: flex;
    flex-direction: column;
}
.modal-guide-body .guide-note {
    padding: 10px 15px;
    border-left: 4px solid;
    line-height: 1.5;
}
.modal-guide-body .guide-note.note-warning {
    background: #fff5f2;
    border-left-color: #FC4C02;
}
.modal-guide-body .guide-note.note-tip {
    background: #f8f9fa;
    border-left-color: #2E9E6B;
}

.modal-guide-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
}

.modal-never-show-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.modal-never-show-container input {
    cursor: pointer;
}

.modal-guide-footer .btn-02 {
    background: #2E9E6B; color: #fff; border: none; border-radius: 22px;
    padding: 10px 28px; font-size: 15px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px;
    transition: background 0.2s; font-family: inherit;
}
.modal-guide-footer .btn-02:hover { background: #24835A; }

/* 도움말 모달 푸터: 체크박스 숨김 시 닫기 버튼 우측 정렬(CARD-08 규격) */
.modal-guide-footer.help-footer { justify-content: flex-end; }

/* 시작: 경로 반전 안내 모달 어떤 기능을 하는 요소인지 짧은설명: 좁은 폭 + 푸터 우측 정렬(취소 BTN-03 · 경로반전 BTN-02) */
.modal-guide-content.modal-size-reverse {
    width: 650px !important;
}

.modal-guide-content.modal-size-reverse .modal-guide-body h4 {
    margin-top: 36px !important;
}

.modal-guide-footer.modal-footer-actions {
    justify-content: flex-end;
    gap: 10px;
}

.modal-guide-footer .btn-03 {
    background: #fff; border: 1px solid #c0c0c0; color: #555;
    border-radius: 22px; padding: 10px 28px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.modal-guide-footer .btn-03:hover { background: #EEFAF3; border-color: #2E9E6B; color: #2E9E6B; }
/* 끝: 경로 반전 안내 모달 */

/* 시작: 코스 인포그라피 모달 어떤 기능을 하는 요소인지 짧은설명: 입력 폼(제목·설명·체크)과 결과 이미지 미리보기 스타일 */
.modal-guide-content.modal-size-infographic {
    width: 480px !important;
}
.modal-guide-content.modal-size-infographic-result {
    width: auto !important;
    max-width: 90% !important;
}
.infographic-intro {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 18px;
}
.infographic-intro p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}
.infographic-intro p + p {
    margin-top: 8px;
}
.infographic-intro strong {
    font-weight: 700;
    color: #333;
}
.infographic-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.infographic-form .fld-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}
.infographic-form input[type="text"],
.infographic-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
}
.infographic-form textarea {
    min-height: 90px;
    resize: none;
    overflow-y: hidden;
    line-height: 1.5;
}
.infographic-form input[type="text"]:focus,
.infographic-form textarea:focus {
    outline: none;
    border-color: #2E9E6B;
}
.infographic-char-count {
    margin-top: 6px;
    text-align: right;
    font-size: 12px;
    color: #999;
}
.infographic-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}
.infographic-check-row input {
    cursor: pointer;
}
/* 코스 캡처 입력 모달: 세그먼트 선택 목록 */
.infographic-seg-section {
    margin-top: 4px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}
.infographic-seg-head {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
}
.infographic-seg-list {
    display: flex;
    flex-direction: column;
}
.infographic-seg-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f3f3f3;
}
.infographic-seg-item:last-child {
    border-bottom: none;
}
.infographic-seg-item input {
    cursor: pointer;
    flex-shrink: 0;
}
.infographic-seg-start {
    flex-shrink: 0;
    min-width: 52px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #2E9E6B;
}
.infographic-seg-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.infographic-seg-stats {
    flex-shrink: 0;
    font-size: 12px;
    color: #888;
}
.infographic-result-wrap {
    padding: 20px 25px;
    overflow: auto;
    text-align: center;
}
.infographic-img-zoom {
    position: relative;
    display: inline-block;
    cursor: zoom-in;
}
.infographic-img-zoom::after {
    content: attr(data-zoom-tip);
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}
.infographic-img-zoom:hover::after {
    opacity: 1;
}
#infographic-result-img {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
/* 끝: 코스 인포그라피 모달 */

/* 시작: 코스 인포그라피 원본 보기 레이어 어떤 기능을 하는 요소인지 짧은설명: 현재 창 위 레이어로 원본 픽셀 크기 표시(스크롤), 하단 고정 원형 닫기 버튼(BTN-15) */
#infographic-fullview {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    overflow: auto;
    text-align: center;
}
#infographic-fullview.open {
    display: block;
}
#infographic-fullview-img {
    display: inline-block;
    margin: 30px auto 100px;
}
#infographic-fullview-close {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
}
/* BTN-15: 원형 닫기 버튼 (카카오맵 보기 닫기 #kakao-close-btn 동일 디자인) */
.btn-15 {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease;
}
.btn-15:hover {
    background: rgba(0, 0, 0, 0.75);
}
/* 끝: 코스 인포그라피 원본 보기 레이어 */