.header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 65px;
    position: relative;
}

.header h1 {
    font-size: 2.5em;
    color: #2d3436;
    margin-bottom: 10px;
}

.search-box {
    max-width: 500px;
    margin: 20px auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #dcdde1;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #74b9ff;
    box-shadow: 0 0 15px rgba(116, 185, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a4b0be;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
}

.favorite-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.favorite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.item-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
}

.item-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #2d3436;
}

.item-description {
    font-size: 0.9em;
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 15px;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: #dfe6e9;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    color: #2d3436;
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.fav-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #ff7675;
    font-size: 1.2em;
    transition: transform 0.3s;
}

.fav-button.active {
    color: #ff4757;
}

.visit-button {
    background: #74b9ff;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.3s;
}

.visit-button:hover {
    background: #0984e3;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
}