/* =================================================
   mc_geo - 다나와형 멀티카테고리 필터 패널 스타일
   ================================================= */

/* 전체 레이아웃: 사이드바 + 목록 */
.mc-geo-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}

/* 사이드바 필터 패널 */
.mc-geo-panel {
    width: 200px;
    min-width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
}

/* 목록 영역 */
.mc-geo-list-wrap {
    flex: 1;
    min-width: 0;
}

/* 선택된 필터 태그 영역 */
.mc-geo-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
    min-height: 32px;
}

.mc-geo-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f0fe;
    border: 1px solid #c5d5f5;
    border-radius: 14px;
    padding: 2px 10px;
    font-size: 12px;
    color: #2c5ecd;
    cursor: default;
}

.mc-geo-active-tag .mc-geo-remove {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #5a7fd4;
    margin-left: 2px;
}

.mc-geo-active-tag .mc-geo-remove:hover {
    color: #c0392b;
}

.mc-geo-reset-all {
    background: none;
    border: 1px solid #ccc;
    border-radius: 14px;
    padding: 2px 10px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.mc-geo-reset-all:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* 필터 섹션 */
.mc-geo-section {
    border-bottom: 1px solid #eee;
}

.mc-geo-section:last-child {
    border-bottom: none;
}

/* 섹션 제목 */
.mc-geo-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-weight: bold;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    user-select: none;
    background: #fafafa;
}

.mc-geo-section-title:hover {
    background: #f0f0f0;
}

.mc-geo-section-arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.2s;
}

.mc-geo-section.collapsed .mc-geo-section-arrow {
    transform: rotate(-90deg);
}

/* 섹션 내용 */
.mc-geo-section-body {
    padding: 8px 12px 10px;
    overflow: hidden;
}

.mc-geo-section.collapsed .mc-geo-section-body {
    display: none;
}

/* 체크박스/라디오 목록 */
.mc-geo-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mc-geo-filter-list li {
    padding: 3px 0;
}

.mc-geo-filter-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #444;
    line-height: 1.4;
}

.mc-geo-filter-list label:hover {
    color: #2c5ecd;
}

.mc-geo-filter-list input[type="checkbox"],
.mc-geo-filter-list input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* 결과 카운트 */
.mc-geo-count {
    margin-left: auto;
    font-size: 11px;
    color: #999;
}

/* 카테고리 하위 들여쓰기 */
.mc-geo-depth-1 { padding-left: 0; }
.mc-geo-depth-2 { padding-left: 12px; }
.mc-geo-depth-3 { padding-left: 24px; }
.mc-geo-depth-4 { padding-left: 36px; }

/* 숫자/날짜 범위 */
.mc-geo-range-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.mc-geo-range-wrap input[type="number"],
.mc-geo-range-wrap input[type="date"] {
    width: 72px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
}

.mc-geo-range-sep {
    color: #999;
    font-size: 12px;
}

.mc-geo-range-apply {
    margin-top: 8px;
    width: 100%;
    padding: 5px;
    background: #4a7fd4;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.mc-geo-range-apply:hover {
    background: #3a6bc4;
}

/* 로딩 오버레이 */
.mc-geo-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.mc-geo-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #ddd;
    border-top-color: #4a7fd4;
    border-radius: 50%;
    animation: mc-geo-spin 0.7s linear infinite;
}

@keyframes mc-geo-spin {
    to { transform: rotate(360deg); }
}

/* 상단바 레이아웃 (topbar 모드) */
.mc-geo-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 12px;
}

.mc-geo-topbar .mc-geo-section {
    border: none;
    border-right: 1px solid #ddd;
    padding-right: 12px;
}

.mc-geo-topbar .mc-geo-section:last-child {
    border-right: none;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .mc-geo-wrap {
        flex-direction: column;
    }

    .mc-geo-panel {
        width: 100%;
        min-width: 0;
    }

    .mc-geo-topbar {
        flex-direction: column;
    }
}

/* -----------------------------------------------
   페이지네이션
----------------------------------------------- */
.mc-geo-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.mc-geo-pagination a,
.mc-geo-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    cursor: pointer;
    background: #fff;
}

.mc-geo-pagination a:hover {
    background: #f0f0f0;
    border-color: #aaa;
}

.mc-geo-pagination .mc-geo-page-current {
    background: #4a7fd4;
    border-color: #4a7fd4;
    color: #fff;
    font-weight: bold;
    cursor: default;
}

.mc-geo-pagination .mc-geo-page-disabled {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

/* 카운트 숫자 스타일 */
.mc-geo-count {
    margin-left: 3px;
    font-size: 11px;
    color: #999;
}

/* 검색 조건 없을 때 안내 문구 */
.mc-geo-no-filter {
    font-size: 12px;
    color: #aaa;
    font-style: italic;
    padding: 4px 2px;
}

/* -----------------------------------------------
   전체 펼치기 / 접기 버튼
----------------------------------------------- */
.mc-geo-toggle-all {
    margin-bottom: 6px;
}
.mc-geo-toggle-all-btn {
    width: 100%;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}
.mc-geo-toggle-all-btn:hover {
    background: #e0e0e0;
    color: #333;
}
/* 상단바용 */
.mc-geo-topbar .mc-geo-toggle-all-btn {
    width: auto;
    padding: 4px 12px;
}
