/* Контейнер для плиток */
.attribute-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    padding: 0;
}

/* Базовые стили для плитки */
.attribute-tile {
    display: inline-block;
    padding: 4px 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 0;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 13px;
}

/* Стили для ссылок внутри плиток */
.attribute-tile a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    width: 100%;
}

/* Эффект при наведении */
.attribute-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Стили для счетчика */
.attribute-tile .count {
    font-size: 0.9em;
    opacity: 0.8;
    margin-left: 5px;
}

/* Адаптивные стили */
@media screen and (max-width: 768px) {
    .attribute-tiles {
        gap: 8px;
    }
    
    .attribute-tile {
        padding: 4px 8px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .attribute-tiles {
        gap: 6px;
    }
    
    .attribute-tile {
        padding: 3px 6px;
        font-size: 12px;
    }
}

/* Анимация появления */
@keyframes tileAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attribute-tile {
    animation: tileAppear 0.3s ease-out;
    will-change: transform;
    -webkit-font-smoothing: antialiased;
}

/* Стили для режима загрузки */
.attribute-tiles.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Стили для печати */
@media print {
    .attribute-tiles {
        display: block;
    }
    
    .attribute-tile {
        display: inline-block;
        margin: 2px 5px;
        padding: 2px 8px;
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .attribute-tile:hover {
        transform: none;
        box-shadow: none;
    }
}