body {
    background-color: var(--light-color);
}

.projects {
    padding-top: 30px;
    background-color: var(--light-color) !important;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid transparent;
}

.project-card:hover {
    border-color: var(--primary-color);
}

.project-stats {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem 0;
    font-size: 0.8rem;
    color: #6c757d;
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    margin-bottom: 0.75rem;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.size-sticker,
.bestseller-sticker,
.photo-report-sticker {
    position: absolute;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0 8px 0 8px;
    z-index: 2;
    text-align: center;
    white-space: nowrap;
    margin: 8px;
}

.size-sticker {
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.bestseller-sticker {
    top: 0;
    right: 0;
    animation: pulse 2s infinite, bounce 3s infinite;
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    font-weight: 700;
}

.photo-report-sticker {
    bottom: 0;
    left: 0;
    animation: slideInUp 0.5s ease-out, glow 2s infinite alternate;
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    border-radius: 8px 0 0 8px;
}

.project-info {
    padding: 0 1.25rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.project-type {
    color: #6c757d;
    font-weight: normal;
    font-size: 0.9em;
}

.project-name {
    color: #212529;
    font-weight: 600;
}

.project-info p {
    color: #495057;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.project-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spec-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    min-width: 70px;
    flex: 1;
}

.spec-item span {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
}

.spec-item small {
    font-size: 0.75rem;
    color: #6c757d;
    display: block;
    margin-top: 0.125rem;
}

.project-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #28a745;
    margin: 0 0 1rem;
    align-self: center;
    text-align: center;
    width: 100%;
}

.project-price div {
    margin: 4px 0;
}

.project-info .btn {
    background-color: #fdb145;
    color: #212529;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    width: 100%;
}

.project-info .btn:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.filters-container {
    margin-bottom: 20px;
}

.filters-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filters-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.filters-toggle-btn:hover {
    border-color: #fdb145;
    color: #fdb145;
}

.filters-toggle-btn.active {
    background: #fdb145;
    border-color: #fdb145;
    color: #212529;
}

.filters-toggle-btn i {
    font-size: 13px;
}

.filters-active-info {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    padding: 5px 10px;
    background: #e9ecef;
    border-radius: 6px;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.filters-rooms-row {
    margin-top: 0;
}

.filter-group--full {
    width: 100%;
}

.filter-group {
    min-width: 0;
}

.filter-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #495057;
    font-weight: 600;
}

.filter-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    cursor: pointer;
}

.filter-group select:focus {
    border-color: #e0a800;
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 168, 0, 0.15);
}

.rooms-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.rooms-checkboxes .checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #495057;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.rooms-checkboxes .checkbox-label:hover {
    background-color: #f8f9fa;
}

.rooms-checkboxes input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #fdb145;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.filter-actions .btn {
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.filter-actions .btn-primary {
    background-color: #fdb145;
    color: #212529;
}

.filter-actions .btn-primary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(253, 177, 69, 0.4);
}

.filter-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.filter-actions .btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.projects-unavailable {
    text-align: center;
    padding: 3rem 1rem;
    grid-column: 1 / -1;
}

.projects-unavailable .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.projects-unavailable h3 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.projects-unavailable p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

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

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(111, 66, 193, 0.5);
    }
    to {
        box-shadow: 0 0 15px rgba(111, 66, 193, 0.8), 0 0 25px rgba(111, 66, 193, 0.4);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-img {
        height: 200px;
    }

    .filters-form {
        padding: 16px 12px;
        gap: 12px;
    }

    .filters-row {
        flex-direction: column;
        gap: 8px;
    }

    .filter-group {
        min-width: 100%;
        flex: none;
    }

    .filter-group label {
        font-size: 12px;
        font-weight: 400;
        color: #444;
        margin-bottom: 4px;
    }

    .filter-group select {
        padding: 7px 10px;
        font-size: 12px;
        font-weight: 400;
        height: auto;
    }

    .filter-actions {
        flex-direction: column;
        gap: 6px;
    }

    .filter-actions .btn,
    .filter-actions .btn-secondary {
        padding: 8px 12px;
        font-size: 13px;
    }

    .size-sticker,
    .bestseller-sticker,
    .photo-report-sticker {
        font-size: 11px;
        padding: 3px 6px;
        margin: 5px;
    }

    .project-info .btn,
    .filter-actions .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .filters-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filters-toggle-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .filters-form {
        padding: 15px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .rooms-checkboxes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rooms-checkboxes {
        grid-template-columns: 1fr;
    }
}