/* ========================================
   코스 추천 페이지 - 블라인드 스타일
   ======================================== */

/* 핫플레이스 검색 자동완성 스타일 */
.hotplace-search-container {
    position: relative;
    width: 100%;
    z-index: 1;
}

/* 검색 입력 필드 래퍼 */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* 검색 입력 필드 */
.course-hunting-step-place {
    flex: 1;
    width: 100%;
    padding: 12px 40px 12px 12px; /* 오른쪽에 버튼 공간 확보 */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.course-hunting-step-place:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 새로고침 버튼 */
.search-refresh-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-refresh-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.search-refresh-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-refresh-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
    color: #666;
}

/* 새로고침 아이콘 스타일 */
.refresh-icon {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    transition: transform 0.3s ease;
    display: inline-block;
    line-height: 1;
}

/* 인기글 버튼 빛나는 효과 - 활성화되었을 때만 */
.course-hunting-tab-btn[onclick*="popular"] {
    position: relative;
    overflow: hidden;
}

/* 인기글 버튼이 활성화되어 있을 때만 빛나는 효과 적용 */
.course-hunting-tab-btn[onclick*="popular"].active {
    background-color: transparent !important;
    color: #333 !important;
    border-color: #ddd !important;
    animation: glowPulse 2s ease-in-out infinite;
}

.course-hunting-tab-btn[onclick*="popular"].active::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.3) 0%, transparent 70%);
    animation: rotateGlow 3s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.course-hunting-tab-btn[onclick*="popular"].active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 105, 180, 0.1), transparent);
    animation: shimmer 2s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 105, 180, 0.3), 0 0 10px rgba(255, 105, 180, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 105, 180, 0.6), 0 0 30px rgba(255, 105, 180, 0.4);
    }
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}

/* 순위 숫자 빛나는 효과 - 1,2,3위만 */
.rank-number {
    position: relative;
    display: inline-block;
}

/* 1,2,3위만 빛나는 효과 적용 */
.rank-number.top-rank {
    animation: rankGlow 2s ease-in-out infinite;
}

.rank-number.top-rank::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.4) 0%, transparent 70%);
    animation: rotateRankGlow 3s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.rank-number.top-rank::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 105, 180, 0.2), transparent);
    animation: rankShimmer 2s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rankGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 105, 180, 0.5), 0 0 10px rgba(255, 105, 180, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 105, 180, 0.8), 0 0 25px rgba(255, 105, 180, 0.6);
    }
}

@keyframes rotateRankGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rankShimmer {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}

.hotplace-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

/* 모달 내부에서 자동완성이 제대로 표시되도록 추가 스타일 */
.course-hunting-modal .hotplace-autocomplete {
    z-index: 10001 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    display: block !important;
}

/* 모달 자체의 z-index를 낮춰서 자동완성이 위에 표시되도록 */
.course-hunting-modal {
    z-index: 9998;
}

.course-hunting-modal-content {
    z-index: 9999;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-address {
    color: #666;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 자동완성 스크롤바 스타일 */
.hotplace-autocomplete::-webkit-scrollbar {
    width: 6px;
}

.hotplace-autocomplete::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.hotplace-autocomplete::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.hotplace-autocomplete::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 코스 추천 페이지에서만 배경색 적용 */
.course-hunting-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
    font-family: 'Noto Sans KR', sans-serif;
    color: #333333;
}

/* 코스 추천 페이지의 body 배경만 오버라이드 */
body:has(.course-hunting-container) {
    background-color: #f8f9fa !important;
}

/* 상단 헤더 영역 */
.course-hunting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
    gap: 15px;
}

/* 현재 선택된 지역 표시 */
.course-hunting-current-region {
    display: flex;
    align-items: center;
}

.region-badge {
    background: transparent;
    color: #333333;
    padding: 0;
    border-radius: 0;
    font-size: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.region-badge i {
    font-size: 12px;
    color: #333333;
}

.region-badge:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* 탭 버튼 영역 */
.course-hunting-tabs {
    display: flex;
    gap: 15px;
}

.course-hunting-tab-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-hunting-tab-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.course-hunting-tab-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.course-hunting-tab-btn i,
.course-hunting-tab-btn img {
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
}

.course-hunting-tab-btn i {
    font-size: 14px;
}

.course-hunting-tab-btn img {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* 공유하기 버튼 */
.course-hunting-share-btn {
    background: #28a745;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-hunting-share-btn:hover {
    background: #218838;
}

/* 지역 필터 영역 */
.course-hunting-region-filter {
    background: #fafbfc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.course-hunting-region-tree {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 시도 섹션 */
.course-hunting-sido-section {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    background: #fafbfc;
    margin-bottom: 10px;
}

.course-hunting-sido-header {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: #495057;
}

.course-hunting-sido-header:hover {
    background: #e9ecef;
}

.course-hunting-sido-header i:first-child {
    color: #6c757d;
    margin-right: 10px;
    font-size: 16px;
}

.course-hunting-sido-arrow {
    color: #cccccc;
    transition: transform 0.3s ease;
}

/* 시군구 컨테이너 */
.course-hunting-sigungu-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 10px;
}

/* 서울 전체 버튼 */
.course-hunting-seoul-all {
    font-weight: 600;
    font-size: 15px;
    color: #495057;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.course-hunting-seoul-all:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.course-hunting-seoul-all i {
    font-size: 16px;
}

/* 시군구 그룹 간격 추가 */
.course-hunting-sigungu-container > div {
    margin-bottom: 25px;
}

.course-hunting-sigungu-container > div:last-child {
    margin-bottom: 0;
}

/* 시군구 그룹 - 기본 4열 구조 (데스크톱) */
.course-hunting-region-group {
    flex: 0 0 calc(25% - 12px) !important;
    max-width: calc(25% - 12px) !important;
    box-sizing: border-box !important;
}

/* 데스크톱 4열 구조 강화 (769px 이상) */
@media (min-width: 769px) {
    .course-hunting-region-group {
        flex: 0 0 calc(25% - 12px) !important;
        max-width: calc(25% - 12px) !important;
    }
}

/* 개별 시군구 그룹 - 세로 구조 */
.course-hunting-region-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 10px !important;
    background: #f8f9fa !important;
    min-height: 120px !important;
}

/* 시군구 제목 */
.course-hunting-sigungu-name {
    font-weight: 600;
    font-size: 15px;
    color: #495057;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 8px;
}

/* 시군구 제목 아래 연결선 제거 */
.course-hunting-sigungu-name::after {
    display: none;
}

.course-hunting-sigungu-name:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* 동 목록 행 (기존 클래스는 유지하되 사용하지 않음) */
.course-hunting-dong-list {
    display: none; /* 더 이상 사용하지 않음 */
}

/* 동 그리드 */
.course-hunting-dong-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: #ffffff;
    border-radius: 8px;
    min-height: 80px;
    border: 1px solid #dee2e6;
    position: relative;
    margin-top: 0;
}

/* 동 그리드 위쪽 연결선 제거 */
.course-hunting-dong-grid::before {
    display: none;
}

/* 동 아이템 */
.course-hunting-dong-item {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 12px;
    border: 1px solid #dee2e6;
    font-weight: 400;
    color: #6c757d;
}

.course-hunting-dong-item:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* 검색 기능 영역 */
.course-search-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e3e6ea;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.course-search-box {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.course-search-input-wrapper {
    flex: 0 0 60%;
    position: relative;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.course-search-input-wrapper:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1), 0 4px 16px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.course-search-input {
    width: 100%;
    padding: 18px 24px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #2c3e50;
    background: transparent;
    font-weight: 400;
}

.course-search-button-wrapper {
    flex-shrink: 0;
}

.course-search-input::placeholder {
    color: #95a5a6;
    font-size: 15px;
    font-weight: 400;
}

.course-search-btn {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border: none;
    color: white;
    padding: 20px 32px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.course-search-btn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.course-search-btn:active {
    transform: translateY(0);
}

.course-search-btn i {
    font-size: 16px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

.course-search-btn .btn-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}


.course-search-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.course-search-filter-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.course-search-filter-label {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    margin: 0;
    margin-right: 10px;
    white-space: nowrap;
}

.course-search-filter-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #495057;
    margin: 0;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.course-search-filter-option:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.course-search-filter-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #007bff;
    cursor: pointer;
    border-radius: 3px;
}

.course-search-filter-option input[type="checkbox"]:checked {
    background: #007bff;
}

/* 코스 목록 영역 */
.course-hunting-list {
    margin-bottom: 40px;
}

.course-hunting-no-courses {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.course-hunting-no-courses i {
    font-size: 60px;
    color: #6c757d;
    margin-bottom: 20px;
}

.course-hunting-no-courses h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #495057;
}

.course-hunting-no-courses p {
    color: #6c757d;
    font-size: 16px;
}

/* 코스 그리드 */
.course-hunting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* 코스 카드 */
.course-hunting-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    height: 420px;
    display: flex;
    flex-direction: column;
}

.course-hunting-card:hover {
    border-color: #adb5bd;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}



/* 코스 카드 제목 섹션 */
.course-hunting-card-title-section {
    margin-bottom: 15px;
}

.course-hunting-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 코스 스텝 경로 */
.course-hunting-card-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
    padding: 12px 0;
    min-height: 120px; /* 5개 스텝이 들어갈 공간 확보 */
}

.course-step-number {
    background: #007bff;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.course-step-arrow {
    color: #007bff;
    font-weight: bold;
    font-size: 14px;
}

.course-step-line {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 6px;
}

.course-step-place {
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-step-info {
    color: #999999;
    font-size: 13px;
    font-style: italic;
}

/* 구분선 */
.course-hunting-card-divider {
    height: 1px;
    background: #e9ecef;
    margin: 15px 0;
}

/* 요약 섹션 */
.course-hunting-card-summary-section {
    margin-bottom: 12px;
}

/* 작성자 섹션 */
.course-hunting-card-author-section {
    margin-bottom: 0;
}


.course-hunting-card-nickname {
    color: #666666;
    font-size: 13px;
    font-weight: 500;
}

.course-hunting-card-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.course-hunting-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    color: #6c757d;
    background: transparent;
    padding: 0;
    border-radius: 0;
    filter: grayscale(100%);
}

.course-hunting-stat-item i {
    color: #6c757d;
    font-size: 12px;
}

/* 코스 카드 내용 */
.course-hunting-card-content {
    margin-bottom: 0;
}

.course-hunting-card-summary {
    color: #000000;
    line-height: 1.5;
    font-size: 18px;
    font-weight: 350;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px; /* 2줄 공간 확보 (16px * 1.5 * 2) */
}

/* 코스 카드 푸터 */
.course-hunting-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    margin-top: auto;
}

.course-hunting-card-time {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}



.course-hunting-card-date {
    color: #6c757d;
    font-size: 11px;
    background: #f8f9fa;
    padding: 3px 6px;
    border-radius: 12px;
}

/* 페이징 */
.course-hunting-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.course-hunting-page-btn {
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
}

.course-hunting-page-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
}

.course-hunting-page-btn.active {
    background: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

/* 모달 스타일 */
.course-hunting-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    /* 모달 밖 클릭 시 닫히지 않도록 설정 */
    pointer-events: none;
}

.course-hunting-modal-content {
    pointer-events: auto;
    background: #ffffff;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 60%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.course-hunting-modal-header {
    background: #007bff;
    color: white;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-hunting-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.course-hunting-close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-hunting-close:hover {
    transform: scale(1.2);
}

.course-hunting-modal-body {
    padding: 20px;
}

/* 폼 스타일 */
.course-hunting-form-group {
    margin-bottom: 16px;
}

.course-hunting-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #212529;
    font-weight: 600;
    font-size: 14px;
}

.course-hunting-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    color: #212529;
    font-size: 14px;
    height: 42px;
    transition: all 0.3s ease;
}

.course-hunting-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    color: #212529;
    font-size: 14px;
    min-height: 120px;
    transition: all 0.3s ease;
}

.course-hunting-form-group input:focus,
.course-hunting-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.course-hunting-form-group input::placeholder,
.course-hunting-form-group textarea::placeholder {
    color: #495057;
}

/* 스텝 컨테이너 */
.course-hunting-steps-container {
    margin-top: 20px;
}

.course-hunting-steps-container h3 {
    color: #212529;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.course-hunting-step-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.course-hunting-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.course-hunting-step-number {
    background: #007bff;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.course-hunting-remove-step {
    background: #ff4757;
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s ease;
}

.course-hunting-remove-step:hover {
    background: #ff3742;
    transform: scale(1.05);
}

.course-hunting-step-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-hunting-step-photo,
.course-hunting-step-description {
    padding: 8px 10px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #ffffff;
    color: #212529;
    font-size: 13px;
}

.course-hunting-step-photo:focus,
.course-hunting-step-description:focus {
    outline: none;
    border-color: #007bff;
    background: #ffffff;
}

/* 스텝 추가 버튼 */
.course-hunting-add-step-btn {
    background: #28a745;
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 20px;
}

.course-hunting-add-step-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
    background: #218838;
}

/* 폼 액션 버튼 */
.course-hunting-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.course-hunting-submit-btn {
    background: #007bff;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.course-hunting-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
    background: #0056b3;
}

.course-hunting-cancel-btn {
    background: #6c757d;
    border: 1px solid #6c757d;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.course-hunting-cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* ===== 모바일 반응형 스타일 ===== */

/* 태블릿 스타일 (768px 이하) */
@media (max-width: 768px) {
    /* 모바일 터치 최적화 */
    button, .btn, input[type="button"], input[type="submit"] {
        min-height: 36px;
        min-width: 36px;
    }
    
    /* 링크 터치 영역 확대 */
    a {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }
    
    /* 폼 요소 터치 최적화 */
    input, select, textarea {
        min-height: 36px;
        font-size: 14px; /* iOS 줌 방지 */
    }
    
    /* 컨테이너 패딩 조정 */
    .course-hunting-container {
        padding: 10px 8px;
    }
    
    /* 지역 필터 패딩 조정 */
    .course-hunting-region-filter {
        padding: 8px 6px;
        margin-bottom: 10px;
    }
    
    /* 헤더 레이아웃 */
    .course-hunting-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 10px 8px;
    }
    
    .course-hunting-tabs {
        flex: 1;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .course-hunting-current-region {
        display: none; /* 모바일에서는 숨김 */
    }
    
    .course-hunting-share-btn {
        flex-shrink: 0;
    }
    
    /* 지역 배지 */
    .region-badge {
        font-size: 1.1rem !important;
        padding: 8px 16px !important;
        font-weight: 600 !important;
        border-radius: 20px !important;
    }
    
    /* 탭 버튼 - 모바일 크기 축소 */
    .course-hunting-tab-btn {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        font-weight: 600 !important;
        min-height: 32px !important;
        border-radius: 16px !important;
    }
    
    /* 공유하기 버튼 - 탭 버튼과 동일한 크기 */
    .course-hunting-share-btn {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        font-weight: 600 !important;
        min-height: 32px !important;
        border-radius: 16px !important;
    }
    
    /* 서울 전체 버튼 */
    .course-hunting-seoul-all {
        font-size: 0.9rem !important;
        padding: 8px 14px !important;
        font-weight: 600 !important;
        min-height: 36px !important;
        border-radius: 18px !important;
    }
    
    
    /* 개별 시군구 그룹 - 세로 구조 유지 */
    .course-hunting-region-group {
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    /* 시군구 버튼 */
    .course-hunting-sigungu-name {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        font-weight: 600 !important;
        min-height: 32px !important;
        border-radius: 14px !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 동 버튼 */
    .course-hunting-dong-item {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
        font-weight: 500 !important;
        min-height: 28px !important;
        border-radius: 12px !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 그리드 레이아웃 */
    .course-hunting-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* 코스 카드 */
    .course-hunting-card {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    .course-hunting-card-title {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    
    .course-hunting-card-summary {
        font-size: 0.85rem !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    
    .course-hunting-card-nickname {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
    }
    
    .course-hunting-card-time {
        font-size: 0.75rem !important;
        font-weight: 500 !important;
    }
    
    .course-hunting-card-date {
        font-size: 0.7rem !important;
        font-weight: 500 !important;
    }
    
    /* 코스 스텝 */
    .course-step-place {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        padding: 6px 10px !important;
        border-radius: 14px !important;
    }
    
    .course-step-info {
        font-size: 14px !important;
        font-weight: 500 !important;
    }
}

/* 모바일 스타일 (480px 이하) */
@media (max-width: 480px) {
    /* 컨테이너 패딩 더 작게 */
    .course-hunting-container {
        padding: 8px 6px;
    }
    
    /* 지역 필터 패딩 더 작게 */
    .course-hunting-region-filter {
        padding: 6px 4px;
        margin-bottom: 8px;
    }
    
    /* 헤더 패딩 더 작게 */
    .course-hunting-header {
        padding: 8px 6px;
        gap: 6px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .course-hunting-tabs {
        flex: 1;
        justify-content: flex-start;
        gap: 4px;
    }
    
    .course-hunting-current-region {
        display: none;
    }
    
    .course-hunting-share-btn {
        flex-shrink: 0;
    }
    
    /* 지역 배지 더 작게 */
    .region-badge {
        font-size: 1rem !important;
        padding: 6px 14px !important;
        border-radius: 18px !important;
    }
    
    /* 탭 버튼 더 작게 - 공유하기와 동일 */
    .course-hunting-tab-btn {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
        min-height: 28px !important;
        border-radius: 14px !important;
    }
    
    /* 공유하기 버튼 더 작게 - 탭 버튼과 동일 */
    .course-hunting-share-btn {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
        min-height: 28px !important;
        border-radius: 14px !important;
    }
    
    /* 서울 전체 버튼 더 작게 */
    .course-hunting-seoul-all {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        min-height: 32px !important;
        border-radius: 16px !important;
    }
    
    /* 시군구 행 레이아웃 - 모바일 2열 구조 유지 */
    .course-hunting-container .course-hunting-region-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
    }
    
    /* 개별 시군구 그룹 - 세로 구조 유지 */
    .course-hunting-region-group {
        flex-direction: column !important;
        gap: 4px !important;
    }
    
    /* 시군구 버튼 더 작게 */
    .course-hunting-sigungu-name {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        min-height: 36px !important;
        border-radius: 14px !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 동 버튼 더 작게 */
    .course-hunting-dong-item {
        font-size: 0.75rem !important;
        padding: 5px 8px !important;
        min-height: 32px !important;
        border-radius: 12px !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 그리드 간격 조정 */
    .course-hunting-grid {
        gap: 12px;
    }
    
    /* 코스 카드 패딩 더 작게 */
    .course-hunting-card {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    .course-hunting-card-title {
        font-size: 1.1rem !important;
        margin-bottom: 6px !important;
    }
    
    .course-hunting-card-summary {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
    
    .course-hunting-card-nickname {
        font-size: 0.85rem !important;
    }
    
    .course-hunting-card-time {
        font-size: 0.8rem !important;
    }
    
    .course-hunting-card-date {
        font-size: 0.75rem !important;
    }
    
    /* 코스 스텝 더 작게 */
    .course-step-place {
        font-size: 0.9rem !important;
        padding: 6px 10px !important;
        border-radius: 14px !important;
    }
    
    .course-step-info {
        font-size: 15px !important;
    }
}

/* 소형 모바일 (360px 이하) */
@media (max-width: 360px) {
    /* 컨테이너 패딩 최소 */
    .course-hunting-container {
        padding: 6px 4px;
    }
    
    /* 지역 필터 패딩 최소 */
    .course-hunting-region-filter {
        padding: 4px 3px;
        margin-bottom: 6px;
    }
    
    /* 헤더 패딩 최소 */
    .course-hunting-header {
        padding: 6px 4px;
        gap: 4px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .course-hunting-tabs {
        flex: 1;
        justify-content: flex-start;
        gap: 3px;
    }
    
    .course-hunting-current-region {
        display: none;
    }
    
    .course-hunting-share-btn {
        flex-shrink: 0;
    }
    
    /* 지역 배지 최소 */
    .region-badge {
        font-size: 0.95rem !important;
        padding: 5px 12px !important;
        border-radius: 16px !important;
    }
    
    /* 탭 버튼 최소 - 공유하기와 동일 */
    .course-hunting-tab-btn {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        min-height: 28px !important;
        border-radius: 14px !important;
    }
    
    /* 공유하기 버튼 최소 - 탭 버튼과 동일 */
    .course-hunting-share-btn {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        min-height: 28px !important;
        border-radius: 14px !important;
    }
    
    /* 서울 전체 버튼 최소 */
    .course-hunting-seoul-all {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
        min-height: 36px !important;
        border-radius: 16px !important;
    }
    
    /* 시군구 행 레이아웃 - 모바일 2열 구조 유지 */
    .course-hunting-container .course-hunting-region-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
        margin-bottom: 10px !important;
    }
    
    /* 개별 시군구 그룹 - 세로 구조 유지 */
    .course-hunting-region-group {
        flex-direction: column !important;
        gap: 3px !important;
    }
    
    /* 시군구 버튼 최소 */
    .course-hunting-sigungu-name {
        font-size: 0.75rem !important;
        padding: 5px 8px !important;
        min-height: 32px !important;
        border-radius: 12px !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 동 버튼 최소 */
    .course-hunting-dong-item {
        font-size: 0.7rem !important;
        padding: 4px 6px !important;
        min-height: 28px !important;
        border-radius: 10px !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 그리드 간격 최소 */
    .course-hunting-grid {
        gap: 10px;
    }
    
    /* 코스 카드 패딩 최소 */
    .course-hunting-card {
        padding: 10px !important;
        border-radius: 8px !important;
    }
    
    .course-hunting-card-title {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }
    
    .course-hunting-card-summary {
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
    }
    
    .course-hunting-card-nickname {
        font-size: 0.8rem !important;
    }
    
    .course-hunting-card-time {
        font-size: 0.75rem !important;
    }
    
    .course-hunting-card-date {
        font-size: 0.7rem !important;
    }
    
    /* 코스 스텝 최소 */
    .course-step-place {
        font-size: 0.85rem !important;
        padding: 5px 8px !important;
        border-radius: 12px !important;
    }
    
    .course-step-info {
        font-size: 14px !important;
    }
}

/* 모바일에서만 적용되는 모달 스타일 */
@media (max-width: 768px) {
    .course-hunting-modal-content {
        width: 95% !important;
        max-width: none !important;
        margin: 2% auto !important;
        max-height: 95vh !important;
    }
    
    /* 모바일에서 코스 모달 입력 필드와 글자 크기 */
    .course-hunting-modal-body {
        padding: 16px 12px !important;
    }
    
    .course-hunting-modal-header {
        padding: 14px 16px !important;
    }
    
    .course-hunting-modal-header h2 {
        font-size: 16px !important;
        font-weight: 600 !important;
    }
    
    .course-hunting-close {
        font-size: 24px !important;
    }
    
    .course-hunting-form-group label {
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-bottom: 6px !important;
    }
    
    .course-hunting-form-group input[type="text"],
    .course-hunting-form-group input[type="password"] {
        font-size: 14px !important;
        padding: 10px 12px !important;
        min-height: 40px !important;
        border-width: 1px !important;
    }
    
    .course-hunting-form-group textarea {
        font-size: 14px !important;
        padding: 10px 12px !important;
        min-height: 100px !important;
        line-height: 1.5 !important;
        border-width: 1px !important;
    }
    
    .course-hunting-steps-container h3 {
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-bottom: 10px !important;
    }
    
    .course-hunting-step-header {
        padding: 10px !important;
    }
    
    .course-hunting-step-place {
        font-size: 14px !important;
        padding: 10px 12px !important;
        min-height: 40px !important;
        border-width: 1px !important;
    }
    
    .course-hunting-step-description {
        font-size: 14px !important;
        padding: 10px 12px !important;
        min-height: 80px !important;
        line-height: 1.5 !important;
        border-width: 1px !important;
    }
    
    .course-hunting-step-photo {
        font-size: 13px !important;
        padding: 10px !important;
    }
    
    .course-hunting-add-step-btn {
        font-size: 14px !important;
        padding: 10px 16px !important;
        font-weight: 600 !important;
        min-height: 40px !important;
    }
    
    .course-hunting-remove-step {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
    
    /* 코스 체크리스트 모바일 최적화 */
    .course-hunting-checklist-container {
        padding: 12px !important;
        margin: 16px 0 !important;
    }
    
    .course-hunting-checklist-container h4 {
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-bottom: 10px !important;
    }
    
    .course-hunting-checklist .checklist-text {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
    
    .course-hunting-checklist .checklist-text small {
        font-size: 12px !important;
    }
    
    .course-hunting-checklist .agreement-text {
        font-size: 13px !important;
        font-weight: 600 !important;
    }
    
    .course-hunting-checklist .checkmark {
        width: 18px !important;
        height: 18px !important;
        border-width: 2px !important;
    }
    
    .course-hunting-checklist .agreement-checkmark {
        width: 20px !important;
        height: 20px !important;
        border-width: 2px !important;
    }
    
    .course-hunting-form-actions {
        flex-direction: column;
        padding: 16px 12px !important;
        gap: 10px !important;
    }
    
    .course-hunting-form-actions button {
        font-size: 14px !important;
        padding: 10px 16px !important;
        font-weight: 600 !important;
        min-height: 40px !important;
        width: 100% !important;
    }
    
    .course-hunting-container .course-hunting-region-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3px !important;
        margin-bottom: 8px !important;
    }
    
    .course-hunting-region-group {
        flex-direction: column;
        gap: 2px;
    }
    
    .course-hunting-dong-grid {
        min-height: 80px;
    }
    
    /* 검색 기능 반응형 */
    .course-search-container {
        padding: 20px;
        border-radius: 16px;
    }
    
    .course-search-box {
        flex-direction: row;
        gap: 10px;
    }
    
    .course-search-input-wrapper {
        flex: 1;
    }
    
    .course-search-input {
        padding: 12px 16px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }
    
    .course-search-input::placeholder {
        font-size: 14px !important;
        font-weight: 400 !important;
    }
    
    .course-search-button-wrapper {
        width: auto;
        flex-shrink: 0;
    }
    
    .course-search-btn {
        width: auto;
        padding: 12px 20px !important;
        min-width: 80px;
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    .course-search-btn .btn-text {
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    .course-search-btn i {
        font-size: 14px !important;
    }
    
    .course-search-filters {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding-top: 15px;
        flex-wrap: wrap;
    }
    
    .course-search-filter-group {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .course-search-filter-label {
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-right: 8px !important;
    }
    
    .course-search-filter-option {
        padding: 6px 10px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        gap: 4px !important;
    }
    
    .course-search-filter-option input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* 모바일에서 핫플레이스 자동완성 폰트 크기 증가 */
    .autocomplete-name {
        font-size: 22px !important;
        font-weight: 700 !important;
    }
    
    .autocomplete-address {
        font-size: 20px !important;
        font-weight: 500 !important;
    }
    
    .autocomplete-item {
        padding: 20px 24px !important;
    }
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-hunting-card {
    animation: fadeInUp 0.6s ease-out;
}

.course-hunting-card:nth-child(1) { animation-delay: 0.1s; }
.course-hunting-card:nth-child(2) { animation-delay: 0.2s; }
.course-hunting-card:nth-child(3) { animation-delay: 0.3s; }
.course-hunting-card:nth-child(4) { animation-delay: 0.4s; }
.course-hunting-card:nth-child(5) { animation-delay: 0.5s; }
.course-hunting-card:nth-child(6) { animation-delay: 0.6s; }

/* 코스 글 작성 체크리스트 스타일 */
.course-hunting-checklist-container {
    margin: 16px 0;
    padding: 14px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.course-hunting-checklist-container h4 {
    color: #495057;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-hunting-checklist-container h4::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    font-size: 1rem;
}

.course-hunting-checklist {
    margin-bottom: 14px;
}

.checklist-item {
    margin-bottom: 10px;
}

.checklist-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checklist-label:hover {
    background-color: #e9ecef;
}

.checklist-checkbox {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #6c757d;
    border-radius: 4px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkmark::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checklist-checkbox:checked + .checkmark {
    background-color: #28a745;
    border-color: #28a745;
}

.checklist-checkbox:checked + .checkmark::after {
    opacity: 1;
}

.checklist-text {
    color: #495057;
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
}

.checklist-agreement {
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    margin-top: 12px;
}

.agreement-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.agreement-checkbox {
    display: none;
}

.agreement-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 4px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.agreement-checkmark::after {
    content: "";
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agreement-checkbox:checked + .agreement-checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.agreement-checkbox:checked + .agreement-checkmark::after {
    opacity: 1;
}

.agreement-text {
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

/* 체크리스트 동의 시 동의 섹션 스타일 변경 */
.agreement-checkbox:checked ~ .agreement-text {
    color: #28a745;
}

.agreement-checkbox:checked + .agreement-checkmark {
    border-color: #28a745;
    background-color: #28a745;
}

/* 제출 버튼 비활성화 상태 */
#courseSubmitBtn:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

#courseSubmitBtn:not(:disabled) {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* 반응형 디자인 - 체크리스트 전용 */
@media (max-width: 768px) {
    .course-hunting-checklist-container {
        margin: 15px 0;
        padding: 15px;
    }
    
    .checklist-label {
        padding: 6px;
    }
    
    .checklist-text {
        font-size: 13px;
    }
    
    .agreement-text {
        font-size: 14px;
    }
    
    .checklist-agreement {
        padding: 12px;
    }
    
    /* 시군구 그룹 - 모바일 2열 구조 (768px 이하만) */
    .course-hunting-region-group {
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }
}
