/* 버전: 202604132212 */
/* 시작: 우측 탭 패널 CSS 스타일 반영 짧은설명: 기존 사이드 패널과 신규 추천 코스 패널에 공통으로 슬라이딩 메뉴 스타일 이식 */
#side-panel, #course-side-panel {
    position: absolute;
    top: 80px; 
    right: 20px;
    width: 290px;
    max-height: calc(100vh - 260px); 
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(5px);
    transition: none; 
    transform: none; 
}

#side-panel.expanded, #course-side-panel.expanded {
    display: flex !important;
}

.side-panel-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    background: rgba(249, 249, 249, 0.8);
    font-size: 15px;
    font-weight: 800;
    color: #333;
    text-align: center;
    flex-shrink: 0;
}

.side-panel-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: rgba(249, 249, 249, 0.8);
    flex-shrink: 0;
    position: relative;
}

.side-tab-btn {
    flex: 1;
    padding: 15px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    font-family: inherit;
}

.side-tab-btn:hover { color: #333; }
.side-tab-btn.active { color: #4285F4; border-bottom-color: #4285F4; font-weight: 800; }

.side-panel-content {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.side-tab-content { display: none; }
.side-tab-content.active { display: block; }

.side-panel-content::-webkit-scrollbar { width: 6px; }
.side-panel-content::-webkit-scrollbar-track { background: transparent; }
.side-panel-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
.side-panel-content::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

.side-data-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }

/* 시작: 코스 리스트 아이템 구조 수정 짧은설명: 아코디언 구현을 위해 flex-direction을 column으로 변경하고 패딩 조절 */
.waypoint-item { display: flex; flex-direction: column; align-items: stretch; width: 100%; background: transparent; border: none; padding: 4px 0; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; box-sizing: border-box; color: #444; flex-shrink: 0; }
.waypoint-item:hover, .waypoint-item.active { background: #f0f4ff; color: #4285F4; }

.course-main-info { display: flex; align-items: center; padding: 4px 8px; width: 100%; box-sizing: border-box; }
/* 끝: 코스 리스트 아이템 구조 수정 짧은설명: 아코디언 구현을 위해 flex-direction을 column으로 변경하고 패딩 조절 */

.wp-icon-wrapper { width: 26px; height: 26px; border-radius: 50%; background-color: white; border: 2px solid #555; box-shadow: 0 2px 4px rgba(0,0,0,0.15); display: flex; justify-content: center; align-items: center; font-size: 13px; flex-shrink: 0; transition: all 0.2s ease; color: #555; box-sizing: border-box; }
.waypoint-item:hover .wp-icon-wrapper, .waypoint-item.active .wp-icon-wrapper { border-color: #4285F4; color: #4285F4; box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3); }

.wp-content { display: flex; align-items: center; margin-left: 16px; flex-grow: 1; white-space: nowrap; overflow: hidden; }
.wp-name { font-size: 14px; font-weight: 600; text-align: left; }
.wp-details { font-size: 12px; color: #666; margin-left: auto; font-weight: normal; text-align: right; }

/* 시작: 코스 아코디언 상세 영역 스타일 짧은설명: 목록 클릭 시 펼쳐지는 상세 정보(내용, 태그) 컨테이너 디자인 */
.course-accordion-content {
    display: none;
    padding: 10px 15px 15px 50px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    border-top: 1px solid rgba(0,0,0,0.03);
    background: rgba(0,0,0,0.01);
}
.waypoint-item.active .course-accordion-content {
    display: block;
}
.course-detail-desc {
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-all;
    color: #555;
}
.course-detail-tags {
    color: #4285F4;
    font-weight: 600;
    font-size: 12px;
}
.course-detail-loading {
    padding: 10px 0;
    text-align: center;
    color: #888;
    font-style: italic;
}
/* 끝: 코스 아코디언 상세 영역 스타일 짧은설명: 목록 클릭 시 펼쳐지는 상세 정보(내용, 태그) 컨테이너 디자인 */

.side-data-empty { text-align: center; padding: 40px 0; color: #888; font-size: 14px; }

.wp-action-group { display: flex; gap: 8px; margin: 0; flex: 1; margin-right: 10px; }
.wp-btn-action { flex: 1; padding: 6px 0; border: 1px solid #ddd; background: #fff; border-radius: 6px; font-size: 12px; font-weight: 600; color: #555; cursor: pointer; transition: all 0.2s ease; }

.wp-btn-action:hover, .wp-btn-delete-all:hover { background: #f0f4ff; color: #4285F4; border-color: #c6d8f9; }

.side-panel-footer {
    border-top: 1px solid #e0e0e0;
    background: rgba(249, 249, 249, 0.95);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-shrink: 0;
    min-height: 52px;
    box-sizing: border-box;
}

.side-footer-close-btn {
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-left: auto;
}

.side-footer-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.floating-btn-group {
    position: absolute;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1900;
    align-items: flex-end; 
}

.floating-panel-open-btn {
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    border: 3px solid #333;
    border-radius: 19px; 
    display: flex; 
    align-items: center;
    justify-content: flex-end; 
    cursor: pointer;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 0;
}

.floating-panel-open-btn .btn-text {
    opacity: 0;
    font-size: 13px;
    font-weight: 800;
    font-family: 'Montserrat', 'Pretendard', sans-serif;
    transition: opacity 0.2s ease;
    padding-left: 14px;
    padding-right: 6px;
}

.floating-panel-open-btn .btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    font-family: 'Montserrat', 'Pretendard', sans-serif;
    flex-shrink: 0;
}

.floating-panel-open-btn.has-waypoints {
    border-color: #4285F4;
    color: #4285F4;
}

.floating-panel-open-btn.has-waypoints:hover {
    background-color: #f0f4ff;
}

.floating-panel-open-btn:hover {
    width: 130px;
}

.floating-panel-open-btn:hover .btn-text {
    opacity: 1;
    transition-delay: 0.1s; 
}

/* 시작: 사이드 패널 구글 로그인 버튼 스타일 추가 어떤 기능을 하는 요소인지 짧은설명: 푸터의 고도프로필 버튼 스타일을 차용하여 사이드 패널용 비로그인 상태 로그인 유도 버튼 디자인 구현 */
.side-login-btn {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 20px;
    height: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin: 15px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
    width: fit-content;
}

.side-login-btn:hover {
    background-color: #f0f4ff !important;
    color: #4285F4 !important;
    border-color: #c6d8f9;
}

.side-login-btn i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

/* 시작: 구글 로그인 다중 색상 SVG 아이콘 스타일 어떤 기능을 하는 요소인지 짧은설명: 구글 공식 로고 SVG의 크기 및 애니메이션 효과 지정 */
.side-login-btn svg.google-svg-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.side-login-btn:hover svg.google-svg-icon {
    transform: scale(1.1);
}
/* 끝: 구글 로그인 다중 색상 SVG 아이콘 스타일 어떤 기능을 하는 요소인지 짧은설명: 구글 공식 로고 SVG의 크기 및 애니메이션 효과 지정 */
/* 끝: 사이드 패널 구글 로그인 버튼 스타일 추가 어떤 기능을 하는 요소인지 짧은설명: 푸터의 고도프로필 버튼 스타일을 차용하여 사이드 패널용 비로그인 상태 로그인 유도 버튼 디자인 구현 */