
:root {
    --xv63ga7: #000019;    /* 최상단 깊은 남색 */
    --xv63ga8: #101029;    /* 상단 남색 */
    --xv63gaa: rgb(10, 27, 78);  /* 중간 진한 파란색 */
    --xv63gaf: #202039;    /* 하단 어두운 회색-파랑 */
    --xv63gag: #333338;    /* 최하단 회색-파랑 */
    --xv63gah: #fff;       /* 흰색 (별들용) */
}


/* ========== CLUBMD 전용 우주 테마 (푸터 복원) ========== */

/* 전체 페이지 컨테이너 - 푸터 공간 확보 */
.clubmd-page {
    position: relative;
    background: transparent;
    /* min-height 제거하여 푸터 공간 확보 */
    min-height: auto;
    /* 푸터가 제대로 표시되도록 설정 */
    padding-bottom: 0;
}

/* 우주 배경 - 전체 화면을 덮지만 스크롤에 영향 없음 */
.clubmd-page .space-background {
    background: 
        /* 상단: 깊은 밤하늘 */
        linear-gradient(180deg, var(--xv63ga7) 0%, var(--xv63ga8) 30%, var(--xv63gaa) 60%, var(--xv63gaf) 80%, var(--xv63gag) 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

/* 별들 컨테이너 - 전체 화면 */
.clubmd-page .stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* 메인 콘텐츠 래퍼 - 우주 배경 위에 */
.clubmd-content-wrapper {
    position: relative;
    z-index: 2;
    background: transparent;
    /* min-height 제거하여 all.css의 main-container와 충돌 방지 */
    min-height: auto;
    /* 푸터가 제대로 표시되도록 설정 */
    padding-bottom: 0;
}

/* all.css의 main-container와 완벽 호환 */
.clubmd-content-wrapper .main-container {
    position: relative;
    z-index: 3;
    background: transparent;
    /* max-width 제거하여 all.css의 main-container와 충돌 방지 */
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========== CLUBMD MD 목록 스타일 ========== */

/* MD 카드 스타일 - 우주 테마에 맞게 개선 */
.clubmd-md-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 4;
    overflow: hidden;
}

.clubmd-md-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.98);
}

/* 개별 별 - 성능 최적화된 애니메이션 */
.clubmd-page .star {
    position: absolute !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    transform: translateZ(0); /* GPU 가속 */
    will-change: opacity, transform; /* 애니메이션 최적화 */
    box-shadow: 0 0 2px #ffffff !important;
    display: block !important;
    min-width: 1px !important;
    min-height: 1px !important;
}

/* 큰 별들 (더 밝게) */
.clubmd-page .star:nth-child(3n) {
    background: #ffffff !important;
    box-shadow: 0 0 3px #ffffff, 0 0 6px rgba(255, 255, 255, 0.6);
}

/* 중간 별들 */
.clubmd-page .star:nth-child(3n+1) {
    background: #e6f3ff !important;
    box-shadow: 0 0 2px #e6f3ff;
}

/* 작은 별들 */
.clubmd-page .star:nth-child(3n+2) {
    background: #b8d4f0 !important;
    box-shadow: 0 0 1px #b8d4f0;
}

/* 별 깜빡임 애니메이션 - 성능 최적화 */
@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: translateZ(0) scale(0.8);
    }
    50% { 
        opacity: 1; 
        transform: translateZ(0) scale(1.2);
    }
}

/* 다양한 별 크기와 애니메이션 지연 - 성능 분산 */
.clubmd-page .star:nth-child(5n) { 
    animation: twinkle 4s infinite; 
    animation-delay: 0s;
}
.clubmd-page .star:nth-child(5n+1) { 
    animation: twinkle 4s infinite; 
    animation-delay: 0.8s;
}
.clubmd-page .star:nth-child(5n+2) { 
    animation: twinkle 4s infinite; 
    animation-delay: 1.6s;
}
.clubmd-page .star:nth-child(5n+3) { 
    animation: twinkle 4s infinite; 
    animation-delay: 2.4s;
}
.clubmd-page .star:nth-child(5n+4) { 
    animation: twinkle 4s infinite; 
    animation-delay: 3.2s;
}

/* MD 카드 헤더 */
.clubmd-md-card-header {
    position: relative;
}

/* MD 찜하기 버튼 - 깔끔하게 개선 */
.clubmd-md-wish-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.clubmd-md-wish-btn:hover {
    transform: scale(1.15);
}

.clubmd-md-wish-btn i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* 찜한 상태 스타일 */
.clubmd-md-wish-btn.wished i {
    color: #ff4d94 !important;
    fill: currentColor !important;
    filter: drop-shadow(0 2px 4px rgba(255, 77, 148, 0.3));
}

/* 찜하지 않은 상태 스타일 */
.clubmd-md-wish-btn:not(.wished) i {
    color: #999 !important;
    fill: none !important;
}

/* Bootstrap 아이콘 강제 스타일 적용 */
.clubmd-md-wish-btn i.bi-heart-fill {
    color: #ff4d94 !important;
    fill: currentColor !important;
    filter: drop-shadow(0 2px 4px rgba(255, 77, 148, 0.3));
}

.clubmd-md-wish-btn i.bi-heart {
    color: #999 !important;
    fill: none !important;
}

/* MD 카드 바디 */
.clubmd-md-card-body {
    padding: 0;
}

/* MD 사진 컨테이너 */
.clubmd-md-photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    margin-bottom: 1rem;
}

/* MD 사진 */
.clubmd-md-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clubmd-md-card:hover .clubmd-md-photo {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* MD 사진 플레이스홀더 (사람 이모티콘 안쪽만 핑크) */
.clubmd-md-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.clubmd-md-photo-placeholder i {
    font-size: 5.5rem;
    color: #ffb3d9;
}

/* MD 정보 */
.clubmd-md-info {
    padding: 15px;
    text-align: center;
}

/* MD 이름 */
.clubmd-md-name {
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

/* MD 가게 정보 */
.clubmd-md-place {
    margin-bottom: 12px;
}

.clubmd-place-name {
    color: #2d2d2d;
    font-weight: 600;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 3px;
}

.clubmd-place-address {
    color: #666;
    font-size: 0.9rem;
    display: block;
}

/* MD 연락처 */
.clubmd-md-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
}

.clubmd-md-contact i {
    color: #ff4d94;
}

/* MD 설명 */
.clubmd-md-description {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

/* MD 등록일 */
.clubmd-md-date {
    text-align: center;
    margin-top: 12px;
    color: #777;
    font-size: 0.85rem;
}



/* MD 카드 푸터 제거 - 더 깔끔한 디자인 */
.clubmd-md-card-footer {
    display: none;
}

/* MD 찜 개수 - 왼쪽 위로 이동, 깔끔하게 */
.clubmd-md-wish-count {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    padding: 0;
    color: #ff4d94;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
}

.clubmd-md-wish-count i {
    color: #ff4d94;
    font-size: 0.8rem;
    margin-right: 4px;
}

.clubmd-wish-count-number {
    font-weight: 700;
    color: #ff4d94;
}

/* ========== 검색 섹션 스타일 ========== */
.clubmd-md-search-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* card-box 클래스도 반투명하게 */
.card-box {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* MD 카드 원래대로 복원 */
.clubmd-md-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
}

.clubmd-md-card:hover {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

/* ========== 정렬 버튼 스타일 ========== */
.btn-outline-secondary {
    border-color: white !important;
    color: white !important;
    background: transparent !important;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
    color: white !important;
}

.btn-outline-secondary.active,
.btn-outline-secondary:active {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-color: white !important;
    color: white !important;
}

/* 활성 상태 버튼도 흰색으로 */
.btn-primary {
    border-color: white !important;
    color: #1a1a1a !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
}

/* 카카오톡 오픈채팅 버튼 스타일 */
.btn-success {
    background: linear-gradient(135deg, #fee500, #ffc107) !important;
    border: 2px solid #fee500 !important;
    color: #3c1e1e !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #ffc107, #ff8f00) !important;
    border-color: #ffc107 !important;
    color: #3c1e1e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(254, 229, 0, 0.4) !important;
}

.btn-success:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(254, 229, 0, 0.3) !important;
}

/* ========== 페이지네이션 스타일 ========== */
.clubmd-pagination .page-link {
    color: #ff4d94;
    border-color: #dee2e6;
}

.clubmd-pagination .page-item.active .page-link {
    background-color: #ff4d94;
    border-color: #ff4d94;
    color: white;
}

.clubmd-pagination .page-link:hover {
    color: #d63384;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* ========== 로그인 필요 토스트 메시지 ========== */
.clubmd-login-required-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #dc3545;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
    animation: clubmd-fadeInOut 2.5s ease-in-out;
}

@keyframes clubmd-fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* ========== 푸터 전체 너비 스타일 ========== */
/* clubmd 페이지에서 푸터가 전체 너비를 차지하도록 설정 */
.clubmd-page ~ footer,
.clubmd-page + footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* 푸터 내부 컨테이너도 전체 너비로 */
.clubmd-page ~ footer .container,
.clubmd-page + footer .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 더 확실한 방법: body에 clubmd 클래스가 있을 때 푸터 스타일링 */
body.clubmd-page footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

body.clubmd-page footer .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 추가: Bootstrap의 container 클래스 오버라이드 */
body.clubmd-page footer .container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* ========== MD 추가 모달 스타일 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 폼 스타일 */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* 버튼 스타일 */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    border: none;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* ========== MD 설명 가운데 정렬 ========== */
.clubmd-md-description-container {
    text-align: center;
}

.clubmd-md-description {
    text-align: center;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* ========== MD 관리자 수정 버튼 ========== */
.clubmd-md-admin-actions {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.clubmd-md-admin-actions .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* ========== 가게 검색 결과 스타일 ========== */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.place-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.place-address {
    font-size: 0.875rem;
    color: #666;
}

/* ========== 반응형 스타일 ========== */
@media (max-width: 768px) {
    /* MD 카드 그리드 레이아웃 - 한 줄로 배치 */
    #mdListContainer {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }
    
    /* MD 카드 모바일 스타일 */
    .clubmd-md-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
        min-height: auto;
    }
    
    /* MD 사진 컨테이너 모바일 */
    .clubmd-md-photo-container {
        height: 80px;
        margin-bottom: 0.8rem;
    }
    
    /* MD 사진 모바일 */
    .clubmd-md-photo {
        width: 80px;
        height: 80px;
        border: 2px solid #fff;
    }
    
    /* MD 사진 플레이스홀더 모바일 */
    .clubmd-md-photo-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .clubmd-md-photo-placeholder i {
        font-size: 3.5rem;
    }
    
    /* MD 정보 모바일 */
    .clubmd-md-info {
        padding: 10px;
    }
    
    /* MD 이름 모바일 */
    .clubmd-md-name {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    /* MD 가게 정보 모바일 */
    .clubmd-place-name {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }
    
    .clubmd-place-address {
        font-size: 0.8rem;
    }
    
    /* MD 연락처 모바일 */
    .clubmd-md-contact {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    /* MD 설명 모바일 */
    .clubmd-md-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
    }
    
    /* MD 등록일 모바일 */
    .clubmd-md-date {
        font-size: 0.75rem;
        margin-top: 8px;
    }
    
    /* 찜하기 버튼 모바일 */
    .clubmd-md-wish-btn {
        top: 10px;
        right: 10px;
    }
    
    .clubmd-md-wish-btn i {
        font-size: 1.2rem;
    }
    
    /* 찜 개수 모바일 */
    .clubmd-md-wish-count {
        top: 10px;
        left: 10px;
        font-size: 0.8rem;
    }
    
    /* 검색 섹션 모바일 */
    .card-box {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .card-box .row {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-box .col-md-4,
    .card-box .col-md-6,
    .card-box .col-md-2 {
        width: 100%;
        max-width: 100%;
    }
    
    /* 정렬 버튼 모바일 */
    .mb-3.d-flex {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .mb-3.d-flex > div {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
    
    /* 모달 모바일 */
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    /* MD 카드 그리드 - 더 작은 화면에서 1-2개씩 */
    #mdListContainer {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
        padding: 0 8px;
    }
    
    /* MD 카드 더 작은 화면 */
    .clubmd-md-card {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    /* MD 사진 더 작게 */
    .clubmd-md-photo-container {
        height: 70px;
        margin-bottom: 0.6rem;
    }
    
    .clubmd-md-photo {
        width: 70px;
        height: 70px;
        border: 2px solid #fff;
    }
    
    .clubmd-md-photo-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .clubmd-md-photo-placeholder i {
        font-size: 3rem;
    }
    
    /* MD 정보 더 작게 */
    .clubmd-md-info {
        padding: 8px;
    }
    
    .clubmd-md-name {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .clubmd-place-name {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    .clubmd-place-address {
        font-size: 0.75rem;
    }
    
    .clubmd-md-contact {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .clubmd-md-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        margin-bottom: 6px;
    }
    
    .clubmd-md-date {
        font-size: 0.7rem;
        margin-top: 6px;
    }
    
    /* 찜하기 버튼 더 작게 */
    .clubmd-md-wish-btn {
        top: 8px;
        right: 8px;
    }
    
    .clubmd-md-wish-btn i {
        font-size: 1rem;
    }
    
    /* 찜 개수 더 작게 */
    .clubmd-md-wish-count {
        top: 8px;
        left: 8px;
        font-size: 0.75rem;
    }
    
    /* 검색 섹션 더 작게 */
    .card-box {
        padding: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    /* 정렬 버튼 더 작게 */
    .mb-3.d-flex > div {
        gap: 8px;
    }
    
    .btn-outline-secondary {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    /* 카카오톡 버튼 모바일 스타일 */
    .btn-success {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
}

/* 검색 자동완성 스타일 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.search-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.search-suggestion-item:hover {
    background-color: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item .suggestion-type {
    font-size: 0.8rem;
    color: #6c757d;
    margin-right: 8px;
}

.search-suggestion-item .suggestion-text {
    font-weight: 500;
}

.search-suggestion-item .suggestion-detail {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 8px;
}
