/* 버전: 202607070048 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
/* 로고 워드마크용 한글 디스플레이 폰트(Do Hyeon/도현체, TYPO-08). 이 CSS가 전 PC 페이지 공용이라 여기서 @import하면 헤더 있는 모든 페이지에 함께 로드됨(로고에만 사용) */
@import url('https://fonts.googleapis.com/css2?family=Do+Hyeon&display=swap');
@import url('new-doc-modal.css');
.gpx-header-spacer {
    display: none; /* sticky 헤더가 흐름상 공간을 차지하므로 스페이서 불필요 */
}
.gpx-header-main {
    width: 100%;
    height: 64px;
    background-color: #ffffff;
    border-bottom: 1px solid #d5d5d5;
    display: flex;
    align-items: center;
    font-family: 'Pretendard', sans-serif;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* [시작: 공통 헤더 뼈대 스타일 짧은설명: 드롭다운 호버 유지를 위해 헤더 이너 영역을 전체 높이로 꽉 채움] */
.gpx-header-inner {
    width: 1220px;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
/* [끝: 공통 헤더 뼈대 스타일 짧은설명: 드롭다운 호버 유지를 위해 헤더 이너 영역을 전체 높이로 꽉 채움] */

.gpx-header-logo {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.gpx-header-logo-link {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    gap: 8px;
}

.gpx-header-logo-main {
    font-family: 'Do Hyeon', 'Pretendard', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #333333;
    letter-spacing: 0.5px;
}

.gpx-header-logo-sub {
    font-family: 'Do Hyeon', 'Pretendard', sans-serif;
    font-size: 21px;
    font-weight: 400;
    color: #2E9E6B !important;
    letter-spacing: 0.5px;
}

.gpx-header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 30px;
    height: 100%;
}

.gpx-header-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.gpx-header-nav-link {
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #444444;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    top: 2px;
}

.gpx-header-nav-link:hover {
    color: #2E9E6B;
}

/* COL-05 라운드 박스 nav 링크(내 라이딩 채널): 호버 시 입체 팝업 */
.gpx-header-nav-pill {
    top: 0;
    margin-left: 12px;
    padding: 7px 14px;
    border-radius: 8px;
    background: #E2F5EC;
    color: #2E9E6B;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gpx-header-nav-pill:hover {
    color: #2E9E6B;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 158, 107, 0.25);
}

.gpx-header-nav-divider {
    color: #cccccc;
    font-size: 14px;
    margin: 0 4px;
    position: relative;
    top: 1px;
}

.gpx-header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 시작: 돋보기 간격 20px 조정 및 호버 기반 애니메이션 트리거 수정 v202604080103 짧은설명: 네비 간격(16px) + 4px 추가로 총 20px 띄움 및 CSS hover 대신 JS의 is-opened 클래스에 반응하도록 수정 */
.gpx-header-search-container {
    display: inline-flex;
    align-items: center;
    height: 100%;
    position: relative;
    margin: 0 auto; /* 메뉴와 프로필 사이 여백 정중앙 배치 */
}

.gpx-header-search-form {
    display: flex;
    align-items: center;
}

.gpx-header-search-box {
    display: flex;
    align-items: center;
    border: 1px solid #555555;
    background-color: #ffffff;
    border-radius: 20px;
    height: 38px;
    box-sizing: border-box;
    width: 340px;
    overflow: visible;
    transition: border-color 0.4s ease;
    cursor: default;
    justify-content: flex-end;
}

/* 포커스 시 테두리만 녹색으로 강조 */
.gpx-header-search-box:focus-within {
    border-color: #2E9E6B;
}

.gpx-header-search-expand-content {
    display: flex;
    align-items: center;
    opacity: 1;
    width: calc(100% - 38px);
    padding-left: 16px;
    overflow: visible;
    white-space: nowrap;
}
/* 끝: 돋보기 간격 20px 조정 및 호버 기반 애니메이션 트리거 수정 v202604080103 짧은설명: 네비 간격(16px) + 4px 추가로 총 20px 띄움 및 CSS hover 대신 JS의 is-opened 클래스에 반응하도록 수정 */

/* 시작: 돋보기 아이콘 볼드 처리 v202604080103 짧은설명: 돋보기 선 굵기를 진하게 보이기 위해 text-stroke 속성 추가 */
.gpx-header-search-btn {
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    padding: 0;
    color: #444444; 
    font-size: 16px; 
    font-weight: 900;
    -webkit-text-stroke: 1px currentColor; /* 돋보기 볼드(Bold) 적용 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
    position: relative;
    top: 2px; 
}

.gpx-header-search-box:focus-within .gpx-header-search-btn {
    color: #2E9E6B;
}
/* 끝: 돋보기 아이콘 볼드 처리 v202604080103 짧은설명: 돋보기 선 굵기를 진하게 보이기 위해 text-stroke 속성 추가 */

.gpx-header-search-category-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555555;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.gpx-header-dropdown-arrow {
    font-size: 12px;
    color: #555555;
}

.gpx-header-search-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: -12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 1000;
    min-width: 120px;
}

.gpx-header-search-menu.show {
    display: block;
}

.gpx-header-search-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.gpx-header-search-item:hover {
    background-color: #f5f5f5;
}

.gpx-header-search-item.active {
    color: #555;
    font-weight: 700;
}

.gpx-header-search-divider {
    width: 1px;
    height: 14px;
    background-color: #dddddd;
    margin: 0 10px;
    flex-shrink: 0;
}

.gpx-header-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333333;
    background: transparent;
    width: 100%;
}

.gpx-header-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.gpx-header-profile-icon {
    width: 32px;
    height: 32px;
    background-color: #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
}

.login-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.gpx-header-user-menu:hover .gpx-header-profile-icon {
    background-color: #D3F0E3;
    color: #2E9E6B;
}

.gpx-header-login-text {
    font-size: 15px;
    font-weight: 600;
    color: #444444;
    transition: color 0.2s;
}

.gpx-header-user-menu:hover .gpx-header-login-text {
    color: #2E9E6B;
}

.gpx-header-msg-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FC4C02;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    margin-left: 2px;
    cursor: pointer;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: background 0.2s;
}

.gpx-header-msg-badge:hover { background-color: #e03a00; }
/* 쪽지 모달 */
.msg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-modal-box {
    background: #fff;
    border-radius: 14px;
    width: 480px;
    max-width: 95vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.msg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.msg-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.msg-modal-title i { color: #2E9E6B; }

.msg-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.msg-modal-close:hover { color: #333; }

.msg-modal-body { padding: 18px 22px; }

.msg-modal-to-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.msg-modal-label {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
}

.msg-modal-receiver-name {
    font-size: 15px;
    font-weight: 700;
    color: #2E9E6B;
}

.msg-modal-textarea {
    width: 100%;
    height: 130px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    box-sizing: border-box;
    line-height: 1.6;
    transition: border-color 0.2s;
}

.msg-modal-textarea:focus { border-color: #2E9E6B; }

.msg-modal-counter {
    text-align: right;
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
}

.msg-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 22px 18px;
    border-top: 1px solid #f0f0f0;
}

.msg-modal-btn-cancel {
    background: none;
    border: 1px solid #ddd;
    border-radius: 22px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.msg-modal-btn-cancel:hover { border-color: #999; color: #333; }

.msg-modal-btn-submit {
    background: #2E9E6B;
    border: none;
    border-radius: 22px;
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s;
}

.msg-modal-btn-submit:hover { background: #24835A; }
.msg-modal-btn-submit:disabled { background: #9DD1B5; cursor: not-allowed; }

/* 작성자 이름 클릭 링크 스타일 */
.msg-author-link {
    cursor: pointer;
    transition: color 0.2s;
}

.msg-author-link:hover { color: #2E9E6B; text-decoration: underline; }

/* 쪽지 모달 수신자 검색 */
.msg-receiver-wrap { flex: 1; position: relative; }

.msg-receiver-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.msg-receiver-search-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 7px 34px 7px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.msg-receiver-search-input:focus { border-color: #2E9E6B; }

.msg-receiver-search-icon {
    position: absolute;
    right: 10px;
    color: #aaa;
    font-size: 13px;
    pointer-events: none;
}

.msg-receiver-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 3100;
    max-height: 200px;
    overflow-y: auto;
}

.msg-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.msg-result-item:hover { background: #EEFAF3; }

.msg-result-name { font-size: 14px; font-weight: 600; color: #333; }

.msg-result-id { font-size: 12px; color: #aaa; }

.msg-result-empty {
    padding: 12px 14px;
    font-size: 13px;
    color: #aaa;
    text-align: center;
    list-style: none;
}

#msg-receiver-selected-mode {
    display: flex;
    align-items: center;
    gap: 8px;
}

.msg-modal-receiver-selected-label {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.msg-receiver-name-highlight {
    color: #2E9E6B;
    font-weight: 700;
}

.msg-receiver-change-btn {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.msg-receiver-change-btn:hover { color: #e53e3e; }

/* 작성자 이름 클릭 메뉴(라이딩 채널/쪽지 보내기). 코스 리스트·라이더 채널 공용 */
.author-action-dropdown {
    position: fixed;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 2000;
    min-width: 130px;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}

.author-action-item {
    display: flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
    transition: background 0.15s, color 0.15s;
}

.author-action-item:hover { background: #EEFAF3; color: #2E9E6B; }

.author-action-item i {
    color: #999;
    font-size: 13px;
    width: 14px;
    text-align: center;
    transition: color 0.15s;
}

.author-action-item:hover i { color: #2E9E6B; }
