/* Moderne Filter Styles für Desktop und Mobile */

/* Animationen */
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Gemeinsame Styles */
.hidden {
    display: none !important;
}

.apartment-card {
    animation: fadeIn 0.5s ease-out;
}

/* Ripple-Effekt für Filter-Pills */
.filter-pill::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.filter-pill:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* ===== DESKTOP STYLES ===== */
@media only screen and (min-width: 768px) {
    .filter-section {
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
        padding: 25px;
        margin: 30px auto;
        max-width: 1000px;
    }
    
    .filter-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
        color: #333;
        text-align: center;
        font-weight: 600;
    }
    
    .filter-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .filter-group {
        margin-bottom: 0;
    }
    
    .filter-label {
        display: flex;
        align-items: center;
        font-weight: 600;
        margin-bottom: 12px;
        color: #444;
        font-size: 0.95rem;
    }
    
    .filter-label i {
        color: var(--primary-color);
        margin-right: 10px;
        font-size: 1.2rem;
        background: rgba(230, 62, 96, 0.1);
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .filter-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-pill {
        padding: 8px 16px;
        background-color: #f8f8f8;
        border-radius: 6px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.25s ease;
        border: 1px solid #eaeaea;
        color: #555;
        font-weight: 500;
        box-shadow: 0 1px 3px rgba(0,0,0,0.03);
        position: relative;
        overflow: hidden;
    }
    
    .filter-pill:hover {
        background-color: #f0f0f0;
        transform: translateY(-2px);
        box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    }
    
    .filter-pill.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        font-weight: 600;
        box-shadow: 0 3px 8px rgba(230, 62, 96, 0.2);
    }
    
    .filter-reset {
        text-align: center;
        margin-top: 20px;
    }
    
    .btn-reset {
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 10px 24px;
        border-radius: 6px;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.25s ease;
        box-shadow: 0 3px 8px rgba(230, 62, 96, 0.2);
    }
    
    .btn-reset:hover {
        background-color: #d12f5d;
        transform: translateY(-2px);
        box-shadow: 0 5px 12px rgba(230, 62, 96, 0.25);
    }
    
    .btn-reset:active {
        transform: translateY(0);
        box-shadow: 0 2px 5px rgba(230, 62, 96, 0.2);
    }
    
    /* Keine Ergebnisse Nachricht */
    .no-results {
        text-align: center;
        padding: 30px;
        color: #666;
        font-size: 1.1rem;
        animation: fadeIn 0.5s ease-out;
    }
}

/* ===== MOBILE STYLES ===== */
@media only screen and (max-width: 767px) {
    .filter-section {
        background-color: #fff;
        border-radius: 15px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
        padding: 18px 15px;
        margin: 15px;
    }
    
    .filter-title {
        text-align: center;
        margin-bottom: 15px;
        font-size: 1.25rem;
        color: #333;
        font-weight: 600;
    }
    
    .filter-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    
    .filter-group {
        margin-bottom: 0;
    }
    
    .filter-label {
        font-weight: 600;
        margin-bottom: 10px;
        color: #444;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
    }
    
    .filter-label i {
        color: var(--primary-color);
        margin-right: 8px;
        font-size: 1rem;
        background: rgba(230, 62, 96, 0.1);
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .filter-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-pill {
        padding: 6px 12px;
        background-color: #f8f8f8;
        border-radius: 20px;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid #eaeaea;
        color: #555;
        box-shadow: 0 1px 2px rgba(0,0,0,0.03);
        position: relative;
        overflow: hidden;
    }
    
    .filter-pill.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        font-weight: 500;
    }
    
    .filter-reset {
        text-align: center;
        margin-top: 18px;
    }
    
    .btn-reset {
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 8px 18px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(230, 62, 96, 0.15);
    }
    
    /* Keine Ergebnisse Nachricht */
    .no-results {
        text-align: center;
        padding: 20px;
        color: #666;
        font-size: 0.95rem;
        animation: fadeIn 0.5s ease-out;
    }
}
