/***** ST 메인페이지 ST *****/
/* 개인화 영역 */
.user_area .user-alert-bar { background: #fff; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-left: 5px solid #6f42c1; padding: 10px 15px; display: flex; align-items: center; gap: 10px; overflow: hidden; box-sizing: border-box; }
.user_area .user-profile-info { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.user_area .user-bar-avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid #eee; }
.user_area .user-bar-nick { font-weight: 700; color: #333; font-size: 0.9rem; line-height: 1.2; }
.user_area .user-noti-swiper { flex: 1; min-width: 0; height: 44px; background: #f8f7ff; border-radius: 8px; border: 1px dashed #d1c4e9; overflow: hidden; }
.user_area .noti-slide { display: flex !important; align-items: center !important; justify-content: space-between !important; height: 42px !important; padding: 0 12px; color: #5a32a3; font-size: 0.8rem; cursor: pointer; box-sizing: border-box; }
.user_area .noti-slide span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 42px; display: block; }
.user_area .noti-slide .noti-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 10px; line-height: 42px; }
.user_area .noti-link-icon { font-size: 0.7rem; color:#000000; flex-shrink: 0; }
@media (max-width: 768px) {
    .user_area .user-alert-bar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
    .user_area .user-noti-swiper { width: 100% !important; height: 40px !important; flex: none !important; }
    .user_area .noti-slide { height: 38px !important; padding: 0 10px;}
    .user_area .noti-slide span { line-height: 38px !important; }
    .user_area .noti-slide .noti-text { line-height: 38px !important; }
}

/* 지표 영역 (Statistics) */
.dashboard_area .info-box { background: #fff; border: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-radius: 15px; min-height: 85px; padding: 15px; display: flex; align-items: center; margin-bottom: 20px; position: relative; overflow: hidden; }
.dashboard_area .info-box-icon { width: 45px !important; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-right: 15px; flex-shrink: 0; }
.dashboard_area .st-info .info-box-icon { background: #e7f1ff; color: #007bff; }
.dashboard_area .st-success .info-box-icon { background: #eafbe7; color: #28a745; }
.dashboard_area .st-warning .info-box-icon { background: #fff4e5; color: #ff9800; }
.dashboard_area .st-danger .info-box-icon { background: #ffebee; color: #dc3545; }
.dashboard_area .info-box-content { display: flex; flex-direction: column; justify-content: center; }
.dashboard_area .info-box-text { color: #888; font-size: 0.8rem; font-weight: 600; margin-bottom: 2px; white-space: nowrap; }
.dashboard_area .info-box-number { color: #333; font-size: 1.15rem; font-weight: 800; }

/* 일정 영역 */
.play_area .leader-avatar { width: 35px; height: 35px; object-fit: cover; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); background-color: #eee; display: flex; align-items: center; justify-content: center; }
.play_area .leader-info { display: flex; align-items: center; gap: 8px; }
.play_area .play-time-info { color: #888; font-size: 11px; letter-spacing: -0.5px; }
.play_area .schedule-card { border-radius: 15px; overflow: hidden; transition: transform 0.3s; border: 0; background: #fff; box-shadow: 0 0px 6px rgba(0,0,0,0.3); padding-bottom: 10px !important; }
.play_area .badge-float { position: absolute; top: 10px; right: 10px; z-index: 10; }
.play_area .swiper-slide { padding: 5px; height: auto; display: flex; align-items: flex-start; }
.play_area .text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; height: 2.8em; margin-bottom: 5px; }
.play_area .play-nav { position: absolute; top: 10px; right: 10px; z-index: 10; }
.play_area .nav-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: #f4f6f9; border: 1px solid #dee2e6; border-radius: 4px; margin-left: 4px; font-size: 11px; color: #555; transition: 0.2s; }
.play_area .nav-btn:hover { background: #007bff; color: #fff; border-color: #007bff; }
.play_area .custom-switch { position: relative; display: inline-block; width: 57px; height: 18px; margin-right: 5px; margin-bottom: 0; vertical-align: middle; line-height: 1; }
.play_area .custom-switch input { opacity: 0; width: 0; height: 0; }
.play_area .custom-switch input:disabled + .slider { opacity: 0.6; cursor: not-allowed; }
.play_area .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #343a40; transition: background-color 0.3s, transform 0.4s; border-radius: 24px; }
.play_area .slider:before { position: absolute; content: ""; height: 12px; width: 12px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; z-index: 2; }
.play_area .custom-switch input:checked + .slider { background-color: #0280fa; }
.play_area .hiking-status input:checked + .slider { background-color: #28a745; }
.play_area .custom-switch input:checked + .slider:before { transform: translateX(39px); }
.play_area .slider .on, .play_area .slider .off { color: white; position: absolute; transform: translateY(-50%); top: 50%; font-size: 11px; font-weight: 700; font-family: sans-serif; }
.play_area .slider .on { display: none; left: 8px; }
.play_area .slider .off { display: block; right: 10px; }
.play_area .custom-switch input:checked + .slider .on { display: block; }
.play_area .custom-switch input:checked + .slider .off { display: none; }
.play_area .no-swipe { touch-action: pan-y; }
.play_area .modal-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; font-size: 15px; line-height: 1.2; }
.play_area .modal-play-time { font-size: 11.5px; letter-spacing: -0.3px; color: #777 !important; }
.play_area .attendees-container { max-height: 350px; overflow-y: auto; padding-right: 5px; }
.play_area .attendees-container::-webkit-scrollbar { width: 4px; }
.play_area .attendees-container::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
.play_area .list-group-item { transition: background 0.2s; border-bottom: 1px solid #f4f4f4 !important; }

/* 이산저산 영역 */
.san_area .swiper-mountain { width: 100%; height: auto; position: relative; overflow: visible; }
.san_area .mountain-card { position: relative; display: flex; padding: 20px; padding-bottom: 0; width: 100%; box-sizing: border-box; }
.san_area .mt-photo { width: 150px; height: 150px; border-radius: 15px; overflow: hidden; flex-shrink: 0; background: #eee; margin-right: 20px; }
.san_area .mt-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; image-rendering: -webkit-optimize-contrast; }
.san_area .play-nav { position: absolute; top: 10px; right: 10px; z-index: 10; }
.san_area .nav-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: #f4f6f9; border: 1px solid #dee2e6; border-radius: 4px; margin-left: 4px; font-size: 11px; color: #555; transition: 0.2s; }
.san_area .nav-btn:hover { background: #007bff; color: #fff; border-color: #007bff; }
/*.san_area .mt-tags-inline { position: absolute; top: -3px; right: 0px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; z-index: 10; max-width: 60%; }*/
.san_area .mt-tags-inline { position: absolute; top: 18px;left:30px;display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; z-index: 10; max-width: 60%; }
.san_area .mt-tag { padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; border: 1px solid #dee2e6; white-space: nowrap; line-height: 1; background: #f1f3f5; color: #495057; }
.san_area .mt-tag.tag-blue { background: #e7f1ff; color: #007bff; border-color: #bbd9ff; }
.san_area .mt-tag.tag-green { background: #ebfbee; color: #40c057; border-color: #d3f9d8; }
.san_area .mt-tag.tag-red { background: #fff5f5; color: #fa5252; border-color: #ffe3e3; }
.san_area .mt-tag.tag-gray { background: #e9ecef; color: #868e96; border-color: #dee2e6; }
.san_area .mt-details { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.san_area .mt-header { display: flex; align-items: baseline; gap: 5px; }
.san_area .mt-name { font-size: 22px; font-weight: 800; color: #1a1a1a; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.san_area .mt-height { font-size: 13px; color: #999; font-weight: 500; }
.san_area .mt-master-box { display: flex; align-items: center; background: #f8f9fa; padding: 12px; border-radius: 12px; margin: 12px 0; border: 1px solid #f1f1f1; }
.san_area .master-profile { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; margin-right: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.san_area .master-profile img { width: 100%; height: 100%; object-fit: cover; }
.san_area .master-info { display: flex; flex-direction: column; }
.san_area .master-info .label { font-size: 11px; color: #aaa; font-weight: bold; line-height: 1; }
.san_area .master-info .name { font-size: 14px; color: #333; font-weight: 700; line-height: 1.2; }
.san_area .mt-footer { margin-top: auto; width: 100%; }
.san_area .mt-footer .btn { flex-shrink: 0; width: 100%; }


/* FAQ 영역 */
.faq_area .faq-simple-bar { display: flex; align-items: center; background: #fff; padding: 0 15px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border: 1px solid #eef2f6; height: 50px; width: 100%; box-sizing: border-box; }
.faq_area .faq-badge { background: #007bff; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; flex-shrink: 0; margin-right: 12px; }
.faq_area .swiper-faq-text { flex: 1; height: 100%; overflow: hidden; }
.faq_area .swiper-faq-text .swiper-slide { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 100% !important; }
.faq_area .faq-question { font-size: 0.9rem; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; margin-right: 10px; }
.faq_area .faq-more { display: flex; align-items: center; gap: 5px; color: #999; text-decoration: none !important; font-size: 0.8rem; flex-shrink: 0; }
.faq_area .faq-more:hover { color: #007bff; }

/* 멤버 영역 */
.member_area .member-container { position: relative; width: 100%; padding: 0 45px; }
.member_area .swiper-members { width: 100%; padding-bottom: 10px; }
.member_area .member-slide { width: 150px !important; height: 150px; }
.member_area .member-card { width: 100%; height: 100%; position: relative; border-radius: 15px; overflow: hidden; background: #eee; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.member_area .member-card img { width: 100%; height: 100%; object-fit: cover; }
.member_area .member-name-tag { position: absolute; bottom: 0; width: 100%; background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 11px; text-align: center; padding: 6px 2px; backdrop-filter: blur(3px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member_area .member-prev, .member-next { color: #6f42c1 !important; width: 38px !important; height: 38px !important; background: rgba(255, 255, 255, 0.95) !important; border-radius: 50% !important; box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important; margin: 0 !important; top: 50% !important; transform: translateY(-50%) !important; z-index: 10; }
.member_area .member-prev { left: 5px !important; }
.member_area .member-next { right: 5px !important; }
.member_area .member-prev:after, .member-next:after { font-size: 16px !important; font-weight: bold; }
.member_area .member-prev:hover, .member-next:hover { background: #6f42c1 !important; color: #fff !important; }
@media (max-width: 768px) {
    .member_area .mt-name { font-size: 18px; }
    .member_area .info-box{padding: 5px 5px 5px 10px;}
    .member_area .info-box-icon{margin-right:5px;}
}

/* 등산왕/리딩왕 영역 */
.chall_area .rank-tab-container { width: 100%; background: #fff; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); overflow: hidden; border: 0 !important; }
.chall_area .rank-nav-tabs { display: flex; background: #f8f9fa; border-bottom: 1px solid #eee; }
.chall_area .rank-nav-link { flex: 1; text-align: center; padding: 15px; cursor: pointer; font-weight: 700; color: #888; transition: 0.3s; border-bottom: 3px solid transparent; }
.chall_area .rank-nav-link.active { color: #6f42c1; border-bottom-color: #6f42c1; background: #fff; }
.chall_area .rank-content { display: none; }
.chall_area .rank-content.active { display: block; }
.chall_area .rank-more-link { display: block; text-align: center; padding: 12px; font-size: 0.85rem; color: #777; background: #fafafa; border-top: 1px solid #f4f4f4; text-decoration: none !important; transition: 0.2s; }
.chall_area .rank-list-item { display: flex; align-items: center; padding: 12px 15px; border-bottom: 1px solid #f8f9fa; }
.chall_area .rank-number { width: 40px; font-weight: 800; text-align: center; margin-right: 10px; }
.chall_area .rank-1 { color: #ffd700; font-size: 1.3rem; }
.chall_area .rank-2 { color: #c0c0c0; font-size: 1.1rem; }
.chall_area .rank-3 { color: #cd7f32; font-size: 1rem; }
.chall_area .rank-profile { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 12px; border: 1px solid #eee; }
.chall_area .rank-info { flex-grow: 1; overflow: hidden; }
.chall_area .rank-nick { font-weight: 700; color: #333; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chall_area .rank-count { font-size: 0.85rem; color: #666; }
.chall_area .rank-change { width: 50px; text-align: right; font-size: 0.8rem; font-weight: 600; }
.chall_area .change-up { color: #e74c3c; }
.chall_area .change-down { color: #3498db; }
.chall_area .change-flat { color: #999; }
/* PC 버전: 양옆으로 배치 */
@media (min-width: 992px) {
    .chall_area .rank-nav-tabs { display: none; }
    .chall_area .rank-tab-container { display: flex; background: transparent; box-shadow: none; gap: 20px; }
    .chall_area .rank-content { display: block !important; flex: 1; background: #fff; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); overflow: hidden; }
}

/* 지역별 멤버 현황 영역 */
.map_member #map { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; border: 1px solid #dee2e6; max-height: 500px; transition: all 0.3s ease; }
.map_member .maximized-card #map { max-height: none !important; aspect-ratio: auto; height: calc(100vh - 120px) !important; }
.map_member .kakao-cluster-node { display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: 2px solid #fff; cursor: pointer; transition: transform 0.2s; }
.map_member .kakao-cluster-node:hover { transform: scale(1.1); z-index: 10; }
.map_member #member-list-card .card-body { max-height: 550px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.map_member #member-list-body td { vertical-align: middle; font-size: 0.85rem; border-bottom: 1px solid #eee; padding: 10px 8px; }
.map_member .card-outline.card-info { border-top: 3px solid #17a2b8; }
.map_member .badge-info { font-size: 11px; padding: 4px 7px; }
.map_member .btn-outline-primary { font-size: 11px; padding: 1px 6px; }
@media (max-width: 768px) { .map_member #map { aspect-ratio: 4 / 3; max-height: 350px; } }