/* ========== 페이지 헤더 ========== */
.page-header {
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* ========== 레이아웃 ========== */
.content-wrapper {
    display: flex;
    gap: 2rem;
}

/* ========== 필터 사이드바 ========== */
.filter-sidebar {
    width: 250px;
    position: sticky;
    top: 100px;
    height: fit-content;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.filter-checkbox input {
    margin-right: 0.5rem;
    cursor: pointer;
}

.filter-checkbox:hover {
    color: var(--primary);
}

/* ========== 카드 컨테이너 ========== */
.cards-container {
    flex: 1;
    min-width: 0;
}

.cards-info {
    color: var(--text-medium);
    font-size: 0.875rem;
}

/* ========== 마사지 서비스 태그 스타일 ========== */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.service-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 가라오케 서비스 태그 스타일 (파스텔톤) */
.tag-karaoke {
    background: #E5E7EB;
    color: #1F2937;
}

/* ========== 가라오케 카드 추가 스타일 ========== */
/* 비교 체크박스가 있는 카드 스타일 */
.airbnb-card {
    position: relative;
}

.location-info {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin: 0.5rem 0;
}

.room-info,
.parking-info {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin: 0.25rem 0;
}

.language-korean {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0.5rem 0;
}

.benefit-info {
    background: #FEF3C7;
    color: #D97706;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin: 0.75rem 0;
}

/* 행사 뱃지 - 공용 스타일(grid.css) 사용 */
/* airbnb-card-badge event 클래스로 공용 스타일 사용합니다 */

/* ========== 로딩 & 에러 상태 ========== */
.loading-spinner {
    display: none;
    justify-content: center;
    padding: 3rem;
}

.loading-spinner.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.no-results,
.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-medium);
}

/* ========== 모바일 토글 버튼 ========== */
.filter-toggle-btn {
    display: none; /* PC에서는 숨김 */
    width: 100%;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.filter-toggle-btn:hover {
    background: var(--bg-light);
}

.filter-toggle-btn .toggle-icon {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.filter-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* ========== 반응형 ========== */
@media (max-width: 1024px) {
    .content-wrapper {
        gap: 1.5rem;
    }
    
    .filter-sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .filter-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    
    /* 모바일에서만 토글 버튼 표시 */
    .filter-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 필터 컨텐츠 기본적으로 숨김 */
    .filter-content {
        display: none;
        animation: slideDown 0.3s ease;
    }
    
    /* 토글 활성화 시 표시 */
    .filter-sidebar.active .filter-content {
        display: block;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}

/* 슬라이드 다운 애니메이션 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}