/* 시작: context-menu.css v202603201345 (GPX 편집 패널 X 닫기 버튼 추가) */

.course-context-menu {
    position: fixed;
    z-index: 2000;
    display: none;
}
.context-menu-container {
    display: flex;
    gap: 8px; 
}
.context-left-col {
    display: flex;
    flex-direction: column;
    gap: 8px; 
    width: 210px; /* 변경됨: 210px로 기준 넓이 통일 */
}
.context-box {
    background: white;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* 추가됨: 내부 패딩이 박스 전체 넓이를 늘리지 않도록 강제 제어 */
}
.context-box.h-100 {
    height: auto; 
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #888;
    font-size: 13px;
    font-family: inherit; 
}
.context-box-title {
    font-size: 13px; 
    color: #777;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eaeaea;
    font-weight: 700;
    font-family: inherit; 
}
.context-box-content {
    display: flex;
    flex-direction: column;
    gap: 2px; 
}
.context-box-content button {
    width: 100%;
    padding: 6px 10px; 
    border: none;
    background: transparent;
    text-align: left;
    font-family: inherit; 
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.context-box-content button i {
    width: 16px;
    text-align: center;
    color: #777;
    font-size: 14px;
    transition: color 0.2s ease;
}
.context-box-content button:hover {
    background-color: #f0f4ff;
    color: #4285F4;
}
.context-box-content button:hover i {
    color: #4285F4;
}

.wp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 4px;
    padding: 2px 0;
}
.wp-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 2px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit; 
    font-size: 13px; 
    font-weight: 600;
    color: #444;
}
.wp-grid-item i {
    font-size: 16px;
    color: #777;
    transition: color 0.2s ease;
}
.wp-grid-item:hover {
    background-color: #f0f4ff;
    color: #4285F4;
}
.wp-grid-item:hover i {
    color: #4285F4;
}

.context-divider {
    height: 1px;
    background: #eaeaea;
    margin: 6px 0;
    width: 100%;
}

.wp-btn-auto {
    width: 100%;
    padding: 8px 0;
    background-color: #f0f4ff;
    color: #4285F4;
    border: 1px solid #c6d8f9;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px; 
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-sizing: border-box; /* 추가됨: 버튼 패딩 제어 */
}
.wp-btn-auto:hover {
    background-color: #dbe4fa;
}

.wp-edit-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: #444;
}
.wp-edit-label {
    font-weight: 700;
    color: #777;
    width: 35px;
    flex-shrink: 0;
}
.wp-edit-val {
    font-weight: 600;
    font-family: 'Montserrat', 'Pretendard', sans-serif;
}
.wp-edit-select, .wp-edit-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.wp-edit-select:focus, .wp-edit-input:focus {
    border-color: #4285F4;
}
.wp-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.wp-edit-actions button {
    flex: 1;
    padding: 8px 0;
    border-radius: 6px;
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.wp-btn-delete {
    background-color: transparent;
    color: #555;
    border: 1px solid #ccc !important;
}
.wp-btn-delete:hover {
    background-color: #f5f5f5;
    border-color: #555 !important;
}
.wp-btn-save {
    background-color: #4285F4;
    color: white;
}
.wp-btn-save:hover {
    background-color: #2b6cb0;
}

.btn-wp-edit-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 16px;
    color: #a0a0a0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

.btn-wp-edit-close:hover {
    color: #555;
}

/* 시작: 코스 컨텍스트 메뉴(GPX 편집) 우측 상단 X 닫기 버튼 전용 별도 스타일 v202603201345 */
.btn-context-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 16px;
    color: #a0a0a0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

.btn-context-close:hover {
    color: #555;
}
/* 끝: 코스 컨텍스트 메뉴(GPX 편집) 우측 상단 X 닫기 버튼 전용 별도 스타일 v202603201345 */

/* 끝: context-menu.css v202603201345 */