/* 버전: 202604132235 */
/* 시작: footer-stats.css 툴바 및 사용자 정보 스타일 짧은설명: 카테고리 스타일을 제거하고 푸터용 로그인/프로필 사용자 인터페이스 스타일 추가 */

.center-tool-container {
    position: absolute; 
    bottom: 100%; 
    margin-bottom: 12px; 
    left: 50%;
    transform: translateX(-50%); 
    display: flex;
    gap: 12px; 
    z-index: 1001;
}

.tool-group.horizontal-group {
    background: linear-gradient(to bottom, #e2ebfa 0%, #d5e2fc 100%);
    border: 1px solid rgba(66, 133, 244, 0.3); 
    border-radius: 12px;
    height: 44px; 
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.25), inset 0 1px 2px #ffffff;
    padding: 0 6px;
}

.tool-btn { 
    border: none; 
    background: none; 
    height: 34px; 
    width: 34px;
    margin: 0 2px;
    cursor: pointer; 
    color: #444; 
    font-size: 15px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tool-btn:hover { 
    background-color: #4285F4 !important; 
    color: #ffffff !important; 
}

/* 시작: 툴팁 커스텀 CSS (즉시 반응형) v202603222238 */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(60, 64, 67, 0.95);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 10000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: none; 
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: rgba(60, 64, 67, 0.95) transparent transparent transparent;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 10000;
    transition: none; 
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}
/* 끝: 툴팁 커스텀 CSS (즉시 반응형) v202603222238 */

.divider-vertical { 
    width: 1px; 
    height: 18px; 
    background: rgba(66, 133, 244, 0.25); 
    margin: 0 4px; 
}

.dropup {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropup-menu {
    display: none; 
    position: absolute; 
    bottom: 50px; 
    left: 50%;
    transform: translateX(-50%); 
    background: white; 
    border: 1px solid rgba(66, 133, 244, 0.3); 
    border-radius: 10px; 
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15); 
    min-width: 140px; 
    z-index: 1002; 
    padding: 6px 0;
}

.dropup-menu::after { 
    content: ""; 
    position: absolute; 
    bottom: -15px; 
    left: 0; 
    width: 100%; 
    height: 15px; 
    background: transparent; 
}

.dropup:hover .dropup-menu { 
    display: block; 
}

.dropup-menu button { 
    width: 100%; 
    border: none; 
    background: none; 
    padding: 10px 16px; 
    text-align: left; 
    cursor: pointer; 
    font-size: 13px; 
    font-weight: 600; 
    color: #444; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    transition: all 0.2s ease;
}

.dropup-menu button i { 
    width: 16px; 
    text-align: center; 
    color: #777; 
    font-size: 14px;
    transition: color 0.2s ease; 
}

.dropup-menu button:hover { 
    background: #f0f4ff; 
    color: #4285F4; 
}

.dropup-menu button:hover i { 
    color: #4285F4; 
}

#map-info-overlay {
    position: absolute; 
    bottom: 100%; 
    margin-bottom: 8px; 
    right: 20px; 
    width: 180px; 
    display: flex;
    align-items: flex-end; 
    justify-content: flex-start; 
    gap: 10px;
    pointer-events: none;
    z-index: 400 !important;
}

.leaflet-control-scale-line {
    border: 1px solid #333 !important; 
    border-top: none !important; 
    line-height: 1.1 !important;
    padding: 2px 5px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #333 !important;
    background: rgba(255, 255, 255, 0.6) !important; 
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.zoom-level-display {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    margin-bottom: 2px;
}

.main-footer { 
    position: fixed; bottom: 0; left: 0; right: 0; 
    background: white; border-top: 1px solid #ddd; 
    height: 85px; 
    z-index: 1000 !important; 
    display: flex; flex-direction: column;
    transition: height 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1); 
}

body.ui-hidden .main-footer {
    transform: translateY(100%);
}

.main-footer.expanded { 
    height: var(--expanded-height, 350px); 
}

.main-footer.no-transition {
    transition: none;
}

.resize-handle {
    position: absolute;
    top: -4px; 
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 24px; 
    cursor: ns-resize; 
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1200 !important; 
}

.resize-handle::after {
    content: '';
    width: 216px;
    height: 4px;
    background: #d0d0d0;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.resize-handle:hover::after {
    background: #a0a0a0;
}

.main-footer.expanded .resize-handle {
    opacity: 1; 
    pointer-events: auto;
}

.footer-summary { 
    height: 85px; 
    display: flex; 
    align-items: center; 
    padding: 0 25px; 
    justify-content: flex-start; 
    flex-shrink: 0; 
    position: relative; 
    z-index: 1100 !important; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
}

.stat-box { display: flex; flex-direction: column; align-items: flex-start !important; text-align: left !important; min-width: 85px; flex-shrink: 0; }
.stat-box .lbl { font-size: 12px; color: #888; margin-bottom: 2px; font-weight: 600; text-align: left !important; width: 100%; display: block; }
.stat-box .val { font-size: 26px; font-weight: 600; color: #333; font-family: 'Montserrat', sans-serif; letter-spacing: -0.5px; text-align: left !important; width: 100%; display: block; white-space: nowrap; line-height: 1.1; margin-top: 2px; }

.stat-box .val .unit { color: #888; font-size: 0.5em; font-weight: 500; margin-left: 2px; }
.pct-blue { color: #4285F4; font-weight: 600; margin-left: 4px; }
.stat-box .val .unit-sym { color: #888; font-weight: 500; margin: 0 1px; }

.stat-divider { width: 1px; height: 35px; background: #eee; margin: 0 20px; flex-shrink: 0; }

.main-footer:not(.expanded) .detail-only-stat {
    display: none !important;
}

.mini-chart-wrapper {
    flex-grow: 1;
    height: 74px; 
    margin: 0 30px;
    position: relative; 
    min-width: 200px; 
    transition: opacity 0.3s ease 0.3s; 
}

.main-footer.expanded .mini-chart-wrapper {
    opacity: 0;
    pointer-events: none;
    transition-delay: 0s; 
}

.mini-chart-wrapper .empty-chart-guide {
    position: absolute;
    top: 0; 
    bottom: 0; 
    left: 0;
    right: 0;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    pointer-events: none;
    z-index: 10;
    box-sizing: border-box;
}

.mini-chart-wrapper .empty-chart-guide::after {
    content: "";
    position: absolute;
    bottom: 4px; 
    left: 2px;
    right: 2px;
    height: 1px;
    background-color: #cccccc;
    opacity: 1; 
    transition: opacity 0.4s ease; 
}

#miniElevationChart {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mini-chart-wrapper.has-data .empty-chart-guide::after {
    opacity: 0;
}

.mini-chart-wrapper.has-data #miniElevationChart {
    opacity: 1;
}

#mini-chart-selection-box {
    position: absolute; top: 0; bottom: 0; background: rgba(66, 133, 244, 0.15); border: 1px solid rgba(66, 133, 244, 0.4); display: none; pointer-events: none; z-index: 5;
}

/* 시작: 고도 프로필 버튼 스타일 변경 어떤 기능을 하는 요소인지 짧은설명: 사이드 패널의 마커 숨김 버튼과 동일한 스타일(테두리, 색상, 호버 효과) 적용. 폰트/크기는 유지. */
.footer-action-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-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.footer-action-btn:hover {
    background-color: #f0f4ff !important;
    color: #4285F4 !important;
    border-color: #c6d8f9;
}
/* 끝: 고도 프로필 버튼 스타일 변경 어떤 기능을 하는 요소인지 짧은설명: 사이드 패널의 마커 숨김 버튼과 동일한 스타일(테두리, 색상, 호버 효과) 적용. 폰트/크기는 유지. */

.footer-action-btn i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.chart-area { 
    flex-grow: 1; 
    height: auto; 
    background: #ffffff; 
    padding: 5px 20px 20px 20px; 
    box-sizing: border-box; 
    position: relative;
    min-height: 0; 
}

#detailElevationChart {
    opacity: 1; 
}

.leaflet-bottom {
    z-index: 400 !important; 
}

/* 시작: 푸터 사용자 메뉴(로그인) 스타일 짧은설명: 기존 카테고리 박스를 대체하는 로그인 UI 레이아웃 및 디자인 */
.footer-user-menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 15px;
    cursor: pointer;
    transition: background 0.2s;
    height: 100%;
    flex-shrink: 0;
    gap: 12px;
}
.footer-user-menu:hover {
    background: rgba(0,0,0,0.05);
}

.gpx-footer-profile-icon {
    width: 42px;
    height: 42px;
    background-color: #f1f3f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    font-size: 18px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.2s ease;
}

.footer-user-menu:hover .gpx-footer-profile-icon {
    background-color: #e8f0fe;
    color: #4285F4;
    border-color: #4285F4;
}

.login-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.footer-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-user-lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
    font-weight: 600;
}

.gpx-footer-login-text {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    transition: color 0.2s;
    /* 시작: 구글 로그인 로고 정렬을 위한 Flexbox 추가 어떤 기능을 하는 요소인지 짧은설명: 텍스트와 SVG 아이콘을 가로로 정렬하고 간격을 줌 */
    display: flex;
    align-items: center;
    gap: 6px;
    /* 끝: 구글 로그인 로고 정렬을 위한 Flexbox 추가 어떤 기능을 하는 요소인지 짧은설명: 텍스트와 SVG 아이콘을 가로로 정렬하고 간격을 줌 */
}

/* 시작: 푸터 구글 로그인 다중 색상 SVG 아이콘 스타일 어떤 기능을 하는 요소인지 짧은설명: 구글 공식 로고 SVG의 크기 지정 */
.gpx-footer-login-text svg.google-svg-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
/* 끝: 푸터 구글 로그인 다중 색상 SVG 아이콘 스타일 어떤 기능을 하는 요소인지 짧은설명: 구글 공식 로고 SVG의 크기 지정 */

.footer-user-menu:hover .gpx-footer-login-text {
    color: #4285F4;
}
/* 끝: 푸터 사용자 메뉴(로그인) 스타일 짧은설명: 기존 카테고리 박스를 대체하는 로그인 UI 레이아웃 및 디자인 */

.route-highlight-shadow { filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.8)); }

.ruler-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21.3 15.3l-3.6-3.6a2 2 0 0 0-2.8 0l-9.6 9.6a2 2 0 0 0 0 2.8l3.6 3.6a2 2 0 0 0 2.8 0l9.6-9.6a2 2 0 0 0 0-2.8z"></path><path d="M14.5 12.5l2 2"></path><path d="M11.5 15.5l2 2"></path><path d="M8.5 18.5l2 2"></path></svg>') 0 24, crosshair !important;
}

.chart-scrollbar-container {
    position: absolute; bottom: 5px; left: 30px; right: 30px; height: 10px; background: rgba(0,0,0,0.05); border-radius: 5px; display: none; z-index: 10; border: 1px solid rgba(0,0,0,0.1);
}

/* 시작: 스크롤바 손잡이(thumb) 최소 너비 추가 어떤 기능을 하는 요소인지 짧은설명: 선택 구간이 너무 좁아질 때 스크롤바 손잡이가 조작 불가능할 정도로 작아지는 것을 방지 */
.chart-scrollbar-thumb {
    position: absolute; top: 0; left: 0; height: 100%; background: #4285F4; border-radius: 5px; cursor: pointer; transition: background 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    min-width: 160px; 
}
/* 끝: 스크롤바 손잡이(thumb) 최소 너비 추가 어떤 기능을 하는 요소인지 짧은설명: 선택 구간이 너무 좁아질 때 스크롤바 손잡이가 조작 불가능할 정도로 작아지는 것을 방지 */

.chart-scrollbar-thumb:hover, .chart-scrollbar-thumb.active { background: #2b6cb0; }

.chart-selection-box {
    position: absolute; top: 0; bottom: 20px; background: rgba(66, 133, 244, 0.15); border: 1px solid rgba(66, 133, 244, 0.4); display: none; pointer-events: none; z-index: 5;
}

.chart-zoom-reset-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #555;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    z-index: 15;
    color: #fff;
    font-size: 10px;
    transition: all 0.2s ease;
}

.chart-zoom-reset-btn:hover {
    background: #333;
    transform: translate(-50%, -50%) scale(1.1);
}

#speed-box {
    position: relative;
    cursor: pointer; 
}

#speed-box::after {
    content: "";
    position: absolute;
    top: 0;
    right: -40px; 
    width: 40px;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.speed-control-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 2; 
}

.speed-btn-group {
    position: absolute;
    left: 100%;
    margin-left: 8px; 
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border: 1px solid #eaeaea;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    overflow: hidden;
    z-index: 10;
}

#speed-box:hover .speed-btn-group {
    opacity: 1;
    pointer-events: auto;
}

.speed-btn {
    background: transparent;
    border: none;
    width: 32px; 
    height: 24px; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 13px; 
    padding: 0;
    transition: background 0.2s, color 0.2s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.speed-btn:hover {
    background: #f0f4ff;
    color: #4285F4;
}

.speed-btn:first-child {
    border-bottom: 1px solid #eaeaea;
}

@media screen and (max-width: 1200px) {
    .mini-chart-wrapper {
        display: none !important;
    }
}

#interval-stats-overlay {
    position: absolute;
    bottom: 100%;
    margin-bottom: 15px;
    right: 20px;
    z-index: 1000;
    pointer-events: auto;
    width: 210px;
}
.interval-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.interval-title i {
    cursor: pointer;
    color: #aaa;
    font-size: 16px;
    transition: color 0.2s ease;
}
.interval-title i:hover {
    color: #4285F4;
}
.interval-content {
    gap: 8px;
    margin-bottom: 10px;
}
.interval-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.interval-lbl {
    color: #444; 
    font-size: 13px;
    font-weight: 600; 
}
.interval-val {
    font-weight: 700; 
    font-size: 13px;
    color: #333;
}
.interval-val.highlight-blue {
    color: #4285F4;
}
#interval-stats-overlay .context-divider {
    margin: 4px 0 8px 0;
}

/* 끝: footer-stats.css 툴바 및 사용자 정보 스타일 짧은설명: 카테고리 스타일을 제거하고 푸터용 로그인/프로필 사용자 인터페이스 스타일 추가 */