/* 차량 검색 스타일 */

/* 검색 입력창 (기존 스타일 유지) */
.car-search-input-wrapper {
    position: relative;
}

.car-search-input {
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.car-search-input:hover {
    background-color: #e9ecef;
}

/* 홈페이지 차량 검색 히어로 섹션 */
.car-search-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767.98px) {
    .car-search-hero {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
        border-radius: 0.75rem;
    }
}

.car-search-content {
    max-width: 800px;
    margin: 0 auto;
}

.car-search-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.car-search-icon {
    font-size: 3.5rem;
    color: var(--brand-color);
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 767.98px) {
    .car-search-icon {
        font-size: 2.5rem;
    }
}

.car-search-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

@media (max-width: 767.98px) {
    .car-search-title {
        font-size: 1.5rem;
    }
}

.car-search-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
}

@media (max-width: 767.98px) {
    .car-search-subtitle {
        font-size: 0.9rem;
    }
}

/* 검색 박스 */
.car-search-box-wrapper {
    margin-bottom: 2rem;
}

.car-search-box {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.car-search-box:hover {
    border-color: var(--brand-color);
    box-shadow: 0 4px 12px rgba(118, 32, 246, 0.15);
    transform: translateY(-2px);
}

.car-search-box-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-color, rgb(118, 32, 246));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.car-search-box-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.car-search-box-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.car-search-box-placeholder {
    font-size: 1rem;
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .car-search-box {
        padding: 1.5rem 1.25rem;
        min-height: 72px;
    }
    
    .car-search-box-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .car-search-box-label {
        font-size: 1rem;
    }
    
    .car-search-box-placeholder {
        font-size: 0.9rem;
    }
    
    .car-search-box-arrow {
        font-size: 1.5rem;
    }
}

.car-search-box-arrow {
    color: #adb5bd;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.car-search-box:hover .car-search-box-arrow {
    color: var(--brand-color);
    transform: translateX(4px);
}

/* 검색 기능 아이콘들 */
.car-search-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .car-search-features {
        gap: 1.5rem;
    }
}

.car-search-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.car-search-feature-item i {
    font-size: 1.5rem;
    color: var(--brand-color);
    opacity: 0.7;
}

@media (max-width: 767.98px) {
    .car-search-feature-item {
        font-size: 0.75rem;
    }
    
    .car-search-feature-item i {
        font-size: 1.25rem;
    }
}

/* 모달 스타일 */
.modal-fullscreen-sm-down {
    max-width: 100%;
}

@media (min-width: 576px) {
    .modal-fullscreen-sm-down {
        max-width: 540px;
        max-height: calc(100vh - 2rem);
        height: calc(100vh - 2rem);
        margin: 1rem auto;
        display: flex;
        flex-direction: column;
    }
}

#carSearchModal .modal-content {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 576px) {
    #carSearchModal .modal-content {
        max-height: 100%;
    }
}

#carSearchModal .modal-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
    padding: 0.75rem 1rem;
}

@media (max-width: 767.98px) {
    #carSearchModal .modal-header {
        padding: 0.75rem 1rem;
    }
}

#carSearchModalBody {
    position: relative;
    min-height: 400px;
    background-color: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 스크롤을 car-search-container로 이동 */
    padding: 10px;
}

@media (min-width: 576px) {
    #carSearchModalBody {
        min-height: 0;
    }
}

#selectionContainer {
    background-color: #fff !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

@media (min-width: 576px) {
    #selectionContainer {
        height: 100%;
    }
}

/* 검색 필터 영역 */
.car-search-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow-y: auto; /* 스크롤을 여기로 이동 */
}

.search-filters {
    padding: 0.5rem 0;
    flex: 1;
    overflow-y: visible; /* 스크롤을 부모로 이동 */
    padding-bottom: 5rem; /* 플로팅 버튼 공간 확보 */
}

@media (min-width: 576px) {
    .search-filters {
        padding: 10px;
        padding-bottom: 6rem; /* 데스크탑에서도 버튼 공간 확보 */
    }
}

@media (max-width: 767.98px) {
    .search-filters {
        padding-bottom: 7rem; /* 모바일에서 플로팅 버튼 공간 더 확보 */
    }
}

.filter-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.filter-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #000;
}

.selected-items {
    min-height: 2rem;
    padding: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selected-items .placeholder {
    color: #6c757d;
    font-style: italic;
}

.selected-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.selected-item-remove {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.selected-item-remove:hover {
    color: #000;
}

.filter-select-btn {
    margin-top: 0.5rem;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-select-btn i {
    margin-left: auto;
}

.filter-select-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.filter-item.disabled .filter-label {
    color: #6c757d;
}

.filter-item.disabled .selected-items .placeholder {
    color: #adb5bd;
}

/* 범위 슬라이더 */
.range-slider-wrapper {
    margin-top: 0.5rem;
}

.range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* 주행거리 스크롤 */
.mileage-scroll-wrapper {
    margin-top: 0;
}

.mileage-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 86, 255, 0.3) transparent;
}

.mileage-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.mileage-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.mileage-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(138, 86, 255, 0.3);
    border-radius: 3px;
}

.mileage-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(138, 86, 255, 0.5);
}

.mileage-scroll {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    min-width: max-content;
}

.mileage-scroll-item {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #495057;
    user-select: none;
}

.mileage-scroll-item:hover {
    background-color: #e9ecef;
    border-color: rgba(138, 86, 255, 0.5);
}

.mileage-scroll-item.active {
    background-color: rgba(138, 86, 255, 0.95);
    border-color: rgba(138, 86, 255, 0.95);
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .mileage-scroll-item {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.form-range {
    width: 100%;
}

/* 차량 검색 모달 내부의 슬라이더를 보라색으로 변경 */
#carSearchModal {
    --bs-form-range-thumb-bg: rgba(138, 86, 255, 0.85);
    --bs-form-range-thumb-border: 0;
    --bs-form-range-thumb-box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.1);
    --bs-form-range-thumb-active-bg: rgba(138, 86, 255, 0.95);
    --bs-form-range-track-bg: rgba(138, 86, 255, 0.2);
}

#carSearchModal .form-range::-webkit-slider-thumb {
    background-color: rgba(138, 86, 255, 0.85) !important;
    border: none !important;
    box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.1) !important;
}

#carSearchModal .form-range::-moz-range-thumb {
    background-color: rgba(138, 86, 255, 0.85) !important;
    border: none !important;
    box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.1) !important;
}

#carSearchModal .form-range::-webkit-slider-runnable-track {
    background-color: rgba(138, 86, 255, 0.2) !important;
}

#carSearchModal .form-range::-moz-range-track {
    background-color: rgba(138, 86, 255, 0.2) !important;
}

#carSearchModal .form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(138, 86, 255, 0.25) !important;
    background-color: rgba(138, 86, 255, 0.95) !important;
}

#carSearchModal .form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(138, 86, 255, 0.25) !important;
    background-color: rgba(138, 86, 255, 0.95) !important;
}

#carSearchModal .form-range:active::-webkit-slider-thumb {
    background-color: rgba(138, 86, 255, 1) !important;
}

#carSearchModal .form-range:active::-moz-range-thumb {
    background-color: rgba(138, 86, 255, 1) !important;
}

/* 검색 액션 버튼 - 플로팅 */
.search-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1055; /* Bootstrap 모달 z-index보다 높게 */
}

.search-actions .btn {
    flex: 1;
}

/* 데스크탑에서는 모달 내부에만 표시되도록 수정 */
@media (min-width: 768px) {
    #carSearchModal .search-actions {
        position: sticky;
        bottom: 0;
        margin-top: auto; /* flex 컨테이너에서 하단으로 밀어냄 */
        padding: 1rem;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e9ecef;
        background-color: #fff;
        z-index: 10;
        flex-shrink: 0; /* 버튼 영역이 축소되지 않도록 */
    }
}

/* 차량 검색 모달 내부의 검색 버튼을 보라색으로 변경 (톤 업) */
#carSearchModal .btn-primary {
    background-color: rgba(138, 86, 255, 0.95);
    border-color: rgba(138, 86, 255, 0.95);
    color: #ffffff;
}

#carSearchModal .btn-primary:hover {
    background-color: rgba(138, 86, 255, 1);
    border-color: rgba(138, 86, 255, 1);
    color: #ffffff;
}

#carSearchModal .btn-primary:focus {
    background-color: rgba(138, 86, 255, 1);
    border-color: rgba(138, 86, 255, 1);
    box-shadow: 0 0 0 0.25rem rgba(138, 86, 255, 0.25);
}

#carSearchModal .btn-primary:active {
    background-color: rgba(120, 70, 240, 1);
    border-color: rgba(120, 70, 240, 1);
}

/* 검색 버튼 비활성화 상태 */
#carSearchModal .btn-primary.disabled,
#carSearchModal .btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
    opacity: 0.65;
    cursor: not-allowed;
}

#carSearchModal .btn-primary.disabled:hover,
#carSearchModal .btn-primary:disabled:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
    opacity: 0.65;
}

/* 선택 화면의 확인 버튼도 보라색으로 변경 */
#selectionContainer .btn-primary {
    background-color: rgba(138, 86, 255, 0.85);
    border-color: rgba(138, 86, 255, 0.85);
    color: #ffffff;
}

#selectionContainer .btn-primary:hover {
    background-color: rgba(138, 86, 255, 0.95);
    border-color: rgba(138, 86, 255, 0.95);
    color: #ffffff;
}

#selectionContainer .btn-primary:focus {
    background-color: rgba(138, 86, 255, 0.95);
    border-color: rgba(138, 86, 255, 0.95);
    box-shadow: 0 0 0 0.25rem rgba(138, 86, 255, 0.25);
}

#selectionContainer .btn-primary:active {
    background-color: rgba(138, 86, 255, 1);
    border-color: rgba(138, 86, 255, 1);
}

/* 선택 화면 */
.selection-screen {
    min-height: 400px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 576px) {
    .selection-screen {
        min-height: 0;
        height: 100%;
    }
}

.selection-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

.btn-back {
    background: none;
    border: none;
    padding: 0.5rem;
    margin-right: 1rem;
    cursor: pointer;
    color: #000;
}

.btn-back:hover {
    color: var(--brand-color);
}

.selection-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.selection-content {
    padding: 1rem;
    overflow-y: auto;
    background-color: #fff;
    flex: 1;
    min-height: 0;
}

.selection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.selection-item i {
    color: #6c757d;
}

/* 트리 리스트 */
.tree-list {
    padding-left: 0;
}

.tree-node {
    list-style: none;
}

.tree-node-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.tree-node-header:hover {
    background-color: #f8f9fa;
}


.tree-node-children {
    list-style: none;
    padding-left: 1.5rem;
    margin: 0;
    display: none;
}

.tree-node.expanded > .tree-node-children {
    display: block;
}

.tree-checkbox {
    margin-right: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    width: 1.25em !important;
    height: 1.25em !important;
    border: 2px solid #495057 !important;
    border-radius: 0.25em;
    background-color: #fff !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.tree-checkbox:checked {
    background-color: rgba(138, 86, 255, 0.95) !important;
    border-color: rgba(138, 86, 255, 0.95) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.tree-checkbox:focus {
    border-color: rgba(138, 86, 255, 0.95) !important;
    box-shadow: 0 0 0 0.25rem rgba(138, 86, 255, 0.25) !important;
    outline: none;
}

.tree-node-label {
    flex: 1;
    text-align: left;
    margin-right: 0.5rem;
}

.tree-node-count {
    color: #6c757d;
    font-size: 0.875rem;
    flex-shrink: 0;
    min-width: 2rem;
    text-align: right;
    margin-left: auto;
}

.tree-node-children .tree-node-header {
    padding-left: 0.5rem;
}

/* 연식 스크롤 (주행거리와 동일한 스타일) */
.year-scroll-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
}

.year-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 86, 255, 0.3) transparent;
    padding: 0.5rem 0;
}

.year-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.year-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.year-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(138, 86, 255, 0.3);
    border-radius: 3px;
}

.year-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(138, 86, 255, 0.5);
}

.year-scroll {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    min-width: max-content;
}

.year-scroll-item {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #495057;
}

.year-scroll-item:hover {
    background-color: #e9ecef;
    border-color: rgba(138, 86, 255, 0.5);
}

.year-scroll-item.active {
    background-color: rgba(138, 86, 255, 0.95);
    border-color: rgba(138, 86, 255, 0.95);
    color: #fff;
}

/* 필터 값 버튼 영역 */
.filter-value-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.filter-value-btn {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    border-color: #dee2e6;
}

.filter-value-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}

.filter-direct-btn {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    min-height: 38px;
    white-space: nowrap;
    border-color: rgba(138, 86, 255, 0.5);
    color: rgba(138, 86, 255, 0.95);
}

.filter-direct-btn:hover {
    background-color: rgba(138, 86, 255, 0.1);
    border-color: rgba(138, 86, 255, 0.95);
    color: rgba(138, 86, 255, 1);
}

@media (max-width: 767.98px) {
    .filter-value-buttons {
        margin-bottom: 1rem;
    }
    
    .filter-value-btn,
    .filter-direct-btn {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
        min-height: 44px;
    }
}

/* 가격 스크롤 스타일 (연식과 동일) */
.price-scroll-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
}

.price-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 86, 255, 0.3) transparent;
    padding: 0.5rem 0;
}

.price-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.price-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.price-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(138, 86, 255, 0.3);
    border-radius: 3px;
}

.price-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(138, 86, 255, 0.5);
}

.price-scroll {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    min-width: max-content;
}

.price-scroll-item {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #495057;
}

.price-scroll-item:hover {
    background-color: #e9ecef;
    border-color: rgba(138, 86, 255, 0.5);
}

.price-scroll-item.active {
    background-color: rgba(138, 86, 255, 0.95);
    border-color: rgba(138, 86, 255, 0.95);
    color: #fff;
}


/* 연식 선택 */
.year-selection-wrapper {
    padding: 1rem 0;
}

.year-range-section {
    margin-bottom: 1.5rem;
}

.year-range-section:last-child {
    margin-bottom: 0;
}

.year-range-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.year-month-inputs {
    display: flex;
    gap: 0.5rem;
}

.year-month-inputs .form-select {
    flex: 1;
}

.year-range-separator {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #6c757d;
    margin: 1rem 0;
}

.selection-footer {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    position: sticky;
    bottom: 0;
    background-color: #fff;
}

/* 모바일 반응형 */
@media (max-width: 767.98px) {
    .modal-fullscreen-sm-down {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }
    
    .modal-content {
        height: 100%;
        border-radius: 0;
        background-color: #fff;
    }
    
    .modal-body {
        flex: 1;
        overflow-y: auto;
        background-color: #fff;
    }
    
    .selection-content {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
    
    .selection-screen {
        height: 100%;
        min-height: 100%;
    }
    
    /* 모바일에서 폰트 크기 및 터치 영역 확대 */
    .filter-label {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .filter-item {
        padding: 1.25rem 0;
        margin-bottom: 0.5rem; /* 모바일에서 필터 아이템 간격 추가 */
    }
    
    /* 모바일에서 스크롤 컨테이너가 가려지지 않도록 추가 패딩 */
    .year-scroll-wrapper,
    .mileage-scroll-wrapper,
    .price-scroll-wrapper {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .year-scroll-container,
    .mileage-scroll-container,
    .price-scroll-container {
        margin-bottom: 0.5rem;
    }
    
    .selected-items {
        min-height: 2.5rem;
        padding: 0.75rem 0;
    }
    
    .selected-item {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .selected-item-remove {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .filter-select-btn {
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
        min-height: 52px;
        margin-top: 0.75rem;
    }
    
    .selection-header {
        padding: 1.25rem 1rem;
    }
    
    .btn-back {
        padding: 0.75rem;
        margin-right: 1rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-back i {
        font-size: 1.5rem;
    }
    
    .selection-title {
        font-size: 1.25rem;
    }
    
    .selection-content {
        padding: 1.25rem 1rem;
    }
    
    .selection-item {
        padding: 1.25rem 1rem;
        min-height: 56px;
        font-size: 1.125rem;
    }
    
    .selection-item i {
        font-size: 1.25rem;
    }
    
    .tree-node-header {
        padding: 1rem 1.25rem;
        min-height: 56px;
        font-size: 1.125rem;
    }
    
    .tree-checkbox {
        width: 1.5em !important;
        height: 1.5em !important;
        margin-right: 1rem;
        border: 2px solid #495057 !important;
    }
    
    .tree-node-count {
        font-size: 1rem;
    }
    
    .tree-node-label {
        text-align: left;
    }
    
    .search-actions {
        padding: 1rem;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1055; /* Bootstrap 모달 z-index보다 높게 */
    }
    
    .search-actions .btn {
        padding: 1.125rem 2rem;
        font-size: 1.125rem;
        min-height: 52px;
    }
    
    .year-range-section label {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .year-month-inputs .form-select {
        padding: 0.875rem 1rem;
        font-size: 1.125rem;
        min-height: 52px;
    }
    
    .selection-footer {
        padding: 1.25rem 1rem;
    }
    
    .selection-footer .btn {
        padding: 1.125rem 2rem;
        font-size: 1.125rem;
        min-height: 52px;
    }
    
    .form-range {
        height: 1.5rem;
    }
    
    .range-values {
        font-size: 1rem;
        margin-top: 0.75rem;
    }
}

/* 모달 로딩 오버레이 */
.modal-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

.modal-loading-content {
    text-align: center;
    color: #495057;
}

.modal-loading-content p {
    font-size: 0.95rem;
    color: #6c757d;
}

