/* 필터 박스 스타일 */
.filter-desktop-box {
    flex: 0 0 400px;
    max-width: 400px;
    background: white;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    z-index: 100;
    overflow-y: auto;
}

.filter-mobile-box {
    position: fixed; /* 중요: absolute가 아니라 fixed여야 함 */
    top: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: white; /* 배경색 */
    z-index: 9999; /* drag-bar(1001)보다 높아야 함 */
    overflow-y: auto; /* 안의 내용이 넘치면 스크롤 가능 */
}

/* UIKit 카드 스타일과 충돌 방지 */
.filter-mobile-box.uk-card {
    border-radius: 0;
    box-shadow: none;
}

@media (min-width: 960px) {
    #filter-mobile-box {
        display: none !important;
    }
}

/* 체크박스 그룹 스타일 */
#typeCheckboxGroup {
    display: none; /* 처음에는 숨겨진 상태 */
    margin-top: 10px;
}

.uk-pill {
    border-radius: 9999px; /* 완전 둥글게 (알약 모양) */
}

/* 체크박스 버튼 스타일 */
.custom-checkbox-button input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* label을 inline-block처럼 배치 */
.custom-typeFilter-button {
    display: inline-block;
    margin: 5px;
}

/* 선택된 경우 버튼에 색 강조 (선택된 체크박스는 + span 조합으로 스타일 적용 가능) */
.custom-checkbox-button input[type="checkbox"]:checked + span {
    background-color: transparent;
    color:var(--primary-color);
    border: 1px solid var(--primary-color);
}

.uk-button-primary-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

/* 가격 슬라이더 스타일 */
.custom-slider .noUi-base {
    height: 6px !important; /* 전체 바 배경 (투명) 높이 */
}

.custom-slider .noUi-connect {
    height: 6px !important; /* 파란색 연결선 높이 */
    background-color: var(--primary-color);
    border-radius: 3px;
}

.custom-slider .noUi-connects {
    height: 6px !important; /* 파란색 연결선 높이 */
    border-radius: 3px;
}

.custom-slider .noUi-origin {
    top: 0px; /* 핸들을 중앙에 정렬되게 조정 */
}

/* 핸들 크기 */
.custom-slider .noUi-handle {
    width: 18px;
    height: 18px;
    top: -6px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: white;
}

.custom-slider .noUi-handle::before,
.custom-slider .noUi-handle::after {
    display: none !important;
    content: none;
}

/* 바텀시트 스타일 */
#typeCheckBoxSheet,
#priceRangeSheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    transition: bottom 0.3s ease;
    z-index: 9999;
}

/* 상단 필터 버튼들 완전 고정 크기 */
.uk-button-small {
    width: 100px !important;        /* 고정 너비 */
    min-width: 100px !important;    /* 최소 너비도 고정 */
    max-width: 100px !important;    /* 최대 너비도 고정 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
    display: inline-block;
}

/* 부동산유형 버튼만 더 크게 - 더 구체적인 선택자 사용 */
[x-data*="ArticleTypeFilter"] .uk-button-small {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}
/* 가격 필터 버튼 */
[x-data*="PriceRangeFilter"] .uk-button-small {
    min-width: 85px !important;
    width: auto !important;
    max-width: 130px !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* 로그인 모달 스타일 */
#login-modal .uk-modal-dialog {
    max-width: 320px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

#login-modal .uk-modal-body {
    padding: 30px 25px 25px 25px !important;
}

#login-modal .uk-modal-close-default {
    background: none !important;
    color: #999 !important;
    top: 15px !important;
    right: 15px !important;
    width: 20px !important;
    height: 20px !important;
}

/* 모달 섹션별 스타일 */
.modal-text-section {
    margin-top: 20px;
}

.modal-text-section h3 {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

.modal-icon-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
}

.icon-container {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container span {
    color: #666;
}

.modal-button-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

#login-modal .uk-button-primary {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 10px !important;
    color: white !important;
    text-decoration: none !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease !important;
}

#login-modal .uk-button-primary:hover {
    background: #0056CC !important;
}

#login-modal .login-button {
    background: #939393 !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 10px !important;
    color: white !important;
    text-decoration: none !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 모달 백드롭 블러 효과 */
.uk-modal.uk-open {
    backdrop-filter: blur(3px);
}

.uk-modal .uk-modal-page {
    background: rgba(0, 0, 0, 0.5) !important;
}

[x-data="ArticleTypeFilter()"] .uk-flex.uk-flex-wrap {
    display: inline-grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
}

[x-data="ArticleTypeFilter()"] .uk-flex.uk-flex-wrap .uk-button {
    margin: 0 !important;
    width: 100% !important;
}

.filter-divider {
    border: none;
    height: 1px;
    background-color: #e5e5e5;
    margin-top: 10px;
    margin-bottom: 20px;
}