/* 아파트 전월세 실거래가 전용 스타일 */

/* 필터 및 정렬 컨테이너 */
.filter-sort-container {
    margin: 10px 0;
}

.filter-sort-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group,
.sort-group {
    flex: 1;
    min-width: 200px;
}
.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.filter-label i {
    color: rgba(37, 99, 235, 0.7);
}

.filter-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid rgba(148, 163, 184, 0.25);
    background: white;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%232563eb' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-select:hover {
    border-color: rgba(37, 99, 235, 0.5);
    background-color: rgba(37, 99, 235, 0.03);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.filter-select:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.7);
    background-color: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.filter-select option {
    padding: 8px;
}

.filter-select optgroup {
    font-weight: 600;
    color: #334155;
}

/* 더보기 버튼 */
.load-more-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 25px;
    color: rgba(37, 99, 235, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-color: rgba(37, 99, 235, 0.5);
    color: rgba(37, 99, 235, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

.apt-rent-result-item {
    border-left-color: rgba(37, 99, 235, 0.4) !important;
}

.apt-rent-result-item:hover {
    border-left-color: rgba(37, 99, 235, 0.7) !important;
}

/* 단지명 배경색 */
.apt-rent-result-item .item-title {
    padding: 12px 18px;
    margin: -10px -20px 0px -20px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #1bcc0b;
    font-size: 1.2rem;
    letter-spacing: 0.3px;
}

.apt-rent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.apt-rent-location,
.apt-rent-area {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
}

.apt-rent-location i,
.apt-rent-area i {
    color: rgba(37, 99, 235, 0.6);
}

.apt-rent-deal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.apt-rent-deal-date,
.apt-rent-floor,
.apt-rent-build-year {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    flex: 0 0 auto;
}

.apt-rent-deal-date strong,
.apt-rent-floor strong,
.apt-rent-build-year strong {
    color: #0f172a;
    font-weight: 600;
    margin-right: 6px;
}

/* 계약 정보 한 줄 레이아웃 */
.apt-rent-contract-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.apt-rent-contract-term,
.apt-rent-contract-type,
.apt-rent-previous {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    flex: 0 0 auto;
}

.apt-rent-contract-term strong,
.apt-rent-contract-type strong,
.apt-rent-previous strong {
    color: #0f172a;
    font-weight: 600;
    margin-right: 6px;
}

.apt-rent-previous {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.apt-rent-price-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.apt-rent-deposit,
.apt-rent-monthly {
    font-size: 0.9rem;
    color: #0f172a;
    white-space: nowrap;
}

.apt-rent-deposit strong,
.apt-rent-monthly strong {
    color: #64748b;
    font-weight: 600;
    margin-right: 6px;
    font-size: 0.85rem;
}

.price-highlight {
    color: #2563eb;
    font-weight: 700;
    font-size: 0.95rem;
}

.apt-rent-type {
    display: inline-flex;
    align-items: center;
}

.rent-type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}


.apt-rent-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.apt-rent-pagination form {
    display: inline;
}

.apt-rent-pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #ffffff;
    color: #64748b;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apt-rent-pagination button:hover {
    border-color: rgba(37, 99, 235, 0.4);
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.apt-rent-pagination button.active {
    background: var(--growth-gradient);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.loading-spinner {
    font-size: 2rem;
    color: rgba(37, 99, 235, 0.6);
}

.loading-state p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Empty State 가운데 정렬 */
.results-header.results-placeholder {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    min-height: 420px;
    padding: 40px 20px;
    width: 100%;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

.results-header.results-placeholder .empty-state {
    max-width: 420px;
    text-align: center;
    color: #475569;
    margin: 0 auto;
    width: 100%;
}

.results-header.results-placeholder .empty-state i {
    font-size: 60px;
    color: rgba(37, 99, 235, 0.35);
    margin-bottom: 22px;
    display: block;
}

.results-header.results-placeholder .empty-state h4 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.results-header.results-placeholder .empty-state p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .filter-sort-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-group,
    .sort-group {
        width: 100%;
        min-width: auto;
    }
    
    .apt-rent-result-item .item-title {
        margin: -16px -18px 12px -18px;
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    .apt-rent-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .apt-rent-deal-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .apt-rent-contract-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .apt-rent-price-section {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
        padding: 12px;
    }
    
    .apt-rent-deposit,
    .apt-rent-monthly {
        font-size: 0.85rem;
    }
    
    .apt-rent-deposit strong,
    .apt-rent-monthly strong {
        font-size: 0.8rem;
        margin-right: 4px;
    }
    
    .price-highlight {
        font-size: 0.9rem;
    }
    
    .apt-rent-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .apt-rent-pagination button {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* 모바일 검색 인터페이스 스타일 */
.mobile-search-trigger {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--real-estate-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-search-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.mobile-search-interface {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-search-interface.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-search-overlay {
    display: none !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    backdrop-filter: none;
}

.mobile-search-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-height: 85vh;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(100%) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    z-index: 10001;
}

.mobile-search-interface.active .mobile-search-content {
    transform: translateY(0) !important;
}

.mobile-search-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.mobile-search-close {
    position: absolute;
    top: -10px;
    right: 0;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-search-close:hover {
    background: #f0f0f0;
    color: #333;
}

.mobile-search-header h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.mobile-search-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.mobile-form-group {
    margin-bottom: 18px;
}

.mobile-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.mobile-form-label i {
    color: #10b981;
    font-size: 16px;
}

.mobile-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background: white;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.mobile-form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-form-hint i {
    color: #10b981;
}

.mobile-search-btn {
    width: 100%;
    padding: 14px 20px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.mobile-search-btn:hover {
    background: #1d4ed8;
}

.mobile-search-btn:active {
    background: #1e40af;
}

/* 모바일 검색 결과 영역 */
.mobile-search-results {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 10000;
    display: none;
    flex-direction: column;
    padding: 0;
}

.mobile-search-results.active {
    display: flex;
}

.mobile-results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-back-button {
    background: none;
    border: none;
    font-size: 20px;
    color: #374151;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-back-button:hover {
    background: #f3f4f6;
    color: #111827;
}

.mobile-results-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.mobile-results-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.mobile-results-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.mobile-empty-state {
    text-align: center;
    color: #6b7280;
}

.mobile-empty-state i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.mobile-empty-state h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #374151;
    font-weight: 600;
}

.mobile-empty-state p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.mobile-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.mobile-loading-spinner {
    font-size: 32px;
    color: #10b981;
    margin-bottom: 16px;
}

.mobile-loading-state p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.mobile-results-panel {
    padding: 20px;
}

/* 모바일 필터 컨테이너 스타일 */
.mobile-filter-container {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-filter-sort-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-filter-group,
.mobile-sort-group {
    width: 100%;
}

.mobile-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.mobile-filter-label i {
    color: #10b981;
    font-size: 14px;
}

.mobile-filter-select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 2px solid #d1d5db;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2310b981' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.mobile-filter-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.mobile-result-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    margin: 20px;
}

.mobile-result-error i {
    font-size: 24px;
    color: #dc2626;
    flex-shrink: 0;
}

.mobile-result-error strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.mobile-result-error span {
    font-size: 13px;
}

@media (max-width: 768px) {
    .mobile-search-trigger {
        display: flex;
    }
    
    .mobile-search-results {
        top: 50px;
    }
}

