        html, body {
            max-width: 100%;
            overflow-x: hidden;
            position: relative;
        }
        .filter-window {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .filter-group label {
            font-size: 0.9rem;
            font-weight: bold;
            color: #444;
        }

        .filter-window select, 
        .filter-window input {
            width: 100%;
            padding: 8px;
            border-radius: 4px;
            border: 1px solid #999;
        }

        .filter-window select:disabled:hover {
            cursor: not-allowed;
        }

        .page-wrapper {
            display: flex;
            align-items: flex-start;
            min-height: calc(100vh - 80px);
        }

        .sidebar {
            width: 280px;
            background-color: #d1d1d1;
            min-height: 100vh;
            min-width: 280px;
            display: flex;
            flex-direction: column;
            border-right: 1px solid #bbb;
        }
        
        .filter-btn {
            background-color: #dd6413;
            color: white;
            border: none;
            padding: 8px 20px;
            cursor: pointer;
            border-radius: 4px;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .filter-btn:hover {
            background-color: #d35400;
        }

        .content-area {
            padding: 20px;
        }

        .ads-container {
            position: relative;
            display: flex;
            justify-content: left;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 1rem 2rem;
            margin-bottom: 5rem;
            
        }

        .card-wrapper {
            width: 22rem;
            height: 13rem;
        }

        .ad-card {
            display: flex;
            flex-direction: row;
            height: 13rem;
            width: 22rem;
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
            transition: width 0.2s ease, height 0.2s ease,  box-shadow 0.2s ease;
        }

        .ad-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            cursor: pointer;
        }

        .ad-card.is-expanded {
            position: absolute;
            z-index: 100;
            height: 17rem;
            width: 28rem;
            box-shadow: 0 10px 50px rgba(0,0,0,0.5);
        }

        .ad-card.is-expanded .ad-content p {
            line-clamp: unset;
            -webkit-line-clamp: unset;
            display: block;
            max-width:unset;
        }

        .ad-card.is-expanded .view-ad-btn {
            display: block;
        }

        .ad-card.is-expanded .ad-content h3{
            font-size: large;
        }

        .ad-card.is-expanded .ad-content p{
            font-size: 0.8rem;;
        }

        .view-ad-btn {
            display: none;
            margin-top: 10px;
            padding: 10px;
            background-color: #dd6413;
            color: white;
            text-align: center;
            text-decoration: none;
            border-radius: 4px;
        }

        .ad-image {
            width: 9rem;
            height: 100%;
            background-color: #bdc3c7;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #7f8c8d;
            flex-shrink: 0;
        }

        .ad-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .ad-content {
            padding: 15px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        .ad-content p{
            display: -webkit-box;
            line-clamp: 4;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;  
            overflow: hidden;
            text-overflow: ellipsis; 
            font-size: 0.8rem;
            max-width: 200px;
            margin-bottom: 10px;
        }

        .ad-content h3{
            font-size: medium;
        }

        .ad-price {
            color: #dd6413;
            font-weight: bold;
            font-size: 1.1rem;
            margin-top: auto;
        }

        @media (max-width: 600px) {
            .content-area{
                padding: 0;
            }
            .ads-container {
                gap: 1rem;
                padding: 10px;
                justify-content: center;
                margin: 0;
            }
            .ad-image {
                height: 120px;
            }
            .ad-card {
                flex-direction: column;
                height: auto;
                width: 100%;
                margin: 0 auto;
                box-sizing: border-box;
            }
            .card-wrapper {
                width: 100%;
                height: auto;
            }

            .ad-image {
                width: 100%;
                height: 200px;
            }
            
            .ad-content p {
                display: -webkit-box;
                line-clamp: 2;
                -webkit-line-clamp: 2;
            }
            .card-wrapper {
            height: auto;
            }
        }

        @media (max-width: 768px) {
            .page-wrapper {
                flex-direction: column;
            }
            .sidebar {
                width: 100%;
                min-width: 100%;
                height: auto;
                min-height: auto;
                border-right: none;
                border-bottom: 1px solid #bbb;
            }

            .filter-window {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .filter-btn {
                grid-column: span 2;
            }
        }
